/* ════════════════════════════════════════════════════════════
   IVIA — Hoja de Estilos Principal
   Archivo: /css/style.css  v3.0
   
   ARQUITECTURA:
   Los tokens de diseño (colores, tipografía, espaciado, etc.)
   viven en /css/tokens.css — este archivo los consume.

   ÍNDICE:
   1.  Reset y base
   2.  Navbar
   3.  Menú mobile (hamburger + overlay)
   4.  Dropdown de servicios
   5.  Botones globales
   6.  Hero principal
   7.  Trust bar
   8.  Secciones generales
   9.  Cards de servicios
   10. Planes de precios
   11. Sección Nosotros
   12. Sección Herramienta / CTA calculadora
   13. Proyectos a la medida (teaser)
   14. Soporte (strip)
   15. FAQ acordeón
   16. Formulario de contacto
   17. Footer
   18. Elementos flotantes (WhatsApp, volver arriba)
   19. Scroll reveal (data-reveal)
   20. Media queries consolidados
════════════════════════════════════════════════════════════ */


/* ══════════════════════════════════════════════════════════
   1. RESET Y BASE
══════════════════════════════════════════════════════════ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg-page);
    color: var(--color-text-primary);
}


/* ══════════════════════════════════════════════════════════
   2. NAVBAR
══════════════════════════════════════════════════════════ */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: var(--z-sticky);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    padding: 0.75rem 5%;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    background-color: rgba(255, 255, 255, 0.95);
}

/* Logo */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
    text-decoration: none;
    margin-top: 5px;
}

.logo-img {
    height: 40px;
    width: auto;
    transition: all var(--transition-base);
}

.navbar.scrolled .logo-img { height: 32px; }

.brand-subtext {
    font-size: 0.75rem;
    color: var(--slate-500);
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Links de navegación desktop */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links li { position: relative; }

.nav-links a {
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--slate-700);
    padding: 0.5rem 1rem;
    transition: color var(--transition-base);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active { color: var(--blue-600); }

/* Línea animada bajo el enlace */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--blue-600);
    transform: scaleX(0);
    transform-origin: bottom center;
    transition: transform 0.25s ease-out;
}

.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* Link de soporte — color sky */
.nav-link-soporte {
    color: var(--sky-600) !important;
    font-weight: 600 !important;
}
.nav-link-soporte:hover { color: var(--sky-700) !important; }

/* Acciones lado derecho (desktop) */
.nav-right-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-calc-cta {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--slate-700);
    text-decoration: none;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--slate-200);
    background: transparent;
    transition: background var(--transition-fast), border-color var(--transition-fast);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.nav-calc-cta:hover {
    background: var(--slate-50);
    border-color: var(--slate-300);
}

/* Botón cotizar en navbar */
.navbar .btn-primary {
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}
.navbar .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
}

/* Mobile CTA items — ocultos en desktop */
.mobile-cta-item { display: none; }


/* ══════════════════════════════════════════════════════════
   3. MENÚ MOBILE (hamburger + overlay)
══════════════════════════════════════════════════════════ */

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: var(--z-menu);
    outline: none;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--slate-900);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Animación X al abrir */
.menu-toggle.active .bar:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.menu-toggle.active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .bar:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* Overlay oscuro detrás del menú */
.menu-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: var(--z-overlay);
}
.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* ══════════════════════════════════════════════════════════
   4. DROPDOWN DE SERVICIOS
══════════════════════════════════════════════════════════ */

.nav-has-dropdown { position: relative; }

.nav-dropdown-trigger {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    font-size: inherit;
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    transition: color var(--transition-fast);
}
.nav-dropdown-trigger:hover,
.nav-has-dropdown:hover .nav-dropdown-trigger {
    color: var(--blue-600);
}

.dropdown-chevron { transition: transform 0.2s ease; }
.nav-has-dropdown:hover .dropdown-chevron,
.nav-dropdown-trigger[aria-expanded="true"] .dropdown-chevron {
    transform: rotate(180deg);
}

/* Menú desplegable */
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 14px;
    padding: 6px;
    min-width: 290px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.04);
    z-index: var(--z-dropdown);
    list-style: none;
    animation: dropdownFadeIn 0.15s ease;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Abrir con hover en desktop */
@media (min-width: 769px) {
    .nav-has-dropdown:hover .nav-dropdown-menu,
    .nav-has-dropdown:focus-within .nav-dropdown-menu {
        display: block;
    }
}

/* Links dentro del dropdown */
.dropdown-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--slate-900);
    transition: background var(--transition-fast);
}
.dropdown-link:hover { background: var(--blue-50); }
.dropdown-link::after { display: none; } /* Quitar línea animada del nav principal */

