/* =====================================================
   CAPITALIS ELECTUS - PREMIUM DARK LUXURY STYLES
   Color Principal: Gold #D4AF37
   ===================================================== */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Backgrounds */
    --bg-primary: #000000;
    --bg-secondary: #09090B;
    --bg-tertiary: #18181B;

    /* Gold Primary Scale */
    --primary-50: #FFF9E6;
    --primary-100: #FFF3CC;
    --primary-200: #FFE799;
    --primary-300: #FFDB66;
    --primary-400: #E8C547;
    --primary-500: #D4AF37;
    /* Base Gold */
    --primary-600: #B89530;
    --primary-700: #9C7B29;
    --primary-800: #806122;
    --primary-900: #64471B;

    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: #E4E4E7;
    --text-tertiary: #A1A1AA;
    --text-quaternary: #71717A;

    /* Accent Colors */
    --success: #22C55E;
    --info: #3B82F6;
    --warning: #F59E0B;

    /* Spacing */
    --container-width: 1280px;
    --section-padding: 120px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    background-color: #000000;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== PARTICLES BACKGROUND ===== */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.8) 0%, rgba(212, 175, 55, 0.2) 50%, transparent 100%);
    border-radius: 50%;
    animation: float-particle 20s infinite ease-in-out;
    opacity: 0.4;
}

@keyframes float-particle {

    0%,
    100% {
        transform: translate(0, 0);
        opacity: 0.4;
    }

    25% {
        transform: translate(100px, -100px);
        opacity: 0.8;
    }

    50% {
        transform: translate(-50px, -200px);
        opacity: 0.6;
    }

    75% {
        transform: translate(-100px, -100px);
        opacity: 0.8;
    }
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    padding: 16px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-img {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.4));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 28px rgba(212, 175, 55, 0.65));
}

/* ── LOGO ENTRANCE ANIMATION ───────────────────────────────
   Applied via JS on window load — runs exactly once.
   Feel: private banking vault unlock.
   ─────────────────────────────────────────────────────── */
.logo-img.logo-enter {
    animation: logoIntro 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes logoIntro {
    0% {
        opacity: 0;
        transform: scale(0.88) rotate(-18deg);
        filter:
            drop-shadow(0 0 0px rgba(212, 175, 55, 0)) blur(7px);
    }

    50% {
        opacity: 0.7;
        transform: scale(0.96) rotate(-6deg);
        filter:
            drop-shadow(0 0 14px rgba(212, 175, 55, 0.5)) blur(2px);
    }

    75% {
        opacity: 1;
        transform: scale(1.04) rotate(2deg);
        filter:
            drop-shadow(0 0 32px rgba(212, 175, 55, 0.8)) blur(0px);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter:
            drop-shadow(0 0 20px rgba(212, 175, 55, 0.4)) blur(0px);
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-500);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-400);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 12px 24px;
    font-size: 14px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 2px;
    background: var(--primary-500);
    transition: all 0.3s ease;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: linear-gradient(135deg,
            var(--primary-600) 0%,
            var(--primary-500) 30%,
            var(--primary-400) 60%,
            var(--primary-500) 100%);
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
    color: #000000;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 12px;
    border: none;
    box-shadow:
        0 0 0 1px rgba(212, 175, 55, 0.5),
        0 4px 24px rgba(212, 175, 55, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-size: 16px;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.1);
    box-shadow:
        0 0 0 2px rgba(212, 175, 55, 0.8),
        0 8px 40px rgba(212, 175, 55, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-400);
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 12px;
    border: 2px solid var(--primary-500);
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 16px;
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--primary-400);
    transform: translateY(-2px);
}

.btn-large {
    padding: 20px 48px;
    font-size: 18px;
}

