/* =========================================
   VARIABLES & DESIGN TOKENS
   ========================================= */
   :root {
    /* Paleta Principal */
    --bg-dark: #07090f;            /* Fondo oscuro profundo (casi negro con toque azul/gris) */
    --bg-alt: #10141e;             /* Fondo alternativo para tarjetas o secciones */
    --bg-light: #1c212e;           /* Fondos de elementos elevados */
    
    --gold-primary: #C5A059;       /* Dorado elegante */
    --gold-hover: #e0b86a;
    --gold-dark: #9c7b3d;
    
    --text-main: #f8f9fa;          /* Blanco roto para lecturabilidad */
    --text-muted: #abb2bf;         /* Gris para textos secundarios */
    
    --white: #ffffff;
    --black: #000000;

    /* Tipografía */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;

    /* Transiciones & Sombras */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.3);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.5);
    --shadow-gold: 0 8px 30px rgba(197, 160, 89, 0.15);
}

/* =========================================
   RESET & GLOBAL
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.pb-4 { padding-bottom: 40px; }

/* =========================================
   BOTONES
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-gold {
    background-color: var(--gold-primary);
    color: var(--bg-dark);
}

.btn-gold:hover {
    background-color: var(--gold-hover);
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.btn-outline:hover {
    background-color: var(--gold-primary);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

/* =========================================
   HEADER & NAVBAR
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(7, 9, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
    padding: 20px 0;
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
    background-color: rgba(7, 9, 15, 0.98);
}

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

.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-er {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    color: var(--white);
    position: relative;
}

.logo-er::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--gold-primary);
    bottom: 5px;
    left: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid var(--gold-primary);
    padding-left: 15px;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 3px;
    color: var(--white);
}

.logo-subtitle {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 3px;
    color: var(--white);
}

.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main);
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--gold-primary);
    transition: var(--transition);
}

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

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

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--gold-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    /* Hero background paramóvil por defecto */
    background: linear-gradient(135deg, #07090f 0%, #171d2b 100%);
    overflow: hidden;
}

/* Simulación de lineas doradas geométricas del fondo (Abstract) */
.hero::before, .hero::after {
    content: '';
    position: absolute;
    border: 1px solid rgba(197, 160, 89, 0.1);
    z-index: 1;
}

.hero::before {
    width: 50vw;
    height: 150vh;
    transform: rotate(45deg);
    top: -25vh;
    left: -20vw;
}

.hero::after {
    width: 60vw;
    height: 150vh;
    transform: rotate(-45deg);
    top: -25vh;
    right: -20vw;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding-top: 80px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--gold-primary);
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.hero-title span {
    color: var(--gold-primary);
}

