/* ==========================================================================
   Cuponica — Estilos principales
   Dark theme · Mobile-first · Animaciones estilo Cuberto
   --------------------------------------------------------------------------
   1. Variables
   2. Reset y base
   3. Utilidades y tipografía
   4. Botones
   5. Cursor personalizado
   6. Navbar y menú móvil
   7. Hero
   8. Secciones genéricas
   9. Overview
   10. Servicios (cards)
   11. Modal de servicio
   12. Comparativa
   13. Videos y lightbox
   14. Proceso (timeline)
   15. Contacto y formulario
   16. Footer
   17. WhatsApp flotante
   18. Páginas internas y 404
   19. Animaciones de aparición
   20. Responsive (tablet / escritorio)
   21. prefers-reduced-motion
   ========================================================================== */

/* 1. Variables
   ========================================================================== */
:root {
        --c-bg: #050505;
        --c-surface: #0f0f12;
        --c-surface-2: #16161b;
        --c-border: rgba(255, 255, 255, 0.08);
        --c-border-strong: rgba(255, 255, 255, 0.16);
        --c-cyan: #00bfff;
        --c-lila: #7b5ea7;
        --c-pink: #ff1e8e;
        --c-text: #ffffff;
        --c-muted: rgba(255, 255, 255, 0.6);
        --c-faint: rgba(255, 255, 255, 0.38);
        --c-success: #2ee6a6;
        --c-error: #ff5577;

        --gradient: linear-gradient(90deg, #00bfff 0%, #7b5ea7 50%, #ff1e8e 100%);
        --gradient-diag: linear-gradient(135deg, #00bfff 0%, #7b5ea7 50%, #ff1e8e 100%);

        --f-title: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
        --f-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

        --radius-sm: 10px;
        --radius: 18px;
        --radius-lg: 28px;
        --container: 1280px;
        --gutter: clamp(20px, 5vw, 48px);
        --header-h: 72px;

        --ease: cubic-bezier(0.22, 1, 0.36, 1);
        --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
        --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
}

/* 2. Reset y base
   ========================================================================== */
*,
*::before,
*::after {
        box-sizing: border-box;
}

html {
        -webkit-text-size-adjust: 100%;
        scroll-behavior: smooth;
        scroll-padding-top: var(--header-h);
}

/* Lenis gestiona el scroll suave cuando está activo. */
html.lenis,
html.lenis body {
        height: auto;
}
.lenis.lenis-smooth {
        scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
        overflow: hidden;
}

body {
        margin: 0;
        background: var(--c-bg);
        color: var(--c-text);
        font-family: var(--f-body);
        font-size: 16px;
        line-height: 1.6;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        overflow-x: hidden;
        text-rendering: optimizeLegibility;
}

body.is-locked {
        overflow: hidden;
}

img,
svg,
video,
iframe {
        display: block;
        max-width: 100%;
}

img {
        height: auto;
}

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

button,
input,
select,
textarea {
        font: inherit;
        color: inherit;
}

button {
        cursor: pointer;
        background: none;
        border: 0;
        padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
        margin: 0;
        font-family: var(--f-title);
        font-weight: 800;
        line-height: 1.08;
        letter-spacing: -0.02em;
}

p {
        margin: 0;
}

ul,
ol {
        margin: 0;
        padding: 0;
        list-style: none;
}

::selection {
        background: var(--c-pink);
        color: #fff;
}

:focus-visible {
        outline: 2px solid var(--c-cyan);
        outline-offset: 3px;
        border-radius: 4px;
}

.site-main:focus {
        outline: none;
}

/* 3. Utilidades y tipografía
   ========================================================================== */
.container {
        width: 100%;
        max-width: var(--container);
        margin-inline: auto;
        padding-inline: var(--gutter);
}

.container--narrow {
        max-width: 820px;
}

.gradient-text {
        background: var(--gradient);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
}

.eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        font-size: 12px;
        font-weight: 500;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: var(--c-muted);
        margin-bottom: 20px;
}

.eyebrow__dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--gradient);
        box-shadow: 0 0 12px rgba(0, 191, 255, 0.8);
        flex-shrink: 0;
}

.eyebrow a {
        color: var(--c-text);
}

.badge {
        display: inline-block;
        padding: 6px 12px;
        border: 1px solid var(--c-border-strong);
        border-radius: 999px;
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--c-muted);
        background: rgba(255, 255, 255, 0.03);
}

.empty-state {
        padding: 48px 24px;
        text-align: center;
        color: var(--c-muted);
        border: 1px dashed var(--c-border-strong);
        border-radius: var(--radius);
}

.empty-state form {
        margin-top: 20px;
}

/* Formulario de búsqueda nativo. */
.search-form {
        display: flex;
        gap: 8px;
        justify-content: center;
}
.search-form label {
        flex: 1;
        max-width: 360px;
}
.search-field,
.search-submit {
        width: 100%;
        padding: 12px 16px;
        border-radius: 999px;
        border: 1px solid var(--c-border-strong);
        background: var(--c-surface);
}
.search-submit {
        width: auto;
        cursor: pointer;
        background: var(--gradient);
        border: 0;
        font-weight: 500;
}

/* 4. Botones
   ========================================================================== */
.btn {
        --btn-pad-y: 14px;
        --btn-pad-x: 26px;
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: var(--btn-pad-y) var(--btn-pad-x);
        border-radius: 999px;
        font-family: var(--f-body);
        font-size: 15px;
        font-weight: 500;
        line-height: 1.2;
        white-space: nowrap;
        isolation: isolate;
        overflow: hidden;
        transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), color 0.3s ease, border-color 0.3s ease;
        will-change: transform;
}

.btn__label,
.btn__icon {
        position: relative;
        z-index: 1;
        display: inline-flex;
        transition: transform 0.35s var(--ease);
}

.btn__icon svg {
        width: 18px;
        height: 18px;
}

.btn:hover .btn__icon {
        transform: translateX(4px);
}

.btn--sm {
        --btn-pad-y: 10px;
        --btn-pad-x: 18px;
        font-size: 14px;
}

.btn--lg {
        --btn-pad-y: 17px;
        --btn-pad-x: 32px;
        font-size: 16px;
}

/* Botón con gradiente: una capa oscura se desliza al hover (efecto "fill"). */
.btn--gradient {
        color: #fff;
        background: var(--gradient);
        background-size: 200% 100%;
        box-shadow: 0 10px 30px -10px rgba(255, 30, 142, 0.55);
}

.btn--gradient::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 0;
        background: linear-gradient(90deg, #ff1e8e, #7b5ea7, #00bfff);
        opacity: 0;
        transition: opacity 0.45s var(--ease);
}

