/*
Theme Name: Planific
Theme URI: https://example.com/planific
Author: Rudiney Martínez DEV
Description: Tema WordPress moderno, animado, 100% responsive, compatible con Elementor (Header/Footer Builder) y optimizado para SEO/Core Web Vitals. Incluye dark mode premium, particles hero, slider IA y navegación suprema.
Version: 2.1
Text Domain: planific
*/

/* =========================
   VARIABLES (Light)
========================= */
:root {
  --primary: #3b82f6;
  --primary-rgb: 59, 130, 246;
  --primary-dark: #2563eb;
  --primary-light: #93bbfd;
  --accent: #8b5cf6;
  --accent-rgb: 139, 92, 246;
  --text: #0f172a;
  --text-secondary: #334155;
  --muted: #64748b;
  --bg: #f8fafc;
  --bg-body: linear-gradient(180deg, #eef6ff 0%, #ffffff 40%);
  --card: #ffffff;
  --card-border: rgba(2, 6, 23, .08);
  --shadow: 0 10px 30px rgba(2, 6, 23, .10);
  --shadow-lg: 0 18px 40px rgba(2, 6, 23, .12);
  --radius: 18px;
  --header-bg: rgba(255, 255, 255, .86);
  --header-border: rgba(2, 6, 23, .06);
  --toggle-bg: rgba(255, 255, 255, .95);
  --toggle-border: rgba(2, 6, 23, .12);
  --bar-color: #0f172a;
  --submenu-border: rgba(2, 6, 23, .12);
  --code-bg: #f1f5f9;
  --glow-planific-btn: 0 8px 32px rgba(59, 130, 246, .35);
  --glow-planific-btn-hover: 0 12px 40px rgba(59, 130, 246, .50);
  --planific-btn-gradient: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  --hero-bg: transparent;
  --dot-active: #3b82f6;
  --dot-inactive: rgba(59, 130, 246, .25);

  /* NAV Z-INDEX — ESTANDAR */
  --nav-z-header: 100;
  --nav-z-overlay: 101;
  --nav-z-panel: 102;
  --nav-z-toggle: 103;
}

/* =========================
   VARIABLES (Dark) — PREMIUM
========================= */
[data-theme="dark"] {
  --primary: #60a5fa;
  --primary-rgb: 96, 165, 250;
  --primary-dark: #3b82f6;
  --primary-light: #93c5fd;
  --accent: #a78bfa;
  --accent-rgb: 167, 139, 250;
  --text: #f1f5f9;
  --text-secondary: #cbd5e1;
  --muted: #94a3b8;
  --bg: #0c1222;
  --bg-body: linear-gradient(180deg, #0c1222 0%, #111827 50%, #0f172a 100%);
  --card: rgba(30, 41, 59, .65);
  --card-border: rgba(148, 163, 184, .10);
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-lg: 0 18px 40px rgba(0, 0, 0, .45);
  --header-bg: rgba(12, 18, 34, .82);
  --header-border: rgba(148, 163, 184, .08);
  --toggle-bg: rgba(30, 41, 59, .80);
  --toggle-border: rgba(148, 163, 184, .15);
  --bar-color: #f1f5f9;
  --submenu-border: rgba(148, 163, 184, .12);
  --code-bg: rgba(30, 41, 59, .80);
  --glow-planific-btn: 0 8px 32px rgba(96, 165, 250, .30);
  --glow-planific-btn-hover: 0 12px 40px rgba(96, 165, 250, .50);
  --planific-btn-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --hero-bg: transparent;
  --dot-active: #60a5fa;
  --dot-inactive: rgba(96, 165, 250, .25);
}

/* Global override for Bootstrap dark colors in dark mode */
[data-theme="dark"] .text-dark,
[data-theme="dark"] .text-black,
[data-theme="dark"] .bg-dark {
  color: #cfd3d9 !important;
}

[data-theme="dark"] .bg-dark {
  background-color: #334155 !important;
  /* Slightly lighter than original but darker than cfd3d9 to maintain context */
}

/* Specific fix for H1-H3 and Hero Slider Headings in Dark Mode */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] .hero-slides h1 {
  color: #f1f5f9 !important;
}

/* Dark mode card glass */
[data-theme="dark"] .card,
[data-theme="dark"] .form,
[data-theme="dark"] .post-card,
[data-theme="dark"] .sidebar .widget,
[data-theme="dark"] .post-navigation a {
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  background: rgba(30, 41, 59, .55);
  border-color: rgba(148, 163, 184, .10);
}

/* Dark mode subtle glow on cards hover */
[data-theme="dark"] .card:hover,
[data-theme="dark"] .post-card:hover {
  box-shadow: 0 8px 32px rgba(96, 165, 250, .10), 0 0 0 1px rgba(96, 165, 250, .08);
}

/* =========================
   BASE
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', Arial, sans-serif;
  color: var(--text);
  background: var(--bg-body);
  isolation: isolate;
  transition: background .4s ease, color .3s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Screen reader only utility */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* =========================
   CONTAINER — ANCHO MÁXIMO
========================= */
.container {
  max-width: 1440px;
  width: 94%;
  margin: 0 auto;
  padding: 0;
}

@media (max-width: 768px) {
  .container {
    width: 92%;
  }
}

@media (max-width: 480px) {
  .container {
    width: 90%;
  }
}

/* Full-bleed helper */
.full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: #000;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 9999999;
}

