/* ==========================================================================
   CTA Smart Solutions · estilos del sitio público
   Las demos usan demos.css / demo-*.css y el admin admin.css: no dependen de este archivo.
   ========================================================================== */

/* ---------- Tokens de diseño ---------- */
:root {
    /* Colores */
    --c-navy: #0F172A;          /* base oscura */
    --c-navy-2: #1E293B;
    --c-ink: #0F172A;           /* texto sobre claro */
    --c-muted: #475569;
    --c-line: #E2E8F0;
    --c-soft: #F8FAFC;
    --c-white: #FFFFFF;
    --c-accent: #D7181F;        /* rojo del logo */
    --c-accent-hover: #B91419;
    --c-accent-tint: #FEF2F2;   /* fondo rojo muy claro (iconos, números) */
    --c-glow: #F43F5E;          /* solo brillos/decoración, nunca texto sobre blanco */
    --c-indigo: #4F46E5;        /* solo decoración del hero */
    --c-on-dark: #CBD5E1;       /* texto secundario sobre navy */
    --c-on-dark-2: #94A3B8;
    --c-chip: #F1F5F9;
    --c-input-line: #8A94A6;    /* borde de campos: 3:1 sobre blanco */
    --c-placeholder: #64748B;
    --c-whatsapp: #047857;

    /* Avisos: tono rosa/vino + icono, para no confundirlos con el rojo de marca */
    --c-error: #9F1239;
    --c-error-bg: #FFF1F2;
    --c-error-line: #FECDD3;
    --c-ok: #065F46;
    --c-ok-bg: #ECFDF5;
    --c-ok-line: #A7F3D0;

    /* Tipografía */
    --font-head: 'Sora', 'Segoe UI', Arial, sans-serif;
    --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
    --fs-h1: clamp(2rem, 1.35rem + 2.6vw, 3.4rem);
    --fs-h2: clamp(1.6rem, 1.25rem + 1.4vw, 2.35rem);
    --fs-h3: 1.2rem;
    --fs-lead: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
    --fs-small: 0.875rem;

    /* Espacios */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --section-y: clamp(56px, 7vw, 88px);
    --container: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
    --header-h: 72px;

    /* Formas y sombras */
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --radius-pill: 999px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.07);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 10px 24px -6px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 22px 44px -14px rgba(15, 23, 42, 0.28);
    --shadow-glow: 0 10px 28px -8px rgba(215, 24, 31, 0.55);
    --ring-accent: 0 0 0 4px rgba(215, 24, 31, 0.2);
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--c-ink);
    background: var(--c-white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

img { display: block; max-width: 100%; height: auto; }

a { color: var(--c-accent); text-underline-offset: 3px; }
a:hover { color: var(--c-accent-hover); }

:focus-visible {
    outline: 3px solid var(--c-accent);
    outline-offset: 3px;
    border-radius: 4px;
}
.hero :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible { outline-color: var(--c-white); }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--c-white);
    border-bottom: 1px solid var(--c-line);
}
.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    min-height: var(--header-h);
}

.logo { display: block; flex: none; }
.logo img { height: 40px; width: auto; }

.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    margin-left: auto;
}
.main-nav ul {
    list-style: none;
    display: flex;
    gap: clamp(14px, 1.8vw, 28px);
}
.main-nav ul a {
    position: relative;
    display: block;
    padding-block: 6px;
    color: var(--c-ink);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}
.main-nav ul a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--c-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease);
}
.main-nav ul a:hover::after,
.main-nav ul a.active::after { transform: scaleX(1); }
.main-nav ul a.active { font-weight: 600; }
.nav-cta { white-space: nowrap; }

/* Escritorio angosto (901-1100 px): el menú completo cabe en una línea */
@media (min-width: 901px) and (max-width: 1100px) {
    .header-inner,
    .main-nav { gap: var(--space-4); }
    .main-nav ul { gap: 14px; }
    .main-nav ul a { font-size: 0.9rem; }
}