.btn--gradient:hover {
        box-shadow: 0 16px 40px -10px rgba(0, 191, 255, 0.55);
}

.btn--gradient:hover::before {
        opacity: 1;
}

.btn--ghost {
        color: var(--c-text);
        border: 1px solid var(--c-border-strong);
        background: rgba(255, 255, 255, 0.02);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
}

.btn--ghost::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 0;
        background: #fff;
        border-radius: inherit;
        transform: translateY(101%);
        transition: transform 0.5s var(--ease);
}

.btn--ghost:hover {
        color: #050505;
        border-color: #fff;
}

.btn--ghost:hover::before {
        transform: translateY(0);
}

.btn[disabled],
.btn.is-loading {
        pointer-events: none;
        opacity: 0.7;
}

/* 5. Cursor personalizado (solo escritorio)
   ========================================================================== */
.cursor {
        display: none;
}

.has-custom-cursor .cursor {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 9999;
        pointer-events: none;
        mix-blend-mode: difference;
}

.cursor__circle {
        position: absolute;
        top: 0;
        left: 0;
        width: 14px;
        height: 14px;
        margin: -7px 0 0 -7px;
        border-radius: 50%;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), opacity 0.3s ease, background-color 0.3s ease;
}

.cursor__label {
        font-size: 12px;
        font-weight: 700;
        color: #050505;
        opacity: 0;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        transition: opacity 0.2s ease;
}

.cursor.is-hover .cursor__circle {
        width: 56px;
        height: 56px;
        margin: -28px 0 0 -28px;
}

.cursor.has-label {
        mix-blend-mode: normal;
}

.cursor.has-label .cursor__circle {
        width: 84px;
        height: 84px;
        margin: -42px 0 0 -42px;
        background: #fff;
}

.cursor.has-label .cursor__label {
        opacity: 1;
}

.cursor.is-hidden .cursor__circle {
        opacity: 0;
}

.cursor.is-down .cursor__circle {
        transform: scale(0.8);
}

/* 6. Navbar y menú móvil
   ========================================================================== */
.site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 900;
        height: var(--header-h);
        transition: background-color 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease, transform 0.45s var(--ease);
        border-bottom: 1px solid transparent;
}

.admin-bar .site-header {
        top: 46px;
}

.site-header.is-scrolled {
        background: rgba(5, 5, 5, 0.72);
        backdrop-filter: blur(16px) saturate(140%);
        -webkit-backdrop-filter: blur(16px) saturate(140%);
        border-bottom-color: var(--c-border);
}

.site-header.is-hidden {
        transform: translateY(-100%);
}

.site-header__inner {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
}

.site-logo {
        display: inline-flex;
        align-items: center;
        position: relative;
        z-index: 2;
}

.site-logo__img {
        width: auto;
        height: 34px;
        max-width: 180px;
        object-fit: contain;
}

.main-nav {
        display: none;
}

.site-header__actions {
        display: flex;
        align-items: center;
        gap: 12px;
        position: relative;
        z-index: 2;
}

.site-header__cta {
        display: none;
}

.menu-toggle {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: 1px solid var(--c-border-strong);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        background: rgba(255, 255, 255, 0.03);
}

.menu-toggle__line {
        display: block;
        width: 18px;
        height: 2px;
        background: #fff;
        border-radius: 2px;
        transition: transform 0.45s var(--ease);
}

.menu-open .menu-toggle__line:first-child {
        transform: translateY(4px) rotate(45deg);
}

.menu-open .menu-toggle__line:last-child {
        transform: translateY(-4px) rotate(-45deg);
}

.mobile-menu {
        position: fixed;
        inset: 0;
        z-index: 800;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: calc(var(--header-h) + 40px) var(--gutter) 40px;
        visibility: hidden;
        pointer-events: none;
}

.mobile-menu__bg {
        position: absolute;
        inset: 0;
        background: var(--c-bg);
        clip-path: circle(0% at calc(100% - 44px) 36px);
        transition: clip-path 0.7s var(--ease-in-out);
}

.mobile-menu__bg::after {
        content: "";
        position: absolute;
        width: 480px;
        height: 480px;
        right: -160px;
        bottom: -160px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(123, 94, 167, 0.5), transparent 70%);
        filter: blur(40px);
}

.menu-open .mobile-menu {
        visibility: visible;
        pointer-events: auto;
}

.menu-open .mobile-menu__bg {
        clip-path: circle(150% at calc(100% - 44px) 36px);
}

.mobile-menu__nav,
.mobile-menu__footer {
        position: relative;
        z-index: 1;
}

.mobile-menu__list li {
        overflow: hidden;
}

.mobile-menu__list a {
        display: inline-block;
        padding: 6px 0;
        font-family: var(--f-title);
        font-size: clamp(36px, 10vw, 64px);
        font-weight: 800;
        letter-spacing: -0.03em;
        line-height: 1.1;
        transform: translateY(110%);
        transition: transform 0.6s var(--ease), color 0.3s ease;
}

.mobile-menu__list a:hover {
        color: var(--c-cyan);
}

.menu-open .mobile-menu__list a {
        transform: translateY(0);
}

.menu-open .mobile-menu__list li:nth-child(1) a { transition-delay: 0.15s; }
.menu-open .mobile-menu__list li:nth-child(2) a { transition-delay: 0.2s; }
.menu-open .mobile-menu__list li:nth-child(3) a { transition-delay: 0.25s; }
.menu-open .mobile-menu__list li:nth-child(4) a { transition-delay: 0.3s; }
.menu-open .mobile-menu__list li:nth-child(5) a { transition-delay: 0.35s; }
.menu-open .mobile-menu__list li:nth-child(6) a { transition-delay: 0.4s; }

.mobile-menu__footer {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.5s ease 0.35s, transform 0.5s var(--ease) 0.35s;
}

.menu-open .mobile-menu__footer {
        opacity: 1;
        transform: none;
}

.mobile-menu__mail {
        color: var(--c-muted);
}

/* 7. Hero
   ========================================================================== */
.hero {
        position: relative;
        min-height: 100vh;
        min-height: 100svh;
        display: flex;
        align-items: center;
        padding: calc(var(--header-h) + 60px) 0 110px;
        overflow: hidden;
        isolation: isolate;
}

.hero__bg {
        position: absolute;
        inset: 0;
        z-index: -1;
        overflow: hidden;
        pointer-events: none;
}

.blob {
        position: absolute;
        border-radius: 50%;
        filter: blur(90px);
        opacity: 0.55;
        will-change: transform;
}