.hero-slogan {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* =========================================
   SECCIONES GENERALES
   ========================================= */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section-header h2 span {
    color: var(--gold-primary);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* =========================================
   FORMACIÓN (Tarjetas)
   ========================================= */
.formation-section {
    background-color: var(--bg-alt);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--bg-light);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 40px 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background-color: transparent;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: rgba(197, 160, 89, 0.2);
}

.card:hover::before {
    background-color: var(--gold-primary);
}

.card-featured {
    background-color: rgba(197, 160, 89, 0.03);
    border-color: rgba(197, 160, 89, 0.3);
}

.card-featured::before {
    background-color: var(--gold-primary);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--gold-primary);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.card-list {
    margin-bottom: 30px;
}

.card-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.card-list li i {
    color: var(--gold-primary);
    margin-top: 5px;
    font-size: 0.8rem;
}

.card-result {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--white);
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.card-result i {
    color: #4CAF50; /* Verde check */
}

/* =========================================
   ASESORÍA
   ========================================= */
.asesoria-section {
    background-color: var(--bg-dark);
}

.asesoria-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.asesoria-text h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.asesoria-text h2 span {
    color: var(--gold-primary);
}

.confidential-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(197, 160, 89, 0.1);
    color: var(--gold-primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.asesoria-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.asesoria-services li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    background-color: var(--bg-alt);
    padding: 20px;
    border-radius: 8px;
    transition: var(--transition);
}

.asesoria-services li:hover {
    background-color: var(--bg-light);
    transform: translateX(10px);
}

.asesoria-services li i {
    font-size: 1.5rem;
    color: var(--gold-primary);
}

.asesoria-services li strong {
    color: var(--white);
    display: block;
    margin-bottom: 5px;
    font-family: var(--font-heading);
}

.legal-badge-visual {
    width: 100%;
    height: 400px;
    border: 1px solid var(--gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: repeating-linear-gradient(
        45deg,
        rgba(197, 160, 89, 0.02),
        rgba(197, 160, 89, 0.02) 10px,
        transparent 10px,
        transparent 20px
    );
}

.legal-badge-visual i {
    font-size: 8rem;
    color: rgba(197, 160, 89, 0.2);
}

/* =========================================
   ENTRENAMIENTOS (Grid)
   ========================================= */
.grid-section {
    background-color: var(--bg-alt);
}

.training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2px; /* Efecto de lineas finas al tener gap */
    background-color: rgba(255,255,255,0.05); /* Color de las lineas divisorias */
    border: 1px solid rgba(255,255,255,0.05);
}

.training-block {
    background-color: var(--bg-alt);
    height: 250px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.t-front, .t-back {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    transition: var(--transition);
    text-align: center;
}

.t-front {
    background-color: var(--bg-alt);
    z-index: 2;
}

.t-icon {
    font-size: 3rem;
    color: var(--gold-primary);
    margin-bottom: 20px;
    transition: var(--transition);
}

.t-front h4 {
    font-size: 1.2rem;
}

.t-back {
    background-color: var(--gold-dark);
    color: var(--white);
    transform: translateY(100%);
    z-index: 1;
}

.t-back p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.training-block:hover .t-front {
    transform: translateY(-100%);
}

.training-block:hover .t-back {
    transform: translateY(0);
}

/* =========================================
   PRUEBAS DE ÉXITO
   ========================================= */
.stats-section {
    background: linear-gradient(rgba(7, 9, 15, 0.95), rgba(7, 9, 15, 0.95)), url('../img/LogoBlanco.png') center/contain no-repeat;
    background-color: var(--bg-dark);
    padding: 80px 0;
    border-top: 1px solid var(--gold-primary);
    border-bottom: 1px solid var(--gold-primary);
}

.stats-wrapper {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
    text-align: center;
}

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

.stat-number {
    font-size: 4rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--gold-primary);
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.stat-text {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

/* =========================================
   PRECIOS / CATEGORÍAS
   ========================================= */
.pricing-section {
    background-color: var(--bg-dark);
}

.categories-list {
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.cat-item {
    background-color: var(--bg-light);
    border-left: 4px solid var(--gold-primary);
    padding: 20px 30px;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 500;
    transition: var(--transition);
}

.cat-item:hover {
    background-color: var(--bg-alt);
    transform: translateX(10px);
}

.conversion-box {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-primary) 100%);
    border-radius: 12px;
    padding: 50px;
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    gap: 40px;
    box-shadow: var(--shadow-gold);
}

.cv-icon {
    font-size: 4rem;
    color: var(--white);
    opacity: 0.9;
}

.cv-text {
    flex: 1;
}

.cv-text h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.cv-text p {
    font-size: 1.2rem;
    font-weight: 500;
}

.cv-action {
    flex-shrink: 0;
}

.cv-action .btn {
    background-color: var(--bg-dark);
    color: var(--gold-primary);
    font-size: 1.1rem;
    padding: 15px 30px;
}

.cv-action .btn:hover {
    background-color: var(--white);
    color: var(--bg-dark);
}

/* =========================================
   FOOTER (Contacto & Formularios)
   ========================================= */
.footer {
    background-color: #040508;
    padding-top: 80px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 400px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.footer-logo span {
    font-weight: 800;
    color: var(--gold-primary);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--bg-light);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--gold-primary);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

.footer-contact h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--gold-primary);
}

.footer-contact p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.contact-form {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--bg-alt);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 2px rgba(197, 160, 89, 0.2);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--text-muted);
    margin-left: 15px;
}

.footer-links a:hover {
    color: var(--gold-primary);
}

/* =========================================
   RESPONSIVE DESIGN (Mobile First Concept pero ajustado hacia abajo)
   ========================================= */

/* Lógica exclusiva de Escritorio para el Hero (Ocultar texto) */
@media (min-width: 993px) {
    .hero {
        background: url('../img/Portada.png') center/cover no-repeat;
    }
    .hero-text-content {
        display: none;
    }
    .hero-overlay {
        opacity: 0.15; /* Solo un pequeño tint oscuro para que se vea bien la foto */
    }
    /* Centramos los botones ya que no hay texto que empujar */
    .hero-content {
        display: flex;
        align-items: flex-end;
        justify-content: center;
        width: 100%;
        height: 100%;
        padding-bottom: 80px; /* Separación desde abajo */
        padding-top: 0;
    }
}

@media (max-width: 992px) {
    .hero-title { font-size: 4rem; }
    .asesoria-content, .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .legal-badge-visual { display: none; } /* Ocultar en tablets pequeñas */
    .conversion-box { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
    .nav-menu ul {
        display: none; /* Oculto por defecto en móvil, manejado por JS */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-dark);
        padding: 20px 0;
        border-bottom: 1px solid var(--gold-primary);
    }
    
    .nav-menu.active ul {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-title { font-size: 3rem; }
    .hero-slogan { font-size: 1.2rem; }
    .hero-actions { flex-direction: column; }
    
    .section { padding: 60px 0; }
    
    .stats-wrapper { flex-direction: column; }
    
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
}
