/* ==========================================================================
   COOPERATIVA MULTIACTIVA BICENTENARIO — Premium Design System v3.0
   Inspired by Coomeva, Bolivariana.coop, and modern fintech aesthetics.
   Complete, self-contained CSS — No external frameworks.
   ========================================================================== */

/* ═══════════════════════════════════════════════════════════════════════════
   §0. FONT IMPORTS
   ═══════════════════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ═══════════════════════════════════════════════════════════════════════════
   §1. DESIGN TOKENS — CSS Custom Properties
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
    /* ── Refined Color Palette (Stitch / Bolivariana) ──────────────────── */
    --primary-h: 147;
    --primary-s: 81%;
    --primary-l: 40%;
    --color-primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    --color-primary-light: hsl(var(--primary-h), 62%, 50%);
    --color-primary-dark: hsl(var(--primary-h), 70%, 26%);
    --color-primary-soft: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.08);
    --color-primary-glow: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.25);

    --secondary-h: 233;
    --secondary-s: 47%;
    --secondary-l: 34%;
    --color-secondary: hsl(var(--secondary-h), var(--secondary-s), var(--secondary-l));
    --color-secondary-light: hsl(var(--secondary-h), 50%, 45%);
    --color-secondary-dark: hsl(var(--secondary-h), 60%, 20%);
    --color-secondary-soft: hsla(var(--secondary-h), var(--secondary-s), var(--secondary-l), 0.08);

    --accent-h: 24;
    --accent-s: 89%;
    --accent-l: 54%;
    --color-accent: hsl(var(--accent-h), var(--accent-s), var(--accent-l));
    --color-accent-dark: hsl(var(--accent-h), 90%, 42%);
    --color-accent-soft: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.12);
    --color-accent-glow: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.35);

    /* Cold Luxury & High-Contrast Design System (Anti-Slop / coop-design-system-guia.md) */
    --color-bg-body: #fafafa; /* Blanco tiza */
    --color-bg-light: #f4f4f5; /* Gris espacial muy claro */
    --color-bg-alt: #e4e4e7;
    --color-bg-dark: #09090b; /* Fondo oscuro espacial */
    --color-bg-card: #ffffff;
    --color-border: rgba(0, 0, 0, 0.08); /* Hairlines de 1px */
    --color-border-light: rgba(0, 0, 0, 0.04);

    --color-text-dark: #09090b; /* Negro absoluto */
    --color-text-body: #27272a; /* Gris muy oscuro */
    --color-text-muted: #71717a; /* Gris medio */
    --color-text-light: #ffffff;
    --color-text-caption: #a1a1aa;

    /* Status Colors */
    --color-success: hsl(152, 60%, 38%);
    --color-warning: hsl(38, 92%, 52%);
    --color-error: hsl(0, 72%, 51%);
    --color-info: hsl(210, 80%, 50%);

    /* ── Typography ────────────────────────────────────────────────────── */
    --font-heading: 'Poppins', 'Outfit', system-ui, -apple-system, sans-serif;
    --font-body: 'Poppins', 'Geist', system-ui, -apple-system, sans-serif;

    --fs-display: clamp(2.8rem, 5vw + 1rem, 4.5rem);
    --fs-h1: clamp(2.2rem, 3.5vw + 0.5rem, 3.5rem);
    --fs-h2: clamp(1.75rem, 2.5vw + 0.5rem, 2.5rem);
    --fs-h3: clamp(1.2rem, 1.5vw + 0.3rem, 1.5rem);
    --fs-h4: clamp(1rem, 1.2vw + 0.2rem, 1.25rem);
    --fs-body: clamp(0.925rem, 0.9vw + 0.15rem, 1.05rem);
    --fs-small: clamp(0.8rem, 0.75vw + 0.12rem, 0.88rem);
    --fs-caption: clamp(0.7rem, 0.65vw + 0.1rem, 0.78rem);

    /* ── Shadows & Elevation System ────────────────────────────────────── */
    --shadow-xs: 0 1px 2px hsla(220, 40%, 10%, 0.04);
    --shadow-sm: 0 2px 8px hsla(220, 40%, 10%, 0.05), 0 1px 3px hsla(220, 40%, 10%, 0.04);
    --shadow-md: 0 4px 16px hsla(220, 40%, 10%, 0.07), 0 2px 6px hsla(220, 40%, 10%, 0.04);
    --shadow-lg: 0 12px 40px hsla(220, 40%, 10%, 0.10), 0 4px 12px hsla(220, 40%, 10%, 0.05);
    --shadow-xl: 0 20px 60px hsla(220, 40%, 10%, 0.14), 0 8px 24px hsla(220, 40%, 10%, 0.06);
    --shadow-hover: 0 16px 48px hsla(220, 40%, 10%, 0.12), 0 6px 18px hsla(220, 40%, 10%, 0.06);
    --shadow-active: 0 2px 8px hsla(220, 40%, 10%, 0.08);
    --shadow-accent: 0 8px 30px var(--color-accent-glow);
    --shadow-primary: 0 8px 30px var(--color-primary-glow);
    --shadow-inner: inset 0 2px 4px hsla(220, 40%, 10%, 0.06);

    /* ── Border Radii ─────────────────────────────────────────────────── */
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
    --radius-input: 12px;

    /* ── Transitions & Easing ──────────────────────────────────────────── */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-in-out-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-fast: 0.2s var(--ease-in-out-smooth);
    --transition-normal: 0.35s var(--ease-out-expo);
    --transition-slow: 0.6s var(--ease-out-expo);
    --transition-bounce: 0.5s var(--ease-spring);

    /* ── Spacing Scale ─────────────────────────────────────────────────── */
    --space-xs: clamp(4px, 0.5vw, 8px);
    --space-sm: clamp(8px, 1vw, 12px);
    --space-md: clamp(16px, 2vw, 24px);
    --space-lg: clamp(32px, 4vw, 48px);
    --space-xl: clamp(48px, 6vw, 80px);
    --space-2xl: clamp(64px, 8vw, 120px);
    --space-section: clamp(60px, 8vw, 120px);

    /* ── Z-index Scale ────────────────────────────────────────────────── */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 500;
    --z-modal: 1000;
    --z-nav: 1100;
    --z-toast: 1200;
}

/* ═══════════════════════════════════════════════════════════════════════════
   §2. KEYFRAME ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Reveal / Entry Animations ─────────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Hero Decorative Animations ───────────────────────────────────────── */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-18px) rotate(2deg); }
    50% { transform: translateY(-8px) rotate(-1deg); }
    75% { transform: translateY(-22px) rotate(1deg); }
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-14px) scale(1.03); }
}

@keyframes breathe {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.08); opacity: 0.9; }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes meshMove {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(60px, -40px); }
    50% { transform: translate(20px, -80px); }
    75% { transform: translate(-40px, -30px); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-50px, 30px); }
    50% { transform: translate(-30px, 60px); }
    75% { transform: translate(40px, 20px); }
}

/* ── CTA & Button Animations ──────────────────────────────────────────── */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 var(--color-accent-glow); }
    70% { box-shadow: 0 0 0 14px hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0); }
    100% { box-shadow: 0 0 0 0 hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0); }
}

@keyframes pulsePrimary {
    0% { box-shadow: 0 0 0 0 var(--color-primary-glow); }
    70% { box-shadow: 0 0 0 12px hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0); }
    100% { box-shadow: 0 0 0 0 hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0); }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ── Border Glow / Pulsing ────────────────────────────────────────────── */
@keyframes borderPulse {
    0%, 100% {
        border-color: var(--color-primary);
        box-shadow: 0 0 12px var(--color-primary-glow);
    }
    50% {
        border-color: var(--color-accent);
        box-shadow: 0 0 20px var(--color-accent-glow);
    }
}

/* ── Typewriter ───────────────────────────────────────────────────────── */
@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--color-accent); }
}

/* ── Skeleton Loading ─────────────────────────────────────────────────── */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ── Counter / Number Pop ──────────────────────────────────────────────── */
@keyframes countPop {
    0% { transform: scale(0.8); opacity: 0; }
    60% { transform: scale(1.08); }
    100% { transform: scale(1); opacity: 1; }
}

/* ── Page Transition ──────────────────────────────────────────────────── */
@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bodyFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ── Progress Bar ─────────────────────────────────────────────────────── */
@keyframes progressFill {
    from { width: 0%; }
    to { width: var(--progress, 50%); }
}

/* ── Chevron Rotation ─────────────────────────────────────────────────── */
@keyframes rotateChevron {
    from { transform: rotate(0deg); }
    to { transform: rotate(180deg); }
}

/* ── Glow Ring ────────────────────────────────────────────────────────── */
@keyframes glowRing {
    0%, 100% { box-shadow: 0 0 6px var(--color-primary-glow), inset 0 0 4px var(--color-primary-glow); }
    50% { box-shadow: 0 0 18px var(--color-primary-glow), inset 0 0 8px var(--color-primary-glow); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   §2.1. AURORA UI BACKGROUND BLOBS
   ═══════════════════════════════════════════════════════════════════════════ */
.aurora-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    mix-blend-mode: multiply;
    opacity: 0.6;
    will-change: transform;
}

/* For dark or colored backgrounds */
.hero .aurora-blob,
.section--simulator .aurora-blob {
    mix-blend-mode: screen;
    opacity: 0.35;
}

.aurora-blob--1 {
    top: -10%;
    left: -10%;
    width: clamp(300px, 40vw, 600px);
    height: clamp(300px, 40vw, 600px);
    background: radial-gradient(circle, hsla(156, 100%, 19%, 0.3) 0%, transparent 70%);
    animation: auroraFloat1 25s infinite alternate ease-in-out;
}

.aurora-blob--2 {
    bottom: -15%;
    right: -5%;
    width: clamp(250px, 35vw, 500px);
    height: clamp(250px, 35vw, 500px);
    background: radial-gradient(circle, hsla(24, 89%, 54%, 0.2) 0%, transparent 70%);
    animation: auroraFloat2 20s infinite alternate-reverse ease-in-out;
}

.aurora-blob--3 {
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(350px, 45vw, 700px);
    height: clamp(350px, 45vw, 700px);
    background: radial-gradient(circle, hsla(220, 60%, 25%, 0.25) 0%, transparent 70%);
    animation: auroraFloat3 30s infinite alternate ease-in-out;
}

@keyframes auroraFloat1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, 40px) scale(1.1); }
    100% { transform: translate(-30px, 80px) scale(0.9); }
}

@keyframes auroraFloat2 {
    0% { transform: translate(0, 0) scale(0.95); }
    50% { transform: translate(-80px, -30px) scale(1.15); }
    100% { transform: translate(40px, -60px) scale(1); }
}

@keyframes auroraFloat3 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -90px) scale(0.85); }
    100% { transform: translate(-50px, 30px) scale(1.05); }
}


/* ═══════════════════════════════════════════════════════════════════════════
   §3. SCROLL-TRIGGERED ANIMATION CLASSES (JS toggles .is-visible)
   ═══════════════════════════════════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
    will-change: opacity, transform;
}

.reveal-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
    will-change: opacity, transform;
}

.reveal-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-spring);
    will-change: opacity, transform;
}

.reveal-scale.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Staggered Card Entry – each child delays by 0.1s via CSS */
.stagger-grid > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
    will-change: opacity, transform;
}

.stagger-grid.is-visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-grid.is-visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-grid.is-visible > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-grid.is-visible > *:nth-child(4) { transition-delay: 0.3s; }
.stagger-grid.is-visible > *:nth-child(5) { transition-delay: 0.4s; }
.stagger-grid.is-visible > *:nth-child(6) { transition-delay: 0.5s; }
.stagger-grid.is-visible > *:nth-child(7) { transition-delay: 0.6s; }
.stagger-grid.is-visible > *:nth-child(8) { transition-delay: 0.7s; }

.stagger-grid.is-visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════════════════
   §4. GLOBAL RESET & BASE STYLES
   ═══════════════════════════════════════════════════════════════════════════ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-body);
    color: var(--color-text-body);
    line-height: 1.7;
    overflow-x: hidden;
    animation: bodyFadeIn 0.6s var(--ease-out-expo) both;
}

body.page-leaving {
    animation: none !important;
    opacity: 0 !important;
    transition: opacity 0.3s var(--ease-in-out-smooth) !important;
}


/* Fluid Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-secondary);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

h1 { font-size: var(--fs-h1); line-height: 1.1; font-weight: 800; }
h2 { font-size: var(--fs-h2); line-height: 1.2; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p {
    font-size: var(--fs-body);
    max-width: 65ch;
    color: var(--color-text-body);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
}

::selection {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

/* Focus Ring — Accessible */
:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-xs);
}

/* ═══════════════════════════════════════════════════════════════════════════
   §5. LAYOUT — Containers & Sections
   ═══════════════════════════════════════════════════════════════════════════ */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 32px);
}

.section {
    padding: var(--space-section) 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: var(--fs-h2);
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
    letter-spacing: -0.02em;
    color: var(--color-secondary);
}

.section-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    margin: 16px auto 0;
    border-radius: var(--radius-full);
}

.section-subtitle {
    text-align: center;
    font-size: var(--fs-body);
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto clamp(36px, 5vw, 56px);
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════════════════
   §6. COMPONENTS — Buttons
   ═══════════════════════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--fs-small);
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: all var(--transition-normal);
    gap: 10px;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    min-height: 48px;
    text-transform: none;
    isolation: isolate;
}

/* Ripple Effect */
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, hsla(0, 0%, 100%, 0.35) 0%, transparent 60%);
    transform: scale(0);
    opacity: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
}

.btn:active::after {
    animation: ripple 0.5s ease-out forwards;
}

.btn > * {
    position: relative;
    z-index: 1;
}

/* Primary */
.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-text-light);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    transform: translateY(-3px);
    box-shadow: var(--shadow-primary);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-active);
}

/* Secondary */
.btn-secondary {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
    color: var(--color-text-light);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--color-secondary-light) 0%, var(--color-secondary) 100%);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

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

/* Accent — with pulse */
.btn-accent {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: var(--color-secondary-dark);
    box-shadow: var(--shadow-accent);
    animation: pulse 2.5s infinite;
}

.btn-accent:hover {
    background: linear-gradient(135deg, hsl(var(--accent-h), 95%, 58%) 0%, var(--color-accent) 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 36px var(--color-accent-glow);
    animation: none;
}

.btn-accent:active {
    transform: translateY(-1px);
    animation: none;
}

/* Outline */
.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-primary);
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   §7. COMPONENTS — Glass Card
   ═══════════════════════════════════════════════════════════════════════════ */
.glass-card {
    background: hsla(0, 0%, 100%, 0.55);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid hsla(0, 0%, 100%, 0.45);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-md), inset 0 1px 0 hsla(0, 0%, 100%, 0.5);
    transition: all var(--transition-normal);
}

.glass-card:hover {
    box-shadow: var(--shadow-hover), inset 0 1px 0 hsla(0, 0%, 100%, 0.6);
    transform: translateY(-4px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   §8. SKELETON LOADING PLACEHOLDERS
   ═══════════════════════════════════════════════════════════════════════════ */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--color-bg-alt) 25%,
        var(--color-bg-light) 50%,
        var(--color-bg-alt) 75%
    );
    background-size: 400% 100%;
    animation: shimmer 1.6s ease infinite;
    border-radius: var(--radius-sm);
    color: transparent !important;
    pointer-events: none;
    user-select: none;
}

.skeleton-text {
    height: 1em;
    width: 80%;
    margin-bottom: 0.6em;
}