.dropdown-link .di {
    font-size: 1.15rem;
    margin-top: 1px;
    flex-shrink: 0;
}
.dropdown-link strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 1px;
}
.dropdown-link em {
    display: block;
    font-size: 0.78rem;
    font-style: normal;
    color: var(--slate-500);
    line-height: 1.3;
}


/* ══════════════════════════════════════════════════════════
   5. BOTONES GLOBALES
══════════════════════════════════════════════════════════ */

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blue-600);
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    box-shadow: var(--shadow-blue);
    transition: background var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    background: var(--blue-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue-lg);
}
.btn-primary svg { transition: transform var(--transition-base); }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--white);
    color: var(--blue-600);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    border: 2px solid var(--blue-600);
    transition: all var(--transition-base);
    cursor: pointer;
}
.btn-secondary:hover {
    background: var(--blue-50);
    border-color: var(--blue-700);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    color: var(--slate-700);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.85rem 1.4rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    border: 1px solid var(--slate-300);
    transition: all var(--transition-base);
    cursor: pointer;
}
.btn-ghost:hover {
    background: var(--white);
    border-color: var(--blue-400);
    color: var(--blue-600);
    box-shadow: 0 2px 12px rgba(37,99,235,.08);
}

.btn-amber {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--amber-600);
    color: var(--white);
    font-weight: 700;
    font-size: 1.05rem;
    padding: 1rem 2.2rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
    box-shadow: 0 8px 20px rgba(217,119,6,0.35);
}
.btn-amber:hover {
    background: var(--amber-700);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(217,119,6,0.45);
}

.btn-sky {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--sky-600);
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background var(--transition-base);
}
.btn-sky:hover { background: var(--sky-700); }

.btn-sky-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    color: var(--sky-600);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--sky-600);
    text-decoration: none;
    transition: background var(--transition-base), color var(--transition-base);
}
.btn-sky-outline:hover {
    background: var(--sky-600);
    color: var(--white);
}

/* Botón bloque (ancho completo en formularios) */
.btn-block { width: 100%; justify-content: center; }

/* Botón de contacto personalizado */
.form-btn-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 1.5rem;
}
button.btn-primary.btn-form-custom {
    width: auto !important;
    min-width: 260px;
    max-width: 320px;
    padding: 0.65rem 1.5rem !important;
    font-size: 0.9rem !important;
    display: inline-flex !important;
    justify-content: center !important;
}

/* Clases utilitarias */
.hidden { display: none !important; }
.gradient-text {
    background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* ══════════════════════════════════════════════════════════
   6. HERO PRINCIPAL
══════════════════════════════════════════════════════════ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 7rem 5% 5rem;
    overflow: hidden;
    background: var(--slate-50);
}

/* Cuadrícula SVG de fondo */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37,99,235,.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37,99,235,.07) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, black 20%, transparent 80%);
    pointer-events: none;
}

/* Gradientes radiales de fondo */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 60% at 5% 55%,  rgba(37,99,235,.08) 0%, transparent 70%),
        radial-gradient(ellipse 40% 50% at 95% 10%, rgba(99,102,241,.06) 0%, transparent 65%);
    pointer-events: none;
}

/* Layout de dos columnas */
.hero-inner {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 4rem;
}

/* ── Columna izquierda ── */
.hero-text { display: flex; flex-direction: column; }

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--white);
    border: 1px solid rgba(37,99,235,.2);
    color: var(--blue-600);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 1.25rem;
    width: fit-content;
    box-shadow: 0 1px 4px rgba(37,99,235,.08);
    animation: fade-up .55s ease both;
}

.hero-chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue-600);
    animation: pulse-chip-optimized 2s infinite ease-in-out;
    will-change: transform, opacity;
}

@keyframes pulse-chip-optimized {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

.hero-h1 {
    font-size: var(--text-hero);
    font-weight: 800;
    color: var(--slate-900);
    line-height: 1.08;
    letter-spacing: -.02em;
    margin-bottom: 1.25rem;
    animation: fade-up .55s .1s ease both;
}

.hero-h1 mark {
    background: none;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    background-image: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-500) 60%, #6366f1 100%);
}

.hero-sub {
    font-size: var(--text-lg);
    color: var(--slate-500);
    line-height: 1.65;
    margin-bottom: 2rem;
    max-width: 490px;
    animation: fade-up .55s .18s ease both;
}