.btn-pulse {
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow:
            0 0 0 1px rgba(212, 175, 55, 0.5),
            0 4px 24px rgba(212, 175, 55, 0.4),
            0 0 60px rgba(212, 175, 55, 0.3);
    }

    50% {
        box-shadow:
            0 0 0 2px rgba(212, 175, 55, 0.8),
            0 8px 40px rgba(212, 175, 55, 0.6),
            0 0 80px rgba(212, 175, 55, 0.5);
    }
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
    background: radial-gradient(ellipse at top, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HERO SERVICES PANEL ===== */
.hero-services-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.btn-service-hero {
    width: 100%;
    padding: 18px 28px;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #000;
    background: linear-gradient(135deg,
            var(--primary-600) 0%,
            var(--primary-500) 35%,
            var(--primary-400) 65%,
            var(--primary-500) 100%);
    background-size: 200% 200%;
    animation: gradient-shift 5s ease infinite;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    box-shadow:
        0 0 0 1px rgba(212, 175, 55, 0.4),
        0 4px 20px rgba(212, 175, 55, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.btn-service-hero:hover {
    transform: translateY(-2px) scale(1.01);
    filter: brightness(1.08);
    box-shadow:
        0 0 0 2px rgba(212, 175, 55, 0.7),
        0 8px 32px rgba(212, 175, 55, 0.45);
}

.btn-service-hero:active {
    transform: scale(0.98);
    filter: brightness(0.97);
}

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-services-panel {
        gap: 12px;
    }

    .btn-service-hero {
        padding: 16px 22px;
        font-size: 14px;
    }
}

.hero-visual-elite {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-label {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-400);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 24px;
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.hero-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 76px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
}

.glow-text {
    background: linear-gradient(135deg, var(--primary-400) 0%, var(--primary-500) 50%, var(--primary-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow:
        0 0 10px rgba(212, 175, 55, 0.8),
        0 0 20px rgba(212, 175, 55, 0.6),
        0 0 40px rgba(212, 175, 55, 0.4);
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    opacity: 0;
}

.hero-description {
    font-size: 18px;
    color: var(--text-tertiary);
    line-height: 1.8;
    margin-bottom: 40px;
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
    opacity: 0;
}

.hero-cta {
    display: flex;
    gap: 20px;
    animation: scale-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.6s forwards;
    opacity: 0;
}

.hero-visual {
    position: relative;
    animation: fade-in-rotate 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.hero-image {
    width: 100%;
    height: auto;
    animation: float 6s ease-in-out infinite;
}

.glow-primary {
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.6)) drop-shadow(0 0 40px rgba(212, 175, 55, 0.4)) drop-shadow(0 0 60px rgba(212, 175, 55, 0.3));
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fade-in-rotate {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.9);
    }

    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}



/* ===== CEREMONIAL HERO STYLES ===== */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centrar todo horizontalmente */
    text-align: center;
    width: 100%;
}

.hero-sublabel-ceremonial {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.25em;
    color: rgba(212, 175, 55, 0.7);
    text-transform: uppercase;
    margin-bottom: 24px;
    font-weight: 500;
}

.hero-title-ceremonial {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 48px;
    /* Adjustment for balance */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #D4AF37;
    /* Solid Gold */
    margin: 0;
    line-height: 1.1;
    text-shadow: none;
    /* Sin sombras exageradas */
}

.hero-divider-ceremonial {
    width: 120px;
    height: 1px;
    background-color: #D4AF37;
    opacity: 0.6;
    margin: 40px auto;
    /* Margen vertical amplio */
}

@media (min-width: 768px) {
    .hero-title-ceremonial {
        font-size: 64px;
    }
}

/* ===== CE MONOGRAM HERO BUTTON ===== */
.ce-monogram-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    outline: none;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.ce-monogram-btn:hover {
    transform: scale(1.05);
}

.ce-monogram-btn:active {
    transform: scale(0.98);
}

.ce-ring-container {
    position: relative;
    width: 480px;
    /* Desktop Size */
    height: 480px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float-monogram 6s ease-in-out infinite;
}

/* La letra C - El Aro */
.ce-letter-c {
    font-family: 'Cinzel', 'Times New Roman', serif;
    /* Serif premium */
    font-size: 480px;
    line-height: 1;
    font-weight: 400;
    /* Regular para que no sea muy gruesa */
    background: linear-gradient(135deg, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.3));
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    transition: filter 0.4s ease;
}