.skeleton-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.skeleton-card {
    height: 220px;
    border-radius: var(--radius-md);
}

/* ═══════════════════════════════════════════════════════════════════════════
   §9. NAVIGATION — Header & Navbar
   ═══════════════════════════════════════════════════════════════════════════ */
.header {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    max-width: 1200px;
    margin: 0 auto;
    z-index: var(--z-nav);
    transition: all 0.4s var(--ease-out-expo);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

/* Scrolled state: frosted glass capsule */
.header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    padding: 0 24px;
    transition: height 0.4s var(--ease-out-expo);
}

.header.scrolled .navbar {
    height: 60px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--color-secondary);
    transition: all var(--transition-normal);
}

.logo:hover {
    filter: drop-shadow(0 0 8px var(--color-primary-glow));
}

.logo span {
    background: linear-gradient(135deg, var(--color-primary), hsl(var(--primary-h), 50%, 45%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: clamp(20px, 2.5vw, 36px);
    align-items: center;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-secondary);
    position: relative;
    padding: 4px 0;
    transition: color var(--transition-fast);
}

/* Animated underline indicator */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2.5px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: var(--radius-full);
    transition: width 0.4s var(--ease-out-expo);
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--color-primary);
    font-weight: 600;
}

/* Nav Action Buttons */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    color: var(--color-secondary);
    cursor: pointer;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.menu-toggle:hover {
    background-color: var(--color-primary-soft);
    color: var(--color-primary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   §10. HERO SECTION — Full Viewport, Animated Gradient Mesh
   ═══════════════════════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    padding: clamp(80px, 10vh, 120px) 0 clamp(80px, 10vh, 120px);
    background: linear-gradient(135deg,
        hsl(var(--secondary-h), 65%, 22%) 0%,
        hsl(var(--secondary-h), 55%, 14%) 40%,
        hsl(var(--secondary-h), 60%, 10%) 100%);
    color: var(--color-text-light);
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Animated Gradient Mesh — Multiple radial gradients */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 20%,
            hsla(var(--primary-h), 70%, 35%, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 20% 80%,
            hsla(var(--accent-h), 80%, 50%, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 50% 50% at 85% 75%,
            hsla(var(--primary-h), 60%, 40%, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
    animation: gradientShift 12s ease infinite;
    background-size: 200% 200%;
}

/* Floating Decorative Orbs */
.hero::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle,
        hsla(var(--primary-h), 70%, 40%, 0.18) 0%,
        transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    animation: orbFloat1 18s ease-in-out infinite;
}

/* Hero Grid */
.hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: fadeInLeft 1s var(--ease-out-expo) 0.2s both;
}

.hero-visual {
    animation: fadeInRight 1s var(--ease-out-expo) 0.5s both;
}

/* Hero Title — Gradient text effect */
.hero-title {
    font-size: var(--fs-display);
    color: var(--color-text-light);
    line-height: 1.08;
    margin-bottom: clamp(20px, 3vw, 32px);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.hero-title span {
    background: linear-gradient(135deg, var(--color-accent), hsl(var(--accent-h), 95%, 65%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Typewriter variant — add .typewriter class in HTML */
.hero-title .typewriter {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--color-accent);
    animation:
        typewriter 2.5s steps(30, end) 0.8s both,
        blink-caret 0.75s step-end infinite;
}

/* Hero Description */
.hero-desc {
    font-size: clamp(1.05rem, 1.2vw + 0.1rem, 1.25rem);
    margin-bottom: clamp(32px, 4vw, 48px);
    opacity: 0.88;
    max-width: 580px;
    line-height: 1.7;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.5s both;
}

/* Hero CTAs */
.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: clamp(36px, 5vw, 56px);
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.7s both;
}

/* Hero Quick Stats — Glassy Bubbles */
.hero-quick-stats {
    display: flex;
    gap: clamp(16px, 2vw, 24px);
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.9s both;
}

.stat-bubble {
    background: hsla(0, 0%, 100%, 0.06);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid hsla(0, 0%, 100%, 0.12);
    padding: clamp(16px, 2vw, 24px);
    border-radius: var(--radius-md);
    flex: 1;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stat-bubble::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        hsla(0, 0%, 100%, 0.05) 0%,
        transparent 50%);
    pointer-events: none;
}

.stat-bubble:hover {
    background: hsla(0, 0%, 100%, 0.1);
    border-color: hsla(0, 0%, 100%, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px hsla(0, 0%, 0%, 0.2);
}

.stat-bubble-label {
    font-size: var(--fs-caption);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.65;
    margin-bottom: 6px;
    font-weight: 500;
}

.stat-bubble-value {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1.2;
}

/* Counter animation class — JS toggles this */
.stat-bubble-value.counting {
    animation: countPop 0.5s var(--ease-out-back) both;
}

.stat-bubble-sub {
    font-size: var(--fs-caption);
    opacity: 0.5;
    margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   §11. PILLAR / VALUE CARDS
   ═══════════════════════════════════════════════════════════════════════════ */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(16px, 2vw, 24px);
}

.pillar-card {
    background-color: var(--color-bg-card);
    border-radius: var(--radius-md);
    padding: clamp(24px, 3vw, 36px);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    text-align: center;
    border: 1px solid var(--color-border-light);
    position: relative;
    overflow: hidden;
}

/* Gradient border accent on top */
.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.pillar-card:hover::before {
    opacity: 1;
}

/* Animated background glow on hover */
.pillar-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--color-primary-soft) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s var(--ease-out-expo);
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
}

.pillar-card:hover::after {
    transform: translate(-50%, -50%) scale(1.5);
}

.pillar-icon-wrapper {
    width: 68px;
    height: 68px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-primary-soft), hsla(var(--primary-h), 60%, 40%, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--color-primary);
    font-size: 1.5rem;
    transition: all var(--transition-bounce);
    position: relative;
    z-index: 1;
}

.pillar-card:hover .pillar-icon-wrapper {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-text-light);
    transform: scale(1.1) rotate(-3deg);
    box-shadow: var(--shadow-primary);
}

.pillar-card h3 {
    font-size: var(--fs-h4);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.pillar-card p {
    font-size: var(--fs-small);
    color: var(--color-text-muted);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   §12. CREDIT SIMULATOR
   ═══════════════════════════════════════════════════════════════════════════ */
.simulator-box {
    background-color: var(--color-bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border-light);
    overflow: hidden;
    position: relative;
}

.simulator-header {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
    color: var(--color-text-light);
    padding: clamp(28px, 4vw, 40px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Decorative mesh overlay for header */
.simulator-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, hsla(var(--primary-h), 50%, 40%, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, hsla(var(--accent-h), 80%, 50%, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.simulator-header h2 {
    color: var(--color-text-light);
    font-size: var(--fs-h3);
    margin-bottom: 8px;
    position: relative;
}

.simulator-header p {
    opacity: 0.8;
    position: relative;
    font-size: var(--fs-small);
}

.simulator-body {
    padding: clamp(28px, 4vw, 48px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 4vw, 48px);
}

.simulator-controls {
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 3vw, 36px);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.control-label {
    font-weight: 600;
    color: var(--color-secondary);
    font-size: var(--fs-small);
    letter-spacing: 0.01em;
}

.control-value-display {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-primary);
    transition: color var(--transition-fast);
}

/* ── Custom Range Input — Gradient Track & Glowing Thumb ───────────────── */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent)) no-repeat;
    background-size: var(--fill-percent, var(--progress, 50%)) 100%;
    background-color: var(--color-border);
    outline: none;
    cursor: pointer;
    transition: background-size var(--transition-fast);
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    cursor: pointer;
    box-shadow: 0 2px 8px var(--color-primary-glow), 0 0 0 4px hsla(var(--primary-h), 60%, 40%, 0.15);
    transition: all var(--transition-bounce);
    border: 3px solid var(--color-bg-card);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 16px var(--color-primary-glow), 0 0 0 6px hsla(var(--primary-h), 60%, 40%, 0.2);
}

input[type="range"]::-webkit-slider-thumb:active {
    transform: scale(1.1);
    box-shadow: 0 2px 10px var(--color-primary-glow), 0 0 0 8px hsla(var(--primary-h), 60%, 40%, 0.25);
}

input[type="range"]::-moz-range-thumb {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    cursor: pointer;
    box-shadow: 0 2px 8px var(--color-primary-glow);
    border: 3px solid var(--color-bg-card);
    transition: all var(--transition-bounce);
}

input[type="range"]::-moz-range-track {
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--color-border);
}

input[type="range"]::-moz-range-progress {
    height: 8px;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

/* Simulator Results Panel */
.simulator-results {
    background: linear-gradient(135deg, var(--color-primary-soft) 0%, hsla(var(--primary-h), 50%, 40%, 0.06) 100%);
    border-radius: var(--radius-md);
    padding: clamp(24px, 3vw, 36px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid hsla(var(--primary-h), 50%, 40%, 0.1);
    position: relative;
}

/* Pulsing border for prominent result card */
.simulator-results.pulsing {
    animation: borderPulse 3s ease infinite;
}

.results-grid {
    display: grid;
    gap: 24px;
}

.result-item {
    border-bottom: 1px solid hsla(var(--primary-h), 30%, 40%, 0.08);
    padding-bottom: 18px;
}

.result-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.result-label {
    font-size: var(--fs-caption);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}

.result-value {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    color: var(--color-secondary);
    transition: all var(--transition-fast);
}

.result-value.accent {
    color: var(--color-primary);
}

.simulator-info-text {
    font-size: var(--fs-caption);
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 16px;
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════════════
   §13. SERVICES / PRODUCTS GRID
   ═══════════════════════════════════════════════════════════════════════════ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(16px, 2vw, 24px);
}

.service-card {
    background-color: var(--color-bg-card);
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

/* Colored top accent bar */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    transition: height var(--transition-normal);
}

.service-card:nth-child(2n)::before {
    background: linear-gradient(90deg, var(--color-secondary), var(--color-secondary-light));
}

.service-card:nth-child(3n)::before {
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-dark));
}

.service-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}
.service-card:active {
    transform: scale(0.97);
}

.service-card:hover::before {
    height: 5px;
}

.service-card-body {
    padding: clamp(20px, 2.5vw, 28px);
}

.service-icon-box {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--color-primary-soft), hsla(var(--primary-h), 50%, 40%, 0.12));
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 20px;
    transition: all var(--transition-bounce);
}

.service-card:hover .service-icon-box {
    transform: scale(1.1);
    box-shadow: 0 4px 16px var(--color-primary-glow);
}

.service-card:nth-child(2n) .service-icon-box {
    background: linear-gradient(135deg, var(--color-secondary-soft), hsla(var(--secondary-h), 50%, 30%, 0.1));
    color: var(--color-secondary);
}

.service-card:nth-child(2n):hover .service-icon-box {
    box-shadow: 0 4px 16px hsla(var(--secondary-h), 50%, 30%, 0.2);
}

.service-card h3 {
    font-size: var(--fs-h4);
    margin-bottom: 12px;
}

.service-card p {
    font-size: var(--fs-small);
    color: var(--color-text-muted);
    line-height: 1.6;
}

.service-card-footer {
    padding: 16px clamp(20px, 2.5vw, 28px);
    background-color: var(--color-bg-light);
    border-top: 1px solid var(--color-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--fs-small);
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.service-card:hover .service-card-footer {
    background-color: var(--color-primary-soft);
    color: var(--color-primary-dark);
}

/* ═══════════════════════════════════════════════════════════════════════════
   §14. CONVENIOS & BENEFITS
   ═══════════════════════════════════════════════════════════════════════════ */
.tabs-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: clamp(32px, 4vw, 48px);
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 24px;
    border-radius: var(--radius-full);
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: var(--fs-small);
    cursor: pointer;
    transition: all var(--transition-normal);
    color: var(--color-text-muted);
    min-height: 44px;
}

.tab-btn.active,
.tab-btn:hover {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-text-light);
    border-color: transparent;
    box-shadow: var(--shadow-primary);
    transform: translateY(-2px);
}

.convenio-tab-content {
    display: none;
}

.convenio-tab-content.active {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 2vw, 24px);
    animation: fadeInUp 0.5s var(--ease-out-expo) both;
}

.convenio-card {
    background-color: var(--color-bg-card);
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: clamp(20px, 2.5vw, 28px);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.convenio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.convenio-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.convenio-card:active {
    transform: scale(0.97);
}

.convenio-card:hover::before {
    opacity: 1;
}

/* Badge with subtle glow */
.convenio-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    background-color: var(--color-accent-soft);
    color: var(--color-secondary-dark);
    font-weight: 600;
    font-size: var(--fs-caption);
    margin-bottom: 16px;
    letter-spacing: 0.02em;
    box-shadow: 0 0 0 0 var(--color-accent-glow);
    transition: box-shadow var(--transition-normal);
}

.convenio-card:hover .convenio-badge {
    box-shadow: 0 0 12px var(--color-accent-glow);
}

.convenio-card h3 {
    margin-bottom: 8px;
    font-size: var(--fs-h4);
}

.convenio-card p {
    font-size: var(--fs-small);
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════════════
   §15. ABOUT / TRANSPARENCY
   ═══════════════════════════════════════════════════════════════════════════ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 56px);
    align-items: center;
}

.transparency-box {
    margin-top: clamp(40px, 5vw, 64px);
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    padding: clamp(28px, 4vw, 48px);
    box-shadow: var(--shadow-md);
}

.document-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
}

.document-table th,
.document-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--color-border-light);
    font-size: var(--fs-small);
}

.document-table th {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-secondary);
    font-size: var(--fs-caption);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.document-table tr {
    transition: background-color var(--transition-fast);
}

.document-table tr:hover {
    background-color: var(--color-bg-light);
}

.download-link {
    color: var(--color-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-small);
    transition: all var(--transition-fast);
}

.download-link:hover {
    color: var(--color-primary-light);
    gap: 12px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   §16. FAQ ACCORDION
   ═══════════════════════════════════════════════════════════════════════════ */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: clamp(40px, 5vw, 64px);
}

.faq-item {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.faq-item:hover {
    border-color: var(--color-primary-soft);
}

.faq-item.active {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-soft);
}

.faq-question {
    padding: 20px 24px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--fs-body);
    color: var(--color-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    min-height: 56px;
    gap: 16px;
}

.faq-question:hover {
    background-color: var(--color-bg-light);
}

/* Chevron indicator */
.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--color-primary);
    transition: transform 0.4s var(--ease-out-expo);
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--color-primary-soft);
}

.faq-item.active .faq-question::after {
    content: '−';
    transform: rotate(180deg);
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--color-bg-light);
}

.faq-answer-content {
    padding: 24px;
    font-size: var(--fs-small);
    color: var(--color-text-muted);
    line-height: 1.7;
    border-top: 1px solid var(--color-border-light);
}

.faq-item.active .faq-answer {
    max-height: 400px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   §17. FORMS — Contact, Quote, PQRSF
   ═══════════════════════════════════════════════════════════════════════════ */
.form-card {
    background-color: var(--color-bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-light);
    padding: clamp(28px, 4vw, 48px);
    box-shadow: var(--shadow-md);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-label {
    font-weight: 600;
    font-size: var(--fs-small);
    color: var(--color-secondary);
    letter-spacing: 0.01em;
}

.form-input,
.form-select,
.form-textarea {
    padding: 14px 18px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-input);
    font-family: inherit;
    font-size: var(--fs-small);
    background-color: var(--color-bg-body);
    color: var(--color-text-dark);
    transition: all var(--transition-normal);
    min-height: 48px;
}

/* Animated focus border */
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--color-primary);
    background-color: var(--color-bg-card);
    box-shadow: 0 0 0 4px var(--color-primary-soft);
}

