html, body {
  height: 100%;
}

body {
  background-image:
    linear-gradient(
      rgba(0,0,0,0.55),
      rgba(0,0,0,0.75)
    ),
    url("/public/hero/hero-bg.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  color: #fff;
}
/* ======================================
   LAYOUT BASE
====================================== */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Todas las secciones con el mismo aire */
.section {
  padding: 70px 20px;
  text-align: center;
}

/* Títulos h2 unificados (mismo rol, mismo color) */
.section h2 {
  font-size: 2.6rem;
  margin: 0 0 30px 0;
  color: var(--xf-green);
}

/* Texto base */
.section p {
  color: var(--text-light);
}

/* ======================================
   XTREME FITNESS GYM — CLEAN FINAL CSS
   ====================================== */

/* -------- VARIABLES -------- */
:root {
  --xf-green: #a4ff0a;
  --xf-yellow: #ffe600;
  --text-light: #eee;
  --text-dark: #000;
  --transition: 0.25s ease-in-out;
  --max-width: 1280px;
}

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

/* ======================================
   BOTÓN PRO XF
   ====================================== */
.btn-primary {
    padding: 14px 32px;
    font-size: 1.2rem;
    background: rgba(0,0,0,0.4);
    border: 2px solid var(--xf-green);
    border-radius: 8px;
    font-weight: bold;
    color: var(--xf-yellow);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary:hover {
    background: var(--xf-green);
    color: #000;
    border-color: var(--xf-green);
}

/* ======================================
   MENU
   ====================================== */
.nav-under-hero {
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

.nav-under-hero a {
    color: var(--xf-yellow);
    margin: 10px;
    padding: 10px 22px;
    border: 2px solid var(--xf-green);
    border-radius: 6px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-block;
    background: transparent;
    transition: var(--transition);
}

.nav-under-hero a:hover {
    background: var(--xf-green);
    color: #000;
}

.service-box,
.impact-box {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(164,255,10,0.35);
  border-radius: 12px;
  padding: 24px;
}

.service-box h3,
.impact-box h3 {
  color: var(--xf-yellow);
}

.service-box p,
.impact-box p {
  color: #eee;
}
/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 140px;
}

.hero-logo img {
  display: block;
  background: none;
  border: 0;
}
.hero .subtitle-hero {
  font-size: 1.2rem;
  line-height: 1.5;
  margin-top: 6px;
}

/* =========================
   WHAT WE OFFER
========================= */

.what-we-offer {
  padding: 100px 20px 80px;
  text-align: center;
}

.what-we-offer h2 {
  color: var(--xf-green);
  font-size: 2.6rem;
  margin-bottom: 50px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-box {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(164,255,10,0.35);
  border-radius: 12px;
  padding: 24px;
}

.service-box h3 {
  color: var(--xf-yellow);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.service-box p {
  color: #eee;
  font-size: 1rem;
  line-height: 1.5;
}

/* MOBILE */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .what-we-offer {
    padding: 80px 16px;
  }
}

/* MAPA */
.contact-map iframe {
    width: 100%;
    height: 330px;
    border-radius: 5px;
    border: 0;
}

/* TEXTO CENTRAL */
.contact-text h3 {
    color: var(--xf-yellow);
    font-size: 1.4rem;
}
.contact-text p {
    color: #eaeaea ;
    font-size: 1.1rem ;
    margin-bottom: 14px;
}

/* CAJA DE EMAIL */
.contact-email {
    background: rgba(0,0,0,0.6) ;
    border: 3px solid var(--xf-yellow);
    padding: 14px 22px;
    color: #fff ;
    border-radius: 12px ;
    font-size: 18px;
    font-weight: 700;
    display: inline-block;
    margin-top: 10px;
}

/* FORMULARIO – CAJA EXTERIOR */
.contact-form {
    padding: 20px;
    border: 3px solid var(--xf-yellow);
    border-radius: 12px;
    background: rgba(0,0,0,0.45) ;
   }

.contact-form button {
  width: 100%;
  padding: 14px 0;
  background: transparent;
  color: #c6ff00;
  border: 2px solid #c6ff00;
  border-radius: 10px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  background: #c6ff00;
  color: #111;
  box-shadow: 0 0 15px rgba(198, 255, 0, 0.6);
}
/* FORMULARIO INTERNOS */
.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* CAMPOS UNIFICADOS */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--xf-green);
    background: rgba(0,0,0,0.55);
    border-radius: 8px;
    color: var(--xf-yellow);
    font-size: 1rem;
    font-weight: 600;
    outline: none;
    transition: 0.25s ease-in-out;
}

/* ALTURA DEL TEXTAREA */
.contact-form textarea {
    height: 120px;
}

/* PLACEHOLDER XF */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 230, 0, 0.65);
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* HOVER */
.contact-form input:hover,
.contact-form textarea:hover {
    border-color: var(--xf-yellow) !important;
    box-shadow: 0 0 8px var(--xf-green) !important;
}

