/* --- RECAPITAL: ULTIMATE LUXURY EDITION (PURE BLACK & GOLD V2) --- */

:root {
    /* 1. LA NUEVA PALETA: LUJO ABSOLUTO */
    --void-black: #000000;      /* Negro Absoluto */
    --rich-black: #050505;      /* Negro con textura */
    --card-bg: #0a0a0a;         /* Fondo de tarjetas */
    
    /* GRADIENTE DE ORO REAL (Metal Pulido) */
    --gold-gradient: linear-gradient(45deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    
    --white-pure: #ffffff;
    --text-silver: #c0c0c0;     /* Plata real */
    
    /* Tipografía */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Manrope', sans-serif;
}

/* 2. BASES (FONDO NEGRO PURO) */
html, body {
    background-color: var(--void-black) !important;
    /* Fondo sutil para evitar banding en pantallas grandes */
    background-image: linear-gradient(to bottom, #000000 0%, #111111 100%);
    color: var(--white-pure);
    font-family: var(--font-body);
    overflow-x: hidden;
    height: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

p, .lead, small, li {
    color: var(--text-silver);
}

/* 3. EFECTOS ESPECIALES DE LUJO */

/* TEXTO DE ORO (FOIL EFFECT) */
.gold-text-shine {
    background: var(--gold-gradient);
    background-size: 200% auto;
    color: #000; /* Fallback */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
    font-weight: 700;
}

@keyframes shine {
    to { background-position: 200% center; }
}

/* 4. COMPONENTES UI */

/* Botones "Lingote de Oro" */
.btn-gold {
    background: var(--gold-gradient);
    background-size: 200% auto;
    color: #000;
    border: none;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 0px;
    padding: 15px 40px;
    transition: 0.5s;
    box-shadow: 0 0 20px rgba(191, 149, 63, 0.4);
}

.btn-gold:hover {
    background-position: right center;
    color: #000;
    box-shadow: 0 0 40px rgba(191, 149, 63, 0.6);
}

.btn-outline-light {
    border: 1px solid #bf953f;
    color: #bf953f;
    border-radius: 0px;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 14px 40px;
}

.btn-outline-light:hover {
    background: var(--gold-gradient);
    color: #000;
    border-color: #bf953f;
}

/* Tarjetas (Negro sobre Negro con borde Oro) */
.card-premium {
    background-color: rgba(10, 10, 10, 0.9);
    border: 1px solid #333;
    border-radius: 0px;
    transition: all 0.4s ease;
}

.card-premium:hover {
    border-image: var(--gold-gradient);
    border-image-slice: 1;
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(191, 149, 63, 0.2);
}

.icon-gold {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 3rem;
}

/* 5. NAVBAR & HERO (CORREGIDO EL BUG DEL VIDEO) */
.navbar-custom {
    background-color: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid rgba(191, 149, 63, 0.3);
    padding: 20px 0;
}
.nav-link { color: #fff !important; font-size: 0.8rem; letter-spacing: 3px; text-transform: uppercase; }
.nav-link:hover, .nav-link.active { 
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section {
    position: relative; height: 100vh; display: flex; align-items: center; overflow: hidden;
    background-color: #000; /* Fondo negro por si el video tarda en cargar */
}

.hero-video {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
}

/* --- CORRECCIÓN DE SOMBRA --- */
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    /* CAMBIO: Linear Gradient (Arriba Oscuro -> Medio Claro -> Abajo Oscuro) */
    /* Esto elimina la línea divisoria fea */
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.8) 0%,   /* Arriba: Oscuro para el menú */
        rgba(0, 0, 0, 0.3) 50%,  /* Medio: Más claro para ver el video */
        rgba(0, 0, 0, 0.9) 100%  /* Abajo: Oscuro para que el texto resalte */
    );
    z-index: 1;
}

.hero-content { position: relative; z-index: 2; }

.video-frame {
    border: 1px solid #bf953f;
    padding: 15px;
    background: #000;
    box-shadow: 0 0 60px rgba(191, 149, 63, 0.15);
}

/* 6. TARJETAS GIRATORIAS (FLIP CARDS) */
.flip-card {
    background-color: transparent;
    width: 100%; height: 480px; perspective: 1000px; margin-bottom: 30px;
}
.flip-card-inner {
    position: relative; width: 100%; height: 100%; text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d; cursor: pointer;
}
.flip-card:hover .flip-card-inner { transform: rotateY(180deg); }

.flip-card-front, .flip-card-back {
    position: absolute; width: 100%; height: 100%;
    -webkit-backface-visibility: hidden; backface-visibility: hidden;
    border: 1px solid #bf953f; 
    box-shadow: 0 0 15px rgba(0,0,0,0.8);
}

.flip-card-front { background-color: #000; }
.flip-card-front img { 
    width: 100%; height: 100%; object-fit: cover; 
    filter: grayscale(100%) contrast(1.2);
}

.human-name-badge {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: linear-gradient(to top, #000 95%, transparent);
    padding: 25px 20px; text-align: left;
    border-top: 1px solid #bf953f;
}

.flip-card-back {
    background-color: #050505;
    transform: rotateY(180deg);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 30px;
    background-image: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
}

.stat-number {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-heading);
    font-size: 2.5rem; display: block;
}

/* 7. FOOTER */
footer {
    background-color: #000;
    border-top: 1px solid #333;
    padding-top: 4rem;
}

.rt-signature {
    font-size: 0.65rem; color: #333;
    text-decoration: none; transition: 0.5s;
    text-transform: uppercase; letter-spacing: 1px;
}
.rt-signature:hover {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 1;
}

/* Badge de ADN */
.badge-luxury {
    border: 1px solid #bf953f;
    color: #bf953f;
    background: transparent;
    letter-spacing: 3px;
    padding: 8px 16px;
    text-transform: uppercase;
    font-size: 0.7rem;
}

.float-wa { position: fixed; bottom: 30px; right: 30px; z-index: 1000; filter: drop-shadow(0 0 10px rgba(0,0,0,0.5)); transition: transform 0.3s; }
.float-wa:hover { transform: scale(1.1); }

/* --- RECAPITAL: ULTIMATE LUXURY EDITION (FULL BLACK & GOLD) --- */
/* Mantén todo lo anterior igual, aquí agrego los ESTILOS INSTITUCIONALES NUEVOS */

:root {
    --void-black: #000000;
    --rich-black: #050505;
    --gold-gradient: linear-gradient(45deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    --white-pure: #ffffff;
    --text-silver: #c0c0c0;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Manrope', sans-serif;
}

/* BASES GLOBALES (Igual que antes) */
html, body {
    background-color: var(--void-black) !important;
    background-image: linear-gradient(to bottom, #000000 0%, #111111 100%);
    color: var(--white-pure);
    font-family: var(--font-body);
    overflow-x: hidden;
    height: 100%;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); letter-spacing: -0.02em; }
p, .lead, small, li { color: var(--text-silver); }

/* CLASES DE UTILIDAD & TEXTOS */
.gold-text-shine {
    background: var(--gold-gradient);
    background-size: 200% auto;
    color: #000;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
    font-weight: 700;
}
@keyframes shine { to { background-position: 200% center; } }

.badge-luxury {
    border: 1px solid #bf953f;
    color: #bf953f;
    background: transparent;
    letter-spacing: 3px;
    padding: 8px 16px;
    text-transform: uppercase;
    font-size: 0.7rem;
    display: inline-block;
}

/* COMPONENTES UI GENERALES */
.btn-gold {
    background: var(--gold-gradient); background-size: 200% auto; color: #000;
    border: none; font-weight: 800; text-transform: uppercase; letter-spacing: 2px;
    border-radius: 0px; padding: 15px 40px; transition: 0.5s;
    box-shadow: 0 0 20px rgba(191, 149, 63, 0.4);
}
.btn-gold:hover { background-position: right center; color: #000; box-shadow: 0 0 40px rgba(191, 149, 63, 0.6); }

.btn-outline-light {
    border: 1px solid #bf953f; color: #bf953f; border-radius: 0px;
    text-transform: uppercase; letter-spacing: 2px; padding: 14px 40px;
}
.btn-outline-light:hover { background: var(--gold-gradient); color: #000; border-color: #bf953f; }

.navbar-custom {
    background-color: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid rgba(191, 149, 63, 0.3);
    padding: 20px 0;
}
.nav-link { color: #fff !important; font-size: 0.8rem; letter-spacing: 3px; text-transform: uppercase; }
.nav-link:hover, .nav-link.active { 
    background: var(--gold-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; 
}

/* --- ESTILOS ESPECÍFICOS: INSTITUCIONAL --- */

/* 1. Tarjetas de Misión/Visión */
.mission-card {
    background: #050505;
    border: 1px solid #333;
    padding: 40px;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.mission-card:hover {
    border-color: #bf953f;
    transform: translateY(-5px);
}
.mission-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%;
    background: var(--gold-gradient);
}

/* 2. Iconos de Valores (Los Pilares) */
.value-box {
    text-align: center;
    padding: 30px;
    border: 1px solid transparent;
    transition: 0.3s;
}
.value-box:hover {
    background: rgba(191, 149, 63, 0.05);
    border: 1px solid rgba(191, 149, 63, 0.2);
}
.value-icon-wrapper {
    width: 80px; height: 80px; margin: 0 auto 20px;
    border: 1px solid #bf953f;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; /* Circulo elegante */
    box-shadow: 0 0 15px rgba(191, 149, 63, 0.2);
}
.value-icon { font-size: 2rem; color: #bf953f; }

/* 3. Proceso (Niveles 1, 2, 3) */
.process-step {
    border-left: 1px solid #333;
    padding-left: 30px;
    position: relative;
    padding-bottom: 40px;
}
.process-step:last-child { border-left: none; }
.process-number {
    position: absolute; left: -25px; top: 0;
    width: 50px; height: 50px;
    background: #000;
    border: 1px solid #bf953f;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading);
    color: #bf953f; font-weight: bold; font-size: 1.2rem;
    z-index: 2;
}

/* FOOTER (Firma RT) */
footer { background-color: #000; border-top: 1px solid #333; padding-top: 4rem; }
.rt-signature {
    font-size: 0.65rem; color: #333; text-decoration: none; transition: 0.5s;
    text-transform: uppercase; letter-spacing: 1px;
}
.rt-signature:hover {
    background: var(--gold-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; opacity: 1;
}
.float-wa { position: fixed; bottom: 30px; right: 30px; z-index: 1000; transition: transform 0.3s; }
.float-wa:hover { transform: scale(1.1); }

/* --- ESTILOS DE CONTACTO DELUXE (THE VAULT INTERFACE) --- */

/* 1. Inputs del Formulario (Estilo Bóveda) */
.form-control-luxury {
    background-color: rgba(255, 255, 255, 0.03); /* Casi transparente */
    border: 1px solid #333; /* Borde sutil inicial */
    border-radius: 0px; /* Rectos y serios */
    color: #fff !important;
    padding: 15px 20px;
    font-family: var(--font-body);
    transition: all 0.4s ease;
}

.form-control-luxury:focus {
    background-color: #000;
    border-color: #bf953f; /* Se pone dorado al escribir */
    box-shadow: 0 0 20px rgba(191, 149, 63, 0.2); /* Resplandor */
    color: #fff;
}

.form-control-luxury::placeholder {
    color: #555;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Select especial para el dropdown */
select.form-control-luxury option {
    background-color: #000;
    color: #fff;
}

/* 2. Tarjetas de Contacto Directo */
.contact-card {
    background: #050505;
    border: 1px solid #222;
    padding: 30px;
    text-align: center;
    transition: 0.4s;
    height: 100%;
}

.contact-card:hover {
    border-color: #bf953f;
    background: linear-gradient(to bottom, #050505, #0a0a0a);
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2.5rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    display: inline-block;
}

/* 3. MAPA TÁCTICO (DARK MODE HACK) */
/* Este filtro invierte los colores del mapa de Google para que sea NEGRO */
.map-dark-mode iframe {
    filter: invert(100%) hue-rotate(180deg) brightness(85%) contrast(120%) grayscale(100%);
    border: 1px solid #bf953f;
}

/* Contenedor del mapa */
.map-container {
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
}