.form-input::placeholder {
    color: var(--color-text-caption);
}

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

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
}

.form-checkbox input[type="checkbox"] {
    margin-top: 4px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
}

.form-checkbox label {
    font-size: var(--fs-small);
    color: var(--color-text-muted);
    cursor: pointer;
    line-height: 1.5;
}

/* Status Messages */
.form-status {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-weight: 500;
    font-size: var(--fs-small);
    display: none;
    animation: fadeInDown 0.4s var(--ease-out-expo) both;
}

.form-status.success {
    background-color: hsl(152, 60%, 95%);
    color: hsl(152, 60%, 20%);
    border: 1px solid hsl(152, 60%, 82%);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-status.error {
    background-color: hsl(0, 80%, 97%);
    color: hsl(0, 80%, 28%);
    border: 1px solid hsl(0, 80%, 88%);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   §18. DIRECTOR / QUICK CONTACT CARD
   ═══════════════════════════════════════════════════════════════════════════ */
.director-card {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
    color: var(--color-text-light);
    border-radius: var(--radius-md);
    padding: clamp(24px, 3vw, 36px);
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.director-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 50%, hsla(var(--primary-h), 50%, 40%, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, hsla(var(--accent-h), 70%, 50%, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

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

.director-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    border: 3px solid hsla(0, 0%, 100%, 0.2);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.director-info {
    position: relative;
    z-index: 1;
}

.director-info h3,
.director-info h4 {
    color: var(--color-text-light) !important;
    font-size: 1.3rem;
    margin-bottom: 4px;
}
.director-info p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.9rem;
    line-height: 1.5;
}

.director-info .role {
    color: var(--color-accent);
    font-weight: 600;
    font-size: var(--fs-small);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.director-contact-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-director-action {
    background-color: hsla(0, 0%, 100%, 0.12);
    color: var(--color-text-light);
    padding: 8px 16px;
    font-size: var(--fs-caption);
    border-radius: var(--radius-sm);
    font-weight: 600;
    border: 1px solid hsla(0, 0%, 100%, 0.1);
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
}

.btn-director-action:hover {
    background-color: var(--color-accent);
    color: var(--color-secondary-dark);
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   §19. FOOTER — Dark Gradient with Pattern
   ═══════════════════════════════════════════════════════════════════════════ */
.footer {
    background: linear-gradient(180deg,
        hsl(var(--secondary-h), 55%, 12%) 0%,
        hsl(var(--secondary-h), 60%, 8%) 100%);
    color: var(--color-text-light);
    padding: clamp(60px, 8vw, 100px) 0 clamp(24px, 3vw, 36px);
    position: relative;
    overflow: hidden;
}

/* Subtle dot pattern overlay */
.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(
        hsla(0, 0%, 100%, 0.03) 1px,
        transparent 1px
    );
    background-size: 24px 24px;
    pointer-events: none;
}

/* Decorative top wave separator */
.footer::after {
    display: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 0.7fr 1fr;
    gap: clamp(32px, 4vw, 56px);
    margin-bottom: clamp(40px, 5vw, 64px);
    position: relative;
    z-index: 1;
}

.footer-brand h3 {
    color: var(--color-text-light);
    font-size: var(--fs-h3);
    margin-bottom: 16px;
}

.footer-brand p {
    color: #ffffff;
    opacity: 1;
    margin-bottom: 24px;
    max-width: 340px;
    font-size: var(--fs-small);
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--color-accent);
    font-size: var(--fs-body);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    opacity: 0.65;
    font-size: var(--fs-small);
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-accent);
    transform: translateX(4px);
}

.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    opacity: 0.75;
    font-size: var(--fs-small);
    line-height: 1.5;
}

.footer-bottom {
    border-top: 1px solid hsla(0, 0%, 100%, 0.08);
    padding-top: clamp(24px, 3vw, 36px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: var(--fs-caption);
    opacity: 0.5;
    position: relative;
    z-index: 1;
}

.footer-bottom a {
    transition: all var(--transition-fast);
}

.footer-bottom a:hover {
    opacity: 1;
    color: var(--color-accent);
}

/* ═══════════════════════════════════════════════════════════════════════════
   §20. STATUS BADGES — With Glow Effects
   ═══════════════════════════════════════════════════════════════════════════ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: var(--fs-caption);
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: box-shadow var(--transition-fast);
}

.badge-pending {
    background-color: hsl(38, 90%, 92%);
    color: hsl(38, 90%, 28%);
    box-shadow: 0 0 0 0 hsla(38, 90%, 52%, 0);
}

.badge-pending:hover {
    box-shadow: 0 0 10px hsla(38, 90%, 52%, 0.25);
}

.badge-contacted {
    background-color: hsl(210, 75%, 92%);
    color: hsl(210, 75%, 28%);
}

.badge-contacted:hover {
    box-shadow: 0 0 10px hsla(210, 75%, 50%, 0.2);
}

.badge-approved {
    background-color: hsl(152, 60%, 92%);
    color: hsl(152, 60%, 20%);
}

.badge-approved:hover {
    box-shadow: 0 0 10px hsla(152, 60%, 38%, 0.25);
}

.badge-rejected {
    background-color: hsl(0, 72%, 95%);
    color: hsl(0, 72%, 32%);
}

.badge-rejected:hover {
    box-shadow: 0 0 10px hsla(0, 72%, 51%, 0.2);
}

/* ═══════════════════════════════════════════════════════════════════════════
   §21. ADMIN PANEL & DASHBOARD
   ═══════════════════════════════════════════════════════════════════════════ */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background-color: var(--color-bg-light);
}

.admin-sidebar {
    width: 270px;
    background: linear-gradient(180deg, var(--color-secondary-dark) 0%, hsl(var(--secondary-h), 65%, 8%) 100%);
    color: var(--color-text-light);
    display: flex;
    flex-direction: column;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

/* Subtle gradient mesh in sidebar */
.admin-sidebar::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: radial-gradient(ellipse at 30% 100%, hsla(var(--primary-h), 50%, 30%, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.admin-logo {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 40px;
    color: var(--color-text-light);
    border-bottom: 1px solid hsla(0, 0%, 100%, 0.08);
    padding-bottom: 20px;
    position: relative;
    z-index: 1;
}

.admin-logo span {
    color: var(--color-accent);
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: hsla(0, 0%, 100%, 0.6);
    font-weight: 500;
    font-size: var(--fs-small);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

/* Hover indicator line */
.admin-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 60%;
    background: var(--color-accent);
    border-radius: 0 3px 3px 0;
    transition: transform 0.3s var(--ease-out-expo);
}

.admin-nav-link:hover,
.admin-nav-link.active {
    color: var(--color-text-light);
    background-color: hsla(0, 0%, 100%, 0.08);
}

.admin-nav-link:hover::before,
.admin-nav-link.active::before {
    transform: translateY(-50%) scaleY(1);
}

.admin-nav-link.active {
    background-color: hsla(0, 0%, 100%, 0.1);
    font-weight: 600;
}

.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.admin-header {
    background-color: var(--color-bg-card);
    height: 70px;
    border-bottom: 1px solid var(--color-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(24px, 3vw, 40px);
    box-shadow: var(--shadow-xs);
}

.admin-content {
    padding: clamp(24px, 3vw, 40px);
    flex: 1;
}

/* ── KPI Dashboard Cards ──────────────────────────────────────────────── */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 36px;
}

.kpi-card {
    background-color: var(--color-bg-card);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

/* Subtle gradient overlay */
.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, var(--color-primary-soft) 100%);
    opacity: 0.4;
    pointer-events: none;
}

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

.kpi-title {
    font-size: var(--fs-caption);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.kpi-value {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 2vw, 2rem);
    font-weight: 800;
    color: var(--color-secondary);
    position: relative;
    z-index: 1;
}

.kpi-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--color-primary-soft), hsla(var(--primary-h), 50%, 40%, 0.12));
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    position: relative;
    z-index: 1;
}

/* ── Admin Data Table ──────────────────────────────────────────────────── */
.admin-table-card {
    background-color: var(--color-bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    overflow: hidden;
    margin-bottom: 36px;
}

.admin-table-header {
    padding: 20px 28px;
    border-bottom: 1px solid var(--color-border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.admin-table th,
.admin-table td {
    padding: 14px 24px;
    text-align: left;
    border-bottom: 1px solid var(--color-border-light);
    font-size: var(--fs-small);
}

.admin-table th {
    background-color: var(--color-bg-light);
    font-weight: 600;
    color: var(--color-secondary);
    font-size: var(--fs-caption);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.admin-table tr {
    transition: background-color var(--transition-fast);
}

.admin-table tbody tr:hover {
    background-color: var(--color-bg-light);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   §22. UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--color-border);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: var(--radius-full);
    animation: progressFill 1.2s var(--ease-out-expo) both;
    width: var(--progress, 50%);
}

/* Visually Hidden (Accessibility) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Number Counter Style */
.counter-value {
    font-family: var(--font-heading);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    transition: all 0.4s var(--ease-out-expo);
}

.counter-value.pop {
    animation: countPop 0.5s var(--ease-out-back) both;
}

/* ═══════════════════════════════════════════════════════════════════════════
   §23. NEW PREMIUM UI COMPONENTS
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Scroll Reveal Animations (JS-triggered via IntersectionObserver) ──── */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
    transition-delay: var(--delay, 0s);
    will-change: opacity, transform;
}
.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── Gradient Text Variants ──────────────────────────────────────────────── */
.gradient-text-dark {
    background: linear-gradient(135deg, var(--color-primary), hsl(var(--primary-h), 50%, 45%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Button Variants ─────────────────────────────────────────────────────── */
.btn-glass {
    background: hsla(0, 0%, 100%, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--color-text-light);
    border: 1px solid hsla(0, 0%, 100%, 0.2);
}
.btn-glass:hover {
    background: hsla(0, 0%, 100%, 0.2);
    border-color: hsla(0, 0%, 100%, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px hsla(0, 0%, 0%, 0.25);
}

.btn-lg {
    padding: 18px 40px;
    font-size: var(--fs-body);
    min-height: 56px;
}
.btn-sm {
    padding: 8px 18px;
    font-size: var(--fs-caption);
    min-height: 38px;
}
.btn-pulse {
    animation: pulse 2.5s infinite;
}
.btn-pulse:hover { animation: none; }

/* Ripple element */
.btn-ripple {
    position: absolute;
    width: 10px;
    height: 10px;
    background: hsla(0, 0%, 100%, 0.4);
    border-radius: 50%;
    transform: scale(0);
    pointer-events: none;
}
.btn-ripple.animate {
    animation: ripple 0.6s ease-out forwards;
}

/* ── Logo Text (Navbar) ──────────────────────────────────────────────────── */
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.logo-name {
    font-size: 1.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary), hsl(var(--primary-h), 50%, 45%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo-tagline {
    font-size: 0.65rem;
    color: var(--color-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    -webkit-text-fill-color: initial;
}
.logo-svg {
    color: var(--color-primary);
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

/* ── Animated Hamburger Icon ─────────────────────────────────────────────── */
.hamburger-line {
    display: block;
    width: 24px;
    height: 2.5px;
    background-color: var(--color-secondary);
    border-radius: 2px;
    transition: all 0.35s var(--ease-out-expo);
}
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    z-index: calc(var(--z-overlay) + 10);
    position: relative;
}
.menu-toggle:hover {
    background-color: var(--color-primary-soft);
}
.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}
.menu-toggle.active .hamburger-line {
    background-color: var(--color-text-light);
}

/* Header Auto-hide */
.header-hidden {
    transform: translateY(-100%);
}

/* Body when menu open */
body.menu-open {
    overflow: hidden;
}

/* ── Hero Decorative Shapes ──────────────────────────────────────────────── */
.hero-bg-shapes {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}
.hero-shape--1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, hsl(var(--primary-h), 70%, 40%) 0%, transparent 70%);
    top: -10%;
    right: -5%;
    animation: orbFloat1 20s ease-in-out infinite;
}
.hero-shape--2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, hsl(var(--accent-h), 80%, 55%) 0%, transparent 70%);
    bottom: -5%;
    left: 10%;
    animation: orbFloat2 18s ease-in-out infinite;
}
.hero-shape--3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, hsl(var(--primary-h), 60%, 50%) 0%, transparent 70%);
    top: 40%;
    left: 35%;
    animation: float 14s ease-in-out infinite;
}
.hero-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(hsla(0, 0%, 100%, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* ── Hero Badge ──────────────────────────────────────────────────────────── */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: hsla(0, 0%, 100%, 0.08);
    border: 1px solid hsla(0, 0%, 100%, 0.12);
    border-radius: var(--radius-full);
    font-size: var(--fs-caption);
    color: hsla(0, 0%, 100%, 0.8);
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
    letter-spacing: 0.04em;
    font-weight: 500;
}
.hero-badge i {
    color: var(--color-accent);
    font-size: 0.85rem;
}

/* ── Hero Wave ────────────────────────────────────────────────────────────── */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 3;
    line-height: 0;
}
.hero-wave svg {
    width: 100%;
    height: auto;
    display: block;
}
:root { --color-bg-warm: var(--color-bg-body); }

/* ── Hero Illustration & SVG Animations ──────────────────────────────────── */
.hero-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
    animation: floatSlow 6s ease-in-out infinite;
}
.hero-svg-pulse {
    animation: breathe 4s ease-in-out infinite;
}
.hero-svg-rotate {
    animation: meshMove 30s linear infinite;
    transform-origin: center;
}
.hero-svg-breathe {
    animation: breathe 5s ease-in-out infinite;
}
@keyframes svgDraw {
    from { stroke-dashoffset: 300; }
    to { stroke-dashoffset: 0; }
}
.hero-svg-draw {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: svgDraw 2s var(--ease-out-expo) 0.5s forwards;
}
@keyframes svgPop {
    0% { r: 0; opacity: 0; }
    70% { r: 8; opacity: 1; }
    100% { r: 6; opacity: 1; }
}
.hero-svg-pop {
    animation: svgPop 0.5s var(--ease-out-back) calc(var(--pop-delay, 0s) + 1s) both;
}

/* ── Stat Bubble Enhanced ────────────────────────────────────────────────── */
.stat-bubble-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: hsla(0, 0%, 100%, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-size: 1rem;
    margin-bottom: 12px;
}
.stat-bubble-data {}

/* ── Quick Access Bar ────────────────────────────────────────────────────── */
.quick-access-bar {
    background-color: var(--color-bg-card);
    padding: 0;
    position: relative;
    z-index: 5;
    box-shadow: var(--shadow-md);
}
.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
.quick-access-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 32px;
    color: var(--color-text-dark);
    transition: all var(--transition-normal);
    border-right: 1px solid var(--color-border-light);
    position: relative;
}
.quick-access-item:last-child {
    border-right: none;
}
.quick-access-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transition: width 0.4s var(--ease-out-expo);
}
.quick-access-item:hover::after {
    width: 100%;
}
.quick-access-item:hover {
    background-color: var(--color-primary-soft);
}
.quick-access-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-primary-soft), hsla(var(--primary-h), 60%, 40%, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: all var(--transition-bounce);
}
.quick-access-item:hover .quick-access-icon {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    transform: scale(1.08);
    box-shadow: var(--shadow-primary);
}
.quick-access-text h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 2px;
}
.quick-access-text p {
    font-size: var(--fs-caption);
    color: var(--color-text-muted);
    margin: 0;
}
.quick-access-arrow {
    margin-left: auto;
    color: var(--color-text-caption);
    font-size: 0.85rem;
    transition: all var(--transition-normal);
}
.quick-access-item:hover .quick-access-arrow {
    color: var(--color-primary);
    transform: translateX(4px);
}