.skip-link:focus {
  left: 10px;
}

/* =========================
   HEADER — z-index supremo
========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--nav-z-header);
  background: var(--header-bg);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--header-border);
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
}

[data-theme="dark"] .site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, .30);
}

/* Home hero header (transparente) */
body.home .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
}

body.home .site-header.scrolled {
  position: fixed;
  background: var(--header-bg);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--header-border);
}

body.home .hero {
  padding-top: 110px;
}

/* =========================
   NAVBAR
========================= */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo {
  height: 42px;
  /* Adequately sized */
  width: auto;
  transition: transform .3s ease;
}

.brand:hover .header-logo {
  transform: scale(1.05);
}

.brand .site-title {
  font-weight: 800;
  letter-spacing: .2px;
}

/* ===== Navbar Actions ===== */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===== Dark Mode Toggle ===== */
.dark-mode-toggle {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--toggle-border);
  background: var(--toggle-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
  z-index: var(--nav-z-toggle);
}

.dark-mode-toggle:hover {
  transform: scale(1.05);
}

.dark-mode-toggle:focus-visible {
  outline: 2px solid rgba(var(--primary-rgb), .5);
  outline-offset: 2px;
}

.dark-mode-toggle svg {
  width: 20px;
  height: 20px;
  transition: transform .3s ease, opacity .2s ease;
}

.dark-mode-toggle .icon-sun {
  display: none;
}

.dark-mode-toggle .icon-moon {
  display: block;
}

[data-theme="dark"] .dark-mode-toggle .icon-sun {
  display: block;
  color: #fbbf24;
}

[data-theme="dark"] .dark-mode-toggle .icon-moon {
  display: none;
}

/* ===== Toggle Hamburger ===== */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--toggle-border);
  background: var(--toggle-bg);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  z-index: var(--nav-z-toggle);
  transition: background .2s ease, border-color .2s ease;
}

.menu-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--bar-color);
  transition: transform .25s ease, opacity .2s ease;
}

.menu-toggle.is-active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.menu-toggle:focus-visible {
  outline: 2px solid rgba(var(--primary-rgb), .5);
  outline-offset: 2px;
}

/* ===== Desktop Menu ===== */
.primary-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 22px;
}

.primary-menu a {
  font-weight: 600;
  color: var(--text);
  opacity: .92;
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
}

.primary-menu a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.primary-menu li {
  position: relative;
}

/* Dropdown desktop */
.primary-menu li ul {
  position: absolute;
  top: 120%;
  left: 0;
  min-width: 210px;
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  border-radius: 14px;
  padding: 10px 0;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
  z-index: 200;
}

[data-theme="dark"] .primary-menu li ul {
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
}

.primary-menu>li:hover>ul,
.primary-menu>li:focus-within>ul,
.primary-menu li.submenu-open>ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.primary-menu li ul a {
  display: block;
  padding: 10px 14px;
  font-weight: 600;
}

.primary-menu li ul a:hover {
  background: rgba(var(--primary-rgb), .08);
  transform: none;
}

/* =========================================
   INDICADOR DESLIZANTE (.nav-indicator)
========================================= */
.nav-indicator {
  position: absolute;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  z-index: 10;
  background: var(--primary);
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.2s ease;
}

.nav-indicator::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(90deg,
      rgba(var(--primary-rgb), 0) 0%,
      rgba(255, 255, 255, .7) 50%,
      rgba(var(--primary-rgb), 0) 100%);
  background-size: 90px 100%;
  background-repeat: no-repeat;
  background-position: -90px 50%;
  animation: navIndicatorSweep 1.1s linear infinite;
}

@keyframes navIndicatorSweep {
  from {
    background-position: -90px 50%;
  }

  to {
    background-position: calc(100% + 90px) 50%;
  }
}

@media (max-width: 900px) {
  .nav-indicator {
    display: none !important;
  }
}

/* ===================================================================
   BUTTONS — PREMIUM GRADIENT + GLOW
=================================================================== */
.planific-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 0 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .02em;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--planific-btn-gradient);
  color: #fff;
  box-shadow: var(--glow-planific-btn);
  cursor: pointer;
  transition: all .3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.planific-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
  transition: left .5s ease;
}

.planific-btn:hover::before {
  left: 100%;
}

.planific-btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: var(--glow-planific-btn-hover), 0 15px 30px rgba(59, 130, 246, 0.4);
  filter: brightness(1.15);
}

.planific-btn:active {
  transform: translateY(-1px);
}

.planific-btn .planific-btn-icon {
  display: inline-flex;
  transition: transform .2s ease;
}