.blob--cyan {
        width: 55vmax;
        height: 55vmax;
        top: -20vmax;
        left: -15vmax;
        background: radial-gradient(circle, #00bfff 0%, transparent 65%);
        animation: blob-a 18s ease-in-out infinite alternate;
}

.blob--lila {
        width: 50vmax;
        height: 50vmax;
        top: 10vmax;
        right: -18vmax;
        background: radial-gradient(circle, #7b5ea7 0%, transparent 65%);
        animation: blob-b 22s ease-in-out infinite alternate;
}

.blob--pink {
        width: 42vmax;
        height: 42vmax;
        bottom: -22vmax;
        left: 25vw;
        background: radial-gradient(circle, #ff1e8e 0%, transparent 65%);
        opacity: 0.4;
        animation: blob-c 20s ease-in-out infinite alternate;
}

@keyframes blob-a {
        0% { transform: translate(0, 0) scale(1); }
        50% { transform: translate(12vw, 8vh) scale(1.12); }
        100% { transform: translate(4vw, 18vh) scale(0.95); }
}

@keyframes blob-b {
        0% { transform: translate(0, 0) scale(1); }
        50% { transform: translate(-14vw, -6vh) scale(0.9); }
        100% { transform: translate(-6vw, 12vh) scale(1.1); }
}

@keyframes blob-c {
        0% { transform: translate(0, 0) scale(1); }
        50% { transform: translate(-10vw, -12vh) scale(1.15); }
        100% { transform: translate(12vw, -4vh) scale(1); }
}

/* Grano sutil encima de los gradientes (SVG inline). */
.hero__grain {
        position: absolute;
        inset: -50%;
        opacity: 0.08;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 200px;
        z-index: -1;
        background: linear-gradient(to bottom, transparent, var(--c-bg));
}

.hero__inner {
        position: relative;
}

.hero__title {
        font-size: clamp(48px, 8vw, 120px);
        font-weight: 800;
        line-height: 0.98;
        letter-spacing: -0.045em;
        max-width: 14ch;
        margin-bottom: 28px;
}

/* Cada palabra se revela desde abajo (máscara). */
.word {
        display: inline-block;
        overflow: hidden;
        vertical-align: top;
        padding-bottom: 0.08em;
        margin-bottom: -0.08em;
}

.word__inner {
        display: inline-block;
        will-change: transform;
}

/* Última palabra del título con gradiente. */
.hero__title .word:last-child .word__inner {
        background: var(--gradient);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
}

.js .hero__title .word__inner {
        transform: translateY(110%) rotate(4deg);
        transition: transform 1.1s var(--ease);
        transition-delay: calc(var(--i) * 0.08s + 0.15s);
}

.js .is-loaded .hero__title .word__inner {
        transform: none;
}

.js [data-hero-fade] {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.9s ease, transform 0.9s var(--ease);
}

.js .is-loaded [data-hero-fade] {
        opacity: 1;
        transform: none;
}

.js .is-loaded .hero__eyebrow { transition-delay: 0.05s; }
.js .is-loaded .hero__subtitle { transition-delay: 0.7s; }
.js .is-loaded .hero__actions { transition-delay: 0.85s; }

.hero__subtitle {
        max-width: 560px;
        font-size: clamp(17px, 1.6vw, 21px);
        color: var(--c-muted);
        margin-bottom: 40px;
}

.hero__actions {
        display: flex;
        flex-wrap: wrap;
        gap: 14px;
}

.hero__scroll {
        position: absolute;
        left: 50%;
        bottom: 28px;
        transform: translateX(-50%);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        font-size: 11px;
        letter-spacing: 0.24em;
        text-transform: uppercase;
        color: var(--c-faint);
}

.hero__scroll-line {
        position: relative;
        width: 1px;
        height: 48px;
        background: var(--c-border-strong);
        overflow: hidden;
}

.hero__scroll-line::after {
        content: "";
        position: absolute;
        left: 0;
        top: -100%;
        width: 100%;
        height: 100%;
        background: var(--gradient-diag);
        animation: scroll-line 2.2s var(--ease-in-out) infinite;
}

@keyframes scroll-line {
        0% { top: -100%; }
        100% { top: 100%; }
}

/* 8. Secciones genéricas
   ========================================================================== */
.section {
        position: relative;
        padding: clamp(80px, 12vw, 160px) 0;
}

.section--tight {
        padding-top: 40px;
}

.section-head {
        margin-bottom: clamp(40px, 6vw, 72px);
        max-width: 860px;
}

.section-head--split {
        max-width: none;
        display: flex;
        flex-direction: column;
        gap: 20px;
}

.section-title {
        font-size: clamp(34px, 5vw, 68px);
        letter-spacing: -0.035em;
}

.section-text {
        color: var(--c-muted);
        font-size: 17px;
        max-width: 440px;
}

/* 9. Overview
   ========================================================================== */
.overview__grid {
        display: grid;
        gap: 16px;
}

.overview-card {
        --accent: var(--c-cyan);
        position: relative;
        padding: 32px 28px 36px;
        border-radius: var(--radius);
        background: linear-gradient(180deg, var(--c-surface-2), var(--c-surface));
        border: 1px solid var(--c-border);
        overflow: hidden;
        transition: transform 0.5s var(--ease), border-color 0.4s ease;
}

.overview-card--lila { --accent: var(--c-lila); }
.overview-card--pink { --accent: var(--c-pink); }
.overview-card--gradient { --accent: var(--c-cyan); }

.overview-card::before {
        content: "";
        position: absolute;
        width: 220px;
        height: 220px;
        top: -110px;
        right: -110px;
        border-radius: 50%;
        background: var(--accent);
        opacity: 0.12;
        filter: blur(30px);
        transition: opacity 0.5s ease, transform 0.6s var(--ease);
}

.overview-card:hover {
        transform: translateY(-6px);
        border-color: var(--c-border-strong);
}

.overview-card:hover::before {
        opacity: 0.35;
        transform: scale(1.3);
}

.overview-card__label {
        font-size: 12px;
        font-weight: 500;
        letter-spacing: 0.16em;
        color: var(--accent);
        margin-bottom: 44px;
}

.overview-card--gradient .overview-card__label {
        background: var(--gradient);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
}

.overview-card__title {
        font-size: clamp(22px, 2.2vw, 28px);
        margin-bottom: 12px;
}

.overview-card__text {
        color: var(--c-muted);
}

.overview-card__line {
        position: absolute;
        left: 0;
        bottom: 0;
        height: 3px;
        width: 100%;
        background: var(--gradient);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.7s var(--ease);
}

.overview-card:hover .overview-card__line {
        transform: scaleX(1);
}

/* 10. Servicios (cards)
   ========================================================================== */
.services__grid {
        display: grid;
        gap: 20px;
}

.service-card {
        --accent: var(--c-cyan);
        position: relative;
        display: flex;
        flex-direction: column;
        border-radius: var(--radius-lg);
        background: var(--c-surface);
        isolation: isolate;
        transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.service-card--lila { --accent: var(--c-lila); }
.service-card--pink { --accent: var(--c-pink); }

/* Borde gradiente (máscara) que aparece al hover o si es destacado. */
.service-card::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 2;
        padding: 1px;
        border-radius: inherit;
        background: var(--c-border);
        -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
        transition: background 0.4s ease;
}

.service-card:hover::before,
.service-card.is-featured::before {
        background: var(--gradient-diag);
}

.service-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow), 0 20px 60px -30px var(--accent);
}

.service-card__trigger {
        position: absolute;
        inset: 0;
        z-index: 3;
        border-radius: inherit;
        cursor: pointer;
}

.service-card__media {
        position: relative;
        aspect-ratio: 4 / 3;
        overflow: hidden;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        background: var(--c-surface-2);
}

.service-card__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.9s var(--ease);
}

