/* ======================================================
   PAGES.CSS — HOMEGYM ARACENA (FINAL DEFINITIVO)
   Index · HomeGym · Experiencia · App · Contacto
====================================================== */

/* ===============================
   FIX GLOBAL
================================ */
html, body{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}

/* ===============================
   VARIABLES
================================ */
:root{
  --header-h:72px;
  --orange:#ff8a00;
  --bg-dark:#000;
  --bg-card:#0c0c0c;
  --text-muted:rgba(255,255,255,.7);
  --border-soft:rgba(255,138,0,.25);
  --shadow:0 10px 30px rgba(0,0,0,.6);
}

/* ======================================================
   HERO INDEX
====================================================== */
.hero{
  position: relative;
  min-height: 100vh;
  padding-top: 120px;
  overflow: hidden;
}

.hero-bg{
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,138,0,.18), transparent 55%),
    linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,.9)),
    url("../img/inicio/inicio-homegym.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index:0;
}


.hero-overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.4);
  z-index:1;
}

.hero-inner{
  position: relative;
  z-index:2;
}

.hero-title{
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.15;
}

.hero-subtitle{
  max-width: 520px;
  opacity:.9;
}

/* ======================================================
   FEATURES
====================================================== */
.features{
  padding: 80px 0;
}

.features-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
  gap:24px;
}

.feature-card{
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,138,0,.15);
  border-radius:16px;
  padding:24px;
  text-align:center;
}

/* ======================================================
   PLANES
====================================================== */
.planes{
  padding:100px 0;
}

.planes-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap:28px;
}

.plan-card{
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,138,0,.2);
  border-radius:18px;
  padding:28px;
}

.plan-featured{
  border:2px solid rgba(255,138,0,.8);
  box-shadow:0 0 40px rgba(255,138,0,.35);
}

.plan-badge{
  display:inline-block;
  background:#ff8a00;
  color:#000;
  padding:6px 14px;
  border-radius:999px;
  font-weight:600;
  margin-bottom:12px;
}

/* ======================================================
   MOBILE FIX
====================================================== */
@media (max-width: 768px){

  .hero{
    padding-top: 100px;
    min-height: 100svh;
  }

  .hero-title{
    font-size: 2.1rem;
  }

  .hero-cta{
    flex-direction: column;
    gap:12px;
  }

  .hero-kpis{
    flex-direction: column;
    gap:10px;
  }

  .features{
    padding:60px 0;
  }

  .planes{
    padding:70px 0;
  }

}

/* ======================================================
   TESTIMONIOS
====================================================== */
.testimonios{
  padding:90px 0;
  background:linear-gradient(180deg,#050505,#0b0b0b);
}

.testimonios-grid{
  margin-top:48px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:28px;
}

.testimonio{
  background:var(--bg-card);
  border:1px solid var(--border-soft);
  border-radius:22px;
  padding:30px 26px;
  box-shadow:var(--shadow);
  font-size:14px;
}

.testimonio p{
  font-style:italic;
  margin-bottom:12px;
}

.testimonio strong{
  color:var(--orange);
  font-size:14px;
}

.testimonio span{
  display:block;
  font-size:12px;
  color:var(--text-muted);
}

/* ======================================================
   APP PREVIEW
====================================================== */
.app-preview{
  padding:100px 0;
  background:#000;
}

.app-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:50px;
  align-items:center;
}

.app-text h2{
  font-size:30px;
  margin-bottom:10px;
}

.app-text p{
  max-width:55ch;
  color:var(--text-muted);
}

