/* ==========================================================================
   ASISTEC SEGURIDAD - Light & Luminous Premium Theme (Celeste / Blanco / Azul)
   ========================================================================== */

:root {
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Outfit', 'Inter', sans-serif;

    /* Luminous Celeste Palette */
    --color-bg-main: #f8fafc;
    --color-bg-card: #ffffff;
    --color-bg-card-hover: #ffffff;
    --color-header: rgba(255, 255, 255, 0.92);
    
    --color-primary: #0284c7; /* Celeste / Electric Cyan */
    --color-primary-light: #38bdf8;
    --color-primary-dark: #0369a1;
    --color-primary-glow: rgba(2, 132, 199, 0.15);
    
    --color-text-main: #0f172a; /* Slate Dark Navy for maximum contrast & legibility */
    --color-text-sub: #334155;
    --color-text-muted: #64748b;
    
    --color-border: rgba(2, 132, 199, 0.15);
    --color-border-glow: rgba(2, 132, 199, 0.35);

    /* Spacing & Radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body.light-luminous-theme {
    font-family: var(--font-primary);
    background-color: var(--color-bg-main);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography Base */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-text-main);
    font-weight: 700;
    line-height: 1.2;
}

p {
    color: var(--color-text-sub);
}

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

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Background Ambient Glows & Dynamic HD Fixed Image */
.bg-fx {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.78) 0%, rgba(240, 249, 255, 0.84) 50%, rgba(248, 250, 252, 0.88) 100%);
}

.bg-fx-image {
    position: absolute;
    inset: -30px;
    background-image: url('../assets/security_background_hd.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.28;
    filter: saturate(1.25) contrast(1.1) brightness(1.04);
    animation: bgKenBurns 28s ease-in-out infinite alternate;
    transform-origin: center center;
    will-change: transform;
}

@keyframes bgKenBurns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    50% {
        transform: scale(1.05) translate(-12px, 8px);
    }
    100% {
        transform: scale(1.09) translate(10px, -10px);
    }
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.75;
    will-change: transform;
}

.orb-1 {
    top: -10%;
    right: 5%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.32) 0%, rgba(2, 132, 199, 0.08) 70%);
    animation: orbFloat1 18s ease-in-out infinite alternate;
}

.orb-2 {
    bottom: 5%;
    left: -5%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(186, 230, 253, 0.4) 0%, rgba(240, 249, 255, 0.08) 70%);
    animation: orbFloat2 22s ease-in-out infinite alternate;
}

.orb-3 {
    top: 45%;
    right: 30%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.22) 0%, rgba(56, 189, 248, 0.02) 75%);
    animation: orbFloat3 15s ease-in-out infinite alternate;
}

@keyframes orbFloat1 {
    0% { transform: translateY(0px) translateX(0px) scale(1); }
    100% { transform: translateY(40px) translateX(-30px) scale(1.12); }
}

@keyframes orbFloat2 {
    0% { transform: translateY(0px) translateX(0px) scale(1); }
    100% { transform: translateY(-50px) translateX(35px) scale(1.08); }
}

@keyframes orbFloat3 {
    0% { transform: scale(0.9) translateY(0); }
    100% { transform: scale(1.15) translateY(-25px); }
}

.security-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(2, 132, 199, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(2, 132, 199, 0.05) 1px, transparent 1px);
    background-size: 45px 45px;
    opacity: 0.85;
}

.cyber-scanline {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 250px;
    background: linear-gradient(180deg, transparent 0%, rgba(56, 189, 248, 0.06) 50%, transparent 100%);
    animation: cyberScan 16s linear infinite;
    pointer-events: none;
}

@keyframes cyberScan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(600%); }
}

/* Header Navigation - Tono Oscuro Premium */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(2, 132, 199, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    transition: all var(--transition-fast);
}

.site-header.is-scrolled {
    background-color: rgba(7, 13, 24, 0.98);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    border-bottom-color: rgba(2, 132, 199, 0.45);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    position: relative;
}

/* --------------------------------------------------------
   3D LOGO ROTATION & SPECULAR GLARE (Escala Original Asistec)
   -------------------------------------------------------- */
/* --------------------------------------------------------
   MAIN NAVBAR LOGO - HIGH DEFINITION & CLEAN
   -------------------------------------------------------- */
.main-brand-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    height: 48px;
    padding: 2px 4px;
    border-radius: 8px;
    transition: transform 0.25s ease;
}

.main-logo-img {
    height: 44px;
    width: auto;
    max-height: 48px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
}

.main-brand-logo:hover .main-logo-img {
    transform: scale(1.04);
    filter: drop-shadow(0 4px 12px rgba(56, 189, 248, 0.35));
}