.planific-btn:hover .planific-btn-icon {
  transform: translateX(3px);
}

/* Secondary button */
.planific-btn-secondary {
  background: transparent;
  border: 2px solid rgba(var(--primary-rgb), .3);
  color: var(--primary);
  box-shadow: none;
}

.planific-btn-secondary:hover {
  background: rgba(var(--primary-rgb), .08);
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), .15);
}

[data-theme="dark"] .planific-btn-secondary {
  border-color: rgba(var(--primary-rgb), .35);
  color: var(--primary-light);
}

[data-theme="dark"] .planific-btn-secondary:hover {
  background: rgba(var(--primary-rgb), .12);
}

/* =========================
   PARTICLES HERO
========================= */
.hero {
  position: relative;
  padding: 68px 0 48px;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero>.container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}

/* ===================================================================
   HERO SLIDER
=================================================================== */
.hero-slider {
  position: relative;
  overflow: hidden;
}

.hero-slides {
  position: relative;
  min-height: 340px;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
  pointer-events: none;
}

.hero-slide.active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 40px;
  background: rgba(var(--primary-rgb), .10);
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 20px;
  border: 1px solid rgba(var(--primary-rgb), .15);
}

[data-theme="dark"] .slide-badge {
  background: rgba(var(--primary-rgb), .15) !important;
  border-color: rgba(var(--primary-rgb), .30) !important;
  color: var(--primary-light) !important;
}

.slide-badge svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

[data-theme="dark"] .slide-badge svg {
  stroke: var(--primary-light) !important;
}

.hero-slide h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.08;
  margin: 0 0 20px;
  letter-spacing: -.03em;
  font-weight: 800;
}

.hero-slide h1 .text-gradient {
  background: var(--planific-btn-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-slide p {
  margin: 0 0 32px;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--muted);
  max-width: 50ch;
  line-height: 1.65;
}

.hero-slide .hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Slider dots */
.hero-dots {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: var(--dot-inactive);
  cursor: pointer;
  padding: 0;
  transition: all .3s ease;
  position: relative;
}

.hero-dot.active {
  background: var(--dot-active);
  width: 36px;
  border-radius: 6px;
}

/* Slider progress bar on active dot */
.hero-dot.active::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 6px;
  background: rgba(255, 255, 255, .35);
  animation: dotProgress 5s linear forwards;
}

@keyframes dotProgress {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

/* Hero art panel */
.hero-art {
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), .06), rgba(var(--accent-rgb), .06));
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-lg);
  position: relative;
}

[data-theme="dark"] .hero-art {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), .08), rgba(var(--accent-rgb), .08));
  border-color: rgba(148, 163, 184, .10);
}

.hero-art img {
  display: block;
  width: 100%;
}

/* Hero art floating elements */
.hero-art-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), .03), rgba(var(--accent-rgb), .06));
}

.hero-feature-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  width: 100%;
}

.hero-feature-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .05);
  transition: transform .3s ease, box-shadow .3s ease;
}

[data-theme="dark"] .hero-feature-card {
  background: rgba(30, 41, 59, .70);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .20);
}

.hero-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.hero-feature-card .hf-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-feature-card .hf-icon svg {
  width: 22px;
  height: 22px;
  color: #fff;
}

.hero-feature-card .hf-icon.bg-blue {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
}