/* ── News Cards ──────────────────────────────────────────────────────────── */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 2vw, 24px);
}
.news-card {
    background-color: var(--color-bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-normal);
}
.news-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-primary-light);
}

.news-card-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}
.news-card:nth-child(2) .news-card-accent {
    background: linear-gradient(90deg, var(--color-secondary), var(--color-secondary-light));
}
.news-card:nth-child(3) .news-card-accent {
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-dark));
}
.news-card-body {
    padding: 24px;
    flex: 1;
}
.news-date {
    font-size: var(--fs-caption);
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}
.news-card-body h3 {
    font-size: var(--fs-h4);
    color: var(--color-secondary);
    margin-bottom: 12px;
    line-height: 1.35;
}
.news-card-body p {
    font-size: var(--fs-small);
    color: var(--color-text-muted);
    line-height: 1.6;
}
.news-card-link {
    padding: 16px 24px;
    border-top: 1px solid var(--color-border-light);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-weight: 600;
    font-size: var(--fs-small);
    transition: all var(--transition-fast);
}
.news-card-link:hover {
    color: var(--color-primary-dark);
    gap: 14px;
    background-color: var(--color-primary-soft);
}

/* ── Bento Grid Showcase ────────────────────────────────────────────────── */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.bento-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    transition: transform var(--transition-bounce), box-shadow var(--transition-normal), border-color var(--transition-fast);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1;
}

.bento-item:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-primary-light);
}

/* Featured Bento Card (Spans 2 columns) */
.bento-item--col-2 {
    grid-column: span 2;
    background: linear-gradient(135deg, hsl(156, 100%, 19%), hsl(220, 60%, 15%));
    border-color: transparent;
    color: var(--color-text-light);
}

.bento-item--col-2 h3,
.bento-item--col-2 p,
.bento-item--col-2 .news-date {
    color: var(--color-text-light) !important;
}

.bento-item--col-2 .news-card-link {
    color: var(--color-accent) !important;
}

.bento-item--col-2::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 80% 20%, hsla(24, 89%, 54%, 0.15) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

/* Metric Bento Card (Highlight metric) */
.bento-item--metric {
    background-color: var(--color-accent);
    color: var(--color-text-light);
    border-color: transparent;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
}

.bento-item--metric h3 {
    color: var(--color-text-light) !important;
    font-size: 1.6rem;
    margin-top: 12px;
}

.bento-item--metric p {
    color: hsla(0, 0%, 100%, 0.9) !important;
    font-size: 0.95rem;
    max-width: 100%;
}

.bento-metric-value {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 4.5vw, 4.5rem);
    font-weight: 900;
    line-height: 1;
    color: var(--color-text-light);
    margin-bottom: 8px;
    text-shadow: 0 4px 10px hsla(24, 90%, 30%, 0.3);
}

.bento-metric-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    opacity: 0.9;
}

/* Stacking for tablet & mobile */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-item--col-2 {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-item--col-2 {
        grid-column: span 1;
    }
}


/* ── CTA Section ─────────────────────────────────────────────────────────── */
.section--cta {
    background-color: var(--color-bg-light);
    border-top: 1px solid var(--color-border);
}
.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.cta-content h2 {
    font-size: var(--fs-h2);
    margin-bottom: 16px;
    line-height: 1.2;
}
.cta-content > p {
    color: var(--color-text-muted);
    margin-bottom: 24px;
    font-size: var(--fs-body);
    line-height: 1.7;
}
.cta-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 32px;
}
.cta-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--fs-small);
    font-weight: 500;
    color: var(--color-text-body);
}
.cta-feature i {
    color: var(--color-primary);
    font-size: 1rem;
}

/* ── Director Card Glow ──────────────────────────────────────────────────── */
.director-card-glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 80% 20%, hsla(var(--primary-h), 60%, 45%, 0.12) 0%, transparent 50%);
    pointer-events: none;
}
.btn-director-action--whatsapp {
    background-color: #25d366 !important;
    border-color: #25d366 !important;
    color: white !important;
}
.btn-director-action--whatsapp:hover {
    background-color: #1ead57 !important;
    border-color: #1ead57 !important;
}

/* ── Simulator Enhancements ──────────────────────────────────────────────── */
.simulator-header-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: hsla(0, 0%, 100%, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-size: 1.5rem;
    margin: 0 auto 16px;
    border: 2px solid hsla(0, 0%, 100%, 0.15);
}
.simulator-cta {
    margin-top: 32px;
}
.simulator-cta .btn { width: 100%; }
.result-item--highlight {
    background: hsla(var(--primary-h), 50%, 40%, 0.06);
    border-radius: var(--radius-sm);
    padding: 18px;
    border: 1px solid hsla(var(--primary-h), 50%, 40%, 0.1);
    margin-bottom: 8px;
}
.result-value--small {
    font-size: clamp(1.2rem, 1.8vw, 1.5rem) !important;
    color: var(--color-secondary);
    font-family: var(--font-heading);
    font-weight: 700;
}
.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: var(--fs-caption);
    color: var(--color-text-muted);
}
.control-label i {
    color: var(--color-primary);
    margin-right: 4px;
}
.result-label i {
    color: var(--color-primary);
    margin-right: 4px;
}
.form-select {
    padding: 14px 18px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-input);
    font-family: inherit;
    font-size: var(--fs-small);
    background-color: var(--color-bg-body);
    color: var(--color-text-dark);
    transition: all var(--transition-normal);
    min-height: 48px;
    cursor: pointer;
}
.form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px var(--color-primary-soft);
}

/* ── Page Hero (Internal Pages) ──────────────────────────────────────────── */
.page-hero {
    position: relative;
    padding: clamp(140px, 15vh, 180px) 0 clamp(60px, 8vh, 80px);
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border-light);
}
.page-hero-bg {
    display: none;
}
.page-hero-content {
    position: relative;
    z-index: 2;
}
.page-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background-color: var(--color-secondary-soft);
    color: var(--color-secondary);
    border: 1px solid rgba(13, 122, 62, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--fs-caption);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.04em;
}
.page-hero-badge i {
    color: var(--color-secondary);
}
.page-hero h1 {
    color: var(--color-primary);
    font-size: clamp(2.5rem, 4.5vw, 3.8rem);
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.page-hero p {
    font-size: clamp(1rem, 1.1vw, 1.15rem);
    color: var(--color-text-body);
    opacity: 1;
    max-width: 60ch;
    margin: 20px auto 32px auto;
}

/* ── Values Grid (Quienes Somos) ─────────────────────────────────────────── */
.section--values {
    background-color: var(--color-bg-light);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 2vw, 24px);
}
.value-card {
    background-color: var(--color-bg-card);
    padding: 28px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}
.value-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}
.value-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--color-primary-soft), hsla(var(--primary-h), 50%, 40%, 0.12));
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 16px;
    transition: all var(--transition-bounce);
}
.value-card:hover .value-card-icon {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    transform: scale(1.08);
    box-shadow: var(--shadow-primary);
}
.value-card h4 {
    font-size: var(--fs-h4);
    color: var(--color-secondary);
    margin-bottom: 10px;
}
.value-card p {
    font-size: var(--fs-small);
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ── Mission Cards (Quienes Somos) ───────────────────────────────────────── */
.mission-card {
    border-left: 5px solid var(--color-primary);
}
.vision-card {
    border-left: 5px solid var(--color-accent);
}
.mission-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-primary-soft), hsla(var(--primary-h), 50%, 40%, 0.12));
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.mission-icon--accent {
    background: linear-gradient(135deg, var(--color-accent-soft), hsla(var(--accent-h), 70%, 50%, 0.12));
    color: var(--color-accent-dark);
}
.glass-card h2 {
    font-size: clamp(1.5rem, 2vw, 1.8rem);
    margin-bottom: 16px;
}
.glass-card p {
    color: var(--color-text-muted);
    font-size: var(--fs-body);
    line-height: 1.7;
}

/* ── Team Cards (Gobierno Cooperativo) ───────────────────────────────────── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 950px;
    margin: 0 auto;
}
.team-card {
    background-color: var(--color-bg-card);
    border-radius: var(--radius-md);
    padding: clamp(24px, 3vw, 36px);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    text-align: center;
    transition: all var(--transition-normal);
}
.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}
.team-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-secondary), hsl(var(--secondary-h), 50%, 25%));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
    border: 3px solid var(--color-border-light);
}
.team-card h3 {
    font-size: var(--fs-h4);
    margin-bottom: 4px;
}
.team-role {
    display: inline-block;
    font-size: var(--fs-caption);
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}
.team-card p {
    font-size: var(--fs-small);
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ── Transparency Enhancements ───────────────────────────────────────────── */
.section--transparency {
    background-color: var(--color-bg-light);
    border-top: 1px solid var(--color-border);
}
.transparency-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}
.transparency-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-primary-soft), hsla(var(--primary-h), 50%, 40%, 0.12));
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.transparency-header h2 {
    font-size: clamp(1.4rem, 2vw, 1.8rem);
}
.transparency-header p {
    font-size: var(--fs-small);
    color: var(--color-text-muted);
    margin-top: 4px;
}
.transparency-desc {
    font-size: var(--fs-body);
    color: var(--color-text-muted);
    margin-bottom: 24px;
}
.table-responsive {
    overflow-x: auto;
}
.badge-pdf {
    background-color: hsl(0, 70%, 95%);
    color: hsl(0, 70%, 38%);
}
.transparency-note {
    margin-top: 24px;
    padding: 16px 20px;
    background-color: var(--color-primary-soft);
    border-radius: var(--radius-sm);
    font-size: var(--fs-small);
    color: var(--color-text-body);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.6;
}
.transparency-note i {
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ── Footer Wave & Enhancements ──────────────────────────────────────────── */
.footer-wave {
    line-height: 0;
    margin-bottom: -2px;
}
.footer-wave svg {
    width: 100%;
    height: 60px;
    display: block;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 16px;
}
.footer-badges {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.footer-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: hsla(0, 0%, 100%, 0.05);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid hsla(0, 0%, 100%, 0.08);
    font-size: var(--fs-caption);
}
.footer-badge i {
    color: var(--color-accent);
    font-size: 1.3rem;
}
.footer-badge strong {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-accent);
}
.footer-badge span {
    font-weight: 500;
    opacity: 0.7;
}

/* Footer Social Icons */
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.social-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: hsla(0, 0%, 100%, 0.06);
    border: 1px solid hsla(0, 0%, 100%, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsla(0, 0%, 100%, 0.6);
    font-size: 1rem;
    transition: all var(--transition-normal);
}
.social-icon:hover {
    transform: translateY(-3px);
    border-color: transparent;
}
.social-icon--facebook:hover {
    background: #1877f2;
    color: white;
    box-shadow: 0 4px 16px rgba(24, 119, 242, 0.35);
}
.social-icon--instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
    box-shadow: 0 4px 16px rgba(225, 48, 108, 0.35);
}
.social-icon--whatsapp:hover {
    background: #25d366;
    color: white;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}
.social-icon--email:hover {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 16px var(--color-primary-glow);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

/* ── WhatsApp Floating Button ────────────────────────────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    z-index: var(--z-sticky);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: all var(--transition-normal);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8) translateY(20px);
}
.whatsapp-float.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}
.whatsapp-float:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
}
.whatsapp-float-label {
    position: absolute;
    right: 70px;
    white-space: nowrap;
    background: var(--color-secondary-dark);
    color: white;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: var(--fs-caption);
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
    box-shadow: var(--shadow-md);
}
.whatsapp-float:hover .whatsapp-float-label {
    opacity: 1;
}

/* ── Back to Top Button ──────────────────────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--color-secondary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: var(--z-sticky);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-primary);
}

/* ── Form Focus Effects ──────────────────────────────────────────────────── */
.form-group.focused .form-label {
    color: var(--color-primary);
}
.form-group.has-value .form-label {
    color: var(--color-secondary);
}

/* ── Section Modifiers ───────────────────────────────────────────────────── */
.section--pillars {}
.section--simulator {
    position: relative;
    overflow: hidden;
    background-color: var(--color-bg-light);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}


/* ── Convenio Card Image Placeholder ─────────────────────────────────── */
.convenio-card-img {
    min-height: 140px !important;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}
.convenio-card-img::before {
    font-size: 2rem !important;
}
.convenio-check {
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
}
.convenio-check i {
    font-size: 0.9rem;
}

/* ── Form Hints ──────────────────────────────────────────────────────── */
.form-hint {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 4px;
    display: block;
}
.form-hint--accent {
    color: var(--color-primary);
    font-weight: 600;
}

/* ── Simulator Result Value ──────────────────────────────────────────── */
.simulator-result-value {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    color: var(--color-primary);
    padding: 8px 0;
}

/* ── Top Utility Bar ─────────────────────────────────────────────────────── */
.top-bar {
    display: none !important;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.top-bar-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: hsla(0, 0%, 100%, 0.65);
    transition: color var(--transition-fast);
}
.top-bar-item:hover {
    color: var(--color-accent);
}
.top-bar-item i {
    font-size: 0.7rem;
    color: var(--color-accent);
}
.top-bar-social {
    display: flex;
    gap: 10px;
}
.top-bar-social a {
    color: hsla(0, 0%, 100%, 0.5);
    font-size: 0.8rem;
    transition: color var(--transition-fast);
}
.top-bar-social a:hover {
    color: var(--color-accent);
}

/* ── Image Placeholder Sections ──────────────────────────────────────────── */
.img-placeholder {
    width: 100%;
    min-height: 320px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg-light) 100%);
    border: 2px dashed var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--color-text-muted);
    font-size: var(--fs-small);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}
.img-placeholder:hover {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, var(--color-primary-soft), var(--color-bg-light));
}
.img-placeholder::before {
    content: '\f03e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 3rem;
    color: var(--color-border);
    transition: color var(--transition-normal);
}
.img-placeholder:hover::before {
    color: var(--color-primary-glow);
}
.img-placeholder[data-caption]::after {
    content: attr(data-caption);
    font-size: var(--fs-caption);
    color: var(--color-text-caption);
    text-align: center;
    padding: 0 20px;
}

/* Filled image (when user uploads an actual image) */
.img-placeholder.filled {
    border: none;
    background: none;
    min-height: auto;
}
.img-placeholder.filled::before,
.img-placeholder.filled::after {
    display: none;
}
.img-placeholder.filled img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
}

/* Image with overlay text */
.img-overlay-section {
    position: relative;
    min-height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
}
.img-overlay-section .img-placeholder {
    position: absolute;
    inset: 0;
    border-radius: 0;
    min-height: 100%;
    border: none;
}
.img-overlay-section .overlay-content {
    position: relative;
    z-index: 2;
    color: var(--color-text-light);
    padding: clamp(32px, 5vw, 64px);
    max-width: 560px;
}

