/* PALETA DE COLORES CORREGIDA: AZUL & BLANCO */
:root {
    --ip-black: #000000;
    --ip-blue-neon: #2E5BFF; /* Azul Eléctrico solicitado */
    --ip-white: #FFFFFF;    /* Letras en blanco */
    --ip-grey-dark: #121212;
    --ip-grey-text: #E0E0E0; /* Blanco suave para textos secundarios */
}
/* =========================================
   DESPLAZAMIENTO SUAVE GLOBAL (PRO)
   ========================================= */
html {
    scroll-behavior: smooth; /* Esta es la magia */
}

/* AJUSTE PARA HEADER FIJO: 
   Evita que el menú de arriba tape el título al saltar. 
   Usa un margen superior solo cuando se salta por ancla. */
.pricing-section:target,
#pricing-section:target {
    scroll-margin-top: 100px; /* Ajusta este número según la altura real de tu header */
}

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

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    background-color: var(--ip-black);
    color: var(--ip-white);
    line-height: 1.6;
}

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

/* TEXT COLORS */
.text-blue { color: var(--ip-blue-neon); }

/* =========================================
   SOLUCIÓN DEFINITIVA HEADER AMONTONADO
   ========================================= */

.main-header {
    background-color: #000000;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #2E5BFF;
    height: auto !important;
    min-height: 70px;
    display: flex;
    align-items: center;
}