/* FOCUS */
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--xf-yellow) !important;
    background: rgba(0,0,0,0.75) !important;
    box-shadow: 0 0 8px var(--xf-green) !important;
}

/* ======================================
   XF GALLERY
   ====================================== */
.gallery-section {
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: transparent;
}

/* Título */
.gallery-section h2 {
  font-size: 2.6rem;
  color: var(--xf-green);
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Contenedor de botones */
.xf-btn {
  display: inline-block;
  margin: 10px 14px;
  padding: 14px 30px;
  border-radius: 12px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--xf-yellow);
  border: 2px solid var(--xf-green);
  background: rgba(0,0,0,0.35);
  text-decoration: none;
  transition: 0.3s ease;
}

.xf-btn:hover {
  background: var(--xf-green);
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 0 14px var(--xf-green);
}

.gallery-grid img:hover {
  transform: scale(1.04);
  box-shadow: 0 0 18px rgba(164,255,10,0.6);
}

/* ======================================
   LIGHTBOX – FINAL CLEAN
   ====================================== */

#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
}

/* Flechas */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--xf-green);
  color: #000;
  border: none;
  font-size: 44px;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  z-index: 10000;
}

#prev-btn { left: 3%; }
#next-btn { right: 3%; }

.nav-btn:hover {
  background: var(--xf-yellow);
}



 /* =========================
   LAYOUT & MOBILE FIXES — CLEAN
========================= */


/* CARDS */
.card,
.offer-card {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

/* GALLERY MENU */
.gallery-menu {
  display: flex;
  flex-direction: row;
  gap: 16px;
}

@media (max-width: 768px) {
  .gallery-menu {
    flex-direction: column;
    align-items: center;
  }
}

.gallery-menu a,
.gallery-buttons a {
  width: 100%;
  max-width: 280px;
  text-align: center;
}


.cards-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.card{
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(164,255,10,0.35);
  border-radius: 12px;
  padding: 20px;
  backdrop-filter: blur(2px);
}
@media (max-width: 900px){
  .cards-grid{ grid-template-columns: 1fr; }
}

/* CONTACT */
@media (max-width: 768px) {
  .contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    padding: 0 16px;
    text-align: center;
    gap: 16px;
  }

  .contact-email {
    max-width: 320px;
    margin: 0 auto;
  }
}

/* =========================
   HERO – TEXTO Y BOTÓN
========================= */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 20px;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Título principal */
.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--xf-green);
}

/* Subtexto en UNA sola línea */
.hero .subtitle-hero {
  font-size: 1.15rem;
  color: var(--text-light);
}

/* Botón separado y centrado */
.hero .btn-primary {
  margin-top: 30px;
  align-self: center;
}

.hero .motto {
  margin-left: 6px;
}


.section-title,
.gallery-section h2,
.impact-section h2,
.contact-container h2 {
  font-size: 2.6rem;
  margin: 80px 0 50px;
}

/* GALLERY – recortar aire exagerado */
.gallery-section {
  margin-top: 40px !important;
  margin-bottom: 40px !important;
}
.gallery-buttons {
  margin-bottom: 40px important;
}

.impact-section {
  margin-top: 40px;
}

.impact-section {
  margin-top: 60px;
  margin-bottom: 60px;
}
.contact-container {
  margin-top: 60px;
  margin-bottom: 60px;
}
/* Contact title igual a XF Impact */
.contact-container h2 {
  font-size: 2.6rem;
  color: var(--xf-yellow);
  text-align: center;
  margin: 80px 0 50px;
}
.impact-section h2,
.impact-section p {
  color: var(--xf-yellow);
  text-align: center;
}

.contact-container h2 {
  color: var(--xf-green);
  text-align: center;
  margin: 80px 0 50px;
}

footer,
footer * {
  text-align: center;
  color: var(--xf-yellow);
}


.section-title{
  color: var(--xf-green);
  text-align:center;
}

.card-title{
  color: var(--xf-yellow);
  font-weight:700;
}

.card-text{
  color: var(--text);
}

/* =========================
   HERO — FIX: textos y botón
========================= */

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero .motto,
.hero .subtitle-hero {
  display: block;
  width: 100%;
  text-align: center;
  margin: 6px 0;
}

.hero .motto {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--xf-yellow);
}

.hero .subtitle-hero {
  font-size: 1.05rem;
  color: #ffffff;
  opacity: 0.9;
}

.hero .btn-primary {
  display: inline-block;
  margin-top: 16px;
}

  /* =========================
   GALLERY — aire controlado
========================= */
.gallery-section {
  padding: 50px 20px;
}

.gallery-section h2 {
  margin: 10px 0 22px;
}

.gallery-menu,
.gallery-buttons {
  margin: 10px 0 18px;
}
/* =========================
   HERO — FIX FINAL DEFINITIVO
========================= */

.hero h1 {
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--xf-green);
}

.hero .motto {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--xf-green);
}

