/* ======================================
   XTREME FITNESS GYM — FINAL CSS
   ====================================== */

/* ---------- VARIABLES ---------- */
:root {
    --xf-yellow: #ffe600;
    --xf-green: #a0ff6a;
    --dark-bg: #0a0a0a;
    --light-bg: #111;
    --text-light: #eee;
    --text-muted: #aaa;
    --transition: .25s ease-in-out;
    --max-width: 1200px;
}

/* ---------- RESET ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: url("../images/dark-texture-bg.jpg") center/cover fixed no-repeat;
    color: var(--text-light);
    line-height: 1.6;
}

/* ======================================
   LOGO PRINCIPAL — PROTAGONISTA
   ====================================== */
.logo-header {
    text-align: center;
    padding: 120px 0 60px; /* Espacio equilibrado arriba y abajo */
}

.logo-header img {
    width: 500px;      /* LOGO GRANDE */
    max-width: 80%;    /* Escala perfecta en mobile */
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ======================================
   HERO SECTION
   ====================================== */
.hero {
    height: auto;
    text-align: center;
    padding: 10px 20px 40px;
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--xf-yellow);
    letter-spacing: 4px;
}

.hero-content p {
    font-size: 1.4rem;
    margin: 15px 0;
}

/* BOTÓN PRINCIPAL */
.btn-primary {
    background: var(--xf-green);
    color: var(--dark-bg);
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary:hover {
    background: var(--xf-yellow);
    color: #000;
    transform: translateY(-3px);
}

/* ======================================
   NAV — CENTRADO DEBAJO DEL HERO
   ====================================== */
.nav-under-hero {
    width: 100%;
    padding: 25px 0;
    text-align: center;
}

.nav-under-hero a {
    color: var(--xf-yellow);
    margin: 0 25px;
    padding: 10px 18px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid var(--xf-green);
    border-radius: 6px;
    background: rgba(0,0,0,0.4);
    transition: .25s ease-in-out;
}

.nav-under-hero a:hover {
    background: var(--xf-green);
    color: #000;
    border-color: var(--xf-yellow);
}

/* ======================================
   SECTIONS — GLOBAL
   ====================================== */
section {
    padding: 20px 20px;
    max-width: var(--max-width);
    margin: auto;
    text-align: center;
}

section h2 {
    text-align: center;
    font-size: 2.4rem;
    color: var(--xf-green);
    margin-bottom: 40px;
}

/* ======================================
   WHAT WE OFFER — SERVICES
   ====================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.service-box {
    background: rgba(20, 20, 20, 0.8);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #222;
    transition: var(--transition);
}

.service-box:hover {
    transform: translateY(-6px);
    border-color: var(--xf-green);
}

/* ======================================
   GALLERY — SOLO UNA (la de abajo)
   ====================================== */
.gallery-menu {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
}

.gallery-btn {
    padding: 14px 28px;
    background: rgba(0,0,0,0.7);
    border: 2px solid var(--xf-green);
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--xf-yellow);
    text-decoration: none;
    transition: .25s ease-in-out;
}

.gallery-btn:hover {
    background: var(--xf-green);
    color: #000;
}

/* ======================================
   CONTACT
   ====================================== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 35px;
    align-items: start;
}

.contact-map iframe {
    width: 100%;
    height: 330px;
    border: 0;
    border-radius: 8px;
}

.contact-text p {
    margin-bottom: 14px;
    color: var(--text-muted);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    outline: none;
    background: #1b1b1b;
    color: var(--text-light);
    font-size: 1rem;
}

.contact-form textarea {
    height: 120px;
    resize: none;
}

/* ======================================
   FOOTER
   ====================================== */
.footer {
    text-align: center;
    padding: 25px 0;
    color: var(--text-muted);
}

/* ======================================
   MOBILE RESPONSIVE
   ====================================== */
@media (max-width: 980px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .gallery-menu {
        flex-direction: column;
    }
    .contact-container {
        grid-template-columns: 1fr;
    }
    .logo-header img {
        width: 340px;
    }
}

@media (max-width: 680px) {
    .logo-header img {
        width: 260px;
    }
}
