/* =============================================
   CofraSaaS — Landing pública
   Extraído de index.html para caché HTTP y CSS crítico separado.
   Estilos de index.html; no afectan al panel de gestión.
============================================= */


    /* =============================================
       VARIABLES
    ============================================= */
    :root {
        --granate: #5C1228;
        --granate-deep: #3A0B19;
        --granate-light: #8B2040;
        --purple: #4A1942;
        --purple-light: #6B2D7B;
        --purple-glow: rgba(107, 45, 123, 0.35);
        --gold: #C9A84C;
        --gold-light: #E8D5A0;
        --gold-bright: #F0C75E;
        --cream: #FBF8F1;
        --parchment: #F3ECDC;
        --ink: #1C1917;
        --ink-light: #57534E;
        --ink-muted: #A8A29E;
        --white: #FFFFFF;
        --font-display: 'Playfair Display', Georgia, serif;
        --font-body: 'Outfit', -apple-system, sans-serif;
        --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    }
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: 80px; }
    body {
        font-family: var(--font-body);
        color: var(--ink);
        background: var(--cream);
        -webkit-font-smoothing: antialiased;
        overflow-x: hidden;
    }
    a { color: inherit; text-decoration: none; }
    .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
    main[id], main [id] { scroll-margin-top: 96px; }
    #contenido:focus { outline: none; }
    :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
        outline: 3px solid var(--gold);
        outline-offset: 3px;
    }
    .skip-link {
        position: fixed; top: 12px; left: 12px; z-index: 2000;
        padding: 10px 16px; border-radius: 8px;
        background: var(--white); color: var(--granate-deep); font-weight: 600;
        box-shadow: 0 4px 18px rgba(0,0,0,0.25);
        transform: translateY(-200%); transition: transform 0.2s ease;
    }
    .skip-link:focus { transform: translateY(0); }

    /* =============================================
       REVEAL ANIMATIONS
    ============================================= */
    /* Visible por defecto: si el JavaScript falla, la página sigue completa. */
    .reveal-ready .reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo); }
    .reveal-ready .reveal.visible { opacity: 1; transform: translateY(0); }
    .reveal-d1 { transition-delay: .1s; } .reveal-d2 { transition-delay: .2s; }
    .reveal-d3 { transition-delay: .3s; } .reveal-d4 { transition-delay: .4s; } .reveal-d5 { transition-delay: .5s; }

    /* =============================================
       NAVIGATION — FULLY FUNCTIONAL
    ============================================= */
    .nav {
        position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
        padding: 16px 0; transition: all 0.4s ease;
    }
    .nav.scrolled {
        background: rgba(58, 11, 25, 0.95);
        backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        padding: 10px 0;
        box-shadow: 0 4px 30px rgba(0,0,0,0.2);
    }
    .nav-inner { display: flex; align-items: center; justify-content: space-between; }
    .nav-logo {
        display: flex; align-items: center; gap: 12px;
        color: var(--white); font-family: var(--font-display); font-size: 1.25rem; font-weight: 600;
        z-index: 1001;
    }
    .nav-logo-icon {
        width: 42px; height: 42px;
        background: linear-gradient(135deg, var(--gold), var(--gold-bright));
        border-radius: 12px; display: flex; align-items: center; justify-content: center;
        font-size: 1.4rem; color: var(--granate-deep);
        box-shadow: 0 2px 10px rgba(201,168,76,0.3);
            background: #FAF6EE; padding: 5px; overflow: hidden;
    }
    .nav-logo-icon img { width: 100%; height: 100%; object-fit: contain; display: block;}

    /* Desktop links */
    .nav-links {
        display: flex; align-items: center; gap: 32px; list-style: none;
    }
    .nav-links a {
        color: rgba(255,255,255,0.8); font-size: 0.92rem; font-weight: 400;
        transition: color 0.2s; letter-spacing: 0.2px;
    }
    .nav-links a:hover { color: var(--gold-light); }
    .nav-cta {
        background: linear-gradient(135deg, var(--gold), var(--gold-bright)) !important;
        color: var(--granate-deep) !important;
        padding: 10px 24px !important; border-radius: 8px;
        font-weight: 600 !important; font-size: 0.88rem !important;
        box-shadow: 0 2px 12px rgba(201,168,76,0.3);
        transition: all 0.3s !important;
    }
    .nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,168,76,0.4) !important; }

    /* Hamburger button */
    .nav-hamburger {
        display: none; background: none; border: none; cursor: pointer;
        width: 48px; height: 48px; position: relative;
        border-radius: 8px;
        /* El foco vuelve aquí al cerrar; visibility debe cambiar sin transición. */
        transition-property: none;
    }
    .nav-hamburger span {
        display: block; width: 28px; height: 2px; background: var(--white);
        position: absolute; left: 10px; border-radius: 2px;
    }
    .nav-hamburger span:nth-child(1) { top: 14px; }
    .nav-hamburger span:nth-child(2) { top: 23px; }
    .nav-hamburger span:nth-child(3) { top: 32px; }
    body.menu-open .nav-hamburger { visibility: hidden; }
    .nav-hamburger:focus-visible,
    .nav-mobile-close:focus-visible,
    .nav-mobile a:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 5px; }

    /* Mobile overlay menu */
    .nav-mobile {
        position: fixed; inset: 0; z-index: 3000;
        background: linear-gradient(160deg, var(--granate-deep), var(--purple));
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        gap: 0; overflow-y: auto; overscroll-behavior: contain;
        padding: max(96px, calc(env(safe-area-inset-top) + 76px)) 24px max(32px, env(safe-area-inset-bottom));
        opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
    }
    .nav-mobile.open { opacity: 1; pointer-events: all; }
    .nav-mobile[hidden] { display: none; }
    .nav-mobile-close {
        position: fixed; z-index: 1; top: max(16px, env(safe-area-inset-top)); right: max(24px, env(safe-area-inset-right));
        min-width: 104px; min-height: 48px; padding: 0 14px;
        display: flex; align-items: center; justify-content: center; gap: 9px;
        border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.07); color: var(--white); cursor: pointer;
        font: 500 .95rem/1 var(--font-body); border-radius: 10px;
        touch-action: manipulation;
    }
    .nav-mobile-close span[aria-hidden] { font-size: 2rem; font-weight: 300; }
    .nav-mobile-close:hover { color: var(--gold-light); }
    .nav-mobile a {
        color: var(--white); font-family: var(--font-display); font-size: 1.8rem; font-weight: 500;
        padding: 16px 0; opacity: 0; transform: translateY(20px);
        transition: all 0.4s ease, color 0.2s;
    }
    .nav-mobile.open a {
        opacity: 1; transform: translateY(0);
    }
    .nav-mobile.open a:nth-of-type(1) { transition-delay: .1s; }
    .nav-mobile.open a:nth-of-type(2) { transition-delay: .15s; }
    .nav-mobile.open a:nth-of-type(3) { transition-delay: .2s; }
    .nav-mobile.open a:nth-of-type(4) { transition-delay: .25s; }
    .nav-mobile.open a:nth-of-type(5) { transition-delay: .3s; }
    .nav-mobile a:hover { color: var(--gold); }
    .nav-mobile .nav-mobile-cta {
        margin-top: 24px; font-family: var(--font-body); font-size: 1rem;
        background: linear-gradient(135deg, var(--gold), var(--gold-bright));
        color: var(--granate-deep); padding: 14px 40px; border-radius: 10px; font-weight: 600;
    }

    @media (max-width: 860px) {
        .nav-links { display: none; }
        .nav-hamburger { display: block; }
    }
    @media (max-height: 720px) {
        .nav-mobile { justify-content: flex-start; }
        .nav-mobile a { font-size: 1.5rem; padding: 12px 0; }
    }

    /* =============================================
       HERO — VIDEO / IMAGE BACKGROUND
    ============================================= */
    .hero {
        position: relative; min-height: 100vh; display: flex; align-items: center;
        overflow: hidden;
    }
    /* Video/image background */
    .hero-bg-media {
        position: absolute; inset: 0; z-index: 0;
    }
    .hero-bg-media picture { display: block; width: 100%; height: 100%; }
    .hero-bg-media video,
    .hero-bg-media img {
        width: 100%; height: 100%; object-fit: cover;
    }
    /* === OVERLAY — granate + morado con gradiente oscuro para legibilidad === */
    .hero-overlay {
        position: absolute; inset: 0; z-index: 1;
        background:
            linear-gradient(160deg,
                rgba(58, 11, 25, 0.92) 0%,
                rgba(74, 25, 66, 0.88) 35%,
                rgba(92, 18, 40, 0.85) 65%,
                rgba(107, 45, 123, 0.80) 100%
            );
    }
    /* Extra vignette for text readability */
    .hero-overlay::after {
        content: '';
        position: absolute; inset: 0;
        background: radial-gradient(ellipse at center, transparent 40%, rgba(30, 5, 15, 0.4) 100%);
    }
    /* Subtle animated pattern */
    .hero-pattern {
        position: absolute; inset: 0; z-index: 2;
        background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 10L45 30H65L49 42L54 62L40 50L26 62L31 42L15 30H35Z' fill='rgba(201,168,76,0.02)' /%3E%3C/svg%3E") repeat;
        animation: patternDrift 50s linear infinite;
        opacity: 0.6;
    }
    @keyframes patternDrift { from { transform: translateY(0); } to { transform: translateY(-80px); } }

    /* Purple glow orbs */
    .hero-glow-1 {
        position: absolute; z-index: 2; width: 600px; height: 600px; border-radius: 50%;
        background: radial-gradient(circle, rgba(107,45,123,0.15) 0%, transparent 70%);
        top: -100px; right: -100px; pointer-events: none;
    }
    .hero-glow-2 {
        position: absolute; z-index: 2; width: 500px; height: 500px; border-radius: 50%;
        background: radial-gradient(circle, rgba(201,168,76,0.06) 0%, transparent 70%);
        bottom: -150px; left: -100px; pointer-events: none;
    }

    .hero-content {
        position: relative; z-index: 10;
        display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
        padding: 140px 0 100px;
    }
    .hero-text { color: var(--white); }
    .hero-badge {
        display: inline-flex; align-items: center; gap: 8px;
        background: rgba(201,168,76,0.1); border: 1px solid rgba(201,168,76,0.25);
        color: var(--gold-light); padding: 8px 18px; border-radius: 100px;
        font-size: 0.82rem; font-weight: 500; margin-bottom: 28px; letter-spacing: 0.5px;
    }
    .hero-badge::before { content: '✦'; color: var(--gold); }
    .hero h1 {
        font-family: var(--font-display);
        font-size: clamp(2.6rem, 5vw, 4rem);
        font-weight: 700; line-height: 1.08; margin-bottom: 24px;
    }
    .hero h1 em {
        font-style: italic;
        background: linear-gradient(135deg, var(--gold), var(--gold-bright));
        -webkit-background-clip: text; -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    .hero-desc {
        font-size: 1.15rem; line-height: 1.7; color: rgba(255,255,255,0.75);
        margin-bottom: 40px; max-width: 520px;
    }
    .hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
    .hero-demo-note {
        max-width: 560px; margin-top: 16px; color: rgba(255,255,255,0.72);
        font-size: 0.9rem; line-height: 1.55;
    }
    .hero-demo-note a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
    .btn-hero {
        display: inline-flex; align-items: center; gap: 10px;
        padding: 16px 36px; border-radius: 12px;
        font-family: var(--font-body); font-size: 1rem; font-weight: 600;
        border: none; cursor: pointer; transition: all 0.3s var(--ease-out-expo);
    }
    .btn-hero.primary {
        background: linear-gradient(135deg, var(--gold), var(--gold-bright));
        color: var(--granate-deep); box-shadow: 0 4px 20px rgba(201,168,76,0.35);
    }
    .btn-hero.primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(201,168,76,0.5); }
    .btn-hero.ghost {
        background: rgba(255,255,255,0.06); color: var(--white);
        border: 1px solid rgba(255,255,255,0.18);
    }
    .btn-hero.ghost:hover { border-color: var(--gold); color: var(--gold-light); background: rgba(201,168,76,0.06); }

    .hero-stats {
        display: flex; gap: 40px; margin-top: 48px; padding-top: 32px;
        border-top: 1px solid rgba(201,168,76,0.15);
    }
    .hero-stat-value { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--gold); line-height: 1; }
    .hero-stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.5); margin-top: 4px; }

    /* Hero mockup */
    .hero-visual { position: relative; }
    .hero-mockup {
        background: var(--white); border-radius: 16px; overflow: hidden;
        box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.08);
        transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
        transition: transform 0.6s var(--ease-out-expo);
    }
    .hero-mockup:hover { transform: perspective(1000px) rotateY(-2deg) rotateX(1deg); }
    .hero-visual-note {
        margin: 18px auto 0; max-width: 420px; text-align: center;
        color: rgba(255,255,255,0.68); font-size: 0.82rem; line-height: 1.5;
    }
    .mockup-bar { height: 36px; background: linear-gradient(180deg,#f5f5f5,#e8e8e8); display: flex; align-items: center; padding: 0 14px; gap: 7px; }
    .mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
    .mockup-dot:nth-child(1) { background: #FF5F56; } .mockup-dot:nth-child(2) { background: #FFBD2E; } .mockup-dot:nth-child(3) { background: #27C93F; }
    .mockup-screen { padding: 20px; background: var(--cream); min-height: 320px; }
    .mockup-sidebar {
        width: 54px; background: linear-gradient(180deg, var(--granate), var(--purple)); border-radius: 8px;
        float: left; height: 280px; margin-right: 14px;
        display: flex; flex-direction: column; align-items: center; padding: 14px 0; gap: 12px;
    }
    .mockup-sidebar-dot { width: 26px; height: 26px; border-radius: 6px; background: rgba(201,168,76,0.12); }
    .mockup-sidebar-dot.active { background: rgba(201,168,76,0.35); }
    .mockup-stats-row { display: flex; gap: 8px; margin-bottom: 10px; }
    .mockup-stat-box {
        flex: 1; background: var(--white); border-radius: 8px; padding: 10px; text-align: center;
        box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    }
    .mockup-stat-num { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--granate); }
    .mockup-stat-lbl { font-size: 0.5rem; color: var(--ink-muted); margin-top: 2px; }
    .mockup-card { background: var(--white); border-radius: 8px; padding: 14px; margin-bottom: 8px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
    .mockup-line { height: 7px; border-radius: 4px; background: var(--parchment); margin-bottom: 6px; }
    .mockup-line.short { width: 60%; } .mockup-line.gold { background: linear-gradient(90deg,var(--gold),var(--gold-light)); width: 45%; }
    .mockup-line.purple { background: var(--purple-light); width: 30%; opacity: 0.4; }

    /* Float badges */
    .hero-float {
        position: absolute; background: var(--white); border-radius: 12px;
        padding: 14px 18px; box-shadow: 0 10px 40px rgba(0,0,0,0.18);
        display: flex; align-items: center; gap: 12px;
        animation: floatY 3s ease-in-out infinite; z-index: 3;
    }
    .hero-float.top { top: 10px; right: -20px; animation-delay: .5s; }
    .hero-float.bottom { bottom: 30px; left: -30px; }
    .float-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
    .float-icon.green { background: #E8F5E9; } .float-icon.gold { background: rgba(201,168,76,0.12); }
    .float-text strong { display: block; font-size: 0.85rem; } .float-text span { font-size: 0.72rem; color: var(--ink-muted); }
    @keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

    /* =============================================
       SOCIAL PROOF
    ============================================= */
    .social-proof { background: var(--white); border-bottom: 1px solid rgba(0,0,0,0.05); padding: 28px 0; }
    .social-proof-inner { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
    .social-proof-text { font-size: 0.88rem; color: var(--ink-muted); font-weight: 500; }
    .social-proof-logos { display: flex; gap: 36px; align-items: center; }
    .proof-logo { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--ink-light); opacity: 0.45; white-space: nowrap; }

    /* =============================================
       SECTIONS COMMON
    ============================================= */
    .section-label {
        display: inline-flex; align-items: center; gap: 8px;
        font-size: 0.78rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
        color: var(--purple-light); margin-bottom: 16px;
    }
    .section-label::before { content: ''; width: 24px; height: 2px; background: var(--gold); border-radius: 1px; }
    .section-title {
        font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 2.8rem);
        font-weight: 700; color: var(--granate-deep); line-height: 1.2; margin-bottom: 16px;
    }
    .section-subtitle { font-size: 1.1rem; color: var(--ink-light); line-height: 1.7; max-width: 580px; }
    .section-header { text-align: center; margin-bottom: 64px; }
    .section-header .section-subtitle { margin: 0 auto; }

    /* =============================================
       FEATURES
    ============================================= */
    .features { padding: 100px 0; background: var(--cream); }
    .features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
    .feature-card {
        background: var(--white); border-radius: 16px; padding: 36px 28px;
        border: 1px solid rgba(0,0,0,0.04); position: relative; overflow: hidden;
        transition: all 0.4s var(--ease-out-expo);
    }
    .feature-card::before {
        content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
        background: linear-gradient(90deg, var(--purple-light), var(--gold));
        transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease-out-expo);
    }
    .feature-card:hover { transform: translateY(-6px); box-shadow: 0 18px 50px rgba(74,25,66,0.11); border-color: rgba(201,168,76,0.28); }
    .feature-card:hover::before { transform: scaleX(1); }
    .feature-icon {
        width: 56px; height: 56px; border-radius: 14px;
        display: flex; align-items: center; justify-content: center;
        font-size: 1.5rem; margin-bottom: 20px;
        box-shadow: inset 0 0 0 1px rgba(0,0,0,0.03);
        transition: transform 0.4s var(--ease-out-expo);
    }
    .feature-icon .cofrade-icon { width: 30px; height: 30px; }
    .feature-card:hover .feature-icon { transform: scale(1.08) rotate(-3deg); }
    .fi-granate { background: rgba(92,18,40,0.07); }
    .fi-gold { background: rgba(201,168,76,0.1); }
    .fi-green { background: rgba(34,139,34,0.07); }
    .fi-purple { background: rgba(107,45,123,0.08); }
    .fi-blue { background: rgba(38,70,83,0.07); }
    .fi-orange { background: rgba(230,126,34,0.07); }
    .feature-card h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--granate-deep); margin-bottom: 10px; }
    .feature-card p { font-size: 0.92rem; line-height: 1.65; color: var(--ink-light); }

    /* =============================================
       HOW IT WORKS
    ============================================= */
    .how-it-works { padding: 100px 0; background: var(--white); }
    .steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 40px; margin-top: 56px; position: relative; }
    .steps-grid::before {
        content: ''; position: absolute; top: 44px; left: 15%; right: 15%; height: 2px;
        background: linear-gradient(90deg, var(--gold), var(--purple-light), var(--gold)); opacity: 0.2;
    }
    .step { text-align: center; position: relative; }
    .step-number {
        width: 88px; height: 88px; border-radius: 50%;
        background: linear-gradient(135deg, var(--granate), var(--purple));
        display: flex; align-items: center; justify-content: center;
        margin: 0 auto 24px; font-family: var(--font-display); font-size: 2rem;
        font-weight: 700; color: var(--gold);
        box-shadow: 0 8px 30px rgba(74,25,66,0.25); position: relative; z-index: 2;
    }
    .step h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--granate-deep); margin-bottom: 10px; }
    .step p { font-size: 0.92rem; color: var(--ink-light); line-height: 1.65; max-width: 300px; margin: 0 auto; }
    .guide-callout {
        max-width: 880px; margin: 52px auto 0; padding: 22px 26px;
        display: flex; align-items: center; justify-content: space-between; gap: 24px;
        border: 1px solid rgba(92,18,40,0.14); border-radius: 14px; background: var(--cream);
    }
    .guide-callout strong { display: block; color: var(--granate-deep); margin-bottom: 4px; }
    .guide-callout span { color: var(--ink-light); font-size: 0.9rem; line-height: 1.5; }
    .guide-callout a { flex-shrink: 0; color: var(--granate); font-weight: 700; }

    /* =============================================
       PRICING
    ============================================= */
    .pricing { padding: 100px 0; background: linear-gradient(180deg, var(--cream), var(--parchment)); }
    .pricing-toggle {
        display: inline-flex; background: var(--white); border-radius: 100px;
        padding: 4px; border: 1px solid rgba(0,0,0,0.08); margin-top: 24px;
    }
    .pricing-toggle-btn {
        padding: 10px 24px; border-radius: 100px; border: none; font-family: var(--font-body);
        font-size: 0.88rem; font-weight: 500; cursor: pointer; transition: all 0.3s;
        background: transparent; color: var(--ink-light);
    }
    .pricing-toggle-btn.active { background: linear-gradient(135deg, var(--granate), var(--purple)); color: var(--white); box-shadow: 0 2px 8px rgba(74,25,66,0.2); }
    .pricing-save { background: var(--gold); color: var(--granate-deep); font-size: 0.65rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; margin-left: 8px; vertical-align: middle; }
    /* Cinco planes (Inicio + 4 de pago). En pantalla muy ancha caben los 5
       en una fila; en tablets, 3 arriba y 2 abajo; en móvil, una columna. */
    .pricing-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; max-width: 1320px; margin: 0 auto; }
    .pricing-card { padding: 32px 18px; }
    @media (max-width: 1320px) {
        .pricing-grid { grid-template-columns: repeat(3,1fr); max-width: 880px; gap: 18px; }
    }
    @media (max-width: 1180px) {
        .pricing-grid { grid-template-columns: repeat(2,1fr); max-width: 720px; gap: 22px; }
        .pricing-card.featured { transform: none; }
    }
    .pricing-card {
        background: var(--white); border-radius: 20px; padding: 40px 32px;
        border: 1px solid rgba(0,0,0,0.06); text-align: center; position: relative;
        transition: all 0.4s var(--ease-out-expo);
    }
    .pricing-card.featured { border: 2px solid var(--gold); box-shadow: 0 16px 60px rgba(201,168,76,0.12); transform: scale(1.03); z-index: 1; }
    .pricing-custom {
        max-width: 1050px; margin: 32px auto 0; background: var(--white);
        border: 1px dashed rgba(201,168,76,0.55); border-radius: 20px;
        padding: 32px 36px; display: flex; align-items: center; gap: 32px;
    }
    .pricing-custom-text h3 { font-family: var(--font-display, inherit); font-size: 1.3rem; margin: 0 0 8px; }
    .pricing-custom-text p { margin: 0; color: var(--ink-light); font-size: 0.95rem; line-height: 1.65; }
    .pricing-custom .pricing-btn { flex-shrink: 0; width: auto; padding: 15px 32px; margin: 0; }
    @media (max-width: 900px) {
        .pricing-custom { flex-direction: column; text-align: center; gap: 22px; padding: 30px 24px; }
    }

    /* ============================================================
       CAPA VISUAL: textura, separadores y detalles de marca
       Elementos decorativos suaves que dan profundidad sin
       distraer del contenido ni penalizar el rendimiento
       (todo CSS puro, sin imagenes extra que descargar).
    ============================================================ */

    /* Textura de papel sutil sobre los fondos claros, para que no
       parezca una plantilla plana */
    .problema, .para-quien, .faq, .features {
        position: relative;
    }
    .problema::before, .para-quien::before, .faq::before {
        content: ''; position: absolute; inset: 0; pointer-events: none;
        background-image:
            radial-gradient(circle at 15% 20%, rgba(201,168,76,0.045) 0%, transparent 42%),
            radial-gradient(circle at 85% 75%, rgba(107,45,123,0.04) 0%, transparent 42%);
    }
    .problema > .container, .para-quien > .container, .faq > .container { position: relative; z-index: 1; }

    /* Filete dorado ornamental bajo los titulos de seccion.
       Se dibuja con CSS en vez de usar un caracter tipografico (❧, ✦...):
       esos glifos dependen de que la fuente los tenga y se ven distintos
       —o directamente mal— en cada sistema. Un degradado siempre se ve igual. */
    .section-header { position: relative; }
    .section-title::after {
        content: ''; display: block; width: 72px; height: 2px; margin: 18px auto 0;
        background: linear-gradient(90deg, transparent, var(--gold), transparent);
        border-radius: 1px;
    }
    /* Los titulos que van alineados a la izquierda llevan el filete a la izquierda */
    .app-movil-text .section-title::after { margin-left: 0; margin-right: auto;
        background: linear-gradient(90deg, var(--gold), transparent); }

    /* ------------------------------------------------------ PROBLEMA ---- */
    .problema { background: var(--white); }
    .problema-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
    .problema-card {
        background: var(--cream); border-radius: 16px; padding: 28px;
        display: flex; flex-direction: column; gap: 14px;
        border: 1px solid rgba(0,0,0,0.04);
        transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
    }
    .problema-card:hover { transform: translateY(-4px); box-shadow: 0 16px 44px rgba(0,0,0,0.07); }
    .problema-antes {
        font-size: 0.93rem; line-height: 1.65; color: var(--ink-light);
        padding-left: 16px; border-left: 3px solid rgba(168,162,158,0.5);
    }
    .problema-flecha { font-size: 1.25rem; color: var(--gold); line-height: 1; }
    .problema-despues { font-size: 0.93rem; line-height: 1.65; color: var(--ink); }
    .problema-despues strong { color: var(--granate); }

    /* -------------------------------------------------------- CIFRAS ---- */
    .cifras {
        padding: 72px 0; position: relative; overflow: hidden;
        background: linear-gradient(140deg, var(--granate-deep), var(--purple) 55%, var(--granate));
    }
    .cifras::before {
        content: ''; position: absolute; inset: 0;
        background: radial-gradient(ellipse at 30% 20%, rgba(201,168,76,0.10), transparent 60%);
    }
    .cifras > .container { position: relative; z-index: 1; }
    .cifras-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
    .cifra { text-align: center; position: relative; }
    /* Separador vertical entre cifras, salvo en la ultima */
    .cifra:not(:last-child)::after {
        content: ''; position: absolute; right: -16px; top: 50%; transform: translateY(-50%);
        width: 1px; height: 52px; background: rgba(201,168,76,0.25);
    }
    .cifra-num {
        font-family: var(--font-display); font-size: 3rem; font-weight: 700;
        color: var(--gold); line-height: 1; margin-bottom: 10px;
    }
    .cifra-lbl { font-size: 0.86rem; line-height: 1.55; color: rgba(255,255,255,0.68); }

    /* ---------------------------------------------------- PARA QUIEN ---- */
    .para-quien { background: var(--cream); }
    .quien-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
    .quien-card {
        background: var(--white); border-radius: 16px; padding: 30px 28px;
        border: 1px solid rgba(0,0,0,0.05); border-top: 3px solid var(--gold);
        transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
    }
    .quien-card:hover { transform: translateY(-4px); box-shadow: 0 16px 44px rgba(0,0,0,0.07); }
    .quien-card h3 {
        font-family: var(--font-display); font-size: 1.12rem; color: var(--granate-deep);
        margin-bottom: 12px; line-height: 1.35;
    }
    .quien-card p { font-size: 0.93rem; line-height: 1.68; color: var(--ink-light); }

    /* ---------------------------------------------------------- FAQ ---- */
    .faq { background: var(--cream, #FAF6EE); }
    .faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
    .faq-item {
        background: var(--white); border: 1px solid rgba(0,0,0,0.06); border-radius: 14px;
        padding: 4px 26px; transition: border-color 0.25s ease, box-shadow 0.25s ease;
    }
    .faq-item[open] { border-color: rgba(201,168,76,0.5); box-shadow: 0 8px 30px rgba(0,0,0,0.05); }
    .faq-item summary {
        list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600;
        font-size: 1.02rem; color: var(--granate-deep, #3A0B19);
        display: flex; align-items: center; justify-content: space-between; gap: 16px;
    }
    .faq-item summary::-webkit-details-marker { display: none; }
    .faq-item summary::after {
        content: '+'; flex-shrink: 0; font-size: 1.5rem; font-weight: 400; line-height: 1;
        color: var(--gold, #C9A84C); transition: transform 0.25s ease;
    }
    .faq-item[open] summary::after { transform: rotate(45deg); }
    .faq-answer { padding: 0 0 20px; margin-top: -6px; }
    .faq-answer p { margin: 0; color: var(--ink-light); font-size: 0.95rem; line-height: 1.65; }

    .pricing-card:hover { transform: translateY(-4px); box-shadow: 0 16px 50px rgba(0,0,0,0.08); }
    .pricing-card.featured:hover { transform: scale(1.04) translateY(-4px); }
    .pricing-popular {
        position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
        background: linear-gradient(135deg, var(--gold), var(--gold-bright));
        color: var(--granate-deep); font-size: 0.72rem; font-weight: 700;
        padding: 6px 20px; border-radius: 100px; text-transform: uppercase; letter-spacing: 1px; white-space: nowrap;
    }
    /* Badge "Gratis" del plan Inicio: verde para distinguirse del "Más popular" dorado */
    .pricing-free-badge {
        position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
        background: linear-gradient(135deg, #2D6A4F, #52B788);
        color: #fff; font-size: 0.72rem; font-weight: 700;
        padding: 6px 20px; border-radius: 100px; text-transform: uppercase; letter-spacing: 1px; white-space: nowrap;
        box-shadow: 0 4px 14px rgba(45, 106, 79, 0.35);
    }
    .pricing-amount-free {
        background: linear-gradient(135deg, #2D6A4F, #52B788);
        -webkit-background-clip: text; background-clip: text;
        -webkit-text-fill-color: transparent; color: transparent;
        font-size: 3.2rem;
    }
    .pricing-icon { font-size: 2rem; margin-bottom: 12px; }
    .pricing-icon .cofrade-icon { width: 34px; height: 34px; }
    .pricing-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--granate-deep); margin-bottom: 8px; }
    .pricing-desc { font-size: 0.82rem; color: var(--ink-muted); margin-bottom: 20px; min-height: 36px; line-height: 1.4; }
    .pricing-amount { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: var(--ink); line-height: 1; }
    .pricing-amount .cur { font-size: 1.5rem; vertical-align: top; margin-right: 2px; }
    .pricing-amount .per { font-size: 0.92rem; font-weight: 400; color: var(--ink-muted); font-family: var(--font-body); }
    .pricing-note { font-size: 0.78rem; color: var(--ink-muted); margin-top: 4px; min-height: 18px; }
    .plan-support {
        display: flex; align-items: flex-start; gap: 10px; min-height: 108px;
        margin-top: 18px; padding: 13px 12px; text-align: left;
        border: 1px solid rgba(92,18,40,0.11); border-radius: 12px;
        background: linear-gradient(145deg, rgba(92,18,40,0.035), rgba(201,168,76,0.07));
    }
    .plan-support .cofrade-icon { width: 19px; height: 19px; flex: 0 0 auto; color: var(--granate); margin-top: 2px; }
    .plan-support strong { display: block; color: var(--granate-deep); font-size: .82rem; line-height: 1.3; margin-bottom: 4px; }
    .plan-support span { display: block; color: var(--ink-light); font-size: .75rem; line-height: 1.45; }
    .plan-support-strong { border-color: rgba(201,168,76,0.34); background: linear-gradient(145deg, rgba(201,168,76,0.12), rgba(92,18,40,0.045)); }
    .pricing-btn {
        display: block; width: 100%; padding: 14px; border-radius: 10px;
        font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
        border: none; cursor: pointer; transition: all 0.3s; margin: 24px 0;
    }
    .pricing-btn.outline { background: transparent; border: 2px solid var(--granate); color: var(--granate); }
    .pricing-btn.outline:hover { background: var(--granate); color: var(--white); }
    .pricing-btn.gold { background: linear-gradient(135deg,var(--gold),var(--gold-bright)); color: var(--granate-deep); box-shadow: 0 4px 16px rgba(201,168,76,0.3); }
    .pricing-btn.gold:hover { box-shadow: 0 6px 24px rgba(201,168,76,0.4); transform: translateY(-2px); }
    .pricing-btn.filled { background: linear-gradient(135deg,var(--granate),var(--purple)); color: var(--white); box-shadow: 0 4px 16px rgba(74,25,66,0.2); }
    .pricing-btn.filled:hover { box-shadow: 0 6px 24px rgba(74,25,66,0.3); transform: translateY(-2px); }
    .pricing-features { list-style: none; text-align: left; }
    .pricing-features li { padding: 8px 0; font-size: 0.88rem; color: var(--ink-light); display: flex; align-items: center; gap: 10px; }
    .pricing-features li::before { content: '✓'; color: var(--gold); font-weight: 700; flex-shrink: 0; }
    .pricing-features li.off { opacity: 0.35; }
    .pricing-features li.off::before { content: '✕'; color: var(--ink-muted); }

    /* =============================================
       TESTIMONIALS
    ============================================= */
    .testimonials { padding: 100px 0; background: var(--white); }
    .testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 56px; }
    .testimonial-card { background: var(--cream); border-radius: 16px; padding: 32px; position: relative; }
    .testimonial-card::before { content: '"'; font-family: var(--font-display); font-size: 4rem; color: var(--purple-light); opacity: 0.2; position: absolute; top: 16px; left: 24px; line-height: 1; }
    .testimonial-text { font-size: 0.95rem; line-height: 1.7; color: var(--ink-light); margin-bottom: 24px; position: relative; z-index: 1; font-style: italic; }
    .testimonial-author { display: flex; align-items: center; gap: 12px; }
    .testimonial-avatar {
        width: 44px; height: 44px; border-radius: 50%;
        background: linear-gradient(135deg, var(--granate), var(--purple));
        display: flex; align-items: center; justify-content: center;
        color: var(--gold); font-weight: 700; font-size: 0.85rem;
    }
    .testimonial-name { font-weight: 600; font-size: 0.92rem; }
    .testimonial-role { font-size: 0.78rem; color: var(--ink-muted); }

    /* =============================================
       CTA
    ============================================= */
    .cta-section {
        padding: 100px 0; text-align: center; position: relative; overflow: hidden;
        background: linear-gradient(160deg, var(--granate-deep), var(--purple), var(--granate-light));
    }
    .cta-section::before {
        content: ''; position: absolute; inset: 0;
        background: radial-gradient(ellipse at center, rgba(201,168,76,0.06), transparent 70%);
    }
    .cta-content { position: relative; z-index: 2; }
    .cta-ornament { color: var(--gold); font-size: 1.5rem; opacity: 0.3; margin-bottom: 24px; }
    .cta-section h2 { font-family: var(--font-display); font-size: clamp(2rem,4vw,3rem); color: var(--white); margin-bottom: 16px; }
    .cta-section p { font-size: 1.15rem; color: rgba(255,255,255,0.65); max-width: 560px; margin: 0 auto 36px; }
    .cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
    .cta-primary-action { font-size: 1.05rem; padding: 18px 44px; }

    /* =============================================
       APP MÓVIL / PWA
    ============================================= */
    .app-movil { padding: 100px 0; background: var(--white); }
    .app-movil-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
    .app-phone {
        width: 250px; margin: 0 auto; background: var(--granate-deep);
        border-radius: 36px; padding: 10px; position: relative;
        box-shadow: 0 30px 70px rgba(58,11,25,0.35);
        transform: rotate(-4deg);
    }
    .app-phone-notch {
        width: 90px; height: 22px; background: var(--granate-deep);
        border-radius: 0 0 14px 14px; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 2;
    }
    .app-phone-screen {
        background: #F5F1E8; border-radius: 28px; padding: 36px 12px 20px; min-height: 400px;
    }
    .app-phone-header {
        text-align: center; background: linear-gradient(150deg, var(--granate), var(--purple));
        color: var(--gold); border-radius: 16px; padding: 14px; font-size: 1.3rem; margin-bottom: 10px;
    }
    .app-phone-header small { color: rgba(255,255,255,0.85); font-size: 0.7rem; letter-spacing: 1px; }
    .app-phone-card {
        display: flex; gap: 10px; align-items: center;
        background: var(--white); border-radius: 14px; padding: 12px; margin-bottom: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05); font-size: 0.78rem;
    }
    .app-phone-card small { color: var(--ink-muted); font-size: 0.66rem; }
    .app-phone-check { font-size: 1.3rem; }
    .app-phone-check .cofrade-icon { width: 22px; height: 22px; }
    .app-phone-fecha {
        flex-shrink: 0; width: 40px; text-align: center; background: rgba(92,18,40,0.06);
        border: 1px solid rgba(92,18,40,0.15); border-radius: 10px; padding: 5px 0;
    }
    .app-phone-fecha span { display: block; font-weight: 800; color: var(--granate); font-size: 0.95rem; line-height: 1; }
    .app-phone-fecha small { font-size: 0.55rem; font-weight: 700; color: var(--ink-muted); letter-spacing: 1px; }
    .app-movil-lista { list-style: none; margin-bottom: 32px; }
    .app-movil-lista li { display:flex; align-items:center; gap:10px; padding:8px 0; font-size:0.95rem; color:var(--ink-light); }
    .app-movil-lista .cofrade-icon { width:22px; height:22px; color:var(--wine); }
    .app-movil-ios {
        margin-top: 16px; font-size: 0.85rem; color: var(--ink-light);
        background: var(--parchment); border-radius: 10px; padding: 12px 16px;
    }
    @media (max-width: 860px) {
        .app-movil-inner { grid-template-columns: 1fr; gap: 40px; }
        .app-movil-text { text-align: center; }
        .app-movil-lista li { text-align: left; }
        .app-phone { transform: rotate(0deg); width: 220px; }
    }

    /* =============================================
       WHATSAPP FLOAT BUTTON
    ============================================= */
    .wa-float {
        position: fixed; bottom: 24px; right: 24px; z-index: 900;
        width: 58px; height: 58px; border-radius: 50%;
        background: #25D366; color: #fff;
        display: flex; align-items: center; justify-content: center;
        box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
        transition: transform 0.25s var(--ease-out-expo), box-shadow 0.25s;
    }
    .wa-float:hover { transform: scale(1.1); box-shadow: 0 10px 32px rgba(37, 211, 102, 0.6); }
    .wa-float svg { width: 30px; height: 30px; }
    .wa-float-label {
        position: absolute; right: 70px; top: 50%; transform: translateY(-50%);
        background: var(--ink); color: #fff; font-size: 0.8rem; font-weight: 500;
        padding: 8px 14px; border-radius: 8px; white-space: nowrap;
        opacity: 0; pointer-events: none; transition: opacity 0.25s;
    }
    .wa-float:hover .wa-float-label { opacity: 1; }
    @media (max-width: 768px) {
        .wa-float { bottom: 16px; right: 16px; width: 54px; height: 54px; }
        .wa-float-label { display: none; }
    }

    /* =============================================
       FOOTER
    ============================================= */
    .footer { background: var(--granate-deep); padding: 64px 0 32px; color: rgba(255,255,255,0.6); }
    .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
    .footer-brand h3 { font-family: var(--font-display); font-size: 1.3rem; color: var(--white); margin-bottom: 12px; }
    .footer-brand p { font-size: 0.88rem; line-height: 1.65; max-width: 300px; }
    .footer h4 { font-family: var(--font-display); color: var(--gold-light); font-size: 0.95rem; margin-bottom: 16px; }
    .footer-links { list-style: none; }
    .footer-links li { margin-bottom: 10px; }
    .footer-links a { font-size: 0.88rem; transition: color 0.2s; }
    .footer-links a:hover { color: var(--gold); }
    .footer-bottom {
        border-top: 1px solid rgba(201,168,76,0.1); padding-top: 24px;
        display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem;
    }

    /* =============================================
       RESPONSIVE
    ============================================= */
    @media (max-width: 1024px) {
        .hero-content { grid-template-columns: 1fr; text-align: center; }
        .hero-desc { margin: 0 auto 40px; }
        .hero-actions { justify-content: center; }
        .hero-demo-note { margin-left: auto; margin-right: auto; }
        .hero-stats { justify-content: center; }
        .hero-visual { display: block; width: 100%; max-width: 540px; margin: 0 auto; }
        .features-grid { grid-template-columns: repeat(2,1fr); }
        .problema-grid { grid-template-columns: repeat(2,1fr); }
        .quien-grid { grid-template-columns: repeat(2,1fr); }
        .cifras-grid { grid-template-columns: repeat(2,1fr); gap: 40px 32px; }
        .cifra:nth-child(2)::after { display: none; }
        .steps-grid { grid-template-columns: 1fr; gap: 40px; }
        .steps-grid::before { display: none; }
        .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
        .pricing-card.featured { transform: none; }
        .pricing-card.featured:hover { transform: translateY(-4px); }
        .testimonials-grid { grid-template-columns: 1fr; max-width: 500px; margin: 56px auto 0; }
        .footer-grid { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 768px) {
        .features-grid { grid-template-columns: 1fr; }
        .problema-grid { grid-template-columns: 1fr; }
        .quien-grid { grid-template-columns: 1fr; }
        .cifra::after { display: none !important; }
        .hero h1 { font-size: 2.2rem; }
        .hero-stats { flex-direction: row; gap: 16px; align-items: flex-start; }
        .social-proof-logos { display: none; }
        .footer-grid { grid-template-columns: 1fr; }
        .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
        .container { padding: 0 16px; }
        .guide-callout { align-items: flex-start; flex-direction: column; padding: 20px; }
    }

    /* Portada comercial: lectura, comparación y contacto en cualquier pantalla. */
    [hidden] { display: none !important; }
    .hero > .container { width: 100%; }
    .hero { min-height: min(900px, 100svh); }
    .hero-content { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; padding: 145px 0 85px; }
    .hero h1 { font-size: clamp(2.4rem, 4.3vw, 3.7rem); line-height: 1.12; text-wrap: balance; }
    .hero-desc { color: #eee4e8; margin-bottom: 28px; }
    .hero-desc strong { color: #fff; font-weight: 600; }
    .hero-stats { margin-top: 30px; padding-top: 24px; gap: 24px; }
    .hero-stat-value { font-family: var(--font-body); font-size: clamp(1.1rem, 1.8vw, 1.5rem); }
    .hero-stat-label { color: #e0cfd5; font-size: .78rem; }
    .hero-visual-note { color: #e0cfd5; }
    .hero-mockup { transform: none; }
    .hero-mockup:hover { transform: rotate(0); }
    .mockup-screen { min-height: 0; padding: 24px; }
    .preview-heading { margin-bottom: 22px; text-align: left; }
    .preview-heading > span { color: var(--granate); font-size: .65rem; font-weight: 700; letter-spacing: .1em; }
    .preview-heading > strong { display: block; margin: 9px 0 3px; font-family: var(--font-display); font-size: 1.7rem; }
    .preview-heading > small { color: var(--ink-light); }
    .mockup-stat-box { padding: 14px 6px; }
    .mockup-stat-num { font-family: var(--font-body); font-size: 1.65rem; }
    .mockup-stat-lbl { font-size: .68rem; color: var(--ink-light); }
    .preview-list { margin-top: 18px; background: white; border: 1px solid #e9e1d5; border-radius: 10px; padding: 0 12px; }
    .preview-list > div { display: flex; align-items: center; gap: 10px; padding: 14px 0; text-align: left; }
    .preview-list > div + div { border-top: 1px solid #eee7dc; }
    .preview-list p { flex: 1; min-width: 0; }
    .preview-list strong { display: block; font-size: .82rem; }
    .preview-list small { display: block; font-size: .7rem; color: var(--ink-light); }
    .preview-list b { padding: 4px 7px; background: #f3ecdf; border-radius: 5px; color: var(--granate); font-size: .6rem; }
    .nav-links { gap: 20px; }
    .nav-links .nav-demo { color: var(--gold-light); font-weight: 700; }
    .section-title { text-wrap: balance; }
    .section-subtitle { text-wrap: pretty; }
    .feature-card, .quien-card, .pricing-card, .demo-field { min-width: 0; }
    .phone-example-note { text-align: center; font-size: .78rem; color: var(--ink-light); margin-top: 18px; }
    .pricing > .container { max-width: 1440px; }
    .pricing-card { display: flex; flex-direction: column; padding: 30px 18px; }
    .pricing-card.featured { transform: none; }
    .pricing-desc { min-height: 3.5em; color: var(--ink-light); }
    .pricing-note, .pricing-amount .per { color: var(--ink-light); }
    .plan-capacity { font-size: .84rem; color: var(--granate); font-weight: 600; min-height: 2.8em; margin: 8px 0; }
    .pricing-features li { display: block; position: relative; padding-left: 20px; }
    .pricing-features li::before { position: absolute; left: 0; color: #876516; }
    .pricing-btn { min-height: 46px; display: flex; align-items: center; justify-content: center; }
    .pricing-extras { color: var(--ink-light) !important; }
    .plan-details { text-align: left; margin-top: 8px; }
    .plan-details summary { cursor: pointer; min-height: 44px; padding: 12px 0; color: var(--granate); font-size: .82rem; font-weight: 600; }
    .plan-details .pricing-features { margin-top: 4px; }
    .demo-brief { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 720px; margin: 30px auto 24px; text-align: left; }
    .demo-field label { display: block; margin-bottom: 8px; color: #fff; font-size: .94rem; font-weight: 600; }
    .demo-field select { width: 100%; min-height: 50px; padding: 12px; border: 1px solid #d9c9ae; border-radius: 9px; background: #fffdf8; color: var(--ink); font: inherit; font-size: 1rem; }
    .cta-content .demo-brief-note { grid-column: 1 / -1; font-size: .82rem; color: #e0cfd5; margin: 0; max-width: none; }
    .faq-item summary { min-height: 48px; }
    .footer-links a { display: inline-block; padding: 5px 0; overflow-wrap: anywhere; }
    /* El aviso queda visible y el contacto flotante no se superpone a él. */
    body.cookie-notice-visible .wa-float { visibility: hidden; }
    @media (min-width: 1025px) and (max-width: 1320px) {
        .pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1050px; }
    }
    @media (max-width: 1024px) {
        .hero-content { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 125px 0 65px; }
        .hero-text { max-width: 700px; margin: auto; }
        .hero-desc { margin: 0 auto 28px; }
        .hero-mockup { transform: none; }
    }
    @media (min-width: 861px) and (max-width: 1080px) {
        .nav-links { gap: 12px; }
        .nav-links a { font-size: .8rem; }
    }
    @media (max-width: 600px) {
        .hero-content { padding: 112px 0 48px; gap: 30px; text-align: left; }
        .hero h1 { font-size: clamp(2rem, 8.2vw, 2.9rem); }
        .hero-badge { font-size: .74rem; padding: 8px 12px; margin-bottom: 20px; letter-spacing: 0; }
        .hero-desc { font-size: 1.03rem; line-height: 1.6; }
        .hero-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
        .btn-hero { justify-content: center; min-height: 48px; padding: 14px 20px; }
        .hero-demo-note { font-size: .82rem; }
        .hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 24px; padding-top: 20px; }
        .hero-stat-value { font-size: 1.06rem; }
        .hero-stat-label { line-height: 1.4; font-size: .7rem; }
        .mockup-screen { padding: 18px 14px; }
        .preview-list b { display: none; }
        .hero-visual-note { font-size: .72rem; }
        .hero-pattern, .hero-glow-1, .hero-glow-2 { display: none; }
        .problema, .features, .how-it-works, .app-movil, .para-quien, .pricing, .faq, .cta-section { padding-top: 56px; padding-bottom: 56px; }
        .section-header { margin-bottom: 30px; }
        .section-title { font-size: 1.85rem; }
        .features-grid, .problema-grid, .quien-grid { gap: 16px; }
        .feature-card, .quien-card, .problema-card { padding: 24px; }
        .pricing-grid { grid-template-columns: minmax(0, 1fr); max-width: 440px; gap: 24px; }
        .pricing-card { padding: 28px 22px 16px; text-align: left; }
        .pricing-icon { display: none; }
        .pricing-desc { min-height: 0; }
        .plan-capacity { min-height: 0; }
        .plan-support { min-height: 0; }
        .pricing-amount { margin-top: 8px; }
        .pricing-card .pricing-btn { margin-top: 14px; }
        .demo-brief { grid-template-columns: minmax(0, 1fr); }
        .cta-actions { flex-direction: column; align-items: stretch; }
        .cifra-num { font-size: 1.6rem; }
        .wa-float { bottom: max(16px, env(safe-area-inset-bottom)); }
        .footer { padding-bottom: 90px; }
        .nav-mobile { justify-content: flex-start; }
    }

    /* Portada editorial: identidad cofrade y producto, sin recursos externos. */
    .hero { background: #230c15; }
    .hero-overlay { background: linear-gradient(105deg, rgba(28,9,17,.97) 5%, rgba(49,13,30,.94) 48%, rgba(58,16,37,.78)); }
    .hero-pattern { animation: none; opacity: .3; }
    .hero-content { padding-top: 138px; padding-bottom: 70px; gap: 56px; }
    .hero h1 { font-size: clamp(2.8rem, 4.4vw, 4rem); line-height: 1.08; letter-spacing: -.035em; }
    .hero h1 .hero-category { display: block; font: 500 .82rem/1.5 var(--font-body); letter-spacing: .045em; color: #e7d7de; margin-bottom: 20px; }
    .hero h1 em { background: none; -webkit-text-fill-color: currentColor; color: #eed59b; }
    .hero-badge { background: transparent; border-color: #796044; color: #f2dfb3; font-size: .76rem; margin-bottom: 22px; }
    .hero-desc { font-size: 1.08rem; line-height: 1.75; }
    .hero-actions { gap: 12px; }
    .hero-actions .btn-hero { padding: 16px 20px; font-size: .91rem; border-radius: 7px; }
    .hero-stats { border-color: #715141; }
    .hero-stat-value { color: #eed59b; }
    .hero-visual { padding: 20px 0 0; }
    .hero-mockup { border: 1px solid #d5bd92; border-radius: 14px; box-shadow: 0 32px 80px #14060c80, 0 0 0 9px #ffffff06; }
    .mockup-bar { background: #ece6dc; height: 40px; }
    .mockup-dot { width: 7px; height: 7px; }
    .mockup-address { margin-left: 10px; font-size: .65rem; color: #61534b; }
    .mockup-screen { padding: 26px; background: #fbf8f1; }
    .preview-heading > strong { font-size: 1.9rem; }
    .mockup-stat-box { border: 1px solid #ece4d8; box-shadow: none; }
    .preview-progress { text-align: left; padding: 16px; border: 1px solid #e7ddce; border-radius: 8px; background: #f3eee4; }
    .preview-progress > div:first-child { display: flex; justify-content: space-between; gap: 8px; font-size: .72rem; }
    .preview-progress strong { color: #32654c; }
    .preview-progress-track { height: 6px; margin: 12px 0 7px; background: #ded6c8; border-radius: 8px; overflow: hidden; }
    .preview-progress-track span { display: block; width: 90%; height: 100%; background: #427459; border-radius: inherit; }
    .preview-progress small { font-size: .64rem; color: #65584e; }
    .product-caption { display: flex; align-items: center; gap: 13px; padding: 16px 20px; margin: -2px 18px 0; position: relative; background: #ead7ae; border-radius: 0 0 12px 12px; color: #351724; text-align: left; }
    .product-caption > span { font-size: 1.7rem; }
    .product-caption strong, .product-caption p > span { display: block; }
    .product-caption strong { font-size: .88rem; }
    .product-caption p > span { font-size: .72rem; margin-top: 3px; }
    .hero-visual-note { font-size: .72rem; }
    /* Contenido inicial visible desde la primera pintura, sin esperar al observador. */
    .reveal-ready .hero .reveal { opacity: 1; transform: none; }
    .needs-strip { background: #fffdf8; border-bottom: 1px solid #e4d9c8; }
    .needs-inner { display: grid; grid-template-columns: 1.05fr repeat(3, 1fr); align-items: stretch; }
    .needs-inner > p { padding: 28px 20px 28px 0; font-size: .95rem; line-height: 1.5; color: #64574d; }
    .needs-inner > p strong { color: #351724; }
    .needs-inner a { padding: 28px 20px; border-left: 1px solid #e4d9c8; font-weight: 600; font-size: .91rem; color: #351724; transition: background .2s; }
    .needs-inner a:hover { background: #f3ecdf; }
    .needs-inner a span { display: block; color: #77664c; font-size: .66rem; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 9px; }
    .needs-inner a b { float: right; color: #86622a; }
    .problema { background: #f7f2e9; }
    .problema-card { border: 1px solid #e4d9c8; border-radius: 12px; box-shadow: none; }
    .features { background: #fffdf9; }
    .feature-card { border-radius: 12px; box-shadow: none; }
    .feature-card:hover { border-color: #c8ad76; }
    .migration-guide { background: #30202a; color: #f4eae0; padding: 40px 0; }
    .migration-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 32px; align-items: center; }
    .migration-mark { display: grid; gap: 12px; text-align: center; border: 1px solid #80654c; border-radius: 10px; padding: 20px; font-size: .84rem; color: #e9ce96; }
    .migration-mark span { font-size: 1.4rem; }
    .migration-guide .section-label { color: #e9ce96; margin-bottom: 9px; }
    .migration-guide h2 { font: 600 clamp(1.5rem, 2.4vw, 2rem)/1.2 var(--font-display); margin-bottom: 12px; }
    .migration-guide h2 + p { font-size: .94rem; line-height: 1.65; max-width: 610px; color: #dfd0d7; }
    .migration-link { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border: 1px solid #b89a68; border-radius: 6px; color: #f3dba9; font-size: .88rem; }
    .migration-link:hover { background: #49313c; }
    .cta-section { background: radial-gradient(ellipse at top right, #683246, transparent 65%), #290e1b; }
    .cta-section h2 { max-width: 760px; margin-left: auto; margin-right: auto; text-wrap: balance; }
    @media (max-width: 1024px) {
        .hero-content { padding-top: 125px; gap: 28px; }
        .hero-visual { width: min(100%, 520px); margin: auto; }
        .needs-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
        .needs-inner > p { grid-column: 1 / -1; padding: 18px 0; text-align: center; }
        .needs-inner > p br { display: none; }
        .needs-inner a { border-top: 1px solid #e4d9c8; padding: 20px 14px; }
        .needs-inner a:last-child { border-right: 1px solid #e4d9c8; }
        .migration-inner { grid-template-columns: auto minmax(0, 1fr); }
        .migration-link { grid-column: 2; justify-self: start; }
    }
    @media (max-width: 600px) {
        .hero-content { padding-top: 108px; padding-bottom: 38px; }
        .hero h1 { font-size: clamp(2.35rem, 9.3vw, 3.4rem); }
        .hero h1 .hero-category { font-size: .73rem; letter-spacing: .015em; margin-bottom: 18px; }
        .hero-badge { font-size: .68rem; margin-bottom: 18px; }
        .hero-desc { font-size: 1rem; line-height: 1.65; }
        .hero-visual { padding-top: 10px; }
        .mockup-screen { padding: 18px 14px; }
        .mockup-address { font-size: .55rem; margin-left: 4px; }
        .preview-heading > strong { font-size: 1.6rem; }
        .product-caption { margin-left: 8px; margin-right: 8px; padding: 13px; }
        .needs-inner { grid-template-columns: minmax(0, 1fr); }
        .needs-inner > p { text-align: left; }
        .needs-inner a, .needs-inner a:last-child { border-left: 0; border-right: 0; padding: 17px 0; }
        .needs-inner a span { margin-bottom: 5px; }
        .migration-guide { padding: 32px 0; }
        .migration-inner { grid-template-columns: minmax(0, 1fr); gap: 20px; }
        .migration-mark { display: flex; align-items: center; justify-content: center; justify-self: start; padding: 10px 16px; }
        .migration-link { grid-column: auto; width: 100%; justify-content: space-between; }
    }

    /* Las tres soluciones públicas tienen rutas propias y contenido específico. */
    .solutions-overview { padding: 76px 0; background: #FBF8F1; border-bottom: 1px solid #e4d9c8; }
    .solutions-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
    .solution-card { --solution-accent: #713657; display: flex; flex-direction: column; padding: 29px; border: 1px solid #dfd3cc; border-radius: 12px; background: #f4ebf0; transition: transform .2s ease, box-shadow .2s ease; }
    .solution-card-crew { --solution-accent: #295449; background: #e8eeea; }
    .solution-card-members { --solution-accent: #8b4e24; background: #f6ebdd; }
    .solution-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px #30251e0c; }
    .solution-card-top { display: flex; align-items: center; gap: 11px; color: var(--solution-accent); font-size: .65rem; margin-bottom: 26px; }
    .solution-card-top .cofrade-icon { width: 26px; height: 26px; flex-shrink: 0; }
    .solution-card-top b { margin-left: auto; font-size: 1.25rem; }
    .solution-card h3 { font-family: var(--font-display); font-size: 2rem; color: var(--solution-accent); margin-bottom: 15px; }
    .solution-card p { color: #57534E; font-size: .93rem; line-height: 1.8; flex: 1; }
    .solution-card-tags { font-size: .69rem; color: var(--solution-accent); margin-top: 23px; }
    .solution-card-link { display: block; border-top: 1px solid #c8bbae66; padding-top: 17px; margin-top: 17px; font-size: .79rem; font-weight: 600; color: var(--solution-accent); }
    @media (max-width: 800px) { .solutions-cards { grid-template-columns: minmax(0, 1fr); gap: 16px; } .solutions-overview { padding: 53px 0; } .solution-card { padding: 27px; } .solution-card-top { margin-bottom: 19px; } }

    @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;
        }
    }