.menu-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    background: var(--c-white);
    border: 1px solid var(--c-line);
    border-radius: 10px;
    cursor: pointer;
}
.menu-toggle span {
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--c-ink);
    transition: transform 0.25s var(--ease), opacity 0.2s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
    :root { --header-h: 64px; }
    .logo img { height: 32px; }
    .menu-toggle { display: flex; }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-4);
        padding: var(--space-2) var(--gutter) var(--space-5);
        background: var(--c-white);
        border-bottom: 1px solid var(--c-line);
        box-shadow: var(--shadow-lg);
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
    }
    .main-nav.is-open { display: flex; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav li + li { border-top: 1px solid var(--c-line); }
    .main-nav ul a { padding: 14px 2px; font-size: 1rem; }
    .main-nav ul a::after { right: auto; bottom: 8px; width: 28px; }
}

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
                background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--c-accent); color: var(--c-white); }
.btn-primary:hover { background: var(--c-accent-hover); color: var(--c-white); box-shadow: var(--shadow-glow); }

.btn-secondary { background: var(--c-navy); color: var(--c-white); }
.btn-secondary:hover { background: var(--c-navy-2); color: var(--c-white); box-shadow: var(--shadow-glow); }

.btn-outline { background: transparent; color: var(--c-ink); border-color: var(--c-ink); }
.btn-outline:hover { color: var(--c-accent-hover); border-color: var(--c-accent); box-shadow: 0 8px 22px -10px rgba(215, 24, 31, 0.5); }

/* Para fondos oscuros */
.btn-light { background: rgba(255, 255, 255, 0.06); color: var(--c-white); border-color: rgba(255, 255, 255, 0.7); }
.btn-light:hover { background: var(--c-white); color: var(--c-navy); border-color: var(--c-white); box-shadow: var(--shadow-glow); }

.btn-sm { padding: 9px 18px; font-size: 0.925rem; }
.btn-block { width: 100%; }

.btn-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
}

/* ---------- Secciones ---------- */
.section { padding-block: var(--section-y); }
.section--soft {
    background: var(--c-soft);
    border-block: 1px solid var(--c-line);
}

.section-head {
    max-width: 720px;
    margin: 0 auto var(--space-7);
    text-align: center;
}
.section-head p {
    margin-top: var(--space-3);
    color: var(--c-muted);
    font-size: var(--fs-lead);
}

.cta-row { margin-top: var(--space-7); text-align: center; }
.cta-row p { margin-bottom: var(--space-4); color: var(--c-muted); }

/* Texto largo */
.prose { max-width: 760px; }
.prose h2 { margin-bottom: var(--space-4); }
.prose p { font-size: 1.0625rem; }
.prose p + p { margin-top: var(--space-4); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(64px, 9vw, 112px);
    background: var(--c-navy);
    color: var(--c-white);
    text-align: center;
}
/* Páginas interiores: un brillo rojo suave y fijo */
.hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -55%;
    left: 50%;
    width: min(760px, 140vw);
    aspect-ratio: 1;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(215, 24, 31, 0.42) 0%, rgba(215, 24, 31, 0) 65%);
    pointer-events: none;
}
.hero--page { padding-block: clamp(88px, 14vw, 160px); }

.hero__inner { position: relative; z-index: 2; }
.hero h1 { max-width: 920px; margin-inline: auto; }
.hero__lead {
    max-width: 660px;
    margin: var(--space-5) auto 0;
    color: var(--c-on-dark);
    font-size: var(--fs-lead);
}
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-6);
}
.hero__trust {
    margin-top: var(--space-5);
    color: var(--c-on-dark);
    font-size: var(--fs-small);
    letter-spacing: 0.02em;
}