/* --------------------------------------------------------
   ESTRUCTURA DE MENÚ SUPERIOR ULTRA-PREMIUM (Tono Oscuro)
   -------------------------------------------------------- */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(2, 132, 199, 0.35);
    padding: 6px 12px;
    border-radius: 9999px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.nav-link {
    font-size: 0.92rem;
    font-weight: 600;
    color: #e2e8f0;
    position: relative;
    padding: 8px 16px;
    border-radius: 9999px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover {
    color: #38bdf8;
    background: rgba(2, 132, 199, 0.22);
}

.nav-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    box-shadow: 0 4px 18px rgba(2, 132, 199, 0.45);
}

/* Mobile Hamburger Toggle */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: rgba(2, 132, 199, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 12px;
    cursor: pointer;
    z-index: 110;
    transition: all var(--transition-fast);
}

.mobile-nav-toggle:hover {
    background: rgba(2, 132, 199, 0.28);
    border-color: #38bdf8;
}

.hamburger-bar {
    width: 100%;
    height: 2.5px;
    background-color: #38bdf8;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger open state */
.mobile-nav-toggle.open .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: #ffffff;
}

.mobile-nav-toggle.open .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.open .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: #ffffff;
}

/* Overlay for Mobile Navigation Drawer */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================================================
   Hero Split Layout (Text + Quoting Wizard Visible Above The Fold)
   ========================================================================== */
.hero-section {
    position: relative;
    z-index: 1;
    padding: 3.5rem 0 4rem;
}

.hero-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: flex-start;
}

.hero-text-col {
    display: flex;
    flex-direction: column;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    background: rgba(2, 132, 199, 0.08);
    border: 1px solid rgba(2, 132, 199, 0.25);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
    width: fit-content;
}

.hero-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    letter-spacing: -0.02em;
    color: var(--color-text-main);
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-sub);
    line-height: 1.65;
    margin-bottom: 1.75rem;
}

.hero-tags-bar {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.tag-pill {
    background: #ffffff;
    border: 1px solid var(--color-border);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-sub);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.05);
}

.tag-pill svg { color: var(--color-primary); }

.tag-pill.highlight-pill {
    background: rgba(2, 132, 199, 0.08);
    border-color: rgba(2, 132, 199, 0.3);
    color: var(--color-primary-dark);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.06);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-primary);
}

.stat-label {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

.stat-divider {
    width: 1px;
    height: 35px;
    background: var(--color-border);
}

/* Wizard embedded in Hero */
.hero-wizard-card {
    background: #ffffff;
    border: 1px solid var(--color-border-glow);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: 0 20px 50px rgba(2, 132, 199, 0.12);
}

.wizard-card-header h2 {
    font-size: 1.4rem;
    color: var(--color-text-main);
    margin-bottom: 4px;
}

.wizard-card-header p {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.25);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.35);
}

.btn-secondary {
    background: #f1f5f9;
    color: var(--color-text-main);
    border-color: var(--color-border);
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1rem;
}

/* Services Section */
.services-section {
    padding: 5rem 0;
    position: relative;
    z-index: 1;
}

.section-header {
    max-width: 700px;
    margin: 0 auto 3.5rem;
}

.text-center { text-align: center; }

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    margin-bottom: 0.6rem;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

.section-desc {
    font-size: 1.05rem;
    color: var(--color-text-sub);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.service-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.25rem 1.75rem;
    box-shadow: 0 10px 30px rgba(2, 132, 199, 0.05);
    transition: all var(--transition-normal);
}

.service-card:hover {
    border-color: var(--color-primary-light);
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(2, 132, 199, 0.12);
}

.service-icon {
    width: 52px;
    height: 52px;
    background: rgba(2, 132, 199, 0.1);
    border: 1px solid rgba(2, 132, 199, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.service-icon svg { width: 26px; height: 26px; }

.service-title {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    color: var(--color-text-main);
}

.service-desc {
    font-size: 0.95rem;
    color: var(--color-text-sub);
    line-height: 1.6;
}

/* Benefits Section */
.benefits-section {
    padding: 5rem 0;
    background: rgba(240, 249, 255, 0.6);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    position: relative;
    z-index: 1;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(2, 132, 199, 0.05);
    position: relative;
}

.benefit-step {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary-light);
    margin-bottom: 1rem;
}

.benefit-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-main);
}

.benefit-card p {
    font-size: 0.95rem;
    color: var(--color-text-sub);
}

/* Exterior Section */
.exterior-section {
    padding: 4rem 0;
    position: relative;
    z-index: 1;
}

.exterior-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    border: 1px solid var(--color-border-glow);
    border-radius: var(--radius-lg);
    padding: 3rem;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    box-shadow: 0 20px 45px rgba(2, 132, 199, 0.1);
}