.hero-feature-card .hf-icon.bg-green {
  background: linear-gradient(135deg, #10b981, #059669);
}

.hero-feature-card .hf-icon.bg-orange {
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.hero-feature-card .hf-icon.bg-purple {
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
}

.hero-feature-card .hf-text h4 {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 700;
}

.hero-feature-card .hf-text p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

@media (max-width: 960px) {
  .hero {
    text-align: center;
    padding: 40px 0 32px;
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-slide p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-slide .hero-actions {
    justify-content: center;
  }

  .hero-dots {
    justify-content: center;
  }

  .hero-slides {
    min-height: 320px;
  }

  .hero-art {
    max-width: 520px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .hero-slides {
    min-height: 380px;
  }

  .hero-feature-cards {
    padding: 20px;
    gap: 12px;
  }

  .hero-feature-card {
    padding: 14px 16px;
  }
}

/* =========================
   SECTIONS
========================= */
.section {
  padding: 72px 0;
}

.section h2 {
  font-size: clamp(26px, 3.5vw, 44px);
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.section .lead {
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 60ch;
  font-size: 18px;
  line-height: 1.6;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

@media (max-width: 640px) {
  .cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px 22px 20px;
  box-shadow: 0 4px 16px rgba(2, 6, 23, .04);
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease, transform .2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(var(--primary-rgb), .10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.icon svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.contact {
  background: var(--bg);
  border-top: 1px solid var(--card-border);
  transition: background .3s ease, border-color .3s ease;
}

[data-theme="dark"] .contact {
  background: rgba(12, 18, 34, .60);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 960px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
}

.form {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 12px 40px rgba(2, 6, 23, .05);
  transition: background .3s ease, border-color .3s ease;
}

@media (max-width: 640px) {
  .form {
    padding: 24px 20px;
  }
}

.form label {
  display: block;
  font-weight: 700;
  margin: 12px 0 6px;
}

.form input,
.form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--toggle-border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

[data-theme="dark"] .form input,
[data-theme="dark"] .form textarea {
  background: rgba(15, 23, 42, .50);
  border-color: rgba(148, 163, 184, .15);
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .15);
}

.form textarea {
  min-height: 120px;
  resize: vertical;
}

.form button {
  margin-top: 20px;
  width: 100%;
  height: 56px;
  border-radius: 16px;
  border: 0;
  background: var(--planific-btn-gradient);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  box-shadow: var(--glow-planific-btn);
  transition: transform .2s ease, filter .2s ease, box-shadow .3s ease;
}

.form button:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: var(--glow-planific-btn-hover);
}

.form button:active {
  transform: translateY(0);
}

/* =========================
   FOOTER
========================= */
.site-footer {
  padding: 32px 0;
  color: var(--muted);
  font-weight: 600;
  transition: color .3s ease;
  border-top: 1px solid var(--card-border);
}

.site-footer .footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

/* =========================
   PAGE / SINGLE / ARCHIVE TEMPLATES
========================= */
.site-main {
  padding: 60px 0 80px;
  min-height: 50vh;
}

.site-main .page-header {
  margin-bottom: 48px;
}

.site-main .page-title {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -.02em;
}

.site-main .page-description {
  color: var(--muted);
  font-size: 18px;
  max-width: 70ch;
  line-height: 1.65;
}

/* Entry content */
.entry-header {
  margin-bottom: 32px;
}

.entry-title {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: -.02em;
  line-height: 1.12;
}

.entry-meta {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.entry-meta a {
  color: var(--primary);
}

.entry-meta a:hover {
  text-decoration: underline;
}

.entry-content {
  font-size: 17px;
  line-height: 1.78;
  max-width: 100%;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 2em;
  margin-bottom: .5em;
}

.entry-content p {
  margin: 0 0 1.5em;
}

.entry-content img {
  border-radius: var(--radius);
}

.entry-content blockquote {
  margin: 1.5em 0;
  padding: 20px 28px;
  border-left: 4px solid var(--primary);
  background: rgba(var(--primary-rgb), .05);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}

[data-theme="dark"] .entry-content blockquote {
  background: rgba(var(--primary-rgb), .08);
}

.entry-content code {
  background: var(--code-bg);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.9em;
}

.entry-content pre {
  background: var(--code-bg);
  padding: 24px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.9em;
  border: 1px solid var(--card-border);
}

.entry-content pre code {
  background: none;
  padding: 0;
}

.entry-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--card-border);
  color: var(--muted);
  font-size: 14px;
}

.entry-footer a {
  color: var(--primary);
}

/* Featured image */
.entry-thumbnail {
  margin-bottom: 36px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.entry-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
}

/* Post navigation */
.post-navigation {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 640px) {
  .post-navigation {
    grid-template-columns: 1fr;
  }
}

.post-navigation a {
  display: block;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  transition: box-shadow .2s ease, transform .2s ease;
}

.post-navigation a:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.post-navigation .nav-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 6px;
}

.post-navigation .nav-title {
  font-weight: 700;
  font-size: 16px;
}

/* Archive / Blog listing */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

@media (max-width: 640px) {
  .posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.post-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(2, 6, 23, .04);
  transition: transform .25s ease, box-shadow .25s ease, background .3s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.post-card-thumbnail {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg);
}

.post-card-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.post-card:hover .post-card-thumbnail img {
  transform: scale(1.04);
}

.post-card-body {
  padding: 22px;
}

.post-card-body h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.post-card-body h3 a:hover {
  color: var(--primary);
}

.post-card-body .excerpt {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 14px;
}

.post-card-body .post-card-meta {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

/* Pagination */
.pagination {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid var(--card-border);
  background: var(--card);
  transition: all .2s ease;
}

.pagination .page-numbers:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination .page-numbers.current {
  background: var(--planific-btn-gradient);
  color: #fff;
  border-color: transparent;
}

/* =========================
   404 PAGE
========================= */
.error-404 {
  text-align: center;
  padding: 80px 0 100px;
}

.error-404 .error-code {
  font-size: clamp(80px, 15vw, 180px);
  font-weight: 900;
  background: var(--planific-btn-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: .20;
  line-height: 1;
  margin: 0;
  letter-spacing: -.05em;
}

.error-404 h1 {
  font-size: clamp(24px, 4vw, 40px);
  margin: 0 0 16px;
  font-weight: 800;
}

.error-404 p {
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 32px;
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
}

.error-404 .planific-btn {
  margin-bottom: 40px;
}

.error-404 .search-form {
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
}

.error-404 .search-form input[type="search"] {
  flex: 1;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--toggle-border);
  background: var(--card);
  color: var(--text);
  font: inherit;
}

[data-theme="dark"] .error-404 .search-form input[type="search"] {
  background: rgba(30, 41, 59, .60);
  border-color: rgba(148, 163, 184, .15);
}

.error-404 .search-form button {
  padding: 14px 24px;
  border-radius: 14px;
  border: 0;
  background: var(--planific-btn-gradient);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--glow-planific-btn);
}

/* =========================
   SIDEBAR
========================= */
.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

@media (max-width: 960px) {
  .content-sidebar-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.sidebar .widget {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  transition: background .3s ease, border-color .3s ease;
}

.sidebar .widget-title {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(var(--primary-rgb), .15);
}

.sidebar .widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar .widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--card-border);
}

.sidebar .widget ul li:last-child {
  border-bottom: none;
}

.sidebar .widget ul li a {
  font-weight: 600;
  transition: color .2s ease;
}

.sidebar .widget ul li a:hover {
  color: var(--primary);
}

/* =========================
   RESPONSIVE LAYOUT
========================= */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   MOBILE NAV — Z-INDEX SUPREMO
========================================================= */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: var(--nav-z-overlay);
}

[data-theme="dark"] .menu-overlay {
  background: rgba(0, 0, 0, .60);
}

.menu-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

body.menu-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  button.elementor-menu-toggle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--toggle-border);
    background: var(--toggle-bg);
    position: relative;
    padding: 0;
    z-index: var(--nav-z-toggle);
  }

  button.elementor-menu-toggle i {
    display: none !important;
  }

  button.elementor-menu-toggle::before,
  button.elementor-menu-toggle::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 22px;
    height: 2px;
    background: var(--bar-color);
    border-radius: 2px;
    transform: translate(-50%, -50%);
    transition: transform .25s ease, opacity .2s ease, box-shadow .2s ease;
  }

  button.elementor-menu-toggle::before {
    transform: translate(-50%, -50%) translateY(-7px);
    box-shadow: 0 7px 0 0 var(--bar-color), 0 14px 0 0 var(--bar-color);
  }

  button.elementor-menu-toggle::after {
    opacity: 0;
  }

  button.elementor-menu-toggle.elementor-active::before {
    transform: translate(-50%, -50%) rotate(45deg);
    box-shadow: none;
  }

  button.elementor-menu-toggle.elementor-active::after {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-45deg);
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  .primary-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(380px, 85vw);
    height: 100vh;
    background: var(--card);
    backdrop-filter: none;
    border-left: 1px solid var(--card-border);
    box-shadow: -12px 0 32px rgba(15, 23, 42, .12);
    padding: 92px 18px 22px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    transform: translateX(110%);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    overflow: auto;
    z-index: var(--nav-z-panel);
  }

  [data-theme="dark"] .primary-menu {
    background: rgba(15, 23, 42, .95);
    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    box-shadow: -12px 0 32px rgba(0, 0, 0, .40);
  }

  body.menu-open .primary-menu {
    transform: translateX(0);
  }

  .elementor-nav-menu--dropdown {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: min(380px, 85vw) !important;
    height: 100vh !important;
    background: var(--card) !important;
    backdrop-filter: none !important;
    border-left: 1px solid var(--card-border) !important;
    box-shadow: -12px 0 32px rgba(15, 23, 42, .12) !important;
    padding: 92px 18px 22px !important;
    overflow: auto !important;
    transform: translateX(110%);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1) !important;
    z-index: var(--nav-z-panel) !important;
  }

  body.menu-open .elementor-nav-menu--dropdown {
    transform: translateX(0) !important;
  }

  .primary-menu>li>a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 12px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 800;
  }

  .primary-menu>li>a:hover {
    background: rgba(var(--primary-rgb), .08);
    transform: none;
  }

  .primary-menu li ul {
    position: static;
    margin: 6px 0 0 12px;
    padding: 0 0 0 14px;
    border-left: 2px solid var(--submenu-border);
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transform: none;
    border-top: none;
    border-right: none;
    border-bottom: none;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
    transition: max-height .25s ease;
  }

  .primary-menu li.submenu-open>ul {
    max-height: 600px;
  }

  .primary-menu li ul a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--muted);
  }

  .primary-menu li ul a:hover {
    background: rgba(var(--primary-rgb), .08);
    transform: none;
  }

  .primary-menu .menu-item-has-children>a::after {
    content: "";
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    transition: transform .2s ease;
    margin-left: 10px;
    flex: 0 0 auto;
  }

  .primary-menu .menu-item-has-children.submenu-open>a::after {
    transform: rotate(-135deg);
  }

  body.menu-open .primary-menu>li {
    opacity: 0;
    transform: translateX(10px);
    animation: planificSlideIn .25s ease forwards;
    animation-delay: calc(var(--i, 0) * 55ms);
  }

  @keyframes planificSlideIn {
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* =========================
   REDUCED MOTION
========================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Elementor mobile submenus */
@media (max-width: 900px) {
  .elementor-nav-menu--dropdown li>ul.sub-menu {
    margin-left: 12px !important;
    padding-left: 14px !important;
    border-left: 2px solid var(--submenu-border) !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
    backdrop-filter: none !important;
  }

  .elementor-nav-menu--dropdown li.submenu-open>ul.sub-menu {
    max-height: 600px;
  }

  .elementor-nav-menu--dropdown li.menu-item-has-children>a::after {
    content: "";
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    transition: transform .2s ease;
    margin-left: 10px;
    flex: 0 0 auto;
  }

  .elementor-nav-menu--dropdown li.menu-item-has-children.submenu-open>a::after {
    transform: rotate(-135deg);
  }
}

/* =========================================
   UNDERLINE degradé + sweep (hover)
========================================= */
.primary-menu a,
.primary-menu a:hover,
.primary-menu a:focus,
.primary-menu a:focus-visible,
.primary-menu a:active {
  text-decoration: none !important;
}

.primary-menu>li>a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 2px;
}