/* ── Video Banner / Video Loop ───────────────────────────────────────────── */
.video-banner {
    position: relative;
    min-height: 450px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-secondary-dark);
}
.video-banner-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, hsla(var(--secondary-h), 60%, 12%, 0.85), hsla(var(--secondary-h), 55%, 8%, 0.9));
    z-index: 1;
}
.video-banner video,
.video-banner .video-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.video-placeholder {
    background: linear-gradient(135deg, var(--color-secondary-dark), hsl(var(--secondary-h), 55%, 14%));
    display: flex;
    align-items: center;
    justify-content: center;
}
.video-placeholder::before {
    content: '\f04b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 4rem;
    color: hsla(0, 0%, 100%, 0.08);
}
.video-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-text-light);
    max-width: 700px;
    padding: 0 20px;
}
.video-banner-content h2 {
    color: var(--color-text-light);
    font-size: var(--fs-h1);
    margin-bottom: 16px;
    font-weight: 900;
}
.video-banner-content p {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    opacity: 0.85;
    margin-bottom: 32px;
    max-width: 100%;
}

/* ── Split Layout (Image + Text side by side) ────────────────────────────── */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}
.split-layout--reverse {
    direction: rtl;
}
.split-layout--reverse > * {
    direction: ltr;
}
.split-layout-content h2 {
    font-size: var(--fs-h2);
    margin-bottom: 16px;
    line-height: 1.2;
}
.split-layout-content p {
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}
.split-layout-content .feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
}
.feature-list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: var(--fs-small);
    color: var(--color-text-body);
}
.feature-list-item i {
    color: var(--color-primary);
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ── Testimonials Section ────────────────────────────────────────────────── */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 2vw, 24px);
}
.testimonial-card {
    background-color: var(--color-bg-card);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    position: relative;
}
.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}
.testimonial-card::before {
    content: '\201c';
    font-family: var(--font-heading);
    font-size: 5rem;
    line-height: 1;
    color: var(--color-primary-soft);
    position: absolute;
    top: 16px;
    left: 24px;
}
.testimonial-text {
    font-size: var(--fs-body);
    color: var(--color-text-body);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 24px;
    padding-top: 24px;
    flex: 1;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px solid var(--color-border-light);
    padding-top: 20px;
}
.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary-soft), var(--color-accent-soft));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-primary);
    flex-shrink: 0;
    overflow: hidden;
}
.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.testimonial-name {
    font-weight: 700;
    font-size: var(--fs-small);
    color: var(--color-secondary);
}
.testimonial-role {
    font-size: var(--fs-caption);
    color: var(--color-text-muted);
}
.testimonial-stars {
    color: var(--color-accent);
    font-size: 0.8rem;
    margin-top: 2px;
}

/* ── Stats Counter Bar ───────────────────────────────────────────────────── */
.stats-bar {
    background-color: var(--color-bg-light);
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
    padding: clamp(40px, 5vw, 60px) 0;
    position: relative;
    overflow: hidden;
}
.stats-bar::before {
    display: none;
}
.stats-bar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}
.stats-bar-item {
    text-align: center;
    color: var(--color-text-dark);
}
.stats-bar-value {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 3.5vw, 3.5rem);
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 8px;
}
.stats-bar-label {
    font-size: var(--fs-caption);
    color: var(--color-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ── Process Steps / Timeline ────────────────────────────────────────────── */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    counter-reset: step;
}
.process-step {
    text-align: center;
    padding: 24px 16px;
    position: relative;
}
.process-step::before {
    counter-increment: step;
    content: counter(step);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    margin: 0 auto 16px;
    box-shadow: var(--shadow-primary);
    position: relative;
    z-index: 2;
    /* Animated transition initial states */
    opacity: 0;
    transform: scale(0.3);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s ease;
}
.process-step.revealed::before {
    opacity: 1;
    transform: scale(1);
}
.process-step::after {
    content: '';
    position: absolute;
    top: 52px;
    left: calc(50% + 28px);
    width: calc(100% - 56px);
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    z-index: 1;
    /* Animated transition initial states */
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.process-step.revealed::after {
    transform: scaleX(1);
}
.process-step:last-child::after {
    display: none;
}
.process-step h4 {
    font-size: var(--fs-h4);
    color: var(--color-secondary);
    margin-bottom: 8px;
    /* Animated transition initial states */
    opacity: 0;
    transform: translateY(15px);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
}
.process-step.revealed h4 {
    opacity: 1;
    transform: translateY(0);
}
.process-step p {
    font-size: var(--fs-small);
    color: var(--color-text-muted);
    line-height: 1.5;
    /* Animated transition initial states */
    opacity: 0;
    transform: translateY(15px);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
    transition-delay: 0.1s;
}
.process-step.revealed p {
    opacity: 1;
    transform: translateY(0);
}

/* ── Vertical Timeline ───────────────────────────────────────────────────── */
.timeline {
    position: relative;
    padding-left: 40px;
    max-width: 700px;
    margin: 0 auto;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
    border-radius: 2px;
    /* Animated transition initial states */
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.timeline.revealed::before {
    transform: scaleY(1);
}
.timeline-item {
    position: relative;
    padding-bottom: 40px;
}
.timeline-item:last-child {
    padding-bottom: 0;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 3px solid var(--color-bg-body);
    box-shadow: 0 0 0 4px var(--color-primary-soft);
    z-index: 2;
    /* Animated transition initial states */
    opacity: 0;
    transform: scale(0.3);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s ease;
}
.timeline-item.revealed::before {
    opacity: 1;
    transform: scale(1);
}
.timeline-item h4 {
    font-size: var(--fs-h4);
    color: var(--color-secondary);
    margin-bottom: 8px;
    /* Animated transition initial states */
    opacity: 0;
    transform: translateX(-15px);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
}
.timeline-item.revealed h4 {
    opacity: 1;
    transform: translateX(0);
}
.timeline-item p {
    font-size: var(--fs-small);
    color: var(--color-text-muted);
    line-height: 1.6;
    /* Animated transition initial states */
    opacity: 0;
    transform: translateX(-15px);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
    transition-delay: 0.1s;
}
.timeline-item.revealed p {
    opacity: 1;
    transform: translateX(0);
}

/* ── Icon Feature Row ────────────────────────────────────────────────────── */
.icon-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.icon-feature {
    padding: 24px 16px;
}
.icon-feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary-soft), hsla(var(--primary-h), 50%, 40%, 0.12));
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 16px;
    transition: all var(--transition-bounce);
}
.icon-feature:hover .icon-feature-icon {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    transform: scale(1.1);
    box-shadow: var(--shadow-primary);
}
.icon-feature h4 {
    font-size: var(--fs-body);
    color: var(--color-secondary);
    margin-bottom: 8px;
}
.icon-feature p {
    font-size: var(--fs-small);
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════════════
   §25. RESPONSIVE DESIGN — Mobile First, 4 Breakpoints
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Max 1280px ────────────────────────────────────────────────────────── */
@media (max-width: 1280px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .quick-access-item {
        padding: 22px 24px;
    }
}

/* ── Max 1024px ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: clamp(2.2rem, 4vw + 0.5rem, 3rem);
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

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

    .hero-quick-stats {
        max-width: 550px;
        margin: 0 auto;
    }

    .hero-visual {
        display: none;
    }

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

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

    .convenio-tab-content.active {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .quick-access-grid {
        grid-template-columns: 1fr;
    }
    .quick-access-item {
        border-right: none;
        border-bottom: 1px solid var(--color-border-light);
    }
    .quick-access-item:last-child {
        border-bottom: none;
    }

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

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

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

    .cta-features {
        grid-template-columns: 1fr;
    }

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

    .split-layout {
        grid-template-columns: 1fr;
    }
    .split-layout--reverse {
        direction: ltr;
    }

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

    .stats-bar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .process-step:nth-child(2n)::after {
        display: none;
    }

    .icon-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .video-banner {
        min-height: 350px;
    }
}

/* ── Max 768px ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .top-bar {
        display: none;
    }

    .header {
        top: 12px;
        left: 12px;
        right: 12px;
    }

    .split-layout-content {
        text-align: center;
    }

    .feature-list-item {
        justify-content: center;
    }

    .img-placeholder {
        min-height: 240px;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }
    .process-step::after {
        display: none;
    }

    .icon-features {
        grid-template-columns: 1fr;
    }

    .stats-bar-grid {
        grid-template-columns: 1fr;
    }

    /* Full-screen mobile overlay menu */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: hsla(var(--secondary-h), 55%, 10%, 0.97);
        backdrop-filter: blur(24px) saturate(180%);
        -webkit-backdrop-filter: blur(24px) saturate(180%);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        z-index: var(--z-overlay);
        opacity: 0;
        visibility: hidden;
        transition: all 0.5s var(--ease-out-expo);
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }

    /* Staggered link entry on mobile */
    .nav-menu li {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s var(--ease-out-expo);
    }

    .nav-menu.active li:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
    .nav-menu.active li:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
    .nav-menu.active li:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
    .nav-menu.active li:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0.35s; }
    .nav-menu.active li:nth-child(7) { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }

    .nav-menu .nav-link {
        color: var(--color-text-light);
        font-size: 1.5rem;
        padding: 16px 0;
    }

    .nav-menu .nav-link::after {
        bottom: 8px;
        background: var(--color-accent);
    }

    .nav-actions {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: clamp(120px, 14vh, 160px) 0 clamp(60px, 8vh, 80px);
    }

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

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

    .form-group.full-width {
        grid-column: span 1;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }

    .footer-badges {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .director-card {
        flex-direction: column;
        text-align: center;
    }

    .director-contact-buttons {
        justify-content: center;
    }

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

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

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

    .page-hero {
        padding: clamp(110px, 14vh, 150px) 0 clamp(40px, 6vh, 60px);
    }

    .transparency-header {
        flex-direction: column;
        text-align: center;
    }

    .whatsapp-float {
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float-label {
        display: none;
    }

    .back-to-top {
        bottom: 80px;
        right: 20px;
    }
}

/* ── Max 480px ─────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .pillars-grid {
        grid-template-columns: 1fr;
    }

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

    .convenio-tab-content.active {
        grid-template-columns: 1fr;
    }

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

    .hero-quick-stats {
        flex-direction: column;
    }

    .simulator-body {
        padding: 20px;
    }

    .form-card {
        padding: 20px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .tabs-container {
        gap: 8px;
    }

    .tab-btn {
        padding: 8px 16px;
        font-size: var(--fs-caption);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   §24. PRINT STYLES
   ═══════════════════════════════════════════════════════════════════════════ */
@media print {
    .header,
    .footer,
    .nav-actions,
    .menu-toggle,
    .hero-ctas,
    .btn {
        display: none !important;
    }

    body {
        background: white;
        color: black;
        font-size: 12pt;
    }

    .section {
        padding: 20px 0;
        page-break-inside: avoid;
    }

    .hero {
        min-height: auto;
        padding: 20px 0;
        background: none;
        color: black;
    }

    .hero-title {
        color: black;
        font-size: 24pt;
    }

    .hero-title span {
        -webkit-text-fill-color: initial;
        color: var(--color-primary);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   §25. REDUCED MOTION — Accessibility
   ═══════════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal,
    .reveal-up,
    .reveal-left,
    .reveal-right,
    .reveal-scale,
    .stagger-grid > * {
        opacity: 1;
        transform: none;
    }

    .hero::before,
    .hero::after {
        animation: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   §26. DARK MODE SUPPORT (optional — triggered by system preference)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (prefers-color-scheme: dark) {
    :root {
        /* Uncomment to enable automatic dark mode:
        --color-bg-body: hsl(220, 25%, 10%);
        --color-bg-light: hsl(220, 22%, 14%);
        --color-bg-alt: hsl(220, 20%, 18%);
        --color-bg-card: hsl(220, 22%, 16%);
        --color-border: hsl(220, 18%, 22%);
        --color-border-light: hsl(220, 15%, 20%);
        --color-text-dark: hsl(0, 0%, 95%);
        --color-text-body: hsl(220, 12%, 78%);
        --color-text-muted: hsl(220, 8%, 55%);
        */
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   §27. BRAND AND GATED SIMULATOR CUSTOM STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Logo image custom scaling */
.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
    transition: transform var(--transition-normal);
}
.logo:hover .logo-img {
    transform: scale(1.05);
}

/* Gated Simulator Lock overlay */
.simulator-results {
    position: relative;
    overflow: hidden;
}

.results-grid.is-blurred,
.simulator-cta.is-blurred {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
    opacity: 0.6;
}

.simulator-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 24px;
    box-sizing: border-box;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.simulator-lock-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.simulator-lock-content {
    width: 100%;
    max-width: 320px;
    text-align: center;
}

.simulator-lock-content h3 {
    font-size: 1.15rem;
    color: var(--color-primary-dark);
    margin-bottom: 8px;
    font-weight: 700;
}

.simulator-lock-content p {
    font-size: var(--fs-small);
    color: var(--color-text-body);
    margin-bottom: 16px;
    line-height: 1.4;
}

.lock-form-group {
    margin-bottom: 10px;
}

.lock-form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    font-size: var(--fs-small);
    font-family: var(--font-body);
    background-color: var(--color-bg-card);
    transition: border-color var(--transition-fast);
}

.lock-form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.lock-form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
    margin-bottom: 16px;
}

.lock-form-checkbox input {
    margin-top: 3px;
    flex-shrink: 0;
}

.lock-form-checkbox label {
    font-size: 0.75rem;
    color: var(--color-text-body);
    line-height: 1.3;
    user-select: none;
    cursor: pointer;
}

/* Credits page simulator results gating */
.simulator-result-value.is-blurred {
    filter: blur(6px);
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
}

.c-cuota-lock-msg {
    font-size: 0.75rem;
    color: var(--color-accent-dark);
    font-weight: 600;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: opacity var(--transition-normal);
}

.c-cuota-lock-msg.hidden {
    display: none;
}

/* ── Hero Slider (Premium Campaign Slider) ───────────────────────────────── */
.hero-slider {
    position: relative;
    width: 100%;
    min-height: 80vh;
    overflow: hidden;
    background-color: var(--color-bg-dark);
}

.slider-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) contrast(1.1);
    transform: scale(1.05);
    transition: transform 6s ease;
}

.slide.active .slide-bg {
    transform: scale(1);
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 45, 31, 0.4) 0%, rgba(18, 36, 61, 0.85) 100%);
    z-index: 2;
}

