/* ========================================== */
/* IRON CORE FITNESS - Custom Styles          */
/* Color Palette:                              */
/* - Black: #0A0A0A                           */
/* - Red: #FF0033 / #E30613                   */
/* - Gray: #A8A8A8 / #666666                 */
/* - White: #FFFFFF                           */
/* ========================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0A0A0A;
    color: #FFFFFF;
    overflow-x: hidden;
}

/* Typography */
.font-title {
    font-family: 'Montserrat', sans-serif;
}

/* ========================================== */
/* NAVIGATION STYLES                          */
/* Fixed position at top of page             */
/* ========================================== */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #333;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    padding: 0 16px;
    position: relative;
}

.nav-logo img {
    height: 48px;
    flex-shrink: 0;
}

/* Desktop Navigation Links */
#nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

#nav-links a {
    color: #A8A8A8;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

#nav-links a:hover {
    color: #FF0033;
}

/* CTA Button in Navigation */
.nav-cta {
    background: linear-gradient(135deg, #FF0033, #E30613) !important;
    color: #fff !important;
    padding: 8px 24px !important;
    border-radius: 50px !important;
    font-weight: bold !important;
    font-size: 14px !important;
}

/* ========================================== */
/* HAMBURGER MENU BUTTON ANIMATED             */
/* ========================================== */
#menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1100;
}

#menu-btn span {
    width: 28px;
    height: 2px;
    background-color: #FF0033;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    border-radius: 2px;
}

/* Animación del botón cuando está activo (se convierte en X) */
#menu-btn.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
#menu-btn.is-active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}
#menu-btn.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ========================================== */
/* MOBILE MENU STYLES (Slide-in Overlay)      */
/* ========================================== */
#mobile-menu {
    display: flex !important;
    position: fixed;
    /* Cambiamos para que inicie arriba y fuera de la pantalla */
    top: -100vh; 
    left: 0;
    width: 100%; 
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: top 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    z-index: 900; /* Asegúrate que sea menor que el nav (1000) */
    border-bottom: 2px solid #FF0033; /* Línea roja abajo */
}

/* Clase para abrir el menú (Cae desde arriba) */
#mobile-menu.is-open {
    top: 0; 
}

/* Enlaces del Menú Móvil */
#mobile-menu a {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem; /* Más grandes para llenar la pantalla */
    font-weight: 900;
    margin: 1.5rem 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
    text-align: center;
}

#mobile-menu a:hover {
    color: #FF0033;
}

#mobile-menu .nav-cta {
    background: linear-gradient(135deg, #FF0033, #E30613);
    margin-top: 30px;
    border-radius: 50px;
    padding: 16px 32px;
    text-align: center;
    font-size: 1.2rem;
}

/* ========================================== */
/* HERO SECTION STYLES                        */
/* Full screen landing section               */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: 
        linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.7) 50%, rgba(255, 0, 51, 0.15) 100%),
        url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(10, 10, 10, 0.5), #0A0A0A);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 20px;
    max-width: 800px;
}

.hero-logo {
    width: 320px;
    margin: 0 auto 32px;
    animation: logo-pulse 2s ease-in-out infinite;
}

.hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.hero-content h1 span:first-child {
    color: #FFFFFF;
}

.hero-highlight {
    color: #FF0033;
    text-shadow: 0 0 10px rgba(255, 0, 51, 0.7), 0 0 20px rgba(255, 0, 51, 0.5);
}

.hero-tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #666666 0%, #A8A8A8 50%, #666666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 32px;
}

.hero-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.hero-rating span:not(:last-child) {
    color: #FFD700;
    font-size: 20px;
}

.hero-rating span:last-child {
    color: #A8A8A8;
    font-weight: 600;
}

.hero-cta {
    display: inline-block;
    background: linear-gradient(135deg, #FF0033, #E30613);
    padding: 16px 40px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(255, 0, 51, 0.5), 0 0 40px rgba(255, 0, 51, 0.3);
    transition: all 0.3s ease;
}

.hero-cta:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(255, 0, 51, 0.6);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.hero-scroll svg {
    width: 32px;
    height: 32px;
    fill: #FF0033;
}

/* ========================================== */
/* CLASSES SECTION STYLES                     */
/* Grid of class cards                        */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 40px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 16px;
}

.section-title span {
    color: #FF0033;
}

.section-divider {
    width: 96px;
    height: 4px;
    background: #FF0033;
    margin: 0 auto 24px;
}

.section-subtitle {
    color: #A8A8A8;
    text-align: center;
    font-size: 18px;
    margin-bottom: 48px;
}

/* Section Pattern Background */
.section-pattern {
    padding: 80px 0;
    background-image: 
        linear-gradient(45deg, rgba(255, 0, 51, 0.03) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255, 0, 51, 0.03) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255, 0, 51, 0.03) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255, 0, 51, 0.03) 75%);
    background-size: 20px 20px;
}

/* Classes Grid */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.class-card {
    background: #0A0A0A;
    border: 1px solid #666666;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.class-card:hover {
    transform: translateY(-8px);
    border-color: #FF0033;
    box-shadow: 0 10px 40px rgba(255, 0, 51, 0.3);
}

.class-image {
    height: 192px;
    overflow: hidden;
    position: relative;
}

.class-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.class-card:hover .class-image img {
    opacity: 1;
}

.class-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0A0A0A, transparent);
}

.class-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: white;
    padding: 24px;
    margin: 0;
}

/* ========================================== */
/* INFO SECTION STYLES                        */
/* Location, phone, map                      */
.info-section {
    padding: 80px 0;
    background: #0A0A0A;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.info-card {
    background: #0A0A0A;
    border: 1px solid #666666;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 0 20px rgba(255, 0, 51, 0.2);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 0, 51, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #FF0033;
    stroke-width: 2;
}