.primary-menu>li>a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .18s ease;
}

.primary-menu>li>a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg,
      rgba(var(--primary-rgb), 0) 0%,
      rgba(255, 255, 255, .7) 50%,
      rgba(var(--primary-rgb), 0) 100%);
  background-size: 90px 100%;
  background-repeat: no-repeat;
  background-position: -90px 50%;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .18s ease;
  will-change: background-position;
}

.primary-menu>li>a:hover::before,
.primary-menu>li>a:focus-visible::before,
.primary-menu>li>a:hover::after,
.primary-menu>li>a:focus-visible::after {
  opacity: .95;
  transform: scaleX(1);
}

.primary-menu>li>a:hover::after,
.primary-menu>li>a:focus-visible::after {
  animation: planificUnderlineSweep 1.1s linear infinite;
}

@keyframes planificUnderlineSweep {
  from {
    background-position: -90px 50%;
  }

  to {
    background-position: calc(100% + 90px) 50%;
  }
}

.primary-menu li ul a::before,
.primary-menu li ul a::after {
  content: none !important;
}

.primary-menu>li.current-menu-item>a::before,
.primary-menu>li.current_page_item>a::before,
.primary-menu>li.current-menu-ancestor>a::before,
.primary-menu>li.current-menu-parent>a::before,
.primary-menu>li.current_page_parent>a::before,
.primary-menu>li.current_page_ancestor>a::before {
  opacity: .95;
  transform: scaleX(1);
}

