/* Variables & Reset */
:root {
    --bg-color: #0a192f; /* Azul noche muy oscuro */
    --secondary-bg: #112240; /* Azul ligeramente más claro para secciones */
    --text-primary: #ccd6f6; /* Blanco hueso para texto */
    --text-secondary: #8892b0; /* Gris azulado para subtítulos */
    --gold: #d4af37; /* Dorado clásico */
    --gold-hover: #f3e5ab; /* Dorado pálido para hover */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Lato', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-serif);
    color: #e6f1ff;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; font-weight: 700; }
h2 { font-size: 2.5rem; color: var(--gold); }
h3 { font-size: 1.5rem; }

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* Utilities */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.section { padding: 80px 0; }

/* Buttons */
.btn-primary {
    background: linear-gradient(45deg, #b8860b, #d4af37, #b8860b);
    color: #0a192f;
    padding: 15px 35px;
    border-radius: 2px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    border: 1px solid var(--gold);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(45deg, #d4af37, #f3e5ab, #d4af37);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-small {
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 8px 20px;
    border-radius: 2px;
    font-size: 0.9rem;
}

.btn-small:hover {
    background: var(--gold);
    color: var(--bg-color);
}

/* Navbar */
.navbar {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1419242902214-272b3f66ee7a?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 25, 47, 0.7); /* Oscurece la imagen de fondo */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero .subtitle {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 30px;
    font-weight: 300;
}

.trust-badge {
    display: block;
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Grids & Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.split-section img, .product-showcase img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Features */
.features-section { background-color: var(--secondary-bg); }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s;
}

.feature-card:hover { transform: translateY(-5px); border-color: var(--gold); }
.feature-card .icon { font-size: 2.5rem; margin-bottom: 20px; }

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.review-card {
    background: var(--secondary-bg);
    padding: 30px;
    border-left: 3px solid var(--gold);
}

.review-text { font-style: italic; margin-bottom: 15px; }
.review-author { font-weight: 700; color: var(--gold); }

/* Steps */
.steps-container {
    display: flex;
    justify-content: space-around;
    text-align: center;
    margin-top: 50px;
    flex-wrap: wrap;
}

.step { flex: 1; min-width: 200px; margin: 20px; }
.step-number {
    display: inline-block;
    width: 40px; height: 40px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    line-height: 36px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 15px;
}

/* FAQ Accordion */
.accordion { max-width: 800px; margin: 40px auto 0; }
.accordion-item { border-bottom: 1px solid rgba(255,255,255,0.1); }
.accordion-header {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 20px;
    text-align: left;
    font-size: 1.1rem;
    cursor: pointer;
    font-family: var(--font-serif);
    display: flex;
    justify-content: space-between;
}
.accordion-header:hover { color: var(--gold); }
.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
    color: var(--text-secondary);
}

/* Footer */
footer {
    background: #020c1b;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}
.footer-logo { font-family: var(--font-serif); color: var(--gold); margin-bottom: 20px; font-size: 1.2rem; }
.footer-links a { color: var(--text-secondary); margin: 0 15px; font-size: 0.9rem; }
.footer-links a:hover { color: var(--gold); }
footer p { margin-top: 20px; color: #555; font-size: 0.8rem; }

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Mobile Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    .grid-2 { grid-template-columns: 1fr; }
    .reverse-mobile { display: flex; flex-direction: column-reverse; }
    .hero { height: auto; padding: 150px 0 80px; }
}

/* =========================================
   BOOTSTRAP OVERRIDES (FORZADO)
   ========================================= */

/* 1. Fondo Global */
body {
    background-color: var(--bg-color) !important;
    color: var(--text-primary) !important;
}

/* 2. Forzar Tarjetas (Cards) Oscuras */
.card {
    /* --bs-card-bg es la variable que usa Bootstrap 5, la reescribimos */
    --bs-card-bg: var(--secondary-bg); 
    background-color: var(--secondary-bg) !important; /* Forzamos el color #112240 */
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
    color: var(--text-primary) !important;
}

/* 3. Inputs (Formularios) */
.form-control {
    background-color: rgba(10, 25, 47, 0.6) !important; /* Fondo oscuro */
    border: 1px solid #233554 !important;
    color: #fff !important; /* Texto blanco al escribir */
}

.form-control:focus {
    background-color: rgba(10, 25, 47, 0.9) !important;
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.15) !important; /* Brillo dorado */
    color: #fff !important;
}

/* Placeholder (texto de ayuda dentro del input) */
.form-control::placeholder {
    color: rgba(204, 214, 246, 0.5) !important;
}

/* 4. Textos de Bootstrap */
.text-muted {
    color: var(--text-secondary) !important; /* Cambia el gris claro por tu gris azulado */
}

h1, h2, h3, .h1, .h2, .h3 {
    color: #e6f1ff !important; /* Asegura que los títulos sean claros */
}

/* 5. Barra de Progreso */
.progress {
    background-color: #233554 !important;
}

.progress-bar {
    background-color: var(--gold) !important;
}