.app-text ul{
  margin-top:18px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.app-text li{
  font-size:14px;
}

.app-note{
  display:inline-block;
  margin-top:18px;
  font-size:12px;
  color:var(--orange);
  font-weight:700;
}

.app-mockup{
  background:linear-gradient(180deg,#0c0c0c,#000);
  border:1px solid var(--border-soft);
  border-radius:30px;
  min-height:420px;
  box-shadow:var(--shadow);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--text-muted);
}

/* ======================================================
   SEO COPY
====================================================== */
.seo-copy{
  padding:80px 0;
  background:#050505;
  border-top:1px solid rgba(255,255,255,.05);
}

.seo-copy span{
  color:var(--orange);
}

/* ======================================================
   RESPONSIVE
====================================================== */
@media(max-width:1000px){
  .hero-inner,
  .app-grid{
    grid-template-columns:1fr;
  }

  .features-grid,
  .testimonios-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:900px){
  .planes-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:520px){
  .hero-title{
    font-size:32px;
  }

  .features-grid,
  .testimonios-grid{
    grid-template-columns:1fr;
  }
}

/* ===============================
   GALERÍA HOMEGYM
================================ */

.gallery-homegym{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-homegym img{
  width: 100%;
  height: 320px;              /* ALTURA UNIFICADA */
  object-fit: cover;          /* RECORTE PRO */
  object-position: center;    /* CENTRO */
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
  transition: transform .4s ease, box-shadow .4s ease;
}

/* Hover elegante */
.gallery-homegym img:hover{
  transform: scale(1.03);
  box-shadow: 0 30px 70px rgba(0,0,0,.6);
}

/* Responsive */
@media (max-width: 900px){
  .gallery-homegym{
    grid-template-columns: 1fr;
  }

  .gallery-homegym img{
    height: 240px;
  }
}

/* ===============================
   LINK NEÓN WHATSAPP
================================ */
.neon-link{
  display:inline-block;
  margin-top:12px;
  font-weight:600;
  font-size:0.95rem;
  color:#ff8a00;
  text-decoration:none;
  position:relative;
  transition: all .25s ease;
  text-shadow:
    0 0 6px rgba(255,138,0,.6),
    0 0 14px rgba(255,138,0,.35);
}

/* Subrayado animado */
.neon-link::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-4px;
  width:0%;
  height:2px;
  background:#ff8a00;
  box-shadow:
    0 0 8px rgba(255,138,0,.8);
  transition: width .3s ease;
}

.neon-link:hover{
  color:#ffb347;
  text-shadow:
    0 0 10px rgba(255,180,70,.9),
    0 0 24px rgba(255,138,0,.7);
}

.neon-link:hover::after{
  width:100%;
}

/* HERO CONTACTO */
.hero-contacto{
  background:
    linear-gradient(90deg, rgba(0,0,0,.85), rgba(0,0,0,.4)),
    url("../img/contacto/gym-contacto-header.webp") center/cover no-repeat;
}

/* BOTÓN WHATSAPP NEON */
.btn-wa-neon{
  background:#00ff7f;
  color:#000;
  font-weight:700;
  box-shadow:0 0 18px rgba(0,255,127,.7);
}
.btn-wa-neon:hover{
  transform:translateY(-2px);
  box-shadow:0 0 30px rgba(0,255,127,1);
}

/* MAPA */
.map-box{
  margin-top:24px;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
}
.map-box iframe{
  width:100%;
  height:360px;
  border:0;
}

/* HERO EXPERIENCIA */
.hero-experiencia{
  background:
    linear-gradient(90deg, rgba(0,0,0,.85), rgba(0,0,0,.45)),
    url("../img/evaluaciones/gym-experiencia-header.webp") center/cover no-repeat;
}

/* ======================================================
   HERO HOMEGYM
====================================================== */
.hero-bg-homegym{
  background:
    linear-gradient(
      to right,
      rgba(0,0,0,.85) 0%,
      rgba(0,0,0,.55) 45%,
      rgba(0,0,0,.15) 100%
    ),
    url("../img/homegym/hero-homegym.webp") center / cover no-repeat;
}

/* ======================================================
   QUIÉN ES HOMEGYM — AJUSTES FINOS
====================================================== */
.section-subtitle{
  max-width: 720px;
  line-height: 1.65;
  opacity: .95;
}

/* ======================================================
   GALERÍA HOMEGYM
====================================================== */
.gallery-homegym img{
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  transition: transform .4s ease, box-shadow .4s ease;
}

.gallery-homegym img:hover{
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 30px 80px rgba(0,0,0,.65);
}

/* ======================================================
   HERO APP
====================================================== */
.hero-bg-app{
  background:
    linear-gradient(
      to right,
      rgba(0,0,0,.88) 0%,
      rgba(0,0,0,.55) 45%,
      rgba(0,0,0,.15) 100%
    ),
    url("../img/app/app-header.webp") center / cover no-repeat;
}

/* ======================================================
   ACCESO DIRECTO APP (BAJO HEADER)
====================================================== */
.app-quick-access{
  position: sticky;
  top: 76px;
  z-index: 900;
  background: linear-gradient(90deg, #ff8a00, #ffb347);
  text-align: center;
}

.app-quick-access a{
  display: block;
  padding: 14px 16px;
  font-weight: 800;
  letter-spacing: .4px;
  color: #000;
  text-decoration: none;
  transition: filter .25s ease, transform .25s ease;
}

.app-quick-access a:hover{
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* ======================================================
   HERO INDEX – AJUSTES FINALES + ANIMACIONES
====================================================== */

/* Contenedor del texto */
.hero-copy{
  max-width:680px;
  opacity:0;
  transform:translateY(24px);
  animation:heroFadeUp .9s ease-out forwards;
  animation-delay:.15s;
}

@keyframes heroFadeUp{
  to{
    opacity:1;
    transform:translateY(0);
  }
}

/* Kicker */
.hero-kicker{
  font-size:12px;
  letter-spacing:.18em;
  color:rgba(255,255,255,.65);
  margin-bottom:14px;
}

/* Título */
.hero-title{
  font-size:clamp(2.2rem,4vw,3.2rem);
  line-height:1.1;
  margin-bottom:18px;
}

/* Neon naranja */
.hero-title .neon{
  color:#ff8a00;
  text-shadow:
    0 0 10px rgba(255,138,0,.8),
    0 0 25px rgba(255,138,0,.6);
}

/* Subtítulo */
.hero-subtitle{
  margin-top:26px;
  font-size:1.05rem;
  color:rgba(255,255,255,.85);
  max-width:520px;
}

/* CTA */
.hero-cta{
  display:flex;
  gap:18px;
  margin-top:30px;
  flex-wrap:wrap;
}

/* Botón principal */
.btn-primary{
  background:linear-gradient(135deg,#ff8a00,#ffb347);
  color:#000;
  box-shadow:
    0 0 20px rgba(255,138,0,.6),
    inset 0 0 10px rgba(255,255,255,.25);
  animation:ctaPulse 2.6s infinite;
  transition:.3s ease;
}

@keyframes ctaPulse{
  0%{
    box-shadow:
      0 0 18px rgba(255,138,0,.6),
      inset 0 0 10px rgba(255,255,255,.25);
  }
  50%{
    box-shadow:
      0 0 32px rgba(255,138,0,.9),
      inset 0 0 14px rgba(255,255,255,.35);
  }
  100%{
    box-shadow:
      0 0 18px rgba(255,138,0,.6),
      inset 0 0 10px rgba(255,255,255,.25);
  }
}

.btn-primary:hover{
  animation-play-state:paused;
  transform:translateY(-2px) scale(1.04);
}

/* Botón ghost */
.btn-ghost{
  border:1px solid rgba(255,255,255,.25);
  color:#fff;
  box-shadow:0 0 16px rgba(255,255,255,.25);
  transition:.3s ease;
}

.btn-ghost:hover{
  transform:translateY(-2px) scale(1.04);
}

/* KPIs */
.hero-kpis{
  display:flex;
  gap:26px;
  margin-top:34px;
  flex-wrap:wrap;
}

.hero-kpis .kpi{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  color:#fff;
  text-shadow:
    0 0 6px rgba(255,255,255,.8),
    0 0 14px rgba(255,255,255,.6);
  transition:transform .3s ease, text-shadow .3s ease;
}

.hero-kpis .kpi:hover{
  transform:translateY(-4px) scale(1.04);
  text-shadow:
    0 0 10px rgba(255,255,255,1),
    0 0 24px rgba(255,255,255,.9);
}

.hero-kpis strong{
  font-size:18px;
  font-weight:700;
}

/* Responsive hero */
@media (max-width:768px){
  .hero-subtitle{font-size:1rem;}
  .hero-kpis{gap:16px;}
}

/* ======================================================
   FEATURES (DIFERENCIADORES)
====================================================== */

.features{
  padding:80px 0;
}

.features-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:24px;
}

.feature-card{
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  padding:28px 22px;
  text-align:center;
  transition:.35s ease;
}

.feature-card span{
  font-size:28px;
  display:block;
  margin-bottom:12px;
  filter:drop-shadow(0 0 10px rgba(255,255,255,.6));
}

.feature-card h3{
  margin-bottom:8px;
}

.feature-card p{
  color:rgba(255,255,255,.75);
  font-size:14px;
}

.feature-card:hover{
  transform:translateY(-6px);
  box-shadow:0 0 24px rgba(255,138,0,.25);
}

/* ======================================================
   PLANES
====================================================== */

.planes{
  padding:90px 0;
}

.section-title{
  text-align:center;
  margin-bottom:10px;
}

.section-title span{
  color:#ff8a00;
  text-shadow:0 0 14px rgba(255,138,0,.6);
}

.section-subtitle{
  text-align:center;
  color:rgba(255,255,255,.7);
  margin-bottom:50px;
}

.planes-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:28px;
}

.plan-card{
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.08);
  border-radius:20px;
  padding:30px 26px;
  transition:.35s ease;
}

.plan-card h3{
  margin-bottom:16px;
}

.plan-card ul{
  list-style:none;
  padding:0;
  margin-bottom:24px;
}

.plan-card ul li{
  margin-bottom:8px;
  color:rgba(255,255,255,.85);
}

.plan-card:hover{
  transform:translateY(-6px);
  box-shadow:0 0 28px rgba(255,138,0,.25);
}

.plan-featured{
  border-color:#ff8a00;
  box-shadow:0 0 32px rgba(255,138,0,.35);
}

.plan-badge{
  display:inline-block;
  background:#ff8a00;
  color:#000;
  padding:6px 14px;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
  margin-bottom:14px;
}

/* ======================================================
   WHATSAPP FLOTANTE
====================================================== */

.whatsapp-float{
  position:fixed;
  bottom:22px;
  right:22px;
  width:56px;
  height:56px;
  border-radius:50%;
  background:#25D366;
  color:#000;
  font-size:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:
    0 0 18px rgba(37,211,102,.7),
    0 0 30px rgba(37,211,102,.5);
  z-index:999;
  text-decoration:none;
  transition:.3s ease;
}

.whatsapp-float:hover{
  transform:scale(1.12);
}