.slide-content-wrapper {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.slide-content {
    max-width: 700px;
    color: var(--color-text-light);
}

.slide-content h1 {
    font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
    font-weight: 900;
    color: white !important;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.slide-content p {
    font-size: var(--fs-body);
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.6;
    margin-bottom: 32px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
    max-width: 60ch;
}

/* Slider Controls */
.slider-nav {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot.active {
    background-color: var(--color-accent);
    transform: scale(1.25);
    width: 32px;
    border-radius: 6px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-arrow:hover {
    background-color: var(--color-accent);
    border-color: transparent;
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow--prev { left: 40px; }
.slider-arrow--next { right: 40px; }

@media (max-width: 768px) {
    .slider-arrow { display: none; }
    .hero-slider { min-height: 70vh; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   §20. PORTAFOLIO DE SERVICIOS INTERACTIVO & SIMULADOR PASO A PASO
   ═══════════════════════════════════════════════════════════════════════════ */
.section--portfolio {
    background-color: var(--color-bg-body);
}

.portfolio-showcase {
    background-color: var(--color-bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border-light);
    padding: clamp(24px, 4vw, 48px);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.portfolio-content {
    display: none;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 32px;
    align-items: center;
    opacity: 0;
    transform: scale(0.98);
}

.portfolio-content.active {
    display: grid;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.portfolio-side-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.portfolio-link-card {
    background-color: var(--color-bg-light);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--color-border-light);
    display: flex;
    gap: 16px;
    transition: all var(--transition-normal);
    cursor: pointer;
    text-align: left;
}

.portfolio-link-card:hover {
    transform: translateY(-5px);
    background-color: var(--color-bg-card);
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-md);
}

.portfolio-link-icon {
    font-size: 1.5rem;
    color: var(--color-primary);
    width: 44px;
    height: 44px;
    background-color: var(--color-primary-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-normal);
}

.portfolio-link-card:hover .portfolio-link-icon {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    transform: scale(1.1);
}

.portfolio-link-card h4 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: var(--color-secondary);
    font-weight: 700;
}

.portfolio-link-card p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.4;
    margin: 0;
}

.portfolio-center-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.portfolio-visual-bg {
    position: absolute;
    width: 130%;
    height: 130%;
    z-index: 0;
    opacity: 0.15;
    pointer-events: none;
    animation: rotateChevron 40s linear infinite;
}

.portfolio-visual-bg svg {
    width: 100%;
    height: 100%;
}

.portfolio-avatar-frame {
    width: clamp(200px, 20vw, 260px);
    height: clamp(200px, 20vw, 260px);
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid var(--color-bg-light);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.portfolio-avatar-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-center-badge {
    margin-top: 24px;
    text-align: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-text-light);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 1;
}

.portfolio-center-badge h3 {
    color: white !important;
    font-size: 1.05rem;
    margin-bottom: 2px;
    font-weight: 700;
}

.portfolio-center-badge p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8) !important;
    margin: 0;
}

/* Tabs list at the bottom */
.portfolio-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.portfolio-tab-btn {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    text-align: left;
}

.portfolio-tab-btn:hover {
    transform: translateY(-3px);
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-md);
}

.portfolio-tab-btn.active {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
    border-color: transparent;
    color: var(--color-text-light);
    box-shadow: var(--shadow-lg), 0 0 0 3px var(--color-primary-glow);
}

.portfolio-tab-content {
    display: flex;
    flex-direction: column;
}

.portfolio-tab-btn span {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 4px;
}

.portfolio-tab-btn.active span {
    color: var(--color-accent);
}

.portfolio-tab-btn h4 {
    font-size: 1.15rem;
    margin: 0;
    color: var(--color-secondary-dark);
    font-weight: 700;
}

.portfolio-tab-btn.active h4 {
    color: white !important;
}

.portfolio-tab-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-border-light);
    box-shadow: var(--shadow-xs);
    flex-shrink: 0;
    margin-left: 12px;
}

.portfolio-tab-btn.active .portfolio-tab-avatar {
    border-color: var(--color-accent);
}

.portfolio-tab-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Step-by-Step Simulator Styles ── */
.sim-step {
    width: 100%;
    will-change: transform, opacity;
}

.simulator-body {
    padding: clamp(24px, 4vw, 48px);
    position: relative;
    overflow: hidden;
}

.simulator-grid-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 1024px) {
    .portfolio-content.active {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .portfolio-center-visual {
        order: -1;
    }
    .portfolio-side-links {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 992px) {
    .simulator-grid-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .simulator-results {
        align-self: stretch;
    }
}

@media (max-width: 768px) {
    .portfolio-tabs {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .portfolio-side-links {
        grid-template-columns: 1fr;
    }
}

/* ── Tactile Feedback & Easing Overrides (Emil / Taste / Impeccable) ── */
:root {
    --ease-out-custom: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out-custom: cubic-bezier(0.77, 0, 0.175, 1);
}

/* Tactile Active States on Pressable elements */
.btn:active,
.quick-access-item:active,
.portfolio-tab-btn:active,
.portfolio-link-card:active,
.bento-item:active,
.faq-question:active,
.nav-link:active,
.social-icon:active {
    transform: scale(0.97) !important;
    transition: transform 120ms var(--ease-out-custom) !important;
}

/* Ensure smooth transition in focus and hover state with new custom bezier */
.btn,
.quick-access-item,
.portfolio-tab-btn,
.portfolio-link-card,
.bento-item,
.faq-question,
.nav-link,
.social-icon {
    transition: transform 250ms var(--ease-out-custom), background-color 250ms var(--ease-out-custom), border-color 250ms var(--ease-out-custom), box-shadow 250ms var(--ease-out-custom);
}

/* Smooth Italic typography descender clearance override */
em, i, .italic {
    line-height: 1.15;
    padding-bottom: 0.05em;
}

/* Highlight input active status contrast check */
.form-group input:focus, 
.form-group textarea:focus, 
.form-group select:focus {
    border-color: var(--color-primary-light) !important;
    box-shadow: 0 0 0 3px var(--color-primary-glow) !important;
}

/* Bento Cells Diversity override styles */
.bento-item--col-2:first-child {
    background: linear-gradient(135deg, hsl(156, 100%, 15%) 0%, hsl(220, 60%, 12%) 100%) !important;
    color: white !important;
}

.bento-item--metric {
    background: linear-gradient(135deg, #f4f4f5 0%, #e4e4e7 100%) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   §12. COOP DESIGN SYSTEM OVERHAUL (coop-design-system-guia.md)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Futuristic Minimalist Hero Section */
.hero-section {
    position: relative;
    padding: 180px 0 140px 0;
    background-color: var(--color-bg-light);
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
}

.hero-container {
    max-width: 1200px;
}

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

.hero-text-side {
    max-width: 580px;
}

.hero-headline {
    font-size: var(--fs-display);
    line-height: 1.1;
    font-weight: 900;
    color: var(--color-text-dark);
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.hero-headline .gradient-text {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: var(--fs-body);
    color: var(--color-text-body);
    line-height: 1.6;
    margin-bottom: 36px;
    max-width: 50ch;
}

.hero-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 36px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.hero-feature-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.hero-feature-item .feature-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-feature-item h4 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-feature-item p {
    font-size: 0.78rem;
    color: var(--color-text-body);
    line-height: 1.4;
    margin: 0;
}

/* 3D Card Tilt - Perspective and Transforms */
.bento-card-service,
.quick-action-card {
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(calc(var(--rx, 0) * 1deg)) rotateY(calc(var(--ry, 0) * 1deg));
    transition: background-color 0.25s var(--ease-out-custom), transform 0.15s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.15s ease-out;
}

.bento-card-service:hover,
.quick-action-card:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
}

.bento-card-service .bento-card-icon,
.bento-card-service .bento-card-tag,
.quick-action-card .quick-action-icon {
    transform: translateZ(20px);
    transition: transform 0.15s cubic-bezier(0.25, 1, 0.5, 1);
}

.bento-card-service .bento-card-body h3,
.quick-action-card .quick-action-info h3 {
    transform: translateZ(25px);
    transition: transform 0.15s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-ctas {
    display: flex;
    gap: 16px;
}

/* kinetic dynamic graphics visual */
.hero-visual-side {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.kinetic-visual-container {
    position: relative;
    width: 380px;
    height: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-orbit {
    position: absolute;
    border: 1.5px dashed rgba(0, 0, 0, 0.06);
    border-radius: 50%;
    animation: rotateOrbit linear infinite;
}

.visual-orbit--1 {
    width: 240px;
    height: 240px;
    animation-duration: 20s;
}

.visual-orbit--2 {
    width: 320px;
    height: 320px;
    animation-duration: 35s;
    animation-direction: reverse;
}

.visual-orbit--3 {
    width: 400px;
    height: 400px;
    animation-duration: 50s;
}

.visual-center-node {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 8px 30px var(--color-primary-glow);
    z-index: 2;
    animation: floatNode 4s ease-in-out infinite;
}

.floating-glass-card {
    position: absolute;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
    z-index: 3;
    animation: floatNode ease-in-out infinite alternate;
    transform: translate(calc(var(--mx, 0) * var(--parallax-speed, 1px)), calc(var(--my, 0) * var(--parallax-speed, 1px)));
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.card-top-left {
    top: 20px;
    left: -10px;
    animation-duration: 4.5s;
    --parallax-speed: -25px;
}

.card-bottom-right {
    bottom: 20px;
    right: -10px;
    animation-duration: 5.5s;
    --parallax-speed: 20px;
}

.card-mid-right {
    top: 140px;
    right: -30px;
    animation-duration: 5s;
    --parallax-speed: -15px;
}

.card-badge {
    font-size: 1.1rem;
    font-weight: 800;
    display: block;
    margin-bottom: 2px;
}

.badge-green { color: var(--color-primary-light); }
.badge-orange { color: var(--color-accent); }
.badge-blue { color: hsl(220, 60%, 45%); }

.card-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@keyframes rotateOrbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes floatNode {
    from { margin-top: 0px; }
    to { margin-top: -10px; }
}

/* Quick Actions Section */
.quick-actions-section {
    padding: 0;
    position: relative;
    z-index: 10;
    margin-top: -50px;
}

.quick-actions-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.quick-action-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 32px;
    background: var(--color-bg-card);
    transition: background-color 0.25s var(--ease-out-custom), transform 0.15s var(--ease-out-custom);
    text-decoration: none;
    color: inherit;
    border-right: 1px solid var(--color-border);
}

.quick-action-card:last-child {
    border-right: none;
}

.quick-action-card:hover {
    background-color: var(--color-bg-light);
}

.quick-action-icon {
    font-size: 1.5rem;
    color: var(--color-primary);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: var(--color-primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quick-action-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 4px;
    font-family: var(--font-heading);
}

.quick-action-info p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.3;
}

.quick-action-arrow {
    margin-left: auto;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    transition: transform 0.25s var(--ease-out-custom), color 0.25s var(--ease-out-custom);
}

.quick-action-card:hover .quick-action-arrow {
    transform: translateX(4px);
    color: var(--color-accent);
}

/* Bento Box Portfolio */
.portfolio-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background-color: var(--color-border);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    margin-top: 40px;
}

.bento-card-service {
    background-color: var(--color-bg-card);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: background-color 0.25s var(--ease-out-custom), transform 0.25s var(--ease-out-custom);
    min-height: 280px;
    text-decoration: none;
    color: inherit;
}

.bento-card-service:hover {
    background-color: var(--color-bg-light);
}

.bento-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.bento-card-icon {
    font-size: 1.6rem;
    color: var(--color-primary);
}

.bento-card-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-text-muted);
    background-color: var(--color-bg-light);
    padding: 4px 8px;
    border-radius: 6px;
}

.bento-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.bento-card-body p {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--color-text-body);
}

.bento-card-footer {
    margin-top: 24px;
    display: flex;
    align-items: center;
}

.bento-card-action {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.bento-card-service:hover .bento-card-action {
    gap: 10px;
}

/* Responsiveness for Bento & Hero Grid */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-text-side {
        max-width: 100%;
        margin: 0 auto;
    }
    .hero-ctas {
        justify-content: center;
    }
    .hero-features-grid {
        max-width: 500px;
        margin: 0 auto 36px auto;
    }
    .portfolio-bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .quick-actions-panel {
        grid-template-columns: 1fr;
    }
    .quick-action-card {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }
    .quick-action-card:last-child {
        border-bottom: none;
    }
}

@media (max-width: 600px) {
    .portfolio-bento-grid {
        grid-template-columns: 1fr;
    }
    .hero-section {
        padding: 140px 0 100px 0;
    }
    .kinetic-visual-container {
        width: 300px;
        height: 300px;
    }
    .visual-orbit--1 { width: 180px; height: 180px; }
    .visual-orbit--2 { width: 240px; height: 240px; }
    .visual-orbit--3 { width: 300px; height: 300px; }
    .hero-features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        text-align: center;
    }
    .hero-feature-item {
        text-align: center;
    }
}

/* Button & Interactive Overrides for Physical Tactile Feel */
.btn {
    transition: transform 0.2s cubic-bezier(0.2, 1, 0.4, 1), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: scale(1.02);
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary:hover {
    box-shadow: 0 4px 12px var(--color-primary-glow);
}

.btn-accent:hover {
    box-shadow: 0 4px 12px var(--color-accent-glow);
}

.btn-glass:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-outline:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.glass-card {
    transition: transform 0.25s var(--ease-out-custom), box-shadow 0.2s ease;
}

.glass-card:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-hover), inset 0 1px 0 hsla(0, 0%, 100%, 0.6);
}

.glass-card:active {
    transform: scale(0.98);
}


/* ==========================================================================
   §16. COOPERATIVE SYNERGY STYLING — Bolivariana & Stitch Aesthetic Overhaul
   ========================================================================== */

/* Rounded overrides for organic styling */
.rounded-xl {
    border-radius: 24px !important;
}
.rounded-2xl {
    border-radius: 32px !important;
}
.rounded-3xl {
    border-radius: 40px !important;
}

/* Hero Curved Frame & Image Custom styling */
.hero-curved-frame {
    position: relative;
    width: 100%;
    max-width: 440px;
    height: 480px;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background-color: var(--color-bg-alt);
    border: 8px solid white;
}

.hero-curved-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-floating-rate {
    position: absolute;
    top: 30px;
    left: -20px;
    background: white;
    padding: 12px 20px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.hero-floating-rate-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-secondary-soft);
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.hero-floating-rate-text {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-text-dark);
}

.hero-floating-rate-text span {
    display: block;
    font-size: 0.95rem;
    color: var(--color-secondary);
    font-weight: 800;
}

/* Section: Progress together (Diseñamos el progreso contigo) */
.section--progress {
    padding: 100px 0;
    background-color: var(--color-bg-body);
}

.progress-header {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 40px;
    margin-bottom: 60px;
    align-items: center;
}

.progress-header h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1.1;
    margin: 0;
    text-transform: uppercase;
}

.progress-header p {
    font-size: var(--fs-body);
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}

.design-progress-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.progress-card {
    border-radius: 32px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 320px;
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.progress-card:hover {
    transform: translateY(-5px);
}

/* Card 1: Wide white card */
.card-outline-wide {
    grid-column: span 2;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow-sm);
}

.card-outline-wide:hover {
    box-shadow: var(--shadow-md);
}