.nav-wrapper {

max-width: 1200px; /* Esto lo alinea con tus otros contenedores */
    margin: 0 auto;    /* Esto lo centra en la pantalla */
    width: 100%;       /* Asegura que ocupe el espacio disponible */

    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 15px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.logo {
    font-size: 1.2rem !important;
    font-weight: 800;
    color: #FFFFFF;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 15px;
}

.text-blue {
    color: #2E5BFF !important;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 1;
    justify-content: flex-end;
}

/* --- 1. RESTAURACIÓN DE TAMAÑOS ORIGINALES (Botones generales de la página) --- */
/* Esto asegura que los botones fuera del header recuperen su tamaño grande */

.btn-neon {
    background-color: #2E5BFF;
    color: #FFFFFF;
    padding: 15px 35px; /* Tamaño grande restaurado */
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1rem; /* Letra grande restaurada */
    display: inline-block;
    box-shadow: 0 0 10px rgba(46, 91, 255, 0.5);
}

.btn-text {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
}

/* --- 2. TAMAÑOS ESPECÍFICOS *SOLO* PARA LOS BOTONES DEL HEADER --- */
/* Al usar el selector '.header-actions', indicamos que estos estilos solo aplican a los botones de arriba */

.header-actions .btn-text {
    font-size: 0.85rem; /* Letra más pequeña solo arriba */
    white-space: nowrap;
}

.header-actions .btn-neon {
    padding: 10px 20px; /* Más compacto solo arriba */
    font-size: 0.85rem; /* Letra más pequeña solo arriba */
    white-space: nowrap;
}

/* =========================================
   AJUSTE PARA PANTALLAS EXTREMADAMENTE PEQUEÑAS
   (Menos de 360px de ancho)
   ========================================= */
@media (max-width: 360px) {
    .logo {
        font-size: 1rem !important;
        margin-right: 5px;
    }
    .header-actions {
        gap: 8px;
    }
    /* Estos ajustes también se aplican solo a los botones del header */
    .header-actions .btn-neon {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    .header-actions .btn-text {
        font-size: 0.75rem;
    }
}

/* HERO */
.hero {
    height: 70vh;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.6)), url('IMAGENES/GYM 2.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero h1 { font-size: 2.2rem; font-weight: 900; margin-bottom: 15px; color: var(--ip-white); }
.hero p { color: var(--ip-grey-text); margin-bottom: 30px; font-size: 1.1rem; }

/* ABOUT SECTION (@imagen2) */
.about-gym { background-color: var(--ip-white); color: var(--ip-black); padding: 60px 0; }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: center; }
.img-placeholder { background: #000; width: 100%; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; color: var(--ip-white); text-align: center; border: 4px solid var(--ip-blue-neon); }
.step-line { font-weight: bold; color: #ccc; }
.about-text h2 { font-size: 2rem; font-weight: 900; margin-top: 10px; }

/* PLANES (@imagen3) */
.pricing-section { padding: 60px 0; text-align: center; background: #080808; }
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 35px; }
.plan-card { background: var(--ip-grey-dark); padding: 30px; border-radius: 12px; border: 1px solid #222; }
.plan-card.featured { border: 2px solid var(--ip-blue-neon); background: #000c24; }
.price { font-size: 2.8rem; font-weight: bold; margin: 15px 0; color: var(--ip-white); }
.badge { background: var(--ip-blue-neon); color: white; font-size: 0.7rem; font-weight: bold; padding: 5px 15px; border-radius: 20px; margin-bottom: 10px; display: inline-block; }
.features { list-style: none; margin-bottom: 25px; color: var(--ip-grey-text); }

/* WHY US (@imagen4/5) */
/* =========================================
   POR QUÉ ESTE GYM (@imagen4/5)
   ========================================= */
.why-us {
    /* El padding de 120px abajo da espacio al efecto de la card central */
    padding: 80px 0 120px !important; 
    background-color: var(--ip-black);
    position: relative;
    z-index: 10; /* Mantiene la sección por encima de la línea del footer */
}

.why-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 25px; 
    padding: 40px 0;
    align-items: start;
}

.why-item { 
    background: var(--ip-grey-dark); 
    padding: 30px; 
    border-radius: 15px; 
    border-bottom: 3px solid var(--ip-blue-neon);
    transition: transform 0.3s ease;
}

/* EFECTO PODIO INVERTIDO (Solo Escritorio) */
@media (min-width: 768px) {
    .why-grid .why-item:nth-child(2) {
        /* Desplazamos la card central hacia abajo */
        transform: translateY(50px); 
    }
}

.why-item i { 
    font-size: 2.2rem; 
    color: var(--ip-blue-neon); 
    margin-bottom: 15px; 
    display: block;
    filter: drop-shadow(0 0 8px var(--ip-blue-neon));
}

/* =========================================
   REDISEÑO DE FOOTER UNIFICADO
   ========================================= */
.main-footer {
    background-color: #050505;
    padding: 60px 0 30px;
    /* Línea azul neón de separación */
    border-top: 2px solid var(--ip-blue-neon); 
    text-align: center;
    position: relative;
    z-index: 5; /* Queda visualmente detrás de las cards de beneficios */
}

/* --- ESTILO IFCODE (TU FIRMA) --- */
a.brand-ifcode {
    color: #FFFFFF !important; 
    text-decoration: none !important;
    font-family: 'Arial Black', sans-serif !important;
    font-weight: 900;
    text-transform: uppercase;
    display: inline-block;
    /* Iluminación estática solicitada */
    text-shadow: 0 0 8px rgba(255, 159, 28, 0.7); 
    transition: 0.3s;
}

a.brand-ifcode .if-part {
    color: #FF9F1C !important;
}

a.brand-ifcode:hover {
    transform: scale(1.1);
    text-shadow: 0 0 15px rgba(255, 159, 28, 0.9);
}
/* =========================================
   REDISEÑO DE FOOTER UNIFICADO
   ========================================= */
.main-footer {
    background-color: #050505;
    padding: 60px 0 30px;
    border-top: 2px solid var(--ip-blue-neon);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.footer-brand .logo {
    margin-right: 0;
    margin-bottom: 10px;
    font-size: 1.5rem !important;
}

.footer-brand p {
    color: var(--ip-grey-text);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.social-links {
    display: flex;
    gap: 25px;
    margin-top: 15px;
    justify-content: center;
}

.social-links a {
    color: var(--ip-white);
    font-size: 1.8rem;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(46, 91, 255, 0.2));
}

.social-links a:hover {
    color: var(--ip-blue-neon);
    transform: translateY(-5px);
    filter: drop-shadow(0 0 10px var(--ip-blue-neon));
}

.footer-dev {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #1a1a1a;
    width: 100%;
    font-size: 0.8rem;
    color: #555;
}

/* --- ESTILO IFCODE --- */
a.brand-ifcode {
    color: #FFFFFF !important; 
    text-decoration: none !important;
    font-family: 'Arial Black', sans-serif !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    display: inline-block !important;
    cursor: pointer !important;
    
    /* --- ILUMINACIÓN ESTÁTICA (PRENDIDA SIEMPRE) --- */
    text-shadow: 0 0 8px rgba(255, 159, 28, 0.6), 
                 0 0 15px rgba(255, 159, 28, 0.3) !important;
    
    transition: all 0.3s ease !important;
}

/* Color Naranja para el "IF" */
a.brand-ifcode .if-part {
    color: #FF9F1C !important;
    /* Un pequeño brillo extra interno solo para las letras naranjas */
    filter: drop-shadow(0 0 2px rgba(255, 159, 28, 0.5));
}

/* EFECTO AL PASAR EL MOUSE (Para que se sienta el click) */
a.brand-ifcode:hover {
    transform: scale(1.08); /* Crece un poquito al tocarlo */
    /* El brillo se intensifica al poner el mouse */
    text-shadow: 0 0 12px rgba(255, 159, 28, 0.9), 
                 0 0 25px rgba(255, 159, 28, 0.5) !important;
}



/* Ajuste para escritorio */
@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        align-items: flex-start;
    }
    
    .social-links {
        justify-content: flex-start;
    }
    
    .footer-dev {
        text-align: right;
        border-top: none;
        padding-top: 0;
        margin-top: 0;
        width: auto;
    }
}
/* ESCRITORIO */
@media (min-width: 768px) {
    .desktop-nav { display: flex; gap: 30px; }
    .desktop-nav a { color: var(--ip-white); text-decoration: none; font-weight: bold; font-size: 0.85rem; }
    .hero h1 { font-size: 4.5rem; }
    .about-grid { grid-template-columns: 1fr 1fr; }
    .pricing-grid { grid-template-columns: repeat(4, 1fr); }
    .why-grid { grid-template-columns: repeat(3, 1fr); }
}/* ... aquí termina todo tu código anterior ... */

/* ESTO ES LO NUEVO QUE PEGARÁS AL FINAL */
.about-text .btn-outline {
    background-color: #2E5BFF !important; /* Azul Iron Paradise */
    color: #FFFFFF !important;            /* Texto Blanco */
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    display: inline-block;
    margin-top: 20px;
    border: none !important;
}

.about-text .btn-outline:hover {
    background-color: #1a44d6 !important;
    transform: scale(1.05);
}
/* AJUSTE MÓVIL: SOLO EL ESPACIO INTERNO DEL BOTÓN */
@media (max-width: 480px) {
    .btn-header {
        /* Reducimos el relleno (padding) para que el botón sea más flaco */
        padding: 6px 10px !important; 
        
        /* NO tocamos font-family, NO tocamos font-size */
        /* Solo nos aseguramos de que el botón no empuje a los demás */
        display: inline-flex !important;
        align-items: center;
        white-space: nowrap !important;
    }

    .nav-wrapper {
        gap: 5px !important; /* Une el logo con los botones para que quepan */
    }
}
/* =========================================
/* =========================================
   FORZADO DE ANCHO PARA ESCRITORIO (1024px en adelante)
   ========================================= */
@media (min-width: 1024px) {

    /* 1. Forzamos a que todos los contenedores de la página se expandan */
    .container, 
    .nav-wrapper, 
    .pricing-section .container, 
    .about-gym .container {
        max-width: 1500px !important; /* Ancho mucho más grande */
        width: 95% !important;        /* Que use casi toda la pantalla */
        margin: 0 auto !important;    /* Siempre centrado */
    }

    /* 2. Hacemos el Header más alto y grande */
    .main-header {
        height: 100px !important; 
    }

    .logo {
        font-size: 2rem !important; /* Logo más grande */
    }

    .header-actions .btn-neon {
        padding: 15px 30px !important; /* Botón azul más grande en PC */
        font-size: 1.1rem !important;
    }

    /* 3. Agrandamos las Cards de los Planes */
    .pricing-grid {
        grid-template-columns: repeat(4, 1fr) !important; /* Forzamos 4 columnas */
        gap: 40px !important; /* Más separación */
    }

    .plan-card {
        padding: 50px 30px !important; /* Más gordas */
        transform: scale(1.1);         /* Las agrandamos un 10% extra */
    }

    .price {
        font-size: 3.5rem !important; /* Precios gigantes */
    }
}
/* EFECTO PODIO INVERTIDO (Solo para pantallas grandes) */
@media (min-width: 768px) {
    .why-grid .why-item:nth-child(2) {
        transform: translateY(35px); /* Reducimos ligeramente de 45px a 35px */
    }
}

/* --- CONTENEDOR DE IMAGEN SECCIÓN 2 --- */
.img-welcome-container {
    width: 100%;
    aspect-ratio: 1 / 1;          /* Lo mantiene cuadrado */
    background-color: var(--ip-black); 
    border-radius: 15px;          /* Bordes redondeados */
    border: 3px solid var(--ip-blue-neon); /* Borde neon azul */
    
    /* CARGA DE LA IMAGEN */
    background-image: url('IMAGENES/ironparadise.webp'); 
    background-size: cover;       /* Rellena el cuadro sin deformar */
    background-position: center;  /* Centra la foto */
    background-repeat: no-repeat;
    
    /* Brillo neon opcional para que haga juego con los iconos */
    box-shadow: 0 0 15px rgba(46, 91, 255, 0.3);
}

/* AJUSTE PARA MÓVIL (Para que no se rompa el diseño) */
@media (max-width: 767px) {
    .why-grid { 
        grid-template-columns: 1fr; /* Una sola columna en celular */
        gap: 15px;
    }
    .why-grid .why-item:nth-child(2) {
        transform: none; /* Quitamos el desplazamiento en móvil */
    }
}