/* La letra E - Centro */
.ce-letter-e {
    font-family: 'Cinzel', 'Times New Roman', serif;
    font-size: 260px;
    /* Proporción áurea respecto a la C */
    line-height: 1;
    font-weight: 400;
    background: linear-gradient(135deg, #FBF5B7, #AA771C, #BF953F, #FCF6BA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5));
    position: absolute;
    left: 54%;
    /* Ajuste visual para centrar en la C */
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    transition: filter 0.4s ease;
}

.ce-monogram-btn:hover .ce-letter-c,
.ce-monogram-btn:hover .ce-letter-e {
    filter: drop-shadow(0 0 50px rgba(212, 175, 55, 0.6)) brightness(1.2);
}

@keyframes float-monogram {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .ce-ring-container {
        width: 300px;
        height: 300px;
    }

    .ce-letter-c {
        font-size: 300px;
    }

    .ce-letter-e {
        font-size: 160px;
        left: 54%;
    }
}

/* ===== SOCIAL PROOF ===== */
.social-proof {
    padding: 80px 0;
    background: #09090B;
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 56px;
    font-weight: 800;
    color: var(--primary-500);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ===== SECTIONS ===== */
.services,
.about,
.testimonials {
    padding: var(--section-padding) 0;
    position: relative;
    z-index: 1;
}

/* ── SERVICES SECTION ─────────────────────────────────────── */
.services {
    isolation: isolate;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 20px;
    color: var(--text-tertiary);
    max-width: 700px;
    margin: 0 auto;
}

/* ===== SERVICES GRID ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ===== FLIP CARDS ===== */
.service-card-flip {
    perspective: 1000px;
    height: 280px;
    cursor: pointer;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

/* DESACTIVADO: Flip automático en hover - ahora solo muestra overlay de descripción */
/* .service-card-flip:hover .service-card-inner {
    transform: rotateY(180deg);
} */

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 14px;
    overflow: hidden;
}

.service-card-front {
    position: relative;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: contrast(1.05) saturate(1.1);
}

/* DESACTIVADO: Zoom de imagen en hover - para mantener foco en overlay de descripción */
/* .service-card-flip:hover .service-image {
    transform: scale(1.05);
} */

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
}

.service-title-front {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-400);
}

/* ===== HOVER OVERLAY ===== */
.service-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.service-card-flip:hover .service-hover-overlay {
    opacity: 1;
    visibility: visible;
}

.hover-content {
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.service-card-flip:hover .hover-content {
    transform: translateY(0);
}

.hover-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.5));
}

.hover-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 500;
}

/* Mobile touch support */
@media (hover: none) and (pointer: coarse) {
    .service-hover-overlay {
        opacity: 0;
        visibility: hidden;
    }

    .service-card-flip.active .service-hover-overlay {
        opacity: 1;
        visibility: visible;
    }
}

.service-card-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
}

.service-title-back {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-400);
    margin-bottom: 16px;
}

.service-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    padding: 6px 12px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    font-size: 12px;
    color: var(--primary-400);
    font-weight: 500;
}

/* ===== GLASS CARD ===== */
.glass-card {
    background: linear-gradient(135deg,
            rgba(212, 175, 55, 0.08) 0%,
            rgba(212, 175, 55, 0.04) 50%,
            rgba(212, 175, 55, 0.08) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 24px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.3),
        0 2px 4px -2px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: rgba(212, 175, 55, 0.35);
    box-shadow: 0 25px 50px -12px rgba(212, 175, 55, 0.35);
    transform: translateY(-4px);
}