.hero-rotating {
    font-weight: 600;
    color: var(--blue-600);
    display: inline-block;
    min-width: 200px;
    transition: opacity .2s ease, transform .2s ease;
}
.hero-rotating.fade-out { opacity: 0; transform: translateY(-6px); }
.hero-rotating.fade-in  { opacity: 1; transform: translateY(0); }

.hero-ctas {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    animation: fade-up .55s .26s ease both;
}

/* Fila de micro-trust */
.hero-trust {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: fade-up .55s .34s ease both;
}
.trust-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--slate-300);
}

/* ── Columna derecha: panel de tarjetas ── */
.hero-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;                  /* antes: 12px — uniforme para todos */
    animation: fade-up .65s .2s ease both;
}

/* Glow detrás del panel */
.hero-panel::before {
    content: '';
    position: absolute;
    top: 10%; right: -20px;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(37,99,235,.09) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Tarjeta base */
.pcard {
    background: var(--white);
    border: 1px solid rgba(15,23,42,.08);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.25rem;
    box-shadow: var(--shadow-card, 0 1px 3px rgba(15,23,42,.06));
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    animation: float-card 5.5s ease-in-out infinite;
}
.pcard:hover { transform: translateY(-3px) !important; box-shadow: var(--shadow-lg); }
.pcard:nth-child(2) { animation-delay: -.8s; animation-duration: 6.2s; }
.pcard:nth-child(3) { animation-delay: -1.8s; animation-duration: 5.8s; }
.pcard:nth-child(4) { animation-delay: -2.5s; animation-duration: 6.8s; }

@keyframes float-card {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-7px); }
}

/* Pcard 1: URL bar */
.pcard-header { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.win-dot { width: 8px; height: 8px; border-radius: 50%; }
.win-dot.r { background: #ef4444; }
.win-dot.y { background: #eab308; }
.win-dot.g { background: #22c55e; }
.url-bar {
    flex: 1;
    background: var(--slate-100);
    border-radius: 5px;
    padding: 4px 10px;
    font-size: .72rem;
    color: var(--slate-500);
    display: flex;
    align-items: center;
    gap: 5px;
}
.url-lock { color: #22c55e; }
.pcard-label { font-size: .78rem; font-weight: 700; color: var(--slate-900); margin-bottom: 6px; }
.pcard-bar-track { height: 5px; background: var(--slate-100); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.pcard-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--blue-600), #6366f1);
    width: 99%; /* Tu medida exacta se mantiene */
    
    /* Estado inicial ligero para la GPU */
    opacity: 0;
    transform: translateX(-8px);
    
    animation: bar-load-optimized 1.8s cubic-bezier(.4,0,.2,1) forwards;
}

@keyframes bar-load-optimized {
    to { 
        opacity: 1;
        transform: translateX(0);
    } 
}

/* Pcard 2 y 3: fila con ícono */
.pcard-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pcard-icon-wrap {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: var(--blue-50);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.pcard-icon-wrap svg { color: var(--blue-600); }
.pcard-meta { flex: 1; min-width: 0; }
.pcard-meta-title { font-size: .82rem; font-weight: 700; color: var(--slate-900); }
.pcard-meta-sub { font-size: .72rem; color: var(--slate-500); margin-top: 1px; }

.status-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 8px; border-radius: var(--radius-full);
    font-size: .7rem; font-weight: 600;
    background: var(--green-100); color: var(--green-700);
    flex-shrink: 0;
}
.status-badge-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green-500); }
.status-badge.blue { background: var(--blue-50); color: var(--blue-700); }
.status-badge.blue .status-badge-dot { background: var(--blue-600); }

.backup-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.backup-row { display: flex; align-items: center; justify-content: space-between; font-size: .73rem; color: var(--slate-500); }
.backup-row strong { color: var(--slate-700); font-weight: 600; }
.backup-row span { color: var(--green-500); font-weight: 600; }

/* Pcard 4: uptime */
.uptime-number { font-size: 2rem; font-weight: 800; color: var(--slate-900); letter-spacing: -.03em; line-height: 1; }
.uptime-label { font-size: .75rem; color: var(--slate-500); margin-top: 4px; }
.uptime-bar-wrap { display: flex; gap: 3px; margin-top: 10px; }
.uptime-seg { flex: 1; height: 22px; border-radius: 3px; background: var(--green-100); }
.uptime-seg.off { background: #fee2e2; }

/* Conector decorativo entre tarjetas */
.panel-connector {
    display: none;
}

/* Animaciones de entrada del hero */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ══════════════════════════════════════════════════════════
   7. TRUST BAR
══════════════════════════════════════════════════════════ */

.trust-bar {
    background: var(--slate-50);
    border-top: 1px solid var(--slate-200);
    border-bottom: 1px solid var(--slate-200);
    padding: 1.25rem 1rem;
}
.trust-bar-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem 3rem;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--slate-700);
    white-space: nowrap;
}
.trust-item svg { color: var(--color-accent); }
.trust-item a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 700;
}


/* ══════════════════════════════════════════════════════════
   8. SECCIONES GENERALES
══════════════════════════════════════════════════════════ */

.section-padding { padding: 5rem 5%; }
.bg-light { background-color: var(--slate-100); }

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title h2 {
    font-size: var(--text-3xl);
    color: var(--slate-800);
    margin-bottom: 1rem;
}
.section-title p {
    color: var(--slate-500);
    font-size: var(--text-md);
    max-width: 600px;
    margin: 0 auto;
}

/* Interruptor de precios mensual/anual */
.pricing-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}
.toggle-label { font-size: 1.1rem; font-weight: 600; color: var(--slate-500); transition: color var(--transition-base); }
.toggle-label.active { color: var(--blue-600); }
.discount-badge {
    background-color: var(--green-500);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    margin-left: 5px;
    display: inline-block;
    vertical-align: middle;
}
.switch { position: relative; display: inline-block; width: 60px; height: 34px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background-color: var(--slate-300); transition: .4s; }
.slider::before { position: absolute; content: ""; height: 26px; width: 26px; left: 4px; bottom: 4px; background: white; transition: .4s; }
input:checked + .slider { background-color: var(--blue-600); }
input:checked + .slider::before { transform: translateX(26px); }
.slider.round { border-radius: 34px; }
.slider.round::before { border-radius: 50%; }
.price-box { height: 60px; display: flex; align-items: center; }

/* Indicador de estado de sistemas */
.system-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--slate-500);
    font-weight: 500;
}
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #22c55e; /* Verde operativo base */
    animation: pulse-green-optimized 2s infinite ease-in-out;
    will-change: transform, opacity;
}
@keyframes pulse-green-optimized {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

/* Proceso (cómo trabajamos — strip del index) */
.process-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2.5rem;
}
.process-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-default);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    flex: 1 1 180px;
    max-width: 220px;
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.process-step:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.process-step .step-num { font-size: 1.4rem; font-weight: 800; color: rgba(37,99,235,.15); line-height: 1; min-width: 28px; }
.process-step .step-label { font-size: 0.9rem; font-weight: 600; color: var(--color-text-primary); display: flex; align-items: center; }

/* Badge tecnología */
.badge-tech {
    display: inline-block;
    background-color: var(--blue-100);
    color: #4338ca;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}


/* ══════════════════════════════════════════════════════════
   9. CARDS DE SERVICIOS
══════════════════════════════════════════════════════════ */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.service-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--color-border-default);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

/* Línea de acento superior en hover */
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--blue-600) 0%, var(--blue-400) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}
.service-card:hover { transform: translateY(-5px); border-color: var(--blue-200); box-shadow: var(--shadow-md); }
.service-card:hover::before { opacity: 1; }

.service-card h3 { color: var(--color-text-primary); margin-bottom: .5rem; font-size: 1rem; font-weight: 700; line-height: 1.3; }
.service-card p { color: var(--color-text-body); line-height: 1.65; font-size: .875rem; flex-grow: 1; }


/* ══════════════════════════════════════════════════════════
   10. PLANES DE PRECIOS
══════════════════════════════════════════════════════════ */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.5rem;
    max-width: 1050px;
    margin: 0 auto;
    align-items: stretch;
}

.pricing-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-xl);
    padding: 2.25rem 2rem;
    border: 1px solid var(--color-border-default);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

/* Borde lateral izquierdo animado */
.pricing-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: linear-gradient(to bottom, transparent 0%, var(--blue-400) 40%, var(--blue-600) 60%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-slow);
}
.pricing-card:hover { transform: translateY(-6px); border-color: var(--blue-200); box-shadow: var(--shadow-lg); }
.pricing-card:hover::before { opacity: 1; }

/* Plan popular */
.pricing-card.popular {
    border: 1.5px solid var(--blue-200);
    box-shadow: var(--shadow-md), 0 0 0 4px rgba(37,99,235,.06);
    background: linear-gradient(160deg, rgba(239,246,255,.6) 0%, #fff 60%);
    transform: translateY(-4px) scale(1.02);
    z-index: 2;
}
.pricing-card.popular:hover { transform: translateY(-10px) scale(1.02); box-shadow: var(--shadow-lg), 0 0 0 4px rgba(37,99,235,.10); }

/* Barra superior plan popular */
.pricing-card.popular::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue-600) 0%, #6366f1 100%);
    border-radius: 20px 20px 0 0;
}