/* Inicio: "lámpara de lava" (3 manchas borrosas que flotan; solo transform) */
.hero--home { padding-block: clamp(88px, 12vw, 168px); }
.hero--home::before { content: none; }
.hero--home::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.5) 0%, rgba(15, 23, 42, 0.25) 75%);
    pointer-events: none;
}
.hero__blobs {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.hero__blobs span {
    position: absolute;
    display: block;
    width: clamp(260px, 42vw, 640px);
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(70px);
    will-change: transform;
}
.hero__blobs span:nth-child(1) {
    top: -25%;
    left: -10%;
    background: var(--c-accent);
    opacity: 0.55;
    animation: blob-a 12s ease-in-out infinite alternate;
}
.hero__blobs span:nth-child(2) {
    right: -12%;
    bottom: -35%;
    background: var(--c-glow);
    opacity: 0.42;
    animation: blob-b 10.5s ease-in-out infinite alternate;
}
.hero__blobs span:nth-child(3) {
    top: 15%;
    left: 38%;
    width: clamp(220px, 34vw, 520px);
    background: var(--c-indigo);
    opacity: 0.38;
    animation: blob-c 14s ease-in-out infinite alternate;
}
@keyframes blob-a {
    0%   { transform: translate(0, 0) rotate(0deg) scale(1, 1); }
    33%  { transform: translate(30%, 24%) rotate(50deg) scale(1.25, 0.82); }
    66%  { transform: translate(10%, 44%) rotate(110deg) scale(0.88, 1.2); }
    100% { transform: translate(44%, 8%) rotate(160deg) scale(1.12, 0.92); }
}
@keyframes blob-b {
    0%   { transform: translate(0, 0) rotate(0deg) scale(1, 1); }
    40%  { transform: translate(-34%, -26%) rotate(-60deg) scale(0.82, 1.25); }
    100% { transform: translate(-14%, -48%) rotate(-130deg) scale(1.18, 0.88); }
}
@keyframes blob-c {
    0%   { transform: translate(0, 0) rotate(0deg) scale(1, 1); }
    50%  { transform: translate(-40%, 30%) rotate(80deg) scale(1.3, 0.78); }
    100% { transform: translate(24%, -22%) rotate(170deg) scale(0.88, 1.12); }
}

/* ---------- Tarjetas ---------- */
.cards {
    display: grid;
    gap: var(--space-5);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.cards--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.cards--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

.card {
    position: relative;
    background: var(--c-white);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: clamp(20px, 3vw, 28px);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.card:hover {
    transform: translateY(-4px);
    border-color: rgba(215, 24, 31, 0.35);
    box-shadow: var(--shadow-lg), 0 0 0 4px rgba(244, 63, 94, 0.08);
}
/* Tarjetas que no se levantan (formularios y bloques grandes) */
.card-static:hover,
.contact-form:hover {
    transform: none;
    border-color: var(--c-line);
    box-shadow: var(--shadow-sm);
}
.card p { color: var(--c-muted); }

/* Icono en recuadro (demos y valores) */
.icon-tile {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: var(--space-4);
    border-radius: 14px;
    background: var(--c-accent-tint);
    font-size: 1.6rem;
    line-height: 1;
}

/* Paquetes */
.card-package { display: flex; flex-direction: column; }
.card-package h3 { margin-bottom: var(--space-2); }
.card-featured {
    border: 2px solid var(--c-accent);
    box-shadow: var(--shadow-md), 0 0 0 4px rgba(215, 24, 31, 0.08);
}
.card-featured:hover { border-color: var(--c-accent); }
.feature-list {
    list-style: none;
    flex-grow: 1;
    margin: var(--space-5) 0 var(--space-6);
    display: grid;
    align-content: start;
    gap: var(--space-2);
}
.feature-list li { display: flex; gap: var(--space-2); }
.feature-list .check { flex: none; color: var(--c-accent); font-weight: 700; }
.card-package .btn + .btn { margin-top: var(--space-3); }

/* Demos */
.card-demo { display: flex; flex-direction: column; align-items: flex-start; }
.card-demo .demo-tag {
    margin: var(--space-1) 0 var(--space-3);
    color: var(--c-accent);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.card-demo p { flex-grow: 1; margin-bottom: var(--space-5); }

/* Valores (Nosotros) */
.card-value h3 { margin-bottom: var(--space-2); }

/* Proyectos recientes (Inicio) */
.project-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.project-card__img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-bottom: 1px solid var(--c-line);
    background: var(--c-soft);
}
.project-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.project-card__body { padding: var(--space-5); }
.project-card__body h3 { margin-bottom: var(--space-1); }
.project-card__body h3 a { color: var(--c-ink); text-decoration: none; }
.project-card__body h3 a::after { content: ""; position: absolute; inset: 0; }   /* toda la tarjeta es clicable */
.project-card__body h3 a:focus-visible { outline: none; }
.project-card:focus-within { outline: 3px solid var(--c-accent); outline-offset: 3px; }
.project-card__meta { margin-bottom: var(--space-2); font-size: var(--fs-small); }

/* Etiquetas */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: var(--c-accent);
    color: var(--c-white);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.badge-soft { background: var(--c-chip); color: var(--c-navy-2); border: 1px solid var(--c-line); }
.badge-soon { background: var(--c-chip); color: var(--c-muted); }
.badge-float {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}
.badge-list { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }

/* ---------- Pasos numerados (Nosotros) ---------- */
.steps {
    list-style: none;
    counter-reset: paso;
    display: grid;
    gap: var(--space-5);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}
.steps li { counter-increment: paso; }
.steps li::before {
    content: counter(paso);
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: var(--space-4);
    border: 2px solid var(--c-accent);
    border-radius: 50%;
    background: var(--c-accent-tint);
    color: var(--c-accent);
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 700;
}
.steps h3 { margin-bottom: var(--space-2); }

/* ---------- Preguntas frecuentes (<details> nativo, sin JS) ---------- */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: var(--space-3); }
.faq details {
    background: var(--c-white);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.faq details[open] { border-color: rgba(215, 24, 31, 0.35); box-shadow: var(--shadow-md); }
.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: 18px 22px;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    flex: none;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--c-accent-tint);
    color: var(--c-accent);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1;
    transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { content: "−"; transform: rotate(180deg); }
.faq summary:focus-visible { outline-offset: -3px; border-radius: var(--radius); }
.faq details p { padding: 0 22px 20px; color: var(--c-muted); }
.faq details[open] p { animation: faq-in 0.3s var(--ease); }
@keyframes faq-in {
    from { opacity: 0; transform: translateY(-6px); }
}

/* ---------- Casos (Portafolio) ---------- */
.case {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
    padding: clamp(20px, 3vw, 36px);
    scroll-margin-top: calc(var(--header-h) + 24px);
}
.case + .case { margin-top: var(--space-6); }
.case--reverse .case__media { order: 2; }
.case--sin-imagen { grid-template-columns: minmax(0, 1fr); }

.case__body h3 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem); margin-bottom: var(--space-1); }
.case__meta { margin-bottom: var(--space-5); font-size: var(--fs-small); }
.case__body h4 {
    margin-bottom: var(--space-1);
    color: var(--c-accent);
    font-family: var(--font-body);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.case__body p { margin-bottom: var(--space-4); }
.case__body .case__nota { margin: var(--space-4) 0 0; font-size: var(--fs-small); }

.case__thumbs { display: flex; gap: var(--space-3); margin-top: var(--space-4); }
.case__thumbs .browser { width: min(48%, 220px); }

/* Marco de navegador para capturas (solo CSS) */
.browser {
    display: block;
    overflow: hidden;
    border: 1px solid var(--c-line);
    border-radius: 12px;
    background: var(--c-white);
    box-shadow: var(--shadow-lg);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.browser::before {
    content: "";
    display: block;
    height: 28px;
    border-bottom: 1px solid var(--c-line);
    background:
        radial-gradient(circle at 16px 50%, #CBD5E1 5px, transparent 5.5px),
        radial-gradient(circle at 34px 50%, #CBD5E1 5px, transparent 5.5px),
        radial-gradient(circle at 52px 50%, #CBD5E1 5px, transparent 5.5px),
        var(--c-chip);
}
.browser--sm { border-radius: 8px; box-shadow: var(--shadow-md); }
.browser--sm::before {
    height: 14px;
    background:
        radial-gradient(circle at 9px 50%, #CBD5E1 2.5px, transparent 3px),
        radial-gradient(circle at 18px 50%, #CBD5E1 2.5px, transparent 3px),
        radial-gradient(circle at 27px 50%, #CBD5E1 2.5px, transparent 3px),
        var(--c-chip);
}
a.browser:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg), 0 0 0 4px rgba(244, 63, 94, 0.1); }

@media (max-width: 860px) {
    .case { grid-template-columns: minmax(0, 1fr); }
    .case--reverse .case__media { order: 0; }
}

/* ---------- Bloque final (CTA) ---------- */
.cta-band {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 64px);
    border-radius: var(--radius-lg);
    background: var(--c-navy);
    color: var(--c-white);
    text-align: center;
}
.cta-band::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -60%;
    right: -15%;
    width: min(600px, 120vw);
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(215, 24, 31, 0.4) 0%, rgba(215, 24, 31, 0) 65%);
    pointer-events: none;
}
.cta-band p { margin-top: var(--space-3); color: var(--c-on-dark); }
/* Si la sección anterior también es blanca, no se suman dos rellenos */
.section:not(.section--soft) + .section--cta { padding-top: 0; }
.cta-band .btn-group { margin-top: var(--space-6); }

/* ---------- Gracias ---------- */
.next-card { max-width: 640px; margin: 0 auto; padding: clamp(24px, 4vw, 40px); }
.next-card h2 { margin-bottom: var(--space-4); font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem); }
.next-steps { list-style: none; counter-reset: sigue; display: grid; gap: var(--space-3); }
.next-steps li { counter-increment: sigue; display: flex; align-items: center; gap: var(--space-3); }
.next-steps li::before {
    content: counter(sigue);
    flex: none;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--c-accent-tint);
    color: var(--c-accent);
    font-weight: 700;
}
.next-card .next-card__hint { margin: var(--space-6) 0 var(--space-3); text-align: center; color: var(--c-muted); }

/* ---------- Formularios ---------- */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: var(--space-6);
    align-items: start;
    max-width: 1000px;
}
.contact-form { padding: clamp(20px, 4vw, 36px); }