.primary-menu>li.current-menu-item>a::after,
.primary-menu>li.current_page_item>a::after,
.primary-menu>li.current-menu-ancestor>a::after,
.primary-menu>li.current-menu-parent>a::after,
.primary-menu>li.current_page_parent>a::after,
.primary-menu>li.current_page_ancestor>a::after {
  opacity: .9;
  transform: scaleX(1);
  animation: planificUnderlineSweep 1.1s linear infinite;
}

@media (max-width: 900px) {
  .primary-menu>li>a::after {
    animation: none !important;
  }

  .primary-menu>li.current-menu-item>a::before,
  .primary-menu>li.current_page_item>a::before,
  .primary-menu>li.current-menu-ancestor>a::before,
  .primary-menu>li.current-menu-parent>a::before,
  .primary-menu>li.current_page_parent>a::before,
  .primary-menu>li.current_page_ancestor>a::before {
    opacity: .95;
    transform: scaleX(1);
  }

  .primary-menu>li.current-menu-item>a::after,
  .primary-menu>li.current_page_item>a::after,
  .primary-menu>li.current-menu-ancestor>a::after,
  .primary-menu>li.current-menu-parent>a::after,
  .primary-menu>li.current_page_parent>a::after,
  .primary-menu>li.current_page_ancestor>a::after {
    opacity: .9;
    transform: scaleX(1);
    background-position: 50% 50%;
  }

  .primary-menu>li.submenu-open>a::before {
    opacity: .95;
    transform: scaleX(1);
  }

  .primary-menu>li.submenu-open>a::after {
    opacity: .9;
    transform: scaleX(1);
    background-position: 50% 50%;
  }
}

