/* ===== VARIABLES Y RESET ===== */
:root {
    --negro: #000000;
    --negro-profundo: #0A0A0A;
    --negro-secundario: #111111;
    --dorado: #FFD700;
    --dorado-calido: #FDB931;
    --dorado-oscuro: #FDB931;
    --blanco: #FFFFFF;
    --blanco-hueso: #F5F5F5;
    --gris-claro: #E8E8E8;
    --gris: #AAAAAA;
    --gris-oscuro: #333333;
    --rojo-fuerza: #DC2626;
    --rojo-oscuro: #B91C1C;
    
    /* Variables modo claro */
    --bg-primario: #0A0A0A;
    --bg-secundario: #111111;
    --bg-alternate: #1A1A1A;
    --texto-primario: #F5F5F5;
    --texto-secundario: #E8E8E8;
    --texto-terciario: #AAAAAA;
}

/* Modo claro */
body.modo-claro {
    --bg-primario: #fddb31;
    --bg-secundario: #000000;
    --bg-alternate: #F0F0F0;
    --texto-primario: #ffffff;
    --texto-secundario: #1c1b1b;
    --texto-terciario: #666666;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primario);
    color: var(--texto-primario);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    font-weight: 400;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* ===== HEADER CLÁSICO REDISEÑADO - CORREGIDO ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-primario);
    border-bottom: 1px solid var(--dorado);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    height: 90px;
}

body.modo-claro header {
    background: var(--bg-secundario);
    border-bottom: 1px solid var(--dorado-oscuro);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Logo a la izquierda - ESCRITORIO */
.logo-container {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
    max-width: 120px;
    transition: all 0.3s ease;
    filter: brightness(1.2) contrast(1.1);
    object-fit: contain;
}

.logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

/* Navegación centrada - ESCRITORIO */
.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--texto-primario);
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 10px 0;
    position: relative;
    transition: all 0.3s ease;
}

body.modo-claro .nav-links a {
    color: var(--texto-primario);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--dorado), var(--rojo-fuerza));
    transition: width 0.3s ease;
}

body.modo-claro .nav-links a::after {
    background: linear-gradient(90deg, var(--dorado-oscuro), var(--rojo-oscuro));
}

.nav-links a:hover {
    color: var(--dorado);
}

body.modo-claro .nav-links a:hover {
    color: var(--dorado-oscuro);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Botón contacto especial */
.btn-contacto {
    background: linear-gradient(135deg, var(--dorado), var(--rojo-fuerza));
    color: var(--negro) !important;
    padding: 10px 25px !important;
    border-radius: 4px;
    font-weight: 700;
    margin-left: 10px;
    border: none;
}

.btn-contacto::after {
    display: none;
}

.btn-contacto:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
    background: linear-gradient(135deg, var(--dorado-calido), var(--rojo-oscuro));
}

body.modo-claro .btn-contacto {
    background: linear-gradient(135deg, var(--dorado-oscuro), var(--rojo-oscuro));
}

/* Switch tema a la derecha en escritorio */
.theme-switch-container {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 100px;
}

.theme-switch-header {
    background: rgba(0,0,0,0.1);
    border-radius: 30px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--dorado);
    transition: all 0.3s ease;
}

body.modo-claro .theme-switch-header {
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--dorado-oscuro);
}

.theme-switch-header i {
    color: var(--dorado);
    font-size: 0.9rem;
}

body.modo-claro .theme-switch-header i {
    color: var(--dorado-oscuro);
}

.switch {
    position: relative;
    display: inline-block;
    width: 45px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: var(--dorado);
    transition: .4s;
}

body.modo-claro .slider:before {
    background-color: var(--dorado-oscuro);
}

input:checked + .slider {
    background-color: #666;
}

input:checked + .slider:before {
    transform: translateX(23px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Menú hamburguesa (solo móvil) */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--dorado);
    cursor: pointer;
    transition: all 0.3s ease;
    background: none;
    border: none;
    padding: 5px;
    z-index: 1002;
}

body.modo-claro .menu-toggle {
    color: var(--dorado-oscuro);
}

.menu-toggle:hover {
    transform: scale(1.1);
}