.form-group { margin-bottom: 18px; }
.contact-form .form-group:last-of-type { margin-bottom: var(--space-5); }
.form-label { display: block; margin-bottom: 6px; font-size: 0.925rem; font-weight: 600; color: var(--c-ink); }
.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--c-input-line);
    border-radius: 10px;
    background: var(--c-white);
    color: var(--c-ink);
    font: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control::placeholder { color: var(--c-placeholder); }
.form-control:hover { border-color: var(--c-muted); }
.form-control:focus { outline: none; border-color: var(--c-accent); box-shadow: var(--ring-accent); }
.form-control:user-invalid { border-color: var(--c-error); background: var(--c-error-bg); }
.form-control:user-invalid:focus { box-shadow: 0 0 0 4px rgba(159, 18, 57, 0.18); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* Avisos (errores / confirmaciones): color + icono */
.alert {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 10px;
    font-size: 0.95rem;
}
.alert::before { flex: none; font-weight: 700; }
.alert-error { background: var(--c-error-bg); color: var(--c-error); border-color: var(--c-error-line); }
.alert-error::before { content: "⚠"; }
.alert-ok { background: var(--c-ok-bg); color: var(--c-ok); border-color: var(--c-ok-line); }
.alert-ok::before { content: "✓"; }

/* Campo trampa anti-bots (fuera de la pantalla) */
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.contact-info h3 { margin-bottom: var(--space-4); }
.contact-info p { margin-bottom: var(--space-3); color: var(--c-ink); }
.contact-info a { font-weight: 600; overflow-wrap: anywhere; }
.contact-info .btn { margin-top: var(--space-2); }

@media (max-width: 860px) {
    .contact-layout { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Footer ---------- */
.site-footer {
    padding-top: var(--space-8);
    background: var(--c-navy);
    color: var(--c-on-dark);
    font-size: 0.95rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: var(--space-7);
}
.footer-brand img { height: 44px; width: auto; }
.footer-brand p { max-width: 340px; margin-top: var(--space-4); }
.footer-title {
    margin-bottom: var(--space-4);
    color: var(--c-white);
    font-size: 1rem;
    letter-spacing: 0;
}
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: var(--c-white); text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--c-white); text-decoration: underline; }
.footer-bottom {
    margin-top: var(--space-7);
    padding-block: var(--space-5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--c-on-dark-2);
    font-size: var(--fs-small);
}

.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 90;
    padding: 12px 18px;
    border-radius: var(--radius-pill);
    background: var(--c-whatsapp);
    color: var(--c-white);
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.site-footer .whatsapp-float:hover { color: var(--c-white); text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lg), var(--shadow-glow); }

@media (max-width: 760px) {
    .footer-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
    .footer-bottom { padding-bottom: 88px; }   /* que el botón flotante no tape el texto */
}

/* ---------- Aparición al hacer scroll (.reveal) ----------
   Solo se oculta cuando script.js puso la clase "js" en <html>. Usa "translate"
   para no chocar con el "transform" del hover de las tarjetas. */
.js .reveal {
    opacity: 0;
    translate: 0 16px;
    transition: opacity 0.6s var(--ease) var(--reveal-delay, 0ms),
                translate 0.6s var(--ease) var(--reveal-delay, 0ms);
}
.js .card.reveal {
    transition: opacity 0.6s var(--ease) var(--reveal-delay, 0ms),
                translate 0.6s var(--ease) var(--reveal-delay, 0ms),
                transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.js .reveal.is-visible { opacity: 1; translate: 0 0; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .hero__blobs span { animation: none; }
    .btn:hover,
    .card:hover,
    a.browser:hover,
    .site-footer .whatsapp-float:hover { transform: none; }
    .js .reveal { opacity: 1; translate: none; }
}