.service-card:hover .service-card__media img {
        transform: scale(1.08);
}

.service-card__flag {
        position: absolute;
        top: 16px;
        left: 16px;
        padding: 7px 14px;
        border-radius: 999px;
        background: var(--gradient);
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.04em;
}

.service-card__body {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 24px 24px 26px;
}

.service-card__body .badge {
        align-self: flex-start;
}

.service-card__title {
        font-size: 26px;
        letter-spacing: -0.02em;
}

.service-card__tagline {
        color: var(--c-muted);
        font-size: 15px;
}

.service-card__foot {
        margin-top: auto;
        padding-top: 18px;
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 12px;
        border-top: 1px solid var(--c-border);
}

.price {
        display: flex;
        flex-direction: column;
        gap: 2px;
}

.price__value {
        font-family: var(--f-title);
        font-weight: 800;
        font-size: 22px;
        letter-spacing: -0.02em;
        color: #fff;
}

.price__note {
        font-size: 13px;
        color: var(--c-muted);
}

.price--lg .price__value {
        font-size: clamp(30px, 4vw, 40px);
        background: var(--gradient);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
}

.service-card__more {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 14px;
        color: var(--accent);
        white-space: nowrap;
}

.service-card__more svg {
        width: 16px;
        height: 16px;
        transition: transform 0.35s var(--ease);
}

.service-card:hover .service-card__more svg {
        transform: translateX(4px);
}

/* 11. Modal de servicio
   ========================================================================== */
.modal,
.lightbox {
        position: fixed;
        inset: 0;
        z-index: 1000;
        display: flex;
        align-items: flex-end;
        justify-content: center;
}

.modal[hidden],
.lightbox[hidden] {
        display: none;
}

.modal__backdrop,
.lightbox__backdrop {
        position: absolute;
        inset: 0;
        background: rgba(5, 5, 5, 0.75);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        opacity: 0;
        transition: opacity 0.4s ease;
}

.modal.is-open .modal__backdrop,
.lightbox.is-open .lightbox__backdrop {
        opacity: 1;
}

.modal__dialog {
        position: relative;
        width: 100%;
        max-height: 92vh;
        max-height: 92dvh;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: var(--c-surface);
        border: 1px solid var(--c-border-strong);
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        transform: translateY(100%);
        transition: transform 0.55s var(--ease);
}

.modal.is-open .modal__dialog {
        transform: none;
}

.modal__close,
.lightbox__close {
        position: absolute;
        top: 16px;
        right: 16px;
        z-index: 5;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background: rgba(5, 5, 5, 0.7);
        border: 1px solid var(--c-border-strong);
        transition: transform 0.4s var(--ease), background-color 0.3s ease;
}

.modal__close svg,
.lightbox__close svg {
        width: 20px;
        height: 20px;
}

.modal__close:hover,
.lightbox__close:hover {
        transform: rotate(90deg);
        background: var(--c-pink);
}

.modal-service__media {
        aspect-ratio: 16 / 9;
        overflow: hidden;
        background: var(--c-surface-2);
}

.modal-service__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
}

.modal-service__content {
        padding: 28px 24px 36px;
        display: flex;
        flex-direction: column;
        gap: 14px;
}

.modal-service__content .badge {
        align-self: flex-start;
}

.modal-service__title {
        font-size: clamp(30px, 4vw, 44px);
}

.modal-service__tagline {
        color: var(--c-muted);
        font-size: 17px;
}

.feature-groups {
        display: grid;
        gap: 22px;
        margin-top: 10px;
        padding-top: 22px;
        border-top: 1px solid var(--c-border);
}

.feature-group__title {
        font-family: var(--f-body);
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: var(--c-cyan);
        margin-bottom: 12px;
}

.modal-service--lila .feature-group__title { color: #a98bd9; }
.modal-service--pink .feature-group__title { color: var(--c-pink); }

.feature-list {
        display: grid;
        gap: 9px;
}

.feature-list li {
        display: flex;
        gap: 10px;
        align-items: flex-start;
        font-size: 15px;
}

.feature-list svg {
        flex-shrink: 0;
        width: 18px;
        height: 18px;
        margin-top: 3px;
        color: var(--c-cyan);
}

.modal-service__note {
        font-size: 13px;
        color: var(--c-faint);
        font-style: italic;
}

.modal-service__actions {
        margin-top: 10px;
}

/* 12. Comparativa
   ========================================================================== */
.compare {
        margin-bottom: 56px;
}

.compare__title {
        font-size: 22px;
        margin-bottom: 18px;
        color: var(--c-muted);
        font-weight: 700;
}

.compare__scroll {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        border-radius: var(--radius-lg);
        border: 1px solid var(--c-border);
        background: var(--c-surface);
        padding-top: 18px;
}

.compare__table {
        width: 100%;
        min-width: 680px;
        border-collapse: separate;
        border-spacing: 0;
        font-size: 15px;
}

.compare--web .compare__table {
        min-width: 520px;
}

.compare__table th,
.compare__table td {
        padding: 16px 20px;
        text-align: center;
        border-bottom: 1px solid var(--c-border);
        vertical-align: middle;
}

.compare__table tbody th {
        text-align: left;
        font-weight: 500;
        color: var(--c-muted);
        font-family: var(--f-body);
        font-size: 15px;
        letter-spacing: 0;
}

.compare__table tbody tr {
        transition: background-color 0.3s ease;
}

.compare__table tbody tr:hover {
        background: rgba(255, 255, 255, 0.025);
}

.compare__feature-head {
        text-align: left !important;
        font-family: var(--f-body);
        font-size: 12px;
        font-weight: 500;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: var(--c-faint);
        vertical-align: bottom !important;
}

.compare__plan {
        position: relative;
        vertical-align: bottom !important;
        padding-top: 28px !important;
}

.compare__name,
.compare__price,
.compare__note {
        display: block;
}

.compare__name {
        font-family: var(--f-title);
        font-size: 18px;
        font-weight: 800;
        letter-spacing: -0.01em;
        margin-bottom: 6px;
}

.compare__price {
        font-family: var(--f-title);
        font-size: 22px;
        font-weight: 800;
}

.compare__note {
        font-size: 12px;
        font-weight: 400;
        color: var(--c-muted);
        font-family: var(--f-body);
}

/* Columna destacada: fondo sutil + borde gradiente lateral. */
.compare__table .is-featured {
        position: relative;
        background: linear-gradient(180deg, rgba(123, 94, 167, 0.16), rgba(0, 191, 255, 0.06));
}

.compare__table .is-featured::before,
.compare__table .is-featured::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: -1px;
        width: 1px;
        background: var(--gradient-diag);
        pointer-events: none;
}