/* ===== ABOUT SECTION ===== */
.about {
    background: #09090B;
    padding-bottom: 40px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.about-logo {
    width: 200px;
    height: auto;
}

.about-text {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.value-item {
    text-align: center;
    padding: 24px;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.value-item:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-4px);
}

.value-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 12px;
}

.value-item h4 {
    font-size: 16px;
    color: var(--primary-400);
    font-weight: 600;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    padding: 40px;
    position: relative;
}

.quote-mark {
    font-size: 80px;
    color: var(--primary-500);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.author-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.author-role {
    font-size: 14px;
    color: var(--text-tertiary);
}

.rating {
    margin-top: 16px;
    font-size: 18px;
}

/* ===== CTA FINAL ===== */
.cta-final {
    padding: 60px 0 120px;
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
    position: relative;
    z-index: 1;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.cta-note {
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-tertiary);
}

/* ===== FOOTER ===== */
.footer {
    background: #09090B;
    padding: 80px 0 40px;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 48px;
    width: auto;
    margin-bottom: 20px;
}

.footer-description {
    font-size: 14px;
    color: var(--text-tertiary);
    line-height: 1.7;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-400);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-400);
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.social-link {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--primary-400);
    border-color: var(--primary-400);
    background: rgba(212, 175, 55, 0.1);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    font-size: 14px;
    color: var(--text-quaternary);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: var(--text-quaternary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--primary-400);
}

/* ===== MODAL DE COTIZACIÓN ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    position: relative;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    background: linear-gradient(135deg,
            rgba(212, 175, 55, 0.1) 0%,
            rgba(212, 175, 55, 0.05) 50%,
            rgba(212, 175, 55, 0.1) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 24px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(212, 175, 55, 0.2),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    color: var(--primary-400);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--primary-400);
    transform: rotate(90deg);
}

.modal-content {
    padding: 60px 40px 40px;
}

.modal-header {
    text-align: center;
    margin-bottom: 40px;
}

.modal-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.modal-subtitle {
    font-size: 16px;
    color: var(--text-tertiary);
    line-height: 1.6;
}

/* ===== FORMULARIO ===== */
.quote-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Campos condicionales - ocultos por defecto */
.conditional-fields {
    animation: slideDown 0.4s ease-out;
    transform-origin: top;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-section-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-400);
    margin-bottom: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.form-row:has(.form-group:nth-child(2)) {
    grid-template-columns: 1fr 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-quaternary);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-400);
    background: rgba(0, 0, 0, 0.5);
    box-shadow:
        0 0 0 3px rgba(212, 175, 55, 0.1),
        0 4px 12px rgba(212, 175, 55, 0.2);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23D4AF37' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 45px;
}

.form-select option {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 12px;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

/* ===== VALIDACIÓN ===== */
.form-input:invalid:not(:placeholder-shown),
.form-select:invalid:not(:placeholder-shown) {
    border-color: #EF4444;
}

.form-input:valid:not(:placeholder-shown),
.form-select:valid {
    border-color: var(--success);
}

/* ===== ACCIONES DEL FORMULARIO ===== */
.form-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.btn-submit {
    width: 100%;
    max-width: 400px;
    font-size: 16px;
}

.form-note {
    font-size: 13px;
    color: var(--text-quaternary);
    text-align: center;
    line-height: 1.6;
}

/* ===== ANIMACIÓN DE ENVÍO ===== */
.quote-form.submitting .btn-submit {
    pointer-events: none;
    opacity: 0.6;
}

.quote-form.submitting .btn-submit::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid #000;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== MENSAJE DE ÉXITO ===== */
.success-message {
    display: none;
    text-align: center;
    padding: 40px;
}

.success-message.active {
    display: block;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.success-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-400);
    margin-bottom: 12px;
}

.success-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 1023px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-title {
        font-size: 56px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image-wrapper {
        margin: 0 auto;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 767px) {
    :root {
        --section-padding: 80px;
    }

    .navbar {
        padding: 16px 0;
    }

    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .logo-img {
        height: 40px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta button {
        width: 100%;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card-flip {
        height: 350px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .stat-number {
        font-size: 48px;
    }

    .section-title {
        font-size: 36px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .about-values {
        grid-template-columns: 1fr;
    }

    .cta-title {
        font-size: 36px;
    }

    .cta-subtitle {
        font-size: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    /* Modal responsive */
    .modal-content {
        padding: 50px 24px 32px;
    }

    .modal-title {
        font-size: 28px;
    }

    .modal-subtitle {
        font-size: 14px;
    }

    .form-row:has(.form-group:nth-child(2)) {
        grid-template-columns: 1fr;
    }

    .form-section-title {
        font-size: 18px;
    }

    /* Reducir partículas en mobile */
    .particle:nth-child(n+20) {
        display: none;
    }
}

/* Desktop XL */
@media (min-width: 1440px) {
    .container {
        max-width: 1440px;
    }

    .hero-title {
        font-size: 84px;
    }
}

/* ===== DECISION ENGINE SECTION ===== */
.decision-engine {
    padding: 100px 0;
    background: #000000;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

/* Fondo tecnológico sutil */
.decision-engine::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(212, 175, 55, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    opacity: 0.5;
    z-index: -1;
}

.engine-header {
    text-align: center;
    margin-bottom: 60px;
}

.engine-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 42px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, var(--primary-400) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

.engine-subtitle {
    font-size: 18px;
    color: var(--text-tertiary);
    max-width: 600px;
    margin: 0 auto;
}

/* Dashboard Container */
.engine-dashboard {
    background: rgba(10, 10, 15, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 32px;
    padding: 40px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    /* Izquierda, Centro (más ancho), Derecha */
    gap: 40px;
    align-items: center;
    box-shadow:
        0 20px 50px -10px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
}

/* Glow Effect detrás del dashboard */
.engine-dashboard::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
}

/* Columna Izquierda: Red de Aseguradoras */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.partner-chip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: default;
}

.partner-chip:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--primary-400);
    color: #fff;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

/* Columna Centro: Escudo y Animación */
.engine-core {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 100%;
    min-height: 300px;
}

.shield-container {
    width: 120px;
    height: 120px;
    position: relative;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shield-icon {
    font-size: 64px;
    color: var(--primary-400);
    z-index: 2;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5));
    animation: shield-pulse 3s infinite ease-in-out;
}

.shield-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    animation: ring-spin 10s linear infinite;
}

.shield-ring::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--primary-400);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-400);
}

.core-text {
    text-align: center;
}

.core-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.core-desc {
    font-size: 14px;
    color: var(--text-tertiary);
    line-height: 1.5;
}

/* Líneas conectoras (simuladas con gradientes) */
.connection-lines {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(212, 175, 55, 0.0) 10%,
            rgba(212, 175, 55, 0.5) 50%,
            rgba(212, 175, 55, 0.0) 90%,
            transparent 100%);
    z-index: -1;
    opacity: 0.3;
}

/* Columna Derecha: Beneficios */
.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.05) 0%, transparent 100%);
    border-left: 2px solid var(--primary-400);
    border-radius: 0 8px 8px 0;
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateX(10px);
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
}

.benefit-check {
    width: 24px;
    height: 24px;
    background: var(--primary-400);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

.benefit-text {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.engine-footer {
    text-align: center;
    margin-top: 40px;
}

.engine-note {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animations */
@keyframes shield-pulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 35px rgba(212, 175, 55, 0.8));
    }
}

@keyframes ring-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .engine-dashboard {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .connection-lines {
        display: none;
        /* Ocultar líneas horizontales en mobile */
    }
}

/* ===== HERO ULTRASHARP UPDATE ===== */
.hero-label-elite {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
    /* Más cuadrado/técnico */
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-400);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 24px;
    font-family: 'Inter', sans-serif;
}

.hero-label-elite::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary-400);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary-400);
}

.hero-title-elite {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 64px;
    /* Un poco más contenido pero impactante */
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 20px;
}

.hero-subtitle-elite {
    font-size: 22px;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 32px;
    max-width: 600px;
}

.hero-features-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
    padding-left: 0;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-tertiary);
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.02em;
}

.hero-feature-item::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--primary-400);
    opacity: 0.5;
}

/* TERMINAL BLOCK WIDGET */
.terminal-widget {
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px;
    font-family: 'Courier New', monospace;
    /* Tech feel */
    max-width: 320px;
    box-shadow:
        0 20px 40px -10px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(212, 175, 55, 0.1);
    position: absolute;
    bottom: 40px;
    right: 40px;
    /* Posición flotante sobre la imagen */
    z-index: 10;
    animation: float-slow 8s ease-in-out infinite;
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.terminal-title {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: var(--success);
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--success);
    animation: blink 2s infinite;
}

.terminal-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.terminal-item {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    gap: 8px;
}

.terminal-check {
    color: var(--primary-400);
}

/* Ajuste de Hero Visual para alojar la terminal */
.hero-visual-elite {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual-elite img {
    width: 100%;
    max-width: 500px;
    opacity: 0.6;
    /* Más sutil */
    filter: grayscale(40%) contrast(110%);
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

@keyframes float-slow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Responsive adjust */
@media (max-width: 768px) {
    .terminal-widget {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: -40px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-title-elite {
        font-size: 42px;
    }
}

/* ===== ULTRA PREMIUM HERO STYLES ===== */

/* 1. Fondo Dinámico "Wealth Lab" */
.hero {
    background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #050505 100%);
    position: relative;
    overflow: hidden;
    padding-top: 160px;
    padding-bottom: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            rgba(212, 175, 55, 0.03) 0%,
            transparent 20%,
            rgba(212, 175, 55, 0.03) 40%,
            transparent 60%,
            rgba(212, 175, 55, 0.03) 80%,
            transparent 100%);
    animation: light-sweep 15s linear infinite;
    pointer-events: none;
    z-index: 0;
}

/* 2. Título CAPITALIS ELECTUS Ultra Premium */
.hero-title-elite {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 72px;
    /* Mayor impacto */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
    background: linear-gradient(90deg,
            #D4AF37 0%,
            #F9E4B7 25%,
            #D4AF37 50%,
            #B5942E 75%,
            #D4AF37 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation:
        fade-in-up 1s cubic-bezier(0.16, 1, 0.3, 1) forwards,
        text-shimmer 8s linear infinite;
    /* 6-8s solicitado */
    filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.2));
    /* Glow ambiental */
    padding-bottom: 5px;
    /* Evitar corte de descenders/glow */
}

/* 3. Subtítulo Institucional */
.hero-subtitle-elite {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 0.05em;
    /* Tracking ligero */
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0;
    /* Inicial para animación */
    animation: fade-in-up 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    /* Delay 300ms */
}

/* 4. Imagen Flotante con Borde Dorado */
.hero-visual-elite img {
    /* Reset anterior */
    filter: none;

    /* Efectos nuevos */
    box-shadow:
        0 20px 50px -10px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(212, 175, 55, 0.3);
    /* Light rim dorado */
    border-radius: 12px;
    animation: float-soft 6s ease-in-out infinite;
    /* ±6px lento */
    transition: filter 0.3s ease;
}

.hero-visual-elite img:hover {
    filter: blur(1px);
    /* Depth blur mínimo */
}

/* 5. Micro Panel "SYSTEM STATUS" Typing */
.terminal-widget {
    background: rgba(5, 5, 5, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.2);
    /* Mantener posiciones del paso anterior */
}

.terminal-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #fff;
}

.terminal-list {
    font-family: 'Courier New', monospace;
}

.terminal-item {
    opacity: 0;
    animation: fade-in-item 0.5s forwards;
}

.terminal-item:nth-child(1) {
    animation-delay: 1.0s;
}

.terminal-item:nth-child(2) {
    animation-delay: 1.5s;
}

.terminal-item:nth-child(3) {
    animation-delay: 2.0s;
}

.terminal-item:nth-child(4) {
    animation-delay: 2.5s;
}

.terminal-item:nth-child(5) {
    animation-delay: 3.0s;
}

/* 6. Botones Premium */
.btn-primary {
    background: linear-gradient(135deg, #B5942E 0%, #D4AF37 100%);
    /* Dorado mate */
    border: none;
    color: #000;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    box-shadow:
        0 10px 20px -5px rgba(212, 175, 55, 0.4),
        0 0 15px rgba(212, 175, 55, 0.2);
    transform: translateY(-3px);
    /* Elevación */
}

.btn-primary:active {
    transform: translateY(1px);
    /* Presionado físico */
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.6);
    /* Outline gold */
    color: var(--primary-400);
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
    /* Relleno parcial */
    backdrop-filter: blur(4px);
    border-color: var(--primary-400);
}

/* Animaciones */
@keyframes text-shimmer {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: -200% center;
    }
}

@keyframes light-sweep {
    0% {
        transform: translateY(-30%) rotate(45deg);
    }

    100% {
        transform: translateY(30%) rotate(45deg);
    }
}

@keyframes float-soft {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes fade-in-item {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Font Sizes */
@media (max-width: 768px) {
    .hero-title-elite {
        font-size: 42px;
    }
}

/* ===== PRIVATE FINANCIAL TERMINAL ===== */
/* ===== PRIVATE FINANCIAL TERMINAL ===== */
.private-terminal {
    background: #0b0b0b;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 16px;
    padding: 32px;
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    color: #fff;

    /* Full layout occupancy */
    width: 100%;
    height: 640px;
    /* Fixed height for terminal look */
    overflow-y: auto;
    position: relative;
    /* Static in grid */
    margin: 0;
    z-index: 10;

    /* Elite deep shadow & subtle glow */
    box-shadow:
        0 30px 80px -20px rgba(0, 0, 0, 0.95),
        0 0 0 1px rgba(255, 255, 255, 0.02),
        inset 0 0 100px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(212, 175, 55, 0.05);
    /* Subtle gold ambient glow */

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    scrollbar-width: thin;
    scrollbar-color: rgba(212, 175, 55, 0.2) rgba(10, 10, 10, 0.5);
    /* Removed float animation for stability */
}

.private-terminal::-webkit-scrollbar {
    width: 4px;
}

.private-terminal::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.private-terminal::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.4);
    border-radius: 10px;
}

/* Efecto de escaneo */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
    opacity: 0.5;
    animation: scan 6s linear infinite;
    pointer-events: none;
    z-index: 2;
}

/* Encabezado */
/* Sticky Header */
.terminal-header-premium {
    position: sticky;
    top: -16px;
    background: rgba(11, 11, 11, 0.95);
    z-index: 5;
    padding-top: 4px;
    margin-top: -4px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.terminal-brand {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-400);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 4px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.terminal-meta {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-live {
    color: #00ff88;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-live::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ff88;
    animation: pulse-green 2s infinite;
}

/* Módulos Compactos */
.modules-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.terminal-module {
    padding: 24px 0;
    margin-bottom: 0px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    opacity: 0;
    animation: fade-in-up 0.5s ease forwards;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
}

.terminal-module:hover {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), transparent);
    padding-left: 12px;
}