.exterior-icon {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    background: rgba(2, 132, 199, 0.1);
    border: 1px solid rgba(2, 132, 199, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
}

.exterior-title {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    color: var(--color-text-main);
    margin-bottom: 8px;
}

.exterior-text {
    color: var(--color-text-sub);
    font-size: 1rem;
    line-height: 1.6;
}

/* References Section */
.references-section {
    padding: 5rem 0;
    position: relative;
    z-index: 1;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
}

.doc-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(2, 132, 199, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.doc-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.doc-badge {
    background: rgba(2, 132, 199, 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(2, 132, 199, 0.2);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.doc-date {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.doc-title {
    font-size: 1.15rem;
    color: var(--color-text-main);
    margin-bottom: 0.75rem;
}

.doc-summary {
    font-size: 0.92rem;
    color: var(--color-text-sub);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.doc-meta {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    border-top: 1px dashed var(--color-border);
    padding-top: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Footer */
.site-footer {
    background: #0f172a;
    color: #f8fafc;
    padding: 3.5rem 0 2rem;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-logo {
    height: 48px;
    width: auto;
}

.footer-location {
    font-size: 0.92rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-email {
    font-size: 1rem;
    color: #38bdf8;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-copy {
    border-top: 1px solid #1e293b;
    width: 100%;
    padding-top: 1.5rem;
    font-size: 0.85rem;
    color: #64748b;
}

/* Responsive Layout */
@media (max-width: 992px) {
    .hero-split-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        align-items: stretch;
        padding: 1.25rem 1.5rem 1.75rem;
        border-bottom: 2px solid #0284c7;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
        gap: 0.65rem;
        border-radius: 0 0 20px 20px;
        z-index: 100;
        animation: mobileNavDown 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .main-nav.mobile-active {
        display: flex;
    }

    .main-nav .nav-link {
        padding: 12px 18px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: #f1f5f9;
        font-size: 1.02rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 10px;
        transition: all 0.2s ease;
    }

    .main-nav .nav-link::after {
        display: none;
    }

    .main-nav .nav-link:hover,
    .main-nav .nav-link.active {
        background: linear-gradient(135deg, rgba(2, 132, 199, 0.35) 0%, rgba(3, 105, 161, 0.5) 100%);
        border-color: #38bdf8;
        color: #ffffff;
        box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
    }

    .mobile-menu-cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        margin-top: 8px;
        padding: 13px 20px;
        font-weight: 700;
        font-size: 0.98rem;
        border-radius: 12px;
        background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
        color: #ffffff !important;
        box-shadow: 0 4px 18px rgba(2, 132, 199, 0.45);
        border: none;
        transition: all 0.2s ease;
    }

    .mobile-menu-cta:hover {
        background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
        transform: translateY(-1px);
    }

    .header-actions {
        display: none;
    }

    .exterior-card {
        flex-direction: column;
        text-align: center;
        padding: 2.25rem 1.5rem;
        gap: 1.5rem;
    }
}

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

/* ==========================================================================
   ULTRA-PREMIUM QUOTING WIZARD STYLES
   ========================================================================== */
.hero-wizard-card {
    background: #ffffff;
    border: 1px solid rgba(2, 132, 199, 0.28);
    border-radius: 24px;
    padding: 2.25rem 2rem;
    box-shadow: 0 25px 60px -10px rgba(2, 132, 199, 0.16), 0 0 2px rgba(2, 132, 199, 0.3);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.hero-wizard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0284c7, #38bdf8, #0369a1);
}

.wizard-card-header h2 {
    font-size: 1.45rem;
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.wizard-card-header p {
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 1.25rem;
}

/* Progress Tracker */
.wizard-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    position: relative;
}

.wizard-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
    z-index: 2;
}

.step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 2px solid #cbd5e1;
    color: #64748b;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.wizard-step-indicator.active .step-num {
    background: #0284c7;
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(2, 132, 199, 0.45);
}

.wizard-step-indicator.completed .step-num {
    background: #10b981;
    border-color: #34d399;
    color: #ffffff;
}

.step-title {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
}

.wizard-step-indicator.active .step-title {
    color: #0284c7;
    font-weight: 700;
}

.wizard-step-line {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin: 0 8px;
    margin-top: -16px;
}

/* Panes */
.wizard-step-pane {
    display: none;
    animation: wizardPaneIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.wizard-step-pane.active {
    display: block;
}

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

.pane-title {
    font-size: 1.12rem;
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(2, 132, 199, 0.12);
}

.pane-icon {
    color: #0284c7;
    flex-shrink: 0;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.flex-1 { flex: 1; }

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.form-group label svg {
    color: #0284c7;
    opacity: 0.85;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select,
.form-group textarea,
.conditional-box select {
    width: 100%;
    padding: 11px 14px;
    background: #f8fafc;
    border: 1px solid rgba(2, 132, 199, 0.2);
    border-radius: 12px;
    color: #0f172a;
    font-size: 0.92rem;
    font-family: inherit;
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0284c7;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.14);
}

.form-group input.input-error,
.form-group select.input-error {
    border-color: #ef4444 !important;
    background: #fff5f5 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
    animation: inputShake 0.3s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes inputShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

/* Radio & Checkbox Selection Cards */
.radio-options-grid,
.checkbox-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.85rem;
}

.radio-card,
.checkbox-card {
    background: #ffffff;
    border: 1.5px solid rgba(2, 132, 199, 0.18);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    user-select: none;
}

.card-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(2, 132, 199, 0.08);
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.card-icon-badge.icon-shield { background: rgba(2, 132, 199, 0.12); color: #0284c7; }
.card-icon-badge.icon-camera { background: rgba(14, 165, 233, 0.12); color: #0ea5e9; }
.card-icon-badge.icon-fire { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.card-icon-badge.icon-network { background: rgba(16, 185, 129, 0.12); color: #059669; }

.radio-card:hover,
.checkbox-card:hover {
    border-color: #0284c7;
    background: #f0f9ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.12);
}

.radio-card:has(:checked),
.checkbox-card:has(:checked) {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #0284c7;
    box-shadow: 0 8px 22px rgba(2, 132, 199, 0.18), 0 0 0 1px #0284c7;
}

.radio-card:has(:checked) .card-icon-badge,
.checkbox-card:has(:checked) .card-icon-badge {
    background: #0284c7;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.radio-card input,
.checkbox-card input {
    accent-color: #0284c7;
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

.radio-content,
.checkbox-content {
    display: flex;
    flex-direction: column;
}

.radio-content strong,
.checkbox-content strong {
    font-size: 0.9rem;
    color: #0f172a;
    font-weight: 600;
    line-height: 1.25;
}

.radio-content small,
.checkbox-content small {
    font-size: 0.76rem;
    color: #64748b;
    margin-top: 2px;
}

/* Conditional Boxes */
.conditional-box {
    background: #f0f9ff;
    border: 1px solid rgba(2, 132, 199, 0.25);
    border-radius: 12px;
    padding: 14px;
    margin-top: 10px;
}

.conditional-box label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #0369a1;
    margin-bottom: 6px;
}

/* Step 4 Dynamic Summary Recap Box */
.wizard-summary-recap {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid rgba(2, 132, 199, 0.2);
    border-radius: 14px;
    padding: 14px 16px;
    margin-top: 14px;
    margin-bottom: 12px;
}

.recap-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0284c7;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px dashed rgba(2, 132, 199, 0.2);
}

.recap-grid {
    display: grid;
    gap: 6px;
}

.recap-item {
    display: flex;
    font-size: 0.83rem;
    gap: 8px;
}

.recap-label {
    color: #64748b;
    font-weight: 600;
    min-width: 75px;
}

.recap-val {
    color: #0f172a;
    font-weight: 600;
}

/* Captcha Badge Box */
.captcha-box {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1.5px solid rgba(245, 158, 11, 0.4);
    border-radius: 14px;
    padding: 14px 16px;
    margin-top: 14px;
}

.captcha-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b45309;
    font-size: 0.88rem;
    font-weight: 700;
}

.captcha-reload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #b45309;
    cursor: pointer;
    transition: all 0.2s ease;
}

.captcha-reload-btn:hover {
    background: #fef3c7;
    transform: rotate(45deg);
}

.wizard-nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e2e8f0;
}

.justify-end { justify-content: flex-end; }
.margin-top-10 { margin-top: 10px; }
.margin-bottom-12 { margin-bottom: 12px; }

/* Wizard Primary Button */
.wizard-form .btn-primary {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 12px 22px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.3);
    transition: all 0.25s ease;
}

.wizard-form .btn-primary:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(2, 132, 199, 0.4);
}

.wizard-form .btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 0.9rem;
}

.wizard-form .btn-secondary:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* ==========================================================================
   SECCIÓN INVERSORES & OPORTUNIDADES DE DESARROLLO (ULTRA-PREMIUM)
   ========================================================================== */
.investors-section {
    padding: 5rem 0;
    position: relative;
    z-index: 1;
}

.investor-hero-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    border: 1px solid rgba(2, 132, 199, 0.28);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(2, 132, 199, 0.12);
    position: relative;
    overflow: hidden;
}

.investor-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0284c7, #38bdf8, #0369a1);
}

.investor-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.investor-title-col {
    flex: 1;
    min-width: 280px;
}

.investor-title {
    font-size: clamp(1.8rem, 3.2vw, 2.4rem);
    color: var(--color-text-main);
    margin-top: 6px;
    margin-bottom: 10px;
    line-height: 1.25;
}

.investor-sub {
    font-size: 1.05rem;
    color: #0284c7;
    font-weight: 600;
}

.investor-cta-col {
    align-self: center;
}

.investor-body-text {
    font-size: 1.02rem;
    color: var(--color-text-sub);
    line-height: 1.7;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    margin-bottom: 2.25rem;
    box-shadow: 0 4px 20px rgba(2, 132, 199, 0.04);
}

.investor-pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.pillar-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    transition: all 0.25s ease;
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.05);
}

.pillar-card:hover {
    border-color: #0284c7;
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(2, 132, 199, 0.12);
}

.pillar-icon {
    width: 48px;
    height: 48px;
    background: rgba(2, 132, 199, 0.1);
    border: 1px solid rgba(2, 132, 199, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0284c7;
    margin-bottom: 1rem;
}

.pillar-card h4 {
    font-size: 1.1rem;
    color: #0f172a;
    margin-bottom: 8px;
}

.pillar-card p {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.55;
}

/* ==========================================================================
   MODAL WINDOW STYLES FOR INVESTOR INQUIRIES
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: modalFadeIn 0.25s ease forwards;
}

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

.modal-card {
    background: #ffffff;
    border: 1px solid rgba(2, 132, 199, 0.3);
    border-radius: 24px;
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.25rem 2rem;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-card.split-investor-card {
    max-width: 920px;
    padding: 0;
    overflow: hidden;
}

.modal-split-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    min-height: 560px;
}

@media (max-width: 840px) {
    .modal-split-grid {
        grid-template-columns: 1fr;
    }
    .modal-hero-side {
        display: none;
    }
}

.modal-hero-side {
    position: relative;
    background: #0f172a;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.modal-hero-bg {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(180deg, rgba(15, 23, 42, 0.88) 0%, rgba(2, 132, 199, 0.85) 100%),
        url('../assets/security_background_hd.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.95;
    filter: saturate(1.2);
}

.modal-hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.modal-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 9999px;
    background: rgba(56, 189, 248, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
    margin-bottom: 1rem;
}

.modal-hero-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.modal-hero-desc {
    font-size: 0.88rem;
    color: #cbd5e1;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.modal-hero-highlights {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.83rem;
    color: #f1f5f9;
    line-height: 1.35;
}

.highlight-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.25);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
}

.modal-hero-footer-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(15, 23, 42, 0.6);
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.modal-form-side {
    padding: 2.25rem 2rem;
    overflow-y: auto;
    max-height: 85vh;
}

@keyframes modalSlideUp {
    from { transform: translateY(20px) scale(0.96); }
    to { transform: translateY(0) scale(1); }
}

.modal-close-btn {
    position: absolute;
    top: 18px;
    right: 20px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.modal-header {
    margin-bottom: 1.5rem;
    padding-right: 40px;
}

.modal-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #0284c7;
    margin-bottom: 4px;
    letter-spacing: 0.05em;
}

.modal-header h2 {
    font-size: 1.45rem;
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 4px;
}

.modal-header p {
    font-size: 0.88rem;
    color: #64748b;
}

@media (max-width: 768px) {
    .investor-hero-card {
        padding: 2rem 1.5rem;
    }
    
    .investor-header-row {
        flex-direction: column;
    }
    
    .investor-cta-col {
        width: 100%;
    }
    
    .investor-cta-col .btn {
        width: 100%;
    }
}

/* ====================================================
   ETIQUETAS Y LOGOS DE CARTAS DE REFERENCIA (GRIS A COLOR)
   ==================================================== */
.ref-brand-tags-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-top: 24px;
    margin-bottom: 40px;
    padding: 10px;
}

.ref-brand-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px; /* Pill shape badge */
    padding: 8px 18px 8px 10px;
    cursor: pointer;
    /* Default GRAYSCALE state as requested */
    filter: grayscale(100%);
    opacity: 0.65;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* HOVER EFFECT: Turns into full color on hover */
.ref-brand-tag:hover {
    filter: grayscale(0%);
    opacity: 1;
    border-color: #0284c7;
    background: rgba(14, 165, 233, 0.16);
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 24px -4px rgba(14, 165, 233, 0.4);
}

.ref-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    padding: 3px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.ref-brand-tag:hover .ref-brand-logo {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

.ref-brand-info {
    display: flex;
    flex-direction: flex-start;
    align-items: center;
    gap: 8px;
    text-align: left;
}

.ref-brand-name {
    font-size: 0.84rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.ref-brand-year {
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.doc-badge-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
    vertical-align: middle;
}

.doc-badge-logo svg {
    display: block;
}

/* ====================================================
   CARROUSEL MODERNO DE CARTAS DE REFERENCIA (GRIS A COLOR)
   ==================================================== */
.ref-carousel-wrapper {
    position: relative;
    margin-top: 20px;
    padding: 0 10px;
}

/* FLECHAS DE NAVEGACIÓN */
.ref-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-70%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ref-btn-prev {
    left: -20px;
}

.ref-btn-next {
    right: -20px;
}

.ref-carousel-btn:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #38bdf8;
    transform: translateY(-70%) scale(1.12);
    box-shadow: 0 0 25px rgba(14, 165, 233, 0.6);
}

/* TRACK DEL CARROUSEL */
.ref-carousel-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding: 24px 8px 32px 8px;
    scroll-behavior: smooth;
}

.ref-carousel-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

/* TARJETA DEL CARROUSEL - GRIS A COLOR */
.ref-carousel-card {
    flex: 0 0 380px;
    max-width: 88vw;
    scroll-snap-align: center;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 26px;
    /* ESTADO DEFAULT: EN GRIS */
    filter: grayscale(100%);
    opacity: 0.75;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    user-select: none;
}

/* HOVER EFFECT: TRANSICIÓN A COLOR VIVO Y LUZ CIAN */
.ref-carousel-card:hover {
    filter: grayscale(0%);
    opacity: 1;
    border-color: #0284c7;
    background: rgba(14, 165, 233, 0.14);
    transform: translateY(-8px) scale(1.025);
    box-shadow: 0 20px 45px -10px rgba(14, 165, 233, 0.4);
}

/* ENCABEZADO DE LA TARJETA */
.ref-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.ref-card-logo-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ref-card-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(2, 132, 199, 0.2);
    padding: 5px 8px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.brand-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.brand-logo-img.brand-logo-wide {
    max-height: 38px;
    width: auto;
}

.ref-carousel-card:hover .ref-card-logo-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(56, 189, 248, 0.5);
}

.ref-card-institution {
    display: flex;
    flex-direction: column;
}

.ref-card-badge-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.25;
}