.compare__table .is-featured::before { left: 0; }
.compare__table .is-featured::after { right: 0; }

.compare__table thead .is-featured {
        border-top: 0;
        background-image: linear-gradient(180deg, rgba(123, 94, 167, 0.28), rgba(123, 94, 167, 0.12));
        border-radius: 16px 16px 0 0;
        box-shadow: inset 0 2px 0 0 #00bfff;
}

.compare__table thead .is-featured .compare__price {
        background: var(--gradient);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
}

.compare__flag {
        position: absolute;
        top: -12px;
        left: 50%;
        transform: translateX(-50%);
        padding: 5px 12px;
        border-radius: 999px;
        background: var(--gradient);
        font-family: var(--f-body);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        white-space: nowrap;
        color: #fff;
}

.compare__table tfoot td {
        border-bottom: 0;
        padding-top: 22px;
        padding-bottom: 24px;
}

.cell-icon {
        display: inline-grid;
        place-items: center;
        width: 28px;
        height: 28px;
        border-radius: 50%;
}

.cell-icon svg {
        width: 16px;
        height: 16px;
}

.cell-icon--yes {
        color: #fff;
        background: var(--gradient-diag);
}

.cell-icon--no {
        color: var(--c-faint);
        background: rgba(255, 255, 255, 0.04);
}

.comparison__footer,
.process__footer {
        max-width: 720px;
        margin: 8px auto 0;
        text-align: center;
        font-family: var(--f-title);
        font-weight: 700;
        font-size: clamp(19px, 2.2vw, 26px);
        line-height: 1.35;
        letter-spacing: -0.01em;
}

/* 13. Videos y lightbox
   ========================================================================== */
.filters {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 36px;
}

.filters__btn {
        padding: 10px 18px;
        border-radius: 999px;
        border: 1px solid var(--c-border-strong);
        font-size: 14px;
        color: var(--c-muted);
        transition: all 0.3s ease;
}

.filters__btn:hover {
        color: #fff;
        border-color: #fff;
}

.filters__btn.is-active {
        color: #fff;
        border-color: transparent;
        background: var(--gradient);
}

.videos__grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
}

.video-card.is-filtered {
        display: none;
}

.video-card__trigger {
        display: block;
        width: 100%;
        text-align: left;
}

.video-card__media {
        position: relative;
        display: block;
        aspect-ratio: 9 / 14;
        border-radius: var(--radius);
        overflow: hidden;
        background: var(--c-surface-2);
}

.video-card__media img,
.video-card__placeholder {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.9s var(--ease), filter 0.5s ease;
}

.video-card__placeholder {
        background: var(--gradient-diag);
        opacity: 0.4;
}

.video-card__media::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(5, 5, 5, 0.75), transparent 55%);
}

.video-card__trigger:hover .video-card__media img {
        transform: scale(1.07);
        filter: saturate(1.2);
}

.video-card__play {
        position: absolute;
        top: 50%;
        left: 50%;
        z-index: 1;
        width: 58px;
        height: 58px;
        margin: -29px 0 0 -29px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background: rgba(255, 255, 255, 0.14);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        transition: transform 0.5s var(--ease), background 0.4s ease;
}

.video-card__play svg {
        width: 22px;
        height: 22px;
        margin-left: 3px;
}

.video-card__trigger:hover .video-card__play {
        transform: scale(1.15);
        background: var(--c-pink);
}

.video-card__provider {
        position: absolute;
        top: 12px;
        left: 12px;
        z-index: 1;
        padding: 4px 10px;
        border-radius: 999px;
        font-size: 11px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        background: rgba(5, 5, 5, 0.6);
}

.video-card__info {
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 14px 4px 0;
}

.video-card__title {
        font-family: var(--f-title);
        font-weight: 700;
        font-size: 16px;
}

.video-card__desc {
        font-size: 14px;
        color: var(--c-muted);
}

.lightbox {
        align-items: center;
        padding: 20px;
}

.lightbox__frame {
        position: relative;
        width: min(100%, 1100px);
        aspect-ratio: 16 / 9;
        border-radius: var(--radius);
        overflow: hidden;
        background: #000;
        box-shadow: var(--shadow);
        transform: scale(0.92);
        opacity: 0;
        transition: transform 0.5s var(--ease), opacity 0.4s ease;
}

.lightbox__frame.is-vertical {
        width: min(100%, 420px, calc(85vh * 9 / 16));
        aspect-ratio: 9 / 16;
}

.lightbox__frame.is-instagram {
        aspect-ratio: 9 / 15;
        background: #fff;
}

.lightbox.is-open .lightbox__frame {
        transform: none;
        opacity: 1;
}

.lightbox__frame iframe {
        width: 100%;
        height: 100%;
        border: 0;
}

/* 14. Proceso (timeline)
   ========================================================================== */
.timeline {
        position: relative;
        margin-bottom: 64px;
        --progress: 0;
}

.timeline__track {
        position: absolute;
        left: 27px;
        top: 28px;
        bottom: 28px;
        width: 2px;
        background: var(--c-border-strong);
        border-radius: 2px;
        overflow: hidden;
}

.timeline__progress {
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, #00bfff, #7b5ea7, #ff1e8e);
        transform-origin: top;
        transform: scaleY(var(--progress));
}

.timeline__list {
        position: relative;
        display: grid;
        gap: 44px;
}

.timeline__step {
        position: relative;
        padding-left: 84px;
        min-height: 56px;
}

.timeline__dot {
        position: absolute;
        left: 0;
        top: 0;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background: var(--c-bg);
        border: 1px solid var(--c-border-strong);
        font-family: var(--f-title);
        font-weight: 800;
        font-size: 15px;
        transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.timeline__dot::before {
        content: "";
        position: absolute;
        inset: 4px;
        border-radius: 50%;
        background: var(--gradient-diag);
        opacity: 0;
        transform: scale(0.6);
        transition: opacity 0.5s ease, transform 0.6s var(--ease);
}

.timeline__dot span {
        position: relative;
}

.timeline__step.is-active .timeline__dot {
        border-color: transparent;
        box-shadow: 0 0 30px -4px rgba(123, 94, 167, 0.8);
}

.timeline__step.is-active .timeline__dot::before {
        opacity: 1;
        transform: scale(1);
}

.timeline__title {
        font-size: clamp(22px, 2.4vw, 30px);
        margin: 6px 0 8px;
        letter-spacing: -0.02em;
}

.timeline__text {
        color: var(--c-muted);
        font-size: 16px;
}

/* 15. Contacto y formulario
   ========================================================================== */
.contact {
        overflow: hidden;
}

.contact__glow {
        position: absolute;
        width: 70vmax;
        height: 70vmax;
        right: -30vmax;
        top: 10%;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(123, 94, 167, 0.35), rgba(255, 30, 142, 0.12) 40%, transparent 70%);
        filter: blur(60px);
        pointer-events: none;
        z-index: -1;
}

.contact__grid {
        display: grid;
        gap: 48px;
}

.contact__title {
        margin-bottom: 14px;
}

.contact__subtitle {
        font-family: var(--f-title);
        font-weight: 700;
        font-size: clamp(19px, 2vw, 24px);
        margin-bottom: 16px;
}

.contact__text {
        color: var(--c-muted);
        max-width: 520px;
        margin-bottom: 32px;
}

.contact__cta {
        white-space: normal;
        text-align: left;
        margin-bottom: 40px;
}

.contact-list {
        display: grid;
        gap: 12px;
}

.contact-list a {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        color: var(--c-muted);
        transition: color 0.3s ease;
}

.contact-list a:hover {
        color: #fff;
}

.contact-list svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
}

.contact-list--lg {
        gap: 18px;
}

.contact-list--lg a {
        color: #fff;
        font-size: 17px;
}

.contact-list--lg small {
        display: block;
        font-size: 12px;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--c-faint);
}

.contact-list__icon {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        border: 1px solid var(--c-border-strong);
        transition: background 0.3s ease, border-color 0.3s ease;
}

.contact-list--lg a:hover .contact-list__icon {
        background: var(--gradient-diag);
        border-color: transparent;
}

.lead-form {
        position: relative;
        padding: clamp(24px, 4vw, 44px);
        border-radius: var(--radius-lg);
        background: rgba(15, 15, 18, 0.85);
        border: 1px solid var(--c-border-strong);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
}

.lead-form__hp {
        position: absolute !important;
        left: -9999px !important;
        width: 1px;
        height: 1px;
        overflow: hidden;
}

.form-grid {
        display: grid;
        gap: 18px;
        margin-bottom: 26px;
}

.field {
        display: flex;
        flex-direction: column;
        gap: 8px;
}

.field label {
        font-size: 14px;
        font-weight: 500;
        color: var(--c-muted);
}

.req {
        color: var(--c-pink);
}

.field input,
.field select,
.field textarea {
        width: 100%;
        padding: 14px 16px;
        border-radius: var(--radius-sm);
        border: 1px solid var(--c-border-strong);
        background: var(--c-surface-2);
        font-size: 16px; /* Evita zoom en iOS. */
        transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
        appearance: none;
        -webkit-appearance: none;
}

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

.field input::placeholder,
.field textarea::placeholder {
        color: var(--c-faint);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
        outline: none;
        border-color: var(--c-cyan);
        box-shadow: 0 0 0 4px rgba(0, 191, 255, 0.15);
        background: #1a1a20;
}

.select-wrap {
        position: relative;
}

.select-wrap::after {
        content: "";
        position: absolute;
        right: 18px;
        top: 50%;
        width: 8px;
        height: 8px;
        margin-top: -6px;
        border-right: 2px solid var(--c-muted);
        border-bottom: 2px solid var(--c-muted);
        transform: rotate(45deg);
        pointer-events: none;
}

.field select option {
        background: var(--c-surface);
        color: #fff;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
        border-color: var(--c-error);
        box-shadow: 0 0 0 4px rgba(255, 85, 119, 0.12);
}

.field__error {
        min-height: 0;
        font-size: 13px;
        color: var(--c-error);
}

.field__error:empty {
        display: none;
}

.lead-form__submit {
        width: 100%;
}

.lead-form__submit.is-loading .btn__icon {
        animation: spin-arrow 0.9s linear infinite;
}

@keyframes spin-arrow {
        0% { transform: translateX(0); opacity: 1; }
        50% { transform: translateX(8px); opacity: 0; }
        51% { transform: translateX(-8px); opacity: 0; }
        100% { transform: translateX(0); opacity: 1; }
}

.form-status {
        margin-top: 18px;
        padding: 0 18px;
        max-height: 0;
        overflow: hidden;
        border-radius: var(--radius-sm);
        font-size: 15px;
        opacity: 0;
        transform: translateY(-8px);
        transition: max-height 0.5s var(--ease), opacity 0.4s ease, transform 0.5s var(--ease), padding 0.4s ease;
}

.form-status.is-visible {
        max-height: 200px;
        padding: 14px 18px;
        opacity: 1;
        transform: none;
}

.form-status.is-success {
        background: rgba(46, 230, 166, 0.1);
        border: 1px solid rgba(46, 230, 166, 0.4);
        color: #c9ffe9;
}

.form-status.is-error {
        background: rgba(255, 85, 119, 0.1);
        border: 1px solid rgba(255, 85, 119, 0.4);
        color: #ffd5de;
}

.lead-form__legal {
        margin-top: 18px;
        font-size: 12px;
        color: var(--c-faint);
        line-height: 1.5;
}

/* 16. Footer
   ========================================================================== */
.site-footer {
        position: relative;
        padding: 80px 0 32px;
        border-top: 1px solid var(--c-border);
        overflow: hidden;
}

.site-footer__glow {
        position: absolute;
        left: 50%;
        top: 0;
        width: 80%;
        height: 1px;
        transform: translateX(-50%);
        background: var(--gradient);
        opacity: 0.6;
}

.site-footer__grid {
        display: grid;
        gap: 40px;
        margin-bottom: 56px;
}

.site-footer__tagline {
        margin-top: 18px;
        color: var(--c-muted);
        font-size: 15px;
        letter-spacing: 0.02em;
}