.hero .subtitle-hero {
  font-size: 1.15rem;
  color: #ffffff;
  opacity: 0.9;
}

/* =========================
   XF IMPACT — MATCH WHAT WE OFFER
========================= */

.impact-section h2 {
  color: var(--xf-green);
  font-size: 2.6rem;
  text-align: center;
  margin-bottom: 40px;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.impact-box {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(164,255,10,0.35);
  border-radius: 12px;
  padding: 24px;
}

.impact-box h3 {
  color: var(--xf-yellow);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.impact-box p {
  color: #eee;
  font-size: 1rem;
  line-height: 1.5;
}

/* MOBILE */
@media (max-width: 768px) {
  .impact-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================
   CONTACT US — FINAL CLEAN
========================= */

.contact-section {
  padding: 70px 20px;
  text-align: center;
}

.contact-section h2 {
  color: var(--xf-green);
  font-size: 2.6rem;
  margin-bottom: 40px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 30px;
  align-items: start;
}

/* MAPA */
.contact-map iframe {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: 12px;
}

/* INFO */
.contact-info {
  text-align: left;
  color: #eee;
}

.contact-email {
  margin-top: 12px;
}

/* FORM */
.contact-form {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(164,255,10,0.35);
  border-radius: 12px;
  padding: 24px;
}

/* MOBILE */
@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contact-info {
    text-align: center;
  }
}
/* =========================
   XF IMPACT – TEXTO AJUSTE FINO
========================= */

.impact-section h2 {
  margin-bottom: 14px;
}

.impact-section .impact-intro {
  color: #ffffff;
  font-size: 1.05rem;
  max-width: 900px;
  margin: 0 auto 28px;
  opacity: 0.9;
}
.impact-section {
  margin-top: 30px;
}

/* Botones un poco más abajo */
.impact-section .gallery-buttons {
  margin-top: 10px;
  margin-bottom: 40px;
}
/* =========================
   FIXES FINALES – PRIORIDAD ALTA
========================= */

/* HERO – subir subtítulo */
.hero .subtitle-hero {
  margin-top: 4px;
  margin-bottom: 18px;
}

/* ================= XF IMPACT ================= */

.impact-section h2 {
  margin-bottom: 10px;
}

.impact-intro {
  color: #ffffff;
  font-size: 1.05rem;
  max-width: 900px;
  margin: 0 auto 22px;
  opacity: 0.9;
}

/* Separar texto de las cajas */
.impact-grid {
  margin-top: 20px;
}

/* ================= CONTACT TITLE ================= */

.contact-section h2,
.contact-container h2 {
  color: var(--xf-green);
  font-size: 2.6rem;
  text-align: center;
  margin: 40px auto 30px;
  font-weight: 800;
}

/* ===== COMPACTAR FINAL DE XF IMPACT ===== */

#impact {
  padding-bottom: 20px !important;
  margin-bottom: 0 !important;
}

#impact h2 {
  margin-bottom: 30px !important;
}
#contact {
  padding-top: 30px !important;
  margin-top: 0 !important;
}
#contact h2 {
  margin-top: 0 !important;
}

.contact-section {
  margin-top: 0 !important;
}

/* ===== COMPACTAR ESPACIO ENTRE IMPACT Y CONTACT ===== */

/* Impact: quitar aire abajo */
#impact {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Contact: quitar aire arriba */
#contact {
  margin-top: 0 !important;
  padding-top: 30px !important;
}

/* Título Contact Us: NO gigante */
#contact .section-title {
  margin-top: 0 !important;
  margin-bottom: 30px !important;
}
/* ===== AJUSTE FINO TITULO CONTACT ===== */

#contact {
  padding-top: 0 !important;
  margin-top: -40px !important;
}

#contact .section-title {
  margin-top: 0 !important;
  margin-bottom: 50px !important;
}
/* Quitar los puntitos decorativos arriba de Contact */
#contact::before,
#contact::after {
  display: none !important;
}
/* Quitar separadores decorativos tipo ... */
.section::before,
.section::after,
.section-divider,
.section-dots {
  display: none !important;
}

/* =========================
   OVERRIDE FINAL – ESPACIO IMPACT → CONTACT
========================= */

/* Impact: nada de aire abajo */
#impact {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Contact: subir todo el bloque */
#contact {
  margin-top: -60px !important; /* este es el ajuste clave */
  padding-top: 0 !important;
}

/* Título Contact Us bien pegado pero prolijo */
#contact h2 {
  margin-top: 0 !important;
  margin-bottom: 30px !important;
}

/* DEBUG GALLERY – NO BORRAR */
.gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 20px !important;
  opacity: 1 !important;
  visibility: visible !important;
  height: auto !important;
}

.gallery-thumb {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  border: 2px solid red !important;
}

/* XF Impact clickable cards */
.impact-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.impact-link .impact-card {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.impact-link .impact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 15px rgba(180, 255, 0, 0.6);
}