.ref-card-verified-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #38bdf8;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ref-card-date {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

/* CUERPO DE LA TARJETA */
.ref-card-body {
    flex-grow: 1;
    margin-bottom: 20px;
}

.ref-quote-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.ref-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #f1f5f9;
    line-height: 1.35;
    margin-bottom: 10px;
}

.ref-quote-mark {
    font-size: 2.8rem;
    font-family: Georgia, serif;
    color: #0284c7;
    line-height: 0.8;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.ref-carousel-card:hover .ref-quote-mark {
    color: #38bdf8;
    opacity: 0.9;
    transform: scale(1.15) rotate(-5deg);
}

.ref-quote-text {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #cbd5e1;
    font-style: italic;
    margin-bottom: 14px;
}

.ref-card-stars {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
}

.ref-card-stars .star {
    color: #fbbf24;
    font-size: 0.95rem;
}

.ref-rating-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #38bdf8;
    margin-left: 6px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* PIE DE LA TARJETA Y FIRMANTE */
.ref-card-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 14px;
}

.ref-card-signer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ref-signer-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    flex-shrink: 0;
}

.ref-signer-details {
    display: flex;
    flex-direction: column;
}

.ref-signer-title {
    font-size: 0.68rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ref-signer-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #e2e8f0;
    line-height: 1.25;
}

.ref-carousel-card:hover .ref-signer-name {
    color: #38bdf8;
}

/* ====================================================
   TARJETAS CLARAS DE RESEÑA (TESTIMONIOS COMPACTOS - 40% MENOS ALTO)
   ==================================================== */
.ref-card-light {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 16px !important;
    padding: 16px 20px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06) !important;
    color: #1e293b !important;
    /* Default GRAYSCALE state */
    filter: grayscale(100%);
    opacity: 0.88;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.ref-card-light:hover {
    filter: grayscale(0%) !important;
    opacity: 1 !important;
    border-color: #0284c7 !important;
    transform: translateY(-5px) scale(1.015) !important;
    box-shadow: 0 14px 30px -8px rgba(2, 132, 199, 0.22) !important;
}

.ref-card-top-light {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.light-logo-icon {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    padding: 4px !important;
}

.ref-institution-name {
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin: 0;
}

.light-verified {
    color: #0284c7 !important;
    font-weight: 700;
    font-size: 0.68rem !important;
}

.light-date {
    background: #f1f5f9 !important;
    color: #475569 !important;
    font-weight: 600;
    font-size: 0.7rem;
    border: 1px solid #e2e8f0;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.ref-card-body-light {
    flex-grow: 1;
    margin-bottom: 10px;
}

.ref-quote-box {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.ref-quote-mark-light {
    position: absolute;
    top: -8px;
    left: -4px;
    font-size: 2.2rem;
    font-family: Georgia, serif;
    color: #0284c7;
    line-height: 1;
    opacity: 0.7;
}

.ref-quote-text-light {
    font-size: 0.84rem;
    line-height: 1.45;
    color: #334155;
    font-style: italic;
    margin: 0;
    font-weight: 500;
}

.ref-summary-box {
    background: #f8fafc;
    border-left: 3px solid #0284c7;
    padding: 8px 12px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 8px;
}

.ref-summary-badge {
    font-size: 0.65rem;
    font-weight: 800;
    color: #0284c7;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: block;
    margin-bottom: 2px;
}

.ref-summary-text-light {
    font-size: 0.82rem;
    line-height: 1.4;
    color: #475569;
    margin: 0;
}

.ref-card-title-sub {
    font-size: 0.78rem;
    color: #64748b;
    border-top: 1px dashed #e2e8f0;
    padding-top: 6px;
    margin-top: 6px;
}

.ref-card-footer-light {
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ref-signer-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ref-signer-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e0f2fe;
    color: #0284c7;
    flex-shrink: 0;
}

.ref-signer-meta {
    display: flex;
    flex-direction: column;
}

.ref-signer-label {
    font-size: 0.64rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
}

.ref-signer-name-light {
    font-size: 0.78rem;
    font-weight: 700;
    color: #0f172a;
}

.ref-card-actions-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.btn-read-pdf {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #0284c7;
    color: #ffffff !important;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 12px 16px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.btn-read-pdf:hover {
    background: #0369a1;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.4);
}


/* ==========================================================================
   CAROUSEL NAVIGATION & MOBILE INDICATORS
   ========================================================================== */
.ref-carousel-nav-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
}

.ref-carousel-counter {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0284c7;
    background: #e0f2fe;
    padding: 3px 14px;
    border-radius: 9999px;
    border: 1px solid rgba(2, 132, 199, 0.25);
    letter-spacing: 0.3px;
}

.ref-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    max-width: 100%;
    padding: 4px;
}

.ref-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(2, 132, 199, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
}

.ref-dot.active {
    width: 26px;
    border-radius: 10px;
    background: #0284c7;
    box-shadow: 0 0 10px rgba(2, 132, 199, 0.6);
}

/* Spinner helper for submit buttons */
.btn-spinner {
    animation: spinRotate 0.8s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

@keyframes spinRotate {
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   COMPREHENSIVE MOBILE RESPONSIVENESS OVERHAUL (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* Layout Containers */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    body.nav-menu-open,
    body.modal-open {
        overflow: hidden;
    }

    /* iOS Safari zoom prevention */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
    }

    /* Hero Section */
    .hero-section {
        padding: 2rem 0 2.5rem;
    }

    .hero-badge {
        font-size: 0.78rem;
        padding: 0.35rem 0.75rem;
        margin-bottom: 1rem;
        max-width: 100%;
        white-space: normal;
    }

    .hero-title {
        font-size: clamp(1.65rem, 6.8vw, 2.25rem);
        line-height: 1.22;
        margin-bottom: 1rem;
        word-break: break-word;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.55;
        margin-bottom: 1.25rem;
    }

    /* Hero Stats Bar Mobile */
    .hero-stats {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 1.15rem 1.25rem;
        border-radius: 16px;
        margin-top: 0.5rem;
    }

    .stat-divider {
        width: 100%;
        height: 1px;
        background: rgba(2, 132, 199, 0.15);
        margin: 0;
    }

    .stat-item {
        flex-direction: column;
        gap: 2px;
    }

    .stat-value {
        font-size: 1.05rem;
    }

    .stat-label {
        font-size: 0.82rem;
        line-height: 1.35;
    }

    /* Quoting Wizard Card */
    .hero-wizard-card {
        padding: 1.35rem 1rem;
        border-radius: 20px;
    }

    .wizard-card-header h2 {
        font-size: 1.28rem;
        line-height: 1.3;
    }

    .wizard-card-header p {
        font-size: 0.84rem;
        margin-bottom: 1rem;
    }

    .wizard-progress {
        margin-bottom: 1.25rem;
    }

    .step-num {
        width: 30px;
        height: 30px;
        font-size: 0.82rem;
    }

    .step-title {
        font-size: 0.68rem;
        max-width: 60px;
        text-align: center;
        line-height: 1.15;
    }

    .wizard-step-line {
        margin: 0 4px;
        margin-top: -14px;
    }

    .pane-title {
        font-size: 1.05rem;
        margin-bottom: 1rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .form-group {
        margin-bottom: 0.75rem;
    }

    .form-group label {
        font-size: 0.82rem;
        margin-bottom: 4px;
    }

    .checkbox-options-grid,
    .radio-options-grid {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .checkbox-card,
    .radio-card {
        padding: 11px 13px;
        gap: 12px;
        border-radius: 12px;
    }

    .card-icon-badge {
        width: 36px;
        height: 36px;
    }

    .checkbox-content strong,
    .radio-content strong {
        font-size: 0.88rem;
    }

    .checkbox-content small,
    .radio-content small {
        font-size: 0.74rem;
    }

    .conditional-box {
        padding: 12px;
        border-radius: 10px;
    }

    .captcha-box {
        padding: 12px 14px;
        border-radius: 12px;
    }

    .captcha-label {
        font-size: 0.84rem;
    }

    .wizard-nav-buttons {
        margin-top: 1.25rem;
        padding-top: 1rem;
        gap: 8px;
    }

    .wizard-nav-buttons .btn {
        flex: 1;
        padding: 12px 16px;
        font-size: 0.92rem;
        justify-content: center;
    }

    /* Sections Shared Spacing */
    .services-section,
    .benefits-section,
    .references-section,
    .exterior-section,
    .investors-section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-tag {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: clamp(1.45rem, 5.8vw, 1.95rem);
    }

    .section-desc {
        font-size: 0.92rem;
        line-height: 1.55;
    }

    /* Services Grid Mobile */
    .services-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .service-card,
    .benefit-card {
        padding: 1.5rem 1.25rem;
        border-radius: 16px;
    }

    .service-icon {
        width: 46px;
        height: 46px;
        margin-bottom: 1.15rem;
    }

    .service-title {
        font-size: 1.12rem;
    }

    .service-desc {
        font-size: 0.9rem;
    }

    .benefit-step {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }

    /* Exterior Section */
    .exterior-card {
        padding: 1.75rem 1.25rem;
        border-radius: 18px;
        text-align: center;
        gap: 1.25rem;
    }

    .exterior-icon {
        width: 56px;
        height: 56px;
        margin: 0 auto;
    }

    .exterior-title {
        font-size: 1.35rem;
    }

    .exterior-text {
        font-size: 0.92rem;
    }

    .exterior-action {
        width: 100%;
    }

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

    /* Investors Section */
    .investor-hero-card {
        padding: 1.5rem 1.25rem;
        border-radius: 18px;
    }

    .investor-title {
        font-size: clamp(1.35rem, 5vw, 1.75rem);
    }

    .investor-sub {
        font-size: 0.95rem;
    }

    .investor-body-text {
        padding: 1.25rem 1rem;
        font-size: 0.92rem;
        line-height: 1.6;
        border-radius: 14px;
        margin-bottom: 1.5rem;
    }

    .investor-pillars-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .pillar-card {
        padding: 1.25rem 1rem;
        border-radius: 14px;
    }

    /* Investor Modal Window Mobile */
    .modal-backdrop {
        padding: 0.5rem;
    }

    .modal-card.split-investor-card {
        border-radius: 18px;
        max-height: 94vh;
        width: 100%;
    }

    .modal-split-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .modal-hero-side {
        display: none;
    }

    .modal-form-side {
        padding: 1.35rem 1.15rem 1.75rem;
        max-height: 92vh;
    }

    .modal-header h2 {
        font-size: 1.22rem;
    }

    .modal-header p {
        font-size: 0.82rem;
    }

    .modal-close-btn {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }

    /* References Carousel Track & Cards Mobile */
    .ref-carousel-wrapper {
        padding: 0;
        overflow: hidden;
    }

    .ref-btn-prev,
    .ref-btn-next {
        display: none; /* Mobile uses fluid touch snap and counter */
    }

    .ref-carousel-track {
        padding: 10px 1rem 16px;
        gap: 14px;
        -webkit-overflow-scrolling: touch;
    }

    .ref-carousel-card {
        flex: 0 0 calc(100vw - 3.5rem);
        max-width: 340px;
        min-width: 260px;
        padding: 18px 16px;
        border-radius: 16px;
        filter: none !important;
        opacity: 1 !important;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
    }

    .ref-card-logo-icon {
        min-width: 42px;
        height: 42px;
        padding: 4px;
    }

    .ref-institution-name {
        font-size: 0.88rem;
    }

    .ref-quote-text-light {
        font-size: 0.82rem;
        line-height: 1.45;
    }

    .ref-summary-text-light {
        font-size: 0.8rem;
    }

    .ref-carousel-dots {
        max-width: 270px;
        gap: 5px;
    }

    .ref-dot {
        width: 8px;
        height: 8px;
    }

    .ref-dot.active {
        width: 22px;
    }

    /* Footer Mobile */
    .site-footer {
        padding: 2.5rem 0 1.5rem;
    }

    .footer-container {
        gap: 1.25rem;
    }

    .footer-logo {
        height: 38px;
    }

    .footer-location,
    .footer-email {
        font-size: 0.88rem;
        justify-content: center;
        text-align: center;
        word-break: break-word;
    }
}

/* ==========================================================================
   TINY SMARTPHONES (max-width: 420px)
   ========================================================================== */
@media (max-width: 420px) {
    .main-brand-logo {
        height: 38px;
    }

    .main-logo-img {
        height: 32px;
        max-height: 34px;
        max-width: 155px;
    }

    .hero-title {
        font-size: 1.55rem;
    }

    .step-title {
        font-size: 0.62rem;
        max-width: 52px;
    }

    .step-num {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }

    .wizard-nav-buttons {
        flex-direction: column-reverse;
    }

    .wizard-nav-buttons .btn {
        width: 100%;
    }
}