/* Card 2: Solid blue card */
.card-solid-blue {
    background: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.card-solid-blue:hover {
    box-shadow: 0 16px 40px hsla(233, 47%, 20%, 0.15);
}

/* Card 3: Solid green card */
.card-solid-green {
    background: var(--color-secondary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.card-solid-green:hover {
    box-shadow: 0 16px 40px hsla(147, 81%, 15%, 0.15);
}

/* Card 4: Wide gray card */
.card-gray-wide {
    grid-column: span 2;
    background: var(--color-bg-light);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.progress-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.card-outline-wide .progress-card-icon {
    background-color: var(--color-primary-soft);
    color: var(--color-primary);
}

.card-solid-blue .progress-card-icon {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--color-accent);
}

.card-solid-green .progress-card-icon {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
}

.card-gray-wide .progress-card-icon {
    background-color: white;
    color: var(--color-primary);
}

.progress-card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.card-solid-blue .progress-card-content h3,
.card-solid-green .progress-card-content h3 {
    color: white;
}

.card-outline-wide .progress-card-content h3,
.card-gray-wide .progress-card-content h3 {
    color: var(--color-primary);
}

.progress-card-content p {
    font-size: 0.925rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.card-outline-wide .progress-card-content p,
.card-gray-wide .progress-card-content p {
    color: var(--color-text-body);
}

.card-solid-blue .progress-card-content p,
.card-solid-green .progress-card-content p {
    color: rgba(255, 255, 255, 0.85);
}

/* Checked list inside wide outline card */
.progress-checked-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.progress-checked-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

.progress-checked-item i {
    color: var(--color-secondary);
    font-size: 1rem;
}

/* Card buttons & actions */
.progress-card-footer {
    margin-top: auto;
}

.btn-card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: white;
    color: var(--color-primary);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    border: none;
}

.btn-card-cta:hover {
    background: var(--color-accent);
    color: var(--color-secondary-dark);
    transform: scale(1.03);
}

.link-card-cta {
    font-size: 0.88rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.link-card-cta:hover {
    gap: 12px;
}

/* Section: Esencia Humana (Fondo azul) */
.section--essence {
    background-color: var(--color-primary-dark);
    color: white;
    padding: 100px 0;
}

.essence-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 60px;
    align-items: center;
}

.essence-text h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    color: white;
    font-weight: 800;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.essence-text h2 span {
    color: var(--color-accent);
}

.essence-text p {
    font-size: var(--fs-body);
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin-bottom: 36px;
}

.essence-pillars {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.essence-pillar-item {
    display: flex;
    gap: 16px;
}

.essence-pillar-item i {
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-top: 4px;
}

.essence-pillar-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.essence-pillar-item p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.essence-video-container {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 8px solid rgba(255, 255, 255, 0.05);
}

.essence-video-placeholder {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.essence-video-play-btn {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: white;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.essence-video-play-btn:hover {
    transform: scale(1.1);
    background: var(--color-accent);
}

/* Custom testimonial adjustments */
.testimonial-card {
    border-radius: 32px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: white;
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.testimonial-card.solid-blue {
    background: var(--color-primary);
    color: white;
    border: none;
}

.testimonial-card.solid-blue p {
    color: rgba(255, 255, 255, 0.9);
}

.testimonial-card.solid-blue h4 {
    color: white;
}

.testimonial-card.solid-blue .testimonial-role {
    color: rgba(255, 255, 255, 0.6);
}

/* Responsiveness for new grids */
@media (max-width: 992px) {
    .progress-header {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    .design-progress-grid {
        grid-template-columns: 1fr;
    }
    .card-outline-wide, .card-gray-wide {
        grid-column: span 1;
    }
    .essence-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   §21. PORTAFOLIO DE SERVICIOS INTERACTIVO & SIMULADOR MÁGICO MODAL
   ═══════════════════════════════════════════════════════════════════════════ */
.section--portfolio {
    padding: 100px 0;
    background-color: var(--color-bg-body);
}

.portfolio-showcase {
    position: relative;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 40px 0 !important;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    margin-bottom: 50px;
}

/* Tab specific color themes for central ring/decor (can be adjusted) */
.port-bg-creditos .portfolio-center-hub {
    border-color: rgba(46, 56, 129, 0.12);
}
.port-bg-ahorros .portfolio-center-hub {
    border-color: rgba(13, 122, 62, 0.12);
}
.port-bg-convenios .portfolio-center-hub {
    border-color: rgba(243, 112, 33, 0.12);
}

/* Connecting lines base strokes styled dynamically */
.port-bg-creditos .hub-connecting-lines path {
    stroke: rgba(46, 56, 129, 0.12) !important;
}
.port-bg-ahorros .hub-connecting-lines path {
    stroke: rgba(13, 122, 62, 0.12) !important;
}
.port-bg-convenios .hub-connecting-lines path {
    stroke: rgba(243, 112, 33, 0.12) !important;
}

/* SVG de Conexión */
.hub-connecting-lines {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 500px;
    pointer-events: none;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.portfolio-showcase.sim-active .hub-connecting-lines {
    opacity: 0;
}

.hub-connecting-lines path {
    transition: stroke 0.3s ease, stroke-width 0.3s ease;
}

/* Running light effect on hover */
.hub-connecting-lines path.active-path {
    stroke: var(--color-accent) !important;
    stroke-width: 4px;
    animation: dashflow 1.5s linear infinite;
    stroke-dashoffset: 40;
}

@keyframes dashflow {
    to {
        stroke-dashoffset: 0;
    }
}

/* Círculo Central / Core Hub */
.portfolio-center-hub {
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.25, 1);
    overflow: visible;
}

/* Decoración circular rotativa */
.hub-decor-ring {
    position: absolute;
    inset: -15px;
    border: 2px dashed rgba(13, 122, 62, 0.12);
    border-radius: 50%;
    animation: rotateOrbit 40s linear infinite;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.port-bg-creditos .hub-decor-ring {
    border-color: rgba(46, 56, 129, 0.12);
}
.port-bg-convenios .hub-decor-ring {
    border-color: rgba(243, 112, 33, 0.12);
}

@keyframes rotateOrbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.portfolio-showcase.sim-active .hub-decor-ring {
    opacity: 0;
}

/* Expanded morphing state */
.portfolio-center-hub.hub-expanded {
    width: 680px;
    height: auto;
    min-height: 440px;
    border-radius: 32px;
    background: white;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    display: block;
    padding: 36px 40px;
}

/* Avatar View */
.hub-avatar-view {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border-radius: 50%;
    overflow: hidden;
}

.portfolio-center-hub.hub-expanded .hub-avatar-view {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
    height: 0;
    overflow: hidden;
}

#hub-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    transition: transform 0.5s var(--ease-out-expo), opacity 0.35s ease;
}

.hub-hover-icon-view {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5.5rem;
    color: white;
    background: radial-gradient(circle, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 2;
    border-radius: 50%;
}

.port-bg-ahorros .hub-hover-icon-view {
    background: radial-gradient(circle, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
}

.port-bg-convenios .hub-hover-icon-view {
    background: radial-gradient(circle, var(--color-accent) 0%, var(--color-accent-dark) 100%);
}

.portfolio-center-hub .simulator-header {
    background: transparent !important;
    color: inherit !important;
    padding: 0 !important;
    box-shadow: none !important;
}
.portfolio-center-hub .simulator-header::before {
    display: none !important;
}

/* Detailed Panels */
.hub-detail-panel {
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease 0.15s;
    display: flex;
    flex-direction: column;
}

.portfolio-center-hub.hub-expanded .hub-detail-panel {
    opacity: 1;
}

.hub-close-btn {
    align-self: flex-start;
    background: var(--color-bg-light);
    border: 1px solid rgba(0,0,0,0.06);
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 6px 16px;
    border-radius: 9999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    transition: all 0.25s ease;
}

.hub-close-btn:hover {
    background: var(--color-primary-soft);
    transform: translateX(-3px);
}

.hub-close-btn:active {
    transform: scale(0.95);
}

.hub-panel-content-wrapper {
    position: relative;
    width: 100%;
    flex-grow: 1;
}

.hub-panel-content {
    width: 100%;
    animation: panelFadeIn 0.4s ease both;
}

@keyframes panelFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.category-content-block {
    display: none;
    text-align: left;
}

.category-content-block.active {
    display: block;
}

.category-content-block h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 6px;
    text-transform: none;
    letter-spacing: -0.01em;
}

.panel-intro {
    font-size: 0.9rem;
    color: var(--color-text-body);
    margin-bottom: 16px;
}

.panel-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.panel-details-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--color-text-body);
    line-height: 1.5;
}

.panel-details-list li i {
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Mini Table for rates and comparison */
.panel-mini-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    margin-bottom: 8px;
}

.panel-mini-table th, .panel-mini-table td {
    padding: 8px 12px;
    text-align: left;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.panel-mini-table th {
    font-weight: 700;
    color: var(--color-secondary);
    background-color: var(--color-bg-light);
}

.panel-mini-table td strong {
    color: var(--color-secondary);
}

/* Orbit Cards Layout */
.orbit-card {
    position: absolute;
    background: white;
    border-radius: 20px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 3;
    width: 270px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.orbit-card--top-left {
    left: calc(50% - 480px);
    top: 90px;
}

.orbit-card--bottom-left {
    left: calc(50% - 480px);
    bottom: 90px;
}

.orbit-card--top-right {
    right: calc(50% - 480px);
    top: 90px;
}

.orbit-card--bottom-right {
    right: calc(50% - 480px);
    bottom: 90px;
}

.orbit-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.port-bg-creditos .orbit-card:hover {
    border-color: rgba(46, 56, 129, 0.15);
}
.port-bg-ahorros .orbit-card:hover {
    border-color: rgba(13, 122, 62, 0.15);
}
.port-bg-convenios .orbit-card:hover {
    border-color: rgba(243, 112, 33, 0.15);
}

.orbit-card:active {
    transform: scale(0.97);
}

.orbit-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.port-bg-creditos .orbit-card-icon {
    background: var(--color-secondary-soft);
    color: var(--color-secondary);
}
.port-bg-ahorros .orbit-card-icon {
    background: var(--color-primary-soft);
    color: var(--color-primary);
}
.port-bg-convenios .orbit-card-icon {
    background: var(--color-accent-soft);
    color: var(--color-accent);
}

.orbit-card:hover .orbit-card-icon {
    transform: scale(1.1);
    color: white;
}
.port-bg-creditos .orbit-card:hover .orbit-card-icon { background: var(--color-secondary); }
.port-bg-ahorros .orbit-card:hover .orbit-card-icon { background: var(--color-primary); }
.port-bg-convenios .orbit-card:hover .orbit-card-icon { background: var(--color-accent); }

.orbit-card-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.orbit-card-title {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--color-text-dark);
}

.orbit-card-desc {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    margin-top: 1px;
}

/* Fade out orbiting cards when active */
.portfolio-showcase.sim-active .orbit-card {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}


/* Tab Pill Selectors at bottom */
.portfolio-tab-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.portfolio-tab-pill {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    text-decoration: none;
    color: inherit;
    text-align: left;
    min-height: 90px;
    width: 100%;
    border-style: solid;
}

.portfolio-tab-pill:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 32px rgba(46, 56, 129, 0.06);
    border-color: rgba(46, 56, 129, 0.1);
}

.portfolio-tab-pill:active {
    transform: scale(0.97);
}

.pill-text-side {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pill-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--color-primary);
}

.pill-arrow {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    transition: transform 0.3s ease, color 0.3s ease;
}

.portfolio-tab-pill:hover .pill-arrow {
    transform: translateX(4px);
    color: var(--color-accent);
}

.pill-image-side {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--color-bg-light);
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.pill-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pill-image-side--icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-primary);
    background-color: var(--color-primary-soft);
}

/* ── In-Place Morphing Simulator ── */
.portfolio-simulator-view {
    display: none;
    width: 100%;
}

/* Responsiveness for Portfolio Circular Hub & Morphing */
@media (max-width: 992px) {
    .portfolio-showcase {
        flex-direction: column !important;
        min-height: auto !important;
        padding: 20px 0 !important;
        gap: 24px;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .hub-connecting-lines {
        display: none !important;
    }
    
    .portfolio-center-hub {
        width: 280px !important;
        height: 280px !important;
    }
    
    .portfolio-center-hub.hub-expanded {
        width: 100% !important;
        max-width: 100% !important;
        min-height: auto !important;
        border-radius: 24px !important;
        padding: 24px 16px !important;
    }
    
    #hub-avatar-img {
        height: 300px !important;
        margin-top: -30px !important;
        margin-bottom: -20px !important;
    }
    
    .orbit-card {
        position: static !important;
        width: 100% !important;
        max-width: 340px !important;
        margin: 0 auto !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
    }
    
    .portfolio-showcase.sim-active .orbit-card {
        display: none !important;
    }
    
    .simulator-grid-layout {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .portfolio-tab-buttons {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .portfolio-tab-pill {
        min-height: auto !important;
    }
}

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

/* Split Page Hero (Credits Page) */
.page-hero--split {
    padding: 120px 0 80px 0 !important;
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 10% 20%, rgba(244, 244, 245, 0.4) 0%, rgba(250, 250, 250, 0.8) 100%);
    position: relative;
    overflow: hidden;
}

.page-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
}

.page-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.kinetic-visual-wrapper {
    position: relative;
    width: 380px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kinetic-orbit-ring {
    position: absolute;
    border: 2px dashed rgba(46, 56, 129, 0.1);
    border-radius: 50%;
    animation: rotateOrbit 30s linear infinite;
    pointer-events: none;
}

.kinetic-orbit-ring.ring-1 {
    inset: -20px;
}

.kinetic-orbit-ring.ring-2 {
    inset: -50px;
    border-color: rgba(243, 112, 33, 0.08);
    animation-duration: 45s;
    animation-direction: reverse;
}

.kinetic-center-avatar {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.kinetic-center-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kinetic-floating-badge {
    position: absolute;
    background: white;
    padding: 12px 18px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 3;
    animation: floatBadge 6s ease-in-out infinite;
}

.kinetic-floating-badge i {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.kinetic-floating-badge.badge-estudio i {
    background: var(--color-secondary-soft);
    color: var(--color-secondary);
}

.kinetic-floating-badge div {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.kinetic-floating-badge .badge-num {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--color-text-dark);
    line-height: 1.1;
}

.kinetic-floating-badge .badge-txt {
    font-size: 0.68rem;
    color: var(--color-text-muted);
}

.kinetic-floating-badge.badge-tasa {
    left: -20px;
    top: 50px;
    animation-delay: 0s;
}

.kinetic-floating-badge.badge-estudio {
    right: -20px;
    bottom: 50px;
    animation-delay: 2s;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media (max-width: 992px) {
    .page-hero--split {
        padding: 80px 0 40px 0 !important;
        min-height: auto;
    }

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

    .kinetic-visual-wrapper {
        width: 280px;
        height: 280px;
    }

    .kinetic-center-avatar {
        width: 200px;
        height: 200px;
    }

    .kinetic-floating-badge.badge-tasa {
        left: -10px;
        top: 20px;
    }

    .kinetic-floating-badge.badge-estudio {
        right: -10px;
        bottom: 30px;
    }
}

/* Split Glass Card Layout for 10x Policy */
.glass-card--split {
    padding: 0 !important;
    overflow: hidden;
}

.glass-card--split .split-layout {
    gap: 0;
}

.glass-card--split .img-placeholder {
    height: 100%;
    min-height: 400px;
    border-radius: 0;
    margin: 0;
}

.glass-card--split img {
    transition: transform var(--transition-normal) !important;
}

.glass-card--split:hover img {
    transform: scale(1.04);
}

.glass-card--split .split-layout-content {
    padding: 48px;
}

@media (max-width: 992px) {
    .glass-card--split .img-placeholder {
        min-height: 250px;
    }
    .glass-card--split .split-layout-content {
        padding: 32px 24px;
    }
}

/* Savings Page Hero Visuals */
.savings-visual-container {
    position: relative;
    width: 380px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.savings-goal-card {
    width: 290px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 2;
    transition: transform var(--transition-normal);
}

.savings-goal-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.savings-goal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.savings-goal-header .badge-active {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--color-accent-soft);
    color: var(--color-accent);
    padding: 4px 10px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.savings-goal-title {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--color-text-dark);
}

.savings-progress-ring {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: conic-gradient(var(--color-primary) 0% 85%, rgba(0,0,0,0.06) 85% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}

.progress-ring-inner {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.progress-ring-num {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
}

.progress-ring-label {
    font-size: 0.65rem;
    color: var(--color-text-muted);
    font-weight: 600;
    margin-top: 2px;
}

.savings-goal-stats {
    display: flex;
    justify-content: space-between;
    width: 100%;
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 16px;
    text-align: center;
}

.savings-goal-stats > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.savings-goal-stats > div:first-child {
    border-right: 1px solid rgba(0,0,0,0.06);
}

.savings-goal-stats .stat-lbl {
    font-size: 0.65rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-weight: 600;
}

.savings-goal-stats .stat-val {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--color-text-dark);
}

.savings-floating-badge {
    position: absolute;
    background: white;
    padding: 12px 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.06);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--color-text-dark);
    z-index: 3;
}

.savings-floating-badge i {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.savings-floating-badge.badge-cero {
    left: -20px;
    top: 60px;
    animation: floatBadge 6s ease-in-out infinite;
}

.savings-floating-badge.badge-cero i {
    background: var(--color-primary-soft);
    color: var(--color-primary);
}

.savings-floating-badge.badge-seguro {
    right: -20px;
    bottom: 60px;
    animation: floatBadge 6s ease-in-out infinite;
    animation-delay: 3s;
}

.savings-floating-badge.badge-seguro i {
    background: var(--color-secondary-soft);
    color: var(--color-secondary);
}

/* Convenios Page Hero Visuals */
.benefits-deck-container {
    position: relative;
    width: 380px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.benefit-deck-card {
    position: absolute;
    width: 290px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-md);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
    cursor: default;
}

.deck-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.benefit-deck-card h4 {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--color-text-dark);
    margin: 0 0 2px 0;
}

.benefit-deck-card p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.3;
}

.benefit-deck-card.deck-card-1 {
    transform: translate3d(-10px, -40px, 0) rotate(-4deg);
    z-index: 3;
}

.benefit-deck-card.deck-card-2 {
    transform: translate3d(10px, 15px, 0) rotate(3deg);
    z-index: 2;
}

.benefit-deck-card.deck-card-3 {
    transform: translate3d(-15px, 70px, 0) rotate(-2deg);
    z-index: 1;
}

.benefits-deck-container:hover .benefit-deck-card.deck-card-1 {
    transform: translate3d(-50px, -70px, 20px) rotate(-8deg);
    box-shadow: var(--shadow-hover);
}

.benefits-deck-container:hover .benefit-deck-card.deck-card-2 {
    transform: translate3d(40px, 5px, 10px) rotate(6deg);
    box-shadow: var(--shadow-hover);
}

.benefits-deck-container:hover .benefit-deck-card.deck-card-3 {
    transform: translate3d(-15px, 85px, 0) rotate(-2deg);
    box-shadow: var(--shadow-hover);
}

/* Servicio Page Hero Visuals */
.service-dashboard-container {
    position: relative;
    width: 380px;
    height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.service-tracker-card {
    width: 320px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 22px;
    padding: 20px;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
}

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

.tracker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.tracker-id {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-text-muted);
}

.tracker-status {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 9999px;
    text-transform: uppercase;
}

.tracker-status.status-processing {
    background: var(--color-accent-soft);
    color: var(--color-accent);
}

.tracker-title {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--color-text-dark);
    margin-bottom: 16px;
}

.tracker-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 10px;
}

.tracker-steps::before {
    content: '';
    position: absolute;
    height: 2px;
    background: rgba(0, 0, 0, 0.06);
    left: 15px;
    right: 15px;
    top: 9px;
    z-index: 0;
}

.tracker-steps::after {
    content: '';
    position: absolute;
    height: 2px;
    background: var(--color-secondary);
    left: 15px;
    width: 60%;
    top: 9px;
    z-index: 0;
}

.tracker-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
    flex: 1;
}

.tracker-step .step-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 2px solid rgba(0, 0, 0, 0.12);
    transition: all var(--transition-normal);
}

.tracker-step.step-done .step-dot {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
}

.tracker-step.step-active .step-dot {
    border-color: var(--color-accent);
    background: white;
    box-shadow: 0 0 8px rgba(243, 112, 33, 0.3);
}

.tracker-step .step-label {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--color-text-muted);
}

.tracker-step.step-done .step-label,
.tracker-step.step-active .step-label {
    color: var(--color-text-dark);
}

.service-channels-widget {
    width: 320px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 22px;
    padding: 16px 20px;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
}

.service-channels-widget:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.service-channels-widget h4 {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--color-text-dark);
    margin: 0 0 12px 0;
}

.channels-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.channel-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 12px;
    background: transparent;
    transition: background var(--transition-normal);
}