/* =========================================================
   DESKTOP: Submenús en "escalera"
========================================================= */
@media (min-width: 901px) {

  .primary-menu li,
  .elementor-nav-menu li {
    position: relative;
  }

  .primary-menu>li>ul,
  .elementor-nav-menu>li>ul {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .primary-menu>li>ul>li,
  .elementor-nav-menu>li>ul>li {
    display: block;
    width: 100%;
  }

  .primary-menu>li>ul>li>a,
  .elementor-nav-menu>li>ul>li>a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .primary-menu>li>ul ul,
  .elementor-nav-menu>li>ul ul {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    margin: 6px 0 0 14px !important;
    padding: 2px 0 0 12px !important;
    border-left: 2px solid var(--submenu-border) !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }

  .primary-menu>li>ul li.submenu-open>ul,
  .elementor-nav-menu>li>ul li.submenu-open>ul {
    max-height: 900px;
  }

  .primary-menu>li>ul ul a,
  .elementor-nav-menu>li>ul ul a {
    display: block;
    padding: 10px 12px;
    font-weight: 600;
    color: var(--muted);
  }

  .primary-menu>li>ul ul ul,
  .elementor-nav-menu>li>ul ul ul {
    margin-left: 20px !important;
    padding-left: 12px !important;
  }

  .primary-menu>li>ul ul ul ul,
  .elementor-nav-menu>li>ul ul ul ul {
    margin-left: 26px !important;
  }

  .primary-menu>li>ul .menu-item-has-children>a::after,
  .elementor-nav-menu>li>ul .menu-item-has-children>a::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    transition: transform .2s ease;
    margin-left: 10px;
    flex: 0 0 auto;
  }

  .primary-menu>li>ul li.submenu-open>a::after,
  .elementor-nav-menu>li>ul li.submenu-open>a::after {
    transform: rotate(-135deg);
  }
}


/* ===================================================================
   MULTI-SLIDER (MULTIGRADO DEMO)
=================================================================== */
.multi-slider-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  padding: 40px;
}

[data-theme="dark"] .multi-slider-container {
  background: rgba(30, 41, 59, .65);
  backdrop-filter: blur(12px);
}

[data-theme="dark"] .ms-content p {
  color: var(--text-secondary) !important;
}

[data-theme="dark"] .multi-arrow {
  background: rgba(30, 41, 59, .8) !important;
  border-color: rgba(148, 163, 184, .2) !important;
  color: var(--text) !important;
}

.multi-slider {
  position: relative;
  min-height: 480px;
  overflow: hidden;
}

.multi-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 30px;
}

.multi-slide.active {
  position: relative;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.ms-content {
  flex: 1;
  padding-right: 20px;
}

.ms-image {
  flex: 1.4;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--card-border);
  height: 380px;
  position: relative;
  background: rgba(var(--primary-rgb), 0.03);
}

.ms-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Controls */
.multi-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 15px;
  pointer-events: none;
}

.multi-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.2s ease;
}

.multi-arrow:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Dots */
.multi-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.multi-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--dot-inactive);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.multi-dot.active {
  background: var(--dot-active);
  width: 30px;
  border-radius: 5px;
}

@media (max-width: 768px) {
  .multi-slide {
    flex-direction: column;
    text-align: center;
  }

  .ms-content {
    padding-right: 0;
    margin-bottom: 20px;
  }

  .multi-arrow {
    display: none;
  }

  .multi-slider-container {
    padding: 20px;
  }
}

/* ===================================================================
   ANIMATED CURSOR CLICKS (GRADO DEMO)
=================================================================== */
.animated-cursor {
  position: absolute;
  width: 40px;
  height: 40px;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

/* Base starting position below the image */
.animated-cursor svg {
  width: 100%;
  height: 100%;
  fill: #fff;
  stroke: #000;
  stroke-width: 1.5;
}

/* Material Button approximate click */
@keyframes cursorClickMat {
  0% {
    opacity: 0;
    bottom: -50px;
    right: 50%;
    transform: scale(1);
  }

  20% {
    opacity: 1;
    bottom: 25%;
    right: 35%;
    transform: scale(1);
  }

  50% {
    bottom: 28%;
    right: 48%;
    /* Adjust to point roughly near Material button center */
    transform: scale(1);
  }

  60% {
    transform: scale(0.85);
    /* Click down */
  }

  70% {
    transform: scale(1);
    /* Release */
  }

  100% {
    opacity: 0;
    bottom: 28%;
    right: 48%;
    transform: scale(1);
  }
}

/* Rubrica Button approximate click */
@keyframes cursorClickRub {
  0% {
    opacity: 0;
    bottom: -50px;
    right: 50%;
    transform: scale(1);
  }

  20% {
    opacity: 1;
    bottom: 15%;
    right: 30%;
    transform: scale(1);
  }

  50% {
    bottom: 18%;
    right: 38%;
    /* Adjust to point roughly near Rubrica button */
    transform: scale(1);
  }

  60% {
    transform: scale(0.85);
    /* Click down */
  }

  70% {
    transform: scale(1);
    /* Release */
  }

  100% {
    opacity: 0;
    bottom: 18%;
    right: 38%;
    transform: scale(1);
  }
}

/* Multiple buttons click animation for slide 4 */
@keyframes cursorClickMulti {
  0% {
    opacity: 0;
    bottom: -20px;
    right: 50%;
    transform: scale(1);
  }

  15% {
    opacity: 1;
    bottom: 35%;
    right: 55%;
    transform: scale(1);
  }

  18% {
    transform: scale(0.85);
  }

  21% {
    transform: scale(1);
  }

  28% {
    bottom: 35%;
    right: 42%;
    transform: scale(1);
  }

  31% {
    transform: scale(0.85);
  }

  34% {
    transform: scale(1);
  }

  41% {
    bottom: 22%;
    right: 55%;
    transform: scale(1);
  }

  44% {
    transform: scale(0.85);
  }

  47% {
    transform: scale(1);
  }

  54% {
    bottom: 22%;
    right: 42%;
    transform: scale(1);
  }

  57% {
    transform: scale(0.85);
  }

  60% {
    transform: scale(1);
  }

  85% {
    opacity: 0;
    bottom: -20px;
    right: 42%;
    transform: scale(1);
  }

  100% {
    opacity: 0;
  }
}

/* Generic click animation for any position */
@keyframes cursorClickGeneric {
  0% {
    opacity: 0;
    bottom: -20px;
    right: 50%;
    transform: scale(1);
  }

  20% {
    opacity: 1;
    bottom: 25%;
    right: 40%;
    transform: scale(1);
  }

  50% {
    bottom: 45%;
    right: 25%;
    transform: scale(1);
  }

  60% {
    transform: scale(0.85);
  }

  70% {
    transform: scale(1);
  }

  100% {
    opacity: 0;
    bottom: 45%;
    right: 25%;
    transform: scale(1);
  }
}

/* Generic click animation 2 for variety */
@keyframes cursorClickGeneric2 {
  0% {
    opacity: 0;
    bottom: -20px;
    right: 50%;
    transform: scale(1);
  }

  20% {
    opacity: 1;
    bottom: 15%;
    right: 60%;
    transform: scale(1);
  }

  50% {
    bottom: 30%;
    right: 65%;
    transform: scale(1);
  }

  60% {
    transform: scale(0.85);
  }

  70% {
    transform: scale(1);
  }

  100% {
    opacity: 0;
    bottom: 30%;
    right: 65%;
    transform: scale(1);
  }
}

/* =========================================================
   FOOTER SOCIAL CTA & REFINED STYLES
========================================================= */
.site-footer {
  padding: 60px 0 40px;
  background: var(--bg-body);
  border-top: 1px solid var(--card-border);
}

.footer-social-cta {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 40px;
  margin-bottom: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.footer-social-cta:hover {
  border-color: rgba(var(--primary-rgb), 0.3);
  transform: translateY(-2px);
}

.social-cta-content h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.social-cta-content p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 500px;
  line-height: 1.6;
}

.social-cta-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.social-btn {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-btn.facebook {
  background: #1877F2;
}

.social-btn.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-btn.whatsapp {
  background: #25D366;
  width: auto;
  padding: 0 24px;
  gap: 10px;
  text-decoration: none;
}

.social-btn.whatsapp span {
  font-weight: 700;
  font-size: 0.95rem;
}

.social-btn:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  color: #fff !important;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--toggle-border);
}

.footer-brand strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.footer-brand small {
  color: var(--muted);
}

.footer-tagline {
  text-align: right;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

@media (max-width: 960px) {
  .footer-social-cta {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }

  .social-cta-content p {
    margin: 0 auto;
  }

  .social-cta-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }

  .footer-tagline {
    text-align: center;
    order: -1;
  }
}

.footer-email-link:hover {
  color: var(--text) !important;
  opacity: 0.8;
}

/* Hero Art Dashboard Slider */
.hero-art-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-bottom: 1px solid var(--card-border);
  background: var(--card);
}

.hero-art-main-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
}

.hero-art-main-image.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

@media (max-width: 960px) {
  .hero-art-slider {
    aspect-ratio: auto;
  }

  .hero-art-main-image.active {
    position: relative;
  }
}

/* Floating WhatsApp Bubble */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 65px;
  height: 65px;
  background-color: #25d366;
  color: #fff !important;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-5px);
  background-color: #20ba5a;
  box-shadow: 2px 5px 15px rgba(0, 0, 0, 0.4);
}

.whatsapp-float-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #25d366;
  border-radius: 50px;
  z-index: -1;
  animation: whatsappPulse 2s infinite;
}

@keyframes whatsappPulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

@media (max-width: 960px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
  }
}

/* =========================================
   SECCIÓN PRECIO — MULTI-PLAN
========================================= */
.pricing-grid {
  padding: 20px 0;
}

.pricing-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 30px 60px rgba(var(--primary-rgb), 0.15), 0 0 0 1px rgba(var(--primary-rgb), 0.1) !important;
}

.pricing-card .price span {
  transition: color 0.3s ease;
}

[data-theme="dark"] .pricing-card {
  background: rgba(30, 41, 59, 0.6) !important;
  border-color: rgba(148, 163, 184, 0.1) !important;
  backdrop-filter: blur(10px);
}

[data-theme="dark"] .pricing-card:nth-child(2) {
  border-color: var(--primary) !important;
  background: rgba(var(--primary-rgb), 0.05) !important;
}

[data-theme="dark"] .pricing-card li svg {
  stroke: var(--primary-light);
}

@media (max-width: 1024px) {
  .pricing-card:nth-child(2) {
    transform: none !important;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr !important;
  }

  .pricing-card {
    padding: 35px 25px !important;
  }

  .pricing-card h2 {
    font-size: 28px !important;
  }
}