.site-footer__title {
        font-family: var(--f-body);
        font-size: 12px;
        font-weight: 500;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: var(--c-faint);
        margin-bottom: 18px;
}

.site-footer__links {
        display: grid;
        gap: 10px;
}

.site-footer__links a {
        position: relative;
        color: var(--c-muted);
        transition: color 0.3s ease;
}

.site-footer__links a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -2px;
        width: 100%;
        height: 1px;
        background: var(--gradient);
        transform: scaleX(0);
        transform-origin: right;
        transition: transform 0.45s var(--ease);
}

.site-footer__links a:hover {
        color: #fff;
}

.site-footer__links a:hover::after {
        transform: scaleX(1);
        transform-origin: left;
}

.social-list {
        display: flex;
        gap: 10px;
        margin-top: 24px;
}

.social-list__link {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        border: 1px solid var(--c-border-strong);
        transition: background 0.3s ease, border-color 0.3s ease, transform 0.4s var(--ease);
}

.social-list__link svg {
        width: 18px;
        height: 18px;
}

.social-list__link:hover {
        background: var(--gradient-diag);
        border-color: transparent;
        transform: translateY(-3px);
}

.site-footer__bottom {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding-top: 24px;
        border-top: 1px solid var(--c-border);
        font-size: 13px;
        color: var(--c-faint);
}

/* 17. WhatsApp flotante
   ========================================================================== */
.wa-float {
        position: fixed;
        right: 20px;
        bottom: 20px;
        right: max(20px, env(safe-area-inset-right));
        bottom: max(20px, env(safe-area-inset-bottom));
        z-index: 850;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        color: #fff;
        background: #25d366;
        box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.6);
        transition: transform 0.4s var(--ease);
}

.wa-float svg {
        position: relative;
        z-index: 1;
        width: 32px;
        height: 32px;
}

.wa-float:hover {
        transform: scale(1.08);
}

.wa-float__pulse,
.wa-float::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background: #25d366;
        animation: wa-pulse 2.4s ease-out infinite;
}

.wa-float::before {
        animation-delay: 1.2s;
}

@keyframes wa-pulse {
        0% { transform: scale(1); opacity: 0.6; }
        100% { transform: scale(1.9); opacity: 0; }
}

/* 18. Páginas internas y 404
   ========================================================================== */
.page-hero {
        position: relative;
        padding: calc(var(--header-h) + 80px) 0 48px;
        overflow: hidden;
}

.page-hero::before {
        content: "";
        position: absolute;
        width: 60vmax;
        height: 60vmax;
        left: -20vmax;
        top: -40vmax;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(0, 191, 255, 0.28), transparent 65%);
        filter: blur(60px);
        z-index: -1;
}

.page-hero__title {
        font-size: clamp(38px, 6vw, 80px);
        letter-spacing: -0.04em;
}

.page-hero__text {
        margin-top: 16px;
        color: var(--c-muted);
        max-width: 640px;
}

.entry-thumb {
        margin: 0 0 48px;
        border-radius: var(--radius-lg);
        overflow: hidden;
}

.entry-thumb img {
        width: 100%;
}

.entry-content {
        font-size: 18px;
        line-height: 1.75;
        color: rgba(255, 255, 255, 0.82);
        padding-bottom: 80px;
}

.entry-content > * + * {
        margin-top: 1.2em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
        margin-top: 1.8em;
        color: #fff;
}

.entry-content h2 { font-size: clamp(28px, 3vw, 38px); }
.entry-content h3 { font-size: clamp(22px, 2.4vw, 28px); }

.entry-content a {
        color: var(--c-cyan);
        text-decoration: underline;
        text-underline-offset: 3px;
}

.entry-content ul,
.entry-content ol {
        padding-left: 1.4em;
}

.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }

.entry-content blockquote {
        margin-left: 0;
        padding-left: 24px;
        border-left: 3px solid var(--c-lila);
        font-family: var(--f-title);
        font-size: 22px;
        font-weight: 700;
        color: #fff;
}

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

.entry-content pre,
.entry-content code {
        background: var(--c-surface-2);
        border-radius: 6px;
        padding: 2px 6px;
}

.entry-content pre {
        padding: 18px;
        overflow-x: auto;
}

.entry-content table {
        width: 100%;
        border-collapse: collapse;
}

.entry-content th,
.entry-content td {
        border: 1px solid var(--c-border-strong);
        padding: 10px;
}

.entry-tags {
        color: var(--c-muted);
        margin-bottom: 32px;
}

.post-nav {
        display: flex;
        justify-content: space-between;
        gap: 20px;
        padding: 32px 0 80px;
        border-top: 1px solid var(--c-border);
}

.post-nav a {
        color: var(--c-muted);
        transition: color 0.3s ease;
}

.post-nav a:hover {
        color: #fff;
}

.page-links {
        margin-top: 32px;
}

.post-grid {
        display: grid;
        gap: 24px;
        padding-bottom: 60px;
}

.post-card__link {
        display: flex;
        flex-direction: column;
        height: 100%;
        border-radius: var(--radius-lg);
        overflow: hidden;
        background: var(--c-surface);
        border: 1px solid var(--c-border);
        transition: transform 0.5s var(--ease), border-color 0.4s ease;
}

.post-card__link:hover {
        transform: translateY(-6px);
        border-color: var(--c-border-strong);
}

.post-card__media {
        aspect-ratio: 16 / 10;
        overflow: hidden;
}

.post-card__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.9s var(--ease);
}

.post-card__link:hover .post-card__media img {
        transform: scale(1.06);
}

.post-card__body {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 24px;
}

.post-card__date {
        font-size: 13px;
        color: var(--c-faint);
}

.post-card__title {
        font-size: 22px;
}

.post-card__excerpt {
        color: var(--c-muted);
        font-size: 15px;
}

.navigation.pagination {
        padding-bottom: 80px;
}

.nav-links {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
}

.page-numbers {
        min-width: 44px;
        height: 44px;
        padding: 0 14px;
        display: inline-grid;
        place-items: center;
        border-radius: 999px;
        border: 1px solid var(--c-border-strong);
        color: var(--c-muted);
}

.page-numbers.current,
.page-numbers:hover {
        color: #fff;
        background: var(--gradient);
        border-color: transparent;
}

.error-404 {
        position: relative;
        min-height: 100vh;
        min-height: 100svh;
        display: flex;
        align-items: center;
        padding: calc(var(--header-h) + 40px) 0 80px;
        overflow: hidden;
        isolation: isolate;
        text-align: center;
}

.error-404__inner {
        display: flex;
        flex-direction: column;
        align-items: center;
}

.error-404__code {
        font-family: var(--f-title);
        font-weight: 800;
        font-size: clamp(120px, 26vw, 320px);
        line-height: 0.9;
        letter-spacing: -0.06em;
}

.error-404__title {
        font-size: clamp(28px, 4vw, 48px);
        margin: 16px 0;
}

.error-404__text {
        max-width: 520px;
        color: var(--c-muted);
        margin-bottom: 36px;
}

.error-404 .hero__actions {
        justify-content: center;
}

/* Comentarios (básico). */
.comments-area {
        padding-bottom: 80px;
}

.comment-list .comment {
        padding: 20px 0;
        border-bottom: 1px solid var(--c-border);
}

.comment-form input:not([type="submit"]):not([type="checkbox"]),
.comment-form textarea {
        width: 100%;
        padding: 12px 14px;
        border-radius: var(--radius-sm);
        border: 1px solid var(--c-border-strong);
        background: var(--c-surface-2);
}

.comment-form .submit {
        padding: 12px 24px;
        border: 0;
        border-radius: 999px;
        background: var(--gradient);
        cursor: pointer;
}

/* 19. Animaciones de aparición
   --------------------------------------------------------------------------
   Estado inicial solo si JS está activo (.js). GSAP anima opacity/transform;
   si GSAP no está disponible, main.js añade .reveal-io y usa transiciones CSS.
   ========================================================================== */
.js [data-reveal] {
        opacity: 0;
        transform: translateY(48px);
}

.js.reveal-io [data-reveal] {
        transition: opacity 0.9s ease, transform 1s var(--ease);
        transition-delay: var(--reveal-delay, 0s);
}

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

/* 20. Responsive (tablet / escritorio)
   ========================================================================== */
@media (min-width: 600px) {
        .overview__grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .services__grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .form-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .field--full {
                grid-column: 1 / -1;
        }

        .lead-form__submit {
                width: auto;
        }

        .post-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .site-footer__bottom {
                flex-direction: row;
                justify-content: space-between;
        }
}

@media (min-width: 783px) {
        .admin-bar .site-header {
                top: 32px;
        }
}

@media (min-width: 768px) {
        .modal {
                align-items: center;
                padding: 24px;
        }

        .modal__dialog {
                max-width: 1040px;
                border-radius: var(--radius-lg);
                transform: translateY(40px) scale(0.96);
                opacity: 0;
                transition: transform 0.55s var(--ease), opacity 0.4s ease;
        }

        .modal.is-open .modal__dialog {
                transform: none;
                opacity: 1;
        }

        .modal-service {
                display: grid;
                grid-template-columns: 5fr 7fr;
                min-height: 100%;
        }

        .modal-service__media {
                aspect-ratio: 4 / 3;
                position: sticky;
                top: 0;
                align-self: start;
                margin: 24px 0 24px 24px;
                border-radius: var(--radius);
        }

        .modal-service__content {
                align-self: stretch;
                padding: 44px 40px;
        }

        .feature-groups {
                grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .videos__grid {
                grid-template-columns: repeat(3, minmax(0, 1fr));
                gap: 20px;
        }

        .section-head--split {
                flex-direction: row;
                align-items: flex-end;
                justify-content: space-between;
        }

        .site-footer__grid {
                grid-template-columns: 2fr 1fr 1.4fr;
        }
}

@media (min-width: 1024px) {
        :root {
                --header-h: 88px;
        }

        .main-nav {
                display: block;
        }

        .main-nav__list {
                display: flex;
                gap: 4px;
        }

        .main-nav__list a {
                position: relative;
                display: inline-block;
                padding: 10px 16px;
                font-size: 15px;
                color: var(--c-muted);
                transition: color 0.3s ease;
        }

        .main-nav__list a::after {
                content: "";
                position: absolute;
                left: 50%;
                bottom: 4px;
                width: 4px;
                height: 4px;
                margin-left: -2px;
                border-radius: 50%;
                background: var(--gradient);
                transform: scale(0);
                transition: transform 0.4s var(--ease);
        }

        .main-nav__list a:hover,
        .main-nav__list .current-menu-item > a,
        .main-nav__list a.is-current {
                color: #fff;
        }

        .main-nav__list a:hover::after,
        .main-nav__list a.is-current::after {
                transform: scale(1);
        }

        .site-header__cta {
                display: inline-flex;
        }

        .menu-toggle,
        .mobile-menu {
                display: none;
        }

        .overview__grid {
                grid-template-columns: repeat(4, minmax(0, 1fr));
        }

        .overview-card {
                min-height: 320px;
                display: flex;
                flex-direction: column;
        }

        .overview-card__label {
                margin-bottom: auto;
                padding-bottom: 44px;
        }

        .services__grid {
                grid-template-columns: repeat(3, minmax(0, 1fr));
                gap: 24px;
        }

        .videos__grid {
                grid-template-columns: repeat(4, minmax(0, 1fr));
        }

        .contact__grid {
                grid-template-columns: 1fr 1.1fr;
                gap: 72px;
                align-items: start;
        }

        .contact__info {
                position: sticky;
                top: calc(var(--header-h) + 32px);
        }

        .post-grid {
                grid-template-columns: repeat(3, minmax(0, 1fr));
        }

        /* Timeline horizontal en escritorio. */
        .timeline__track {
                left: 28px;
                right: 28px;
                top: 27px;
                bottom: auto;
                width: auto;
                height: 2px;
        }

        .timeline__progress {
                background: var(--gradient);
                transform-origin: left;
                transform: scaleX(var(--progress));
        }

        .timeline__list {
                grid-template-columns: repeat(4, minmax(0, 1fr));
                gap: 32px;
        }

        .timeline__step {
                padding-left: 0;
                padding-top: 84px;
        }

        .timeline__title {
                margin-top: 0;
        }
}

@media (min-width: 1280px) {
        .services__grid {
                grid-template-columns: repeat(4, minmax(0, 1fr));
        }

        .service-card__title {
                font-size: 24px;
        }
}

/* Dispositivos táctiles: sin efectos de hover que "se pegan". */
@media (hover: none) {
        .service-card:hover,
        .overview-card:hover,
        .post-card__link:hover {
                transform: none;
        }
}

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

        *,
        *::before,
        *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
                transition-delay: 0s !important;
                scroll-behavior: auto !important;
        }

        .js [data-reveal],
        .js [data-hero-fade],
        .js .hero__title .word__inner {
                opacity: 1 !important;
                transform: none !important;
        }

        .blob,
        .wa-float__pulse,
        .wa-float::before {
                animation: none !important;
        }

        .cursor {
                display: none !important;
        }
}