.popular-badge {
    position: absolute;
    top: -1px; left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--blue-600), #6366f1);
    color: var(--white);
    padding: 5px 16px;
    border-radius: 0 0 12px 12px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .03em;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(37,99,235,.3);
}

.pricing-card h3 { font-size: 1.15rem; font-weight: 800; color: var(--color-text-primary); margin-bottom: .75rem; margin-top: .5rem; }
.pricing-card.popular h3 { margin-top: 1.5rem; }

.price { font-size: .95rem; color: var(--color-text-muted); }
.price span { font-size: 2.4rem; font-weight: 800; color: var(--color-text-primary); letter-spacing: -.02em; }
.pricing-card.popular .price span { color: var(--blue-700); }

.setup-fee { font-size: .78rem; color: var(--color-text-muted); margin-bottom: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--color-border-default); }

.features-list { list-style: none !important; padding: 0 !important; flex-grow: 1; margin-bottom: 1.75rem; display: flex; flex-direction: column; gap: .5rem; }
.features-list li { padding: .35rem 0; color: var(--color-text-body); font-size: .875rem; line-height: 1.45; }
.features-list li::before { content: none !important; }

/* Bono plan básico */
.features-list li.premium-bonus {
    background: linear-gradient(90deg, var(--blue-50) 0%, transparent 100%);
    border-left: 2px solid var(--blue-400);
    padding: .45rem .6rem !important;
    border-radius: 0 6px 6px 0;
    margin-left: -2px;
    color: var(--slate-700) !important;
    font-weight: 500;
}
.features-list li.premium-bonus strong { color: var(--blue-600); }
.features-list li.premium-bonus::before { content: none !important; }

/* Garantía de riesgo cero */
.trust-guarantee {
    max-width: 1050px;
    margin: 3rem auto 0;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-left: 4px solid var(--blue-600);
    border-radius: 0 12px 12px 0;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow-xs);
}
.trust-icon { font-size: 2rem; opacity: 0.9; }
.trust-text h4 { font-size: 1.2rem; color: var(--slate-900); margin-bottom: 0.5rem; font-weight: 700; }
.trust-text p { color: var(--slate-600); font-size: 0.95rem; line-height: 1.6; margin: 0; }


/* ══════════════════════════════════════════════════════════
   11. SECCIÓN NOSOTROS
══════════════════════════════════════════════════════════ */

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
}

.about-text h2 { font-size: 2.2rem; color: var(--slate-900); margin-bottom: 1.5rem; font-weight: 700; }
.about-text p { color: var(--slate-700); font-size: 1.05rem; line-height: 1.7; margin-bottom: 1.5rem; text-align: justify; }
.about-text strong { color: var(--blue-600); }

.about-visuals { display: flex; flex-direction: column; gap: 1.5rem; }

.corporate-badge {
    background: white;
    border: 1px solid var(--slate-200);
    border-top: 4px solid var(--blue-600);
    border-radius: 12px;
    padding: 3rem 2rem;
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}
.ingversia-logo { width: 100%; max-width: 260px; height: auto; display: block; margin: 0 auto; }
.badge-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    top: -5px;
}

.skills-card {
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-xs);
}
.skills-title { font-weight: 700; margin: 0 0 1.2rem; color: var(--slate-900); font-size: 0.95rem; text-align: center; }
.skills-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; list-style: none; padding: 0; margin: 0; }
.skills-list li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; color: var(--slate-600); font-weight: 500; }


/* ══════════════════════════════════════════════════════════
   12. HERRAMIENTA / CTA CALCULADORA
══════════════════════════════════════════════════════════ */

.tool-cta-section {
    background: linear-gradient(135deg, var(--slate-900) 0%, #1e3a5f 100%);
    padding: 5rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.tool-cta-section::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(37,99,235,.25) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.tool-cta-section::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(217,119,6,.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.tool-cta-inner { max-width: 800px; margin: 0 auto; position: relative; z-index: 2; }
.tool-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(217,119,6,.2);
    color: var(--amber-400);
    border: 1px solid rgba(217,119,6,.4);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: .03em;
}
.tool-cta-section h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; color: var(--white); margin-bottom: 1rem; line-height: 1.2; }
.tool-cta-section p { font-size: 1.1rem; color: var(--slate-400); margin-bottom: 2.5rem; line-height: 1.7; max-width: 600px; margin-left: auto; margin-right: auto; }
.tool-preview-chips { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-bottom: 2.5rem; }
.chip { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: var(--slate-300); padding: 6px 14px; border-radius: var(--radius-full); font-size: 0.85rem; font-weight: 500; }
.tool-disclaimer { margin-top: 1rem; font-size: 0.82rem; color: var(--slate-500); }


/* ══════════════════════════════════════════════════════════
   13. PROYECTOS A LA MEDIDA (teaser del index)
══════════════════════════════════════════════════════════ */

.custom-teaser {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-default);
    border-radius: var(--radius-xl);
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    max-width: 1050px;
    margin: 3rem auto 0;
    box-shadow: var(--shadow-sm);
}
.custom-teaser-modules { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.2rem; }
.module-tag {
    background: var(--blue-50);
    color: var(--blue-600);
    border: 1px solid var(--blue-200);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}


/* ══════════════════════════════════════════════════════════
   14. SOPORTE (strip del index)
══════════════════════════════════════════════════════════ */

.support-strip {
    background: var(--sky-50);
    border: 1px solid var(--sky-200);
    border-radius: var(--radius-lg);
    padding: 2rem 2.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem 2.5rem;
    max-width: 1000px;
    margin: 0 auto 3rem;
}
.support-strip-text { flex: 1; min-width: 220px; }
.support-strip-text h4 { font-size: 1.1rem; font-weight: 700; color: var(--sky-800); margin-bottom: 0.4rem; display: flex; align-items: center; }
.support-strip-text p { font-size: 0.92rem; color: var(--sky-700); margin: 0; }
.support-strip-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }


/* ══════════════════════════════════════════════════════════
   15. FAQ ACORDEÓN
══════════════════════════════════════════════════════════ */

.faq-container { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }

.faq-item {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.faq-item.open {
    border-color: var(--blue-200);
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.08);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--slate-900);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: background-color var(--transition-base);
}
.faq-question:hover { background-color: var(--slate-50); }

.faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--slate-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    line-height: 1;
    color: var(--blue-600);
    transition: transform var(--transition-base), background-color var(--transition-base), border-color var(--transition-base);
}
.faq-item.open .faq-icon {
    transform: rotate(45deg);
    background-color: var(--blue-50);
    border-color: var(--blue-300);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.faq-answer-inner {
    padding: 0 1.5rem 1.25rem;
    border-top: 1px solid var(--slate-200);
}
.faq-answer-inner p {
    padding-top: 1rem;
    color: var(--slate-600);
    line-height: 1.65;
    font-size: 0.95rem;
    margin: 0;
}

/* "Ver más preguntas" */
.hidden-faqs {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
}
.hidden-faqs.is-open {
    display: flex;
    margin-top: 0.75rem;
}

/* ══════════════════════════════════════════════════════════
   16. FORMULARIO DE CONTACTO
══════════════════════════════════════════════════════════ */

.contact-wrapper { max-width: 900px; margin: 2rem auto 0; padding: 0 5%; }

.consulting-card {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--slate-200);
    box-shadow: 0 10px 25px -5px rgba(15,23,42,.05);
    overflow: hidden;
}

.contact-header {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--slate-50);
    border-bottom: 1px solid var(--slate-200);
}
.contact-item { display: flex; align-items: center; gap: 1rem; padding: 1.5rem; border-right: 1px solid var(--slate-200); }
.contact-item:last-child { border-right: none; }
.contact-text { display: flex; flex-direction: column; }
.contact-text .label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--slate-500); font-weight: 700; }
.contact-text .value { font-size: 0.95rem; color: var(--slate-900); font-weight: 600; margin-top: 0.2rem; }