.info-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: white;
    margin-bottom: 8px;
}

.info-item p {
    color: #A8A8A8;
    line-height: 1.6;
}

.map-container {
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid #666666;
    /* Resplandor rojo sutil */
    box-shadow: 0 0 20px rgba(255, 0, 51, 0.2);
}

.map-container iframe {
    display: block;
    /* Filtro para modo oscuro: Invierte colores y ajusta tonos */
    filter: invert(90%) hue-rotate(180deg) brightness(95%) contrast(90%) grayscale(100%);
    /* Suaviza la transición si decides quitar el filtro después */
    transition: filter 0.3s ease;
}

/* ========================================== */
/* BENEFITS SECTION STYLES                    */
/* Why choose us cards                        */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.benefit-card {
    background: #0A0A0A;
    border: 1px solid #666666;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-8px);
    border-color: #FF0033;
    box-shadow: 0 10px 40px rgba(255, 0, 51, 0.3);
}

.benefit-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 0, 51, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.benefit-icon svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: #FF0033;
    stroke-width: 2;
}

.benefit-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: white;
    margin-bottom: 16px;
}

.benefit-card p {
    color: #A8A8A8;
    line-height: 1.6;
}

/* ========================================== */
/* CONTACT FORM STYLES                        */
.contact-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #0A0A0A, rgba(255, 0, 51, 0.1));
}

.contact-form {
    background: #0A0A0A;
    border: 2px solid #FF0033;
    border-radius: 16px;
    padding: 32px;
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    color: white;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 16px;
    background: #0A0A0A;
    border: 1px solid #666666;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: #A8A8A8;
}

.form-group input:focus {
    outline: none;
    border-color: #FF0033;
    box-shadow: 0 0 10px rgba(255, 0, 51, 0.3);
}

.form-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #FF0033, #E30613);
    border: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    box-shadow: 0 0 30px rgba(255, 0, 51, 0.6);
}

.form-note {
    text-align: center;
    color: #A8A8A8;
    font-size: 14px;
    margin-top: 16px;
}


/* Estilos para mensajes de error en el formulario */
.error-msg {
    color: #FF0033;
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
    display: block;
    min-height: 15px; /* Evita que el formulario "salte" al mostrar el error */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.error-msg.show {
    opacity: 1;
}

.form-group input.input-error {
    border-color: #FF0033;
    background: rgba(255, 0, 51, 0.05);
}


/* ========================================== */
/* CTA BANNER STYLES                          */
.cta-banner {
    padding: 64px 0;
    background: #FF0033;
    text-align: center;
}

.cta-banner h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: white;
    margin-bottom: 24px;
}

.cta-banner a {
    display: inline-block;
    background: white;
    color: #FF0033;
    padding: 16px 40px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-banner a:hover {
    background: #0A0A0A;
    color: white;
}

/* ========================================== */
/* FOOTER STYLES                              */
.footer-section {
    padding: 48px 0;
    background: #0A0A0A;
    border-top: 1px solid #333;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: left;
}

.footer-brand img {
    height: 64px;
    margin-bottom: 24px;
}

.footer-brand p {
    color: #A8A8A8;
    line-height: 1.6;
}

.footer-contact h4,
.footer-social h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: white;
    margin-bottom: 16px;
}

.footer-contact p {
    color: #A8A8A8;
    margin-bottom: 8px;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 0, 51, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF0033;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #FF0033;
    color: white;
}

.social-links svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-copyright {
    border-top: 1px solid #333;
    margin-top: 48px;
    padding-top: 32px;
    text-align: center;
}

.footer-copyright p {
    color: #A8A8A8;
    font-size: 14px;
    /* transición para que el cambio de color sea fluido */
    transition: color 0.3s ease;
    /* el cursor cambie a "manita" */
    cursor: pointer; 
}

/* Efecto al pasar el cursor (Hover) */
.footer-copyright p:hover {
    color: #FF0033 !important; 
}

/* Efecto al dar clic (Active) */
.footer-copyright p:active {
    color: #FFD700 !important; 
    transition: color 0.05s; 
}

/* ========================================== */
/* ANIMATIONS                                 */
@keyframes logo-pulse {
    0%, 100% { 
        filter: drop-shadow(0 0 10px rgba(255, 0, 51, 0.4)); 
    }
    50% { 
        filter: drop-shadow(0 0 25px rgba(255, 0, 51, 0.8)); 
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { 
        transform: translateX(-50%) translateY(0); 
    }
    40% { 
        transform: translateX(-50%) translateY(-10px); 
    }
    60% { 
        transform: translateX(-50%) translateY(-5px); 
    }
}

/* ========================================== */
/* RESPONSIVE STYLES                          */
@media (max-width: 750px) {
    /* Hide desktop menu on mobile */
    #nav-links {
        display: none !important;
    }
    
    /* Show hamburger button on mobile */
    #menu-btn {
        display: flex !important;
    }
    
    /* Adjust hero section */
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-tagline {
        font-size: 18px;
    }
    
    .hero-logo {
        width: 240px;
    }
    
    /* Adjust info grid to single column */
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    /* Adjust footer to single column */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand img {
        display: block;
        margin: 0 auto 24px;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (min-width: 751px) {
    /* Hide mobile menu on desktop */
    #nav-links {
        display: flex !important;
    }
    
    /* Hide hamburger on desktop */
    #menu-btn {
        display: none !important;
    }
    
    /* Ensure mobile menu is hidden on desktop */
    #mobile-menu {
        display: none !important;
    }
}

/* ========================================== */
/* SCROLLBAR STYLES                          */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0A0A0A;
}

::-webkit-scrollbar-thumb {
    background: #FF0033;
    border-radius: 4px;
}