.terminal-module:hover .module-title {
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.module-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

/* Hide the checkmark text and render a gold circle */
.module-check {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #d4af37;
    border-radius: 50%;
    margin-right: 12px;
    color: transparent;
    /* hide text */
    position: relative;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
    vertical-align: middle;
}

/* Inner glow dot */
.module-check::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.8;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 500;
    color: #666;
    margin-bottom: 12px;
    margin-top: 8px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.detail-value {
    color: #888;
    font-weight: 400;
}

.progress-container {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1px;
    overflow: hidden;
    margin-top: 4px;
}

.progress-bar {
    height: 100%;
    background: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
    animation: loading 1.5s ease-out forwards, pulse-gold-bar 6s infinite ease-in-out;
}

@keyframes pulse-gold-bar {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
    }
}

.terminal-footer-anim {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    font-size: 9px;
    color: var(--primary-400);
    letter-spacing: 0.1em;
    opacity: 0.7;
    animation: blink-text 2s infinite;
}

/* Animaciones */
@keyframes scan {
    0% {
        top: -10%;
    }

    100% {
        top: 110%;
    }
}

@keyframes pulse-green {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

@keyframes grow-bar {
    from {
        width: 0;
    }

    to {
        width: var(--target-width);
    }
}

@keyframes blink-text {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 0.3;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        padding-top: 96px;
    }

    .hero-container {
        grid-template-columns: 1fr;
    }

    .private-terminal {
        position: relative;
        bottom: auto;
        right: auto;
        width: 100%;
        max-width: 100%;
        max-height: none;
        overflow-y: visible;
        margin-top: 14px;
        transform: none !important;
        animation: none;
    }

    .terminal-module {
        padding-bottom: 8px;
    }

    .detail-row {
        display: none;
    }

    .progress-container {
        height: 2px;
    }
}

/* ============================================================
   CUSTOM SELECT DROPDOWN — FINTECH PREMIUM
   ============================================================ */

.custom-select-hidden {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    height: 0;
    width: 0;
    overflow: hidden;
}

.cs-wrapper {
    position: relative;
    width: 100%;
    user-select: none;
}

.cs-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px 16px;
    background: rgba(10, 10, 14, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    color: var(--text-secondary);
    font-size: 15px;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

.cs-trigger:hover,
.cs-trigger:focus {
    border-color: rgba(212, 175, 55, 0.55);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.08);
    outline: none;
}

.cs-wrapper.cs-open .cs-trigger {
    border-color: rgba(212, 175, 55, 0.7);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.cs-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: 20px;
}

/* Hide icon slot when no icon is set */
.cs-icon:empty {
    display: none;
}

.cs-text {
    flex: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cs-text.cs-selected {
    color: var(--text-primary);
    font-weight: 500;
}

.cs-arrow {
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.cs-wrapper.cs-open .cs-arrow {
    transform: rotate(180deg);
}

.cs-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9999;
    list-style: none;
    margin: 0;
    padding: 4px 0;
    background: #0B0B0E;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-top: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(212, 175, 55, 0.05);
    max-height: 320px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 175, 55, 0.3) transparent;
}

.cs-list::-webkit-scrollbar {
    width: 4px;
}

.cs-list::-webkit-scrollbar-track {
    background: transparent;
}

.cs-list::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 4px;
}

.cs-wrapper.cs-open .cs-list {
    display: block;
    animation: csDropIn 0.18s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes csDropIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cs-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    transition: background 0.15s ease, color 0.15s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.cs-option:first-child {
    border-top: none;
}

.cs-option:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #fff;
}

.cs-option.cs-active {
    background: rgba(212, 175, 55, 0.15);
    color: #D4AF37;
    font-weight: 600;
}

.cs-opt-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: 20px;
    filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.35));
}

/* ============================================================
   DARK OVERRIDE — ALL NATIVE <select> ELEMENTS
   ============================================================ */
select.form-select,
select {
    background-color: rgba(10, 10, 14, 0.95) !important;
    color: var(--text-primary) !important;
    border-color: rgba(212, 175, 55, 0.25) !important;
}

select.form-select option,
select option {
    background-color: #0B0B0E !important;
    color: #e8e8e8 !important;
}

select.form-select:focus,
select:focus {
    border-color: rgba(212, 175, 55, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1) !important;
}