.channel-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.channel-item i {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.channel-item span {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-dark);
}

/* Responsiveness Reset for new visual containers */
@media (max-width: 992px) {
    .savings-visual-container,
    .benefits-deck-container,
    .service-dashboard-container {
        width: 100%;
        height: auto;
        min-height: 280px;
        margin-top: 20px;
    }
    
    .savings-goal-card,
    .benefit-deck-card,
    .service-tracker-card,
    .service-channels-widget {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .savings-floating-badge.badge-cero {
        left: 0px;
        top: 0px;
    }
    .savings-floating-badge.badge-seguro {
        right: 0px;
        bottom: 0px;
    }
    
    .benefit-deck-card.deck-card-1 {
        transform: translate3d(0, -30px, 0);
    }
    .benefit-deck-card.deck-card-2 {
        transform: translate3d(0, 45px, 0);
    }
    .benefit-deck-card.deck-card-3 {
        transform: translate3d(0, 120px, 0);
    }
    .benefits-deck-container {
        min-height: 320px;
    }
    .benefits-deck-container:hover .benefit-deck-card.deck-card-1,
    .benefits-deck-container:hover .benefit-deck-card.deck-card-2,
    .benefits-deck-container:hover .benefit-deck-card.deck-card-3 {
        transform: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   §25. DIGITAL INTERACTIVE BROCHURE & PRINT CSS
   ═══════════════════════════════════════════════════════════════════════════ */

/* Brochure Top Header */
.brochure-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
}
.brochure-header-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brochure-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.brochure-logo img {
    height: 38px;
    width: auto;
}
.brochure-logo span {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--color-primary);
    letter-spacing: 0.05em;
}
.brochure-actions {
    display: flex;
    gap: 12px;
}

/* Bullet Pagination */
.brochure-dots {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 900;
}
.brochure-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}
.brochure-dot:hover {
    background: var(--color-primary);
    transform: scale(1.2);
}
.brochure-dot.active {
    background: var(--color-primary);
    border-color: white;
    box-shadow: 0 0 0 3px var(--color-primary-soft);
    transform: scale(1.3);
}

/* Page Deck Container */
.brochure-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 110px 24px 60px 24px;
    box-sizing: border-box;
}

/* Brochure Page Sheet Style (Letter/A4 Landscape Look) */
.brochure-page {
    background: white;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(46, 56, 129, 0.05), 0 2px 5px rgba(0, 0, 0, 0.02);
    margin: 0 auto 50px auto;
    width: 100%;
    max-width: 1050px;
    min-height: 680px;
    position: relative;
    border: 1px solid rgba(46, 56, 129, 0.08);
    box-sizing: border-box;
    overflow: hidden;
}
.page-sheet-content {
    height: 100%;
    min-height: 680px;
    padding: 48px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Sheet Header & Footer */
.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 12px;
    margin-bottom: 24px;
}
.header-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--color-primary);
    letter-spacing: 0.03em;
}
.header-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
}
.sheet-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 12px;
    margin-top: 24px;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Slide Typography & Layouts */
.slide-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 16px 0;
    letter-spacing: -0.01em;
}
.sheet-grid {
    display: grid;
    gap: 36px;
    flex-grow: 1;
    align-items: center;
}
.grid-50-50 {
    grid-template-columns: 1fr 1fr;
}
.grid-55-45 {
    grid-template-columns: 1.2fr 0.8fr;
}
.grid-col-left, .grid-col-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

/* Page 1: Cover Page */
.page-cover {
    background: linear-gradient(135deg, hsl(147, 70%, 28%), hsl(160, 60%, 16%));
    color: white;
    border-color: transparent;
}
.page-cover .page-sheet-content {
    padding: 48px;
}
.cover-hero {
    margin: auto 0;
}
.page-cover .cover-logo-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 24px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.cover-logo {
    height: 54px;
    width: auto;
}
.page-cover .cover-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    margin: 0 0 12px 0;
    background: linear-gradient(135deg, white 40%, var(--color-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: left;
}
.page-cover .cover-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-primary-light);
    margin-bottom: 24px;
    text-align: left;
}
.page-cover .cover-brand-divider {
    width: 80px;
    height: 4px;
    background: var(--color-accent);
    margin: 0 0 24px 0;
    border-radius: 2px;
}
.page-cover .cover-tagline {
    max-width: 100%;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0 0 32px 0;
    text-align: left;
}
.page-cover .cover-badge-row {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
}
.cover-badge {
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.page-cover .sheet-footer {
    border-top-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
}

/* Page 2: Identity (Stats Grid) */
.value-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}
.value-item {
    display: flex;
    gap: 16px;
}
.value-item i {
    font-size: 1.4rem;
    margin-top: 3px;
}
.value-item strong {
    display: block;
    color: var(--color-secondary);
    margin-bottom: 4px;
}
.value-item p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}
.brochure-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.brochure-stat-card {
    background: var(--color-bg-alt);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.02);
}
.brochure-stat-card .stats-bar-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-primary);
}
.brochure-stat-card .stats-bar-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 700;
}

/* Page 3: Credits Details */
.brochure-credit-lines {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.credit-line-card {
    display: flex;
    gap: 16px;
    background: var(--color-bg-alt);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(46, 56, 129, 0.05);
}
.credit-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.credit-line-card strong {
    font-size: 0.95rem;
    color: var(--color-secondary);
}
.credit-line-card p {
    font-size: 0.8rem;
    margin: 4px 0 0 0;
    line-height: 1.4;
}
.leverage-policy-card {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    padding: 20px;
    border-radius: 14px;
    box-shadow: var(--shadow-primary);
}
.leverage-policy-card h4 {
    margin: 0 0 8px 0;
    font-size: 0.95rem;
    color: white;
}
.leverage-policy-card p {
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 0 0 12px 0;
    color: rgba(255, 255, 255, 0.85);
}
.leverage-example {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 8px;
    font-size: 0.75rem;
}
.leverage-example i {
    color: var(--color-accent);
    font-size: 0.9rem;
    margin-top: 2px;
}

/* Page 4: Savings Details */
.brochure-saving-products {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.saving-product-item {
    display: flex;
    gap: 16px;
}
.saving-badge {
    padding: 6px 12px;
    background: var(--color-secondary-soft);
    color: var(--color-secondary);
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    height: fit-content;
    flex-shrink: 0;
}
.saving-product-item strong {
    font-size: 0.95rem;
    color: var(--color-secondary);
}
.saving-product-item p {
    font-size: 0.8rem;
    margin: 4px 0 0 0;
    line-height: 1.4;
}
.savings-highlights {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--color-bg-alt);
    padding: 20px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.02);
}
.highlight-item {
    display: flex;
    gap: 16px;
}
.highlight-item i {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-top: 3px;
}
.highlight-item strong {
    display: block;
    font-size: 0.9rem;
    color: var(--color-secondary);
}
.highlight-item p {
    font-size: 0.8rem;
    margin: 4px 0 0 0;
    color: var(--color-text-muted);
}

/* Page 5: Convenios Summaries */
.convenios-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.convenio-summary-card {
    display: flex;
    gap: 14px;
}
.c-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.convenio-summary-card strong {
    font-size: 0.9rem;
    color: var(--color-secondary);
}
.convenio-summary-card p {
    font-size: 0.78rem;
    margin: 4px 0 0 0;
    line-height: 1.4;
}
.convenios-steps-box {
    background: var(--color-bg-alt);
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 0.8rem;
}
.convenios-steps-box strong {
    display: block;
    color: var(--color-primary);
    margin-bottom: 8px;
}
.convenios-steps-box ol {
    margin: 0;
    padding-left: 16px;
}
.convenios-steps-box li {
    margin-bottom: 6px;
    line-height: 1.4;
}

/* Page 6: Contact & leads Form */
.brochure-form-card {
    background: var(--color-bg-alt) !important;
    padding: 20px !important;
    border-radius: 12px !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
}
.brochure-form-card .form-grid {
    gap: 12px;
}
.brochure-form-card .form-group {
    margin-bottom: 0;
}
.brochure-form-card .form-input {
    padding: 10px 14px;
    font-size: 0.85rem;
}
.brochure-form-card .form-label {
    font-size: 0.75rem;
    margin-bottom: 4px;
}
.brochure-form-card .form-checkbox {
    margin-top: 10px;
    margin-bottom: 12px;
}
.brochure-contact-channels {
    background: var(--color-bg-alt);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.02);
}
.brochure-contact-channels h4 {
    margin: 0 0 16px 0;
    font-size: 0.95rem;
    color: var(--color-primary);
}
.brochure-contact-channels ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.brochure-contact-channels li {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
}
.brochure-contact-channels i {
    width: 24px;
    color: var(--color-primary);
    font-size: 1rem;
}

/* Responsive collapse brochure on mobile screen sizes */
@media (max-width: 992px) {
    .brochure-container {
        padding-top: 90px;
    }
    .brochure-dots {
        display: none; /* Hide dots on mobile/tablet */
    }
    .brochure-page {
        min-height: auto;
        margin-bottom: 32px;
    }
    .page-sheet-content {
        min-height: auto;
        padding: 24px;
    }
    .sheet-grid {
        grid-template-columns: 1fr !important;
        gap: 24px;
        margin: 20px 0;
    }
    .brochure-header-container {
        padding: 0 16px;
    }
    .brochure-logo span {
        display: none; /* Hide logo title on small screens */
    }
    .cover-badge-row {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   §26. PRINT-TO-PDF STYLESHEET
   ═══════════════════════════════════════════════════════════════════════════ */
@media print {
    /* Set page margins & size */
    @page {
        size: letter landscape;
        margin: 0;
    }
    
    /* Reset body defaults for clean printing */
    html, body {
        background: white !important;
        color: #111 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        height: 100% !important;
        font-size: 11pt !important;
    }
    
    /* Hide interactive elements, loaders, and floating widgets */
    .no-print,
    .brochure-header,
    .brochure-dots,
    .whatsapp-float,
    .back-to-top,
    .page-loader,
    button[type="submit"] {
        display: none !important;
    }
    
    /* Setup Page Sheet Layout for Printing */
    .brochure-container {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    .brochure-page {
        box-shadow: none !important;
        border: none !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        min-height: 100vh !important;
        page-break-after: always !important;
        page-break-inside: avoid !important;
        background: white !important;
        display: flex !important;
        flex-direction: column !important;
        box-sizing: border-box !important;
    }
    
    .page-sheet-content {
        padding: 0.8in !important;
        height: 100% !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        box-sizing: border-box !important;
    }
    
    /* Ensure high resolution graphics and background shapes print correctly */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    .page-cover {
        background: linear-gradient(135deg, hsl(147, 70%, 28%), hsl(160, 60%, 16%)) !important;
        color: white !important;
    }
    .cover-title {
        -webkit-text-fill-color: initial !important;
        background: none !important;
        color: white !important;
    }
    
    .gradient-text {
        -webkit-text-fill-color: initial !important;
        background: none !important;
        color: var(--color-primary) !important;
    }
    
    /* Make print layouts stable */
    .sheet-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.4in !important;
    }
    .grid-50-50 {
        grid-template-columns: 1fr 1fr !important;
    }
    .grid-55-45 {
        grid-template-columns: 1.1fr 0.9fr !important;
    }
    
    /* Stylings adjustments for forms in print */
    .brochure-form-card {
        background: #fdfdfd !important;
        border: 1px solid #ccc !important;
    }
    .form-input {
        border: 1px solid #999 !important;
    }
}