.consulting-form { padding: 3rem; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.form-group.full-width { grid-column: span 1; }
.form-group label { font-size: 0.9rem; font-weight: 600; color: var(--slate-700); margin-bottom: 0.5rem; display: block; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; padding: 0.85rem;
    border: 1px solid var(--slate-300);
    border-radius: 8px;
    font-family: inherit; font-size: 0.95rem;
    color: var(--slate-900); background: var(--slate-50);
    box-sizing: border-box;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue-600);
    background: white;
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.preference-block {
    background: var(--slate-100);
    padding: 1.5rem; border-radius: 10px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--slate-200);
}
.checkbox-group { display: flex; gap: 2rem; margin-top: 0.75rem; flex-wrap: wrap; }
.checkbox-group label { font-weight: 500; color: var(--slate-600); display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.form-disclaimer { font-size: 0.75rem; color: var(--slate-500); margin-bottom: 1.5rem; text-align: center; }
.cf-turnstile { display: flex !important; justify-content: center !important; margin: 25px auto !important; width: 100% !important; }


/* ══════════════════════════════════════════════════════════
   17. FOOTER
══════════════════════════════════════════════════════════ */

.main-footer {
    background-color: var(--slate-900);
    color: var(--slate-400);
    padding: 5rem 5% 2rem;
    font-size: 0.9rem;
    border-top: 1px solid var(--slate-800);
}
.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--slate-800);
}
.footer-logo { font-size: 1.6rem; font-weight: 800; color: var(--white); display: block; margin-bottom: 1.25rem; letter-spacing: -0.5px; }
.brand-col p { line-height: 1.6; color: var(--slate-400); max-width: 350px; }
.footer-col h4 { color: var(--white); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1.25rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.85rem; }
.footer-col ul li a,
.footer-col ul li span { color: var(--slate-400); text-decoration: none; transition: color var(--transition-base); }
.footer-col ul li a:hover { color: var(--blue-400); }
.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 2rem;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1.5rem;
}
.footer-bottom p { color: var(--slate-500); margin: 0; }
.main-footer .system-status { background-color: var(--slate-800); border: 1px solid var(--slate-700); color: var(--slate-300); }

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.25s ease;
}

.footer-social-icon:hover {
    transform: translateY(-3px);
    border-color: transparent;
    color: #fff;
}

.footer-social-instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.footer-social-facebook:hover {
    background: #1877f2;
}

.footer-social-linkedin:hover {
    background: #0A66C2;
}

/* ══════════════════════════════════════════════════════════
   18. ELEMENTOS FLOTANTES
══════════════════════════════════════════════════════════ */

.whatsapp-flotante {
    position: fixed;
    bottom: 30px; right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,.2);
    z-index: var(--z-top);
    transition: transform var(--transition-base), background-color var(--transition-base);
}
.whatsapp-flotante:hover { background-color: #128C7E; transform: scale(1.1); }

.btn-arriba {
    position: fixed;
    bottom: 100px; right: 35px;
    width: 45px; height: 45px;
    background-color: var(--slate-900);
    color: white;
    border: none; border-radius: 50%;
    cursor: pointer;
    display: flex; justify-content: center; align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,.15);
    opacity: 0; visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: var(--z-float);
}
.btn-arriba.mostrar { opacity: 1; visibility: visible; transform: translateY(0); }
.btn-arriba:hover { background-color: var(--blue-600); }


/* ══════════════════════════════════════════════════════════
   19. SCROLL REVEAL (data-reveal / data-stagger)
══════════════════════════════════════════════════════════ */

[data-reveal] {
    opacity: 0;
    transition-property: opacity, transform;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    transition-duration: 0.6s;
    will-change: opacity, transform;
}
[data-reveal="up"]    { transform: translateY(28px); }
[data-reveal="down"]  { transform: translateY(-20px); }
[data-reveal="left"]  { transform: translateX(28px); }
[data-reveal="right"] { transform: translateX(-28px); }
[data-reveal="fade"]  { transform: none; }
[data-reveal="scale"] { transform: scale(0.94); }

[data-reveal].is-visible { opacity: 1; transform: none; }

/* Delays manuales */
[data-delay="100"] { transition-delay: 100ms; }
[data-delay="200"] { transition-delay: 200ms; }
[data-delay="300"] { transition-delay: 300ms; }
[data-delay="400"] { transition-delay: 400ms; }
[data-delay="500"] { transition-delay: 500ms; }
[data-delay="600"] { transition-delay: 600ms; }

/* Duraciones alternativas */
[data-duration="fast"]   { transition-duration: 0.35s; }
[data-duration="slow"]   { transition-duration: 0.9s; }
[data-duration="slower"] { transition-duration: 1.2s; }


/* ══════════════════════════════════════════════════════════
   20. MEDIA QUERIES CONSOLIDADOS
══════════════════════════════════════════════════════════ */

/* Tablet */
@media (min-width: 768px) {
    .form-grid { grid-template-columns: 1fr 1fr; }
    .form-group.full-width { grid-column: span 2; }
    .footer-container { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* Desktop — dropdown solo en desktop */
@media (min-width: 769px) {
    .nav-has-dropdown:hover .nav-dropdown-menu,
    .nav-has-dropdown:focus-within .nav-dropdown-menu { display: block; }
}

/* Tablet/mobile */
@media (max-width: 960px) {
    .services-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
    .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
    .hero-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .panel-connector { display: none; }
    .pcard { animation: none !important; }
    .nav-calc-cta { display: none; }
}

/* Mobile */
@media (max-width: 768px) {
    /* Navbar */
    .navbar { z-index: calc(var(--z-menu) + 10); }
    .menu-toggle { display: flex; }
    .navbar > .btn-primary { display: none; }
    .mobile-cta-item { display: list-item; }
    .nav-link-calc { display: block; padding: 12px 24px; font-weight: 600; color: var(--slate-700); text-decoration: none; border-top: 1px solid #f0f0f0; }

    /* Menú lateral deslizante */
    .nav-links {
        display: flex; flex-direction: column;
        position: fixed; top: 0; right: -100%;
        width: 80%; max-width: 300px; height: 100vh;
        background-color: rgba(255,255,255,.98);
        box-shadow: -10px 0 30px rgba(15,23,42,.1);
        padding: 6rem 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.3s ease-in-out;
        z-index: var(--z-menu);
        backdrop-filter: blur(10px);
        border-left: 1px solid var(--slate-200);
        overflow-y: auto;
    }
    .nav-links.active { right: 0; }
    .nav-links li { width: 100%; }
    .nav-links a { display: block; font-size: 1.15rem; padding: 0.75rem 0; border-bottom: 1px solid var(--slate-100); width: 100%; }
    .nav-links a::after { display: none; }

    /* Dropdown mobile — se muestra plano */
    .nav-dropdown-trigger { display: none; }
    .nav-has-dropdown::before {
        content: 'Servicios';
        display: block; padding: 12px 0;
        font-weight: 600; color: var(--slate-400);
        font-size: 0.8rem; text-transform: uppercase;
        letter-spacing: .06em;
        border-top: 1px solid #f0f0f0;
    }
    .nav-dropdown-menu {
        display: block !important;
        position: static; transform: none;
        box-shadow: none; border: none; border-radius: 0;
        padding: 0; min-width: 0; animation: none; background: transparent;
    }
    .dropdown-link { padding: 10px 0 10px 12px; border-radius: 0; }
    .dropdown-link em { display: none; }

    /* Hero */
    .hero { padding: 6rem 5% 4rem; }
    .hero-h1 { font-size: 2.2rem; }
    .hero-ctas { 
        display: flex !important;
        flex-direction: column !important; 
        align-items: stretch !important; 
        gap: 0.8rem !important;
        height: 108px !important;    /* Altura fija estricta (48px + 48px + 12px de gap) */
        min-height: 108px !important;
        max-height: 108px !important;
        overflow: hidden !important; /* Si la fuente varía 1px, que no empuje lo de abajo */
    }
    .hero-panel { grid-template-columns: 1fr; }

    .hero-ctas .btn-primary, 
    .hero-ctas .btn-ghost {
        height: 48px;          
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 24px;       
        box-sizing: border-box;
    }

    .hero-text .hero-chip,
    .hero-text .hero-h1,
    .hero-text .hero-sub,
    .hero-text .hero-ctas {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    /* Secciones */
    .section-title h2 { font-size: 1.8rem; }
    .section-title p { padding: 0 1rem; }

    /* Nosotros */
    .about-container { grid-template-columns: 1fr; gap: 3rem; }
    .skills-list { grid-template-columns: 1fr; }

    /* Precios */
    .pricing-grid { grid-template-columns: 1fr; gap: 1.5rem; padding: 0 5%; }
    .pricing-card.popular { transform: none; }
    .pricing-card.popular:hover { transform: translateY(-6px); }
    .price span { font-size: 2rem; }

    /* Trust / Garantía */
    .trust-guarantee { flex-direction: column; text-align: center; border-left: 1px solid var(--slate-200); border-top: 4px solid var(--blue-600); border-radius: 12px; }

    /* Formulario */
    .contact-header { grid-template-columns: 1fr; }
    .contact-item { border-right: none; border-bottom: 1px solid var(--slate-200); }
    .contact-item:last-child { border-bottom: none; }
    .consulting-form { padding: 1.5rem; }

    /* Footer */
    .main-footer { padding-top: 4rem; }
    .footer-bottom { flex-direction: column; text-align: center; }

    /* Proyectos teaser */
    .custom-teaser { grid-template-columns: 1fr; text-align: center; }
    .custom-teaser-modules { justify-content: center; }

    /* Flotantes */
    .whatsapp-flotante { bottom: 20px; right: 20px; width: 50px; height: 50px; }

    /* Turnstile */
    .btn-primary,
    .btn-ghost { width: 100%; justify-content: center; }
}

/* Accesibilidad: sin animaciones */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    [data-reveal] { opacity: 1 !important; transform: none !important; }
}