/* ===== HEADER SCROLL EFFECT ===== */
header.scrolled {
    height: 80px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

header.scrolled .logo-img {
    height: 55px;
    max-width: 110px;
}

/* ===== ESCRITORIO: DISTRIBUCIÓN PERFECTA ===== */
@media (min-width: 769px) {
    .nav-container {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 20px;
    }
    
    .logo-container {
        grid-column: 1;
        justify-self: start;
    }
    
    .nav-center {
        grid-column: 2;
        justify-self: center;
    }
    
    .theme-switch-container {
        grid-column: 3;
        justify-self: end;
    }
    
    .menu-toggle {
        display: none;
    }
}

/* ===== TIPOGRAFÍA DE ENTRENAMIENTO Y MENTALIDAD ===== */
h1, h2, h3, h4, h5 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 900;
    line-height: 1.2;
    transition: color 0.5s ease;
}

h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--dorado), var(--rojo-fuerza));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

body.modo-claro h1 {
    background: linear-gradient(90deg, var(--dorado-oscuro), var(--rojo-oscuro));
    -webkit-background-clip: text;
    background-clip: text;
}

h2 {
    font-size: 3.2rem;
    color: var(--dorado);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1.5rem;
    font-weight: 800;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, var(--dorado), var(--rojo-fuerza));
}

body.modo-claro h2 {
    color: var(--dorado-oscuro);
}

body.modo-claro h2::after {
    background: linear-gradient(90deg, var(--dorado-oscuro), var(--rojo-oscuro));
}

h3 {
    font-size: 2.5rem;
    color: var(--texto-primario);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

body.modo-claro h3 {
    color: var(--texto-primario);
}

h4 {
    font-size: 1.8rem;
    color: var(--dorado);
    margin-bottom: 1rem;
    font-weight: 700;
}

body.modo-claro h4 {
    color: var(--dorado-oscuro);
}

p {
    margin-bottom: 1.5rem;
    color: var(--texto-secundario);
    font-size: 1.15rem;
    line-height: 1.8;
    transition: color 0.5s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

body.modo-claro p {
    color: var(--texto-secundario);
}

.lead {
    font-size: 1.4rem;
    color: var(--dorado-calido);
    font-weight: 600;
    font-family: 'Oswald', sans-serif;
}

body.modo-claro .lead {
    color: var(--dorado-oscuro);
}

.text-strong {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.text-discipline {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--dorado);
}

body.modo-claro .text-discipline {
    color: var(--dorado-oscuro);
}

/* ===== LAYOUT GENERAL ===== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
    position: relative;
}

/* Ajuste para el header fijo */
section:first-of-type {
    padding-top: 110px;
}

/* Secciones con fondo dorado */
.section-gold {
    background-color: var(--dorado);
    background: linear-gradient(135deg, var(--dorado) 0%, var(--dorado-calido) 100%);
    color: var(--negro);
}

/* Secciones con fondo oscuro */
.section-dark {
    background-color: var(--bg-primario);
}

/* Secciones con fondo negro secundario */
.section-alternate {
    background-color: var(--bg-secundario);
}

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

/* ===== BOTONES DE ENTRENAMIENTO ===== */
.btn {
    display: inline-block;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--dorado), var(--rojo-fuerza));
    color: var(--negro);
    text-decoration: none;
    font-weight: 900;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.6s;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(255, 215, 0, 0.5);
    background: linear-gradient(135deg, var(--dorado-calido), var(--rojo-oscuro));
}

body.modo-claro .btn {
    background: linear-gradient(135deg, var(--dorado-oscuro), var(--rojo-oscuro));
    box-shadow: 0 8px 20px rgba(184, 134, 11, 0.3);
}

body.modo-claro .btn:hover {
    box-shadow: 0 12px 25px rgba(184, 134, 11, 0.5);
}

/* Botón para secciones doradas */
.section-gold .btn {
    background: linear-gradient(135deg, var(--negro), var(--gris-oscuro));
    color: var(--dorado);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.section-gold .btn:hover {
    box-shadow: 0 12px 25px rgba(0,0,0,0.6);
    background: linear-gradient(135deg, var(--negro-secundario), var(--gris-oscuro));
}

.btn-secondary {
    background: linear-gradient(135deg, var(--negro-secundario), var(--gris-oscuro));
    color: var(--dorado);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.btn-secondary:hover {
    box-shadow: 0 12px 25px rgba(255, 215, 0, 0.3);
}

/* ===== ANIMACIONES DE FUERZA ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

@keyframes pulseGold {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 215, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

@keyframes shine {
    0% {
        background-position: -200px;
    }
    100% {
        background-position: 200px;
    }
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.4);
    }
}

@keyframes weightLift {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }