/* ===========================================================
   PILAXIS · Studio Pilates Reformer
   Paleta tomada del logo: azul marino, azul, verde, crema.
   =========================================================== */

:root {
  --navy:        #1d4d7c;
  --navy-deep:   #143a5e;
  --blue:        #3a8dc4;
  --green:       #4f9560;
  --green-deep:  #3e7a4e;
  --cream:       #f5f1e7;
  --cream-2:     #efe8d8;
  --cream-3:     #e7ddc8;
  --ink:         #2c3744;
  --muted:       #6f7a82;
  --white:       #ffffff;
  --grad: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
  --shadow-soft: 0 18px 50px rgba(20, 58, 94, 0.12);
  --shadow-card: 0 12px 34px rgba(20, 58, 94, 0.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Cinzel', serif; font-weight: 600; line-height: 1.15; }

.serif { font-family: 'Cormorant Garamond', serif; }

img { display: block; max-width: 100%; }

a { text-decoration: none; color: inherit; }

.container { width: min(1180px, 92%); margin-inline: auto; }

.eyebrow {
  font-family: 'Jost', sans-serif;
  text-transform: uppercase;
  letter-spacing: .42em;
  font-size: .72rem;
  font-weight: 500;
  color: var(--green-deep);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.8rem;
  border-radius: 999px;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  letter-spacing: .04em;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn svg { width: 20px; height: 20px; }

.btn-wa {
  background: linear-gradient(135deg, #34c065, #1faa55);
  color: #fff;
  box-shadow: 0 10px 26px rgba(37, 170, 85, 0.35);
}
.btn-wa:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(37, 170, 85, 0.45); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.7);
}
.btn-outline:hover { background: rgba(255,255,255,.14); transform: translateY(-3px); }

.btn-solid {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-card);
}
.btn-solid:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; width: min(1180px, 92%); }
.nav.scrolled { background: rgba(245,241,231,.92); backdrop-filter: blur(12px); box-shadow: 0 4px 20px rgba(20,58,94,.08); padding: .55rem 0; }

.nav-brand { display: flex; align-items: center; gap: .7rem; color: #fff; transition: color .35s ease; }
.nav.scrolled .nav-brand { color: var(--navy); }
.nav-brand .mark {
  font-family: 'Cinzel', serif; font-size: 1.35rem; letter-spacing: .18em; font-weight: 600;
}
.nav-links { display: flex; gap: 2.1rem; align-items: center; }
.nav-links a {
  font-size: .82rem; text-transform: uppercase; letter-spacing: .15em; color: rgba(255,255,255,.9);
  transition: color .25s ease; position: relative; font-weight: 400;
}
.nav.scrolled .nav-links a { color: var(--ink); }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 1.5px; width: 0;
  background: var(--green); transition: width .3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-links .btn { padding: .6rem 1.2rem; font-size: .8rem; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: #fff; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,58,94,.58) 0%, rgba(20,58,94,.34) 35%, rgba(62,122,78,.58) 100%),
    url('assets/portada.jpeg') center/cover no-repeat;
  transform: scale(1.05);
  animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom { to { transform: scale(1.14); } }

.hero-content { position: relative; z-index: 2; padding: 6rem 1rem; max-width: 820px; }
.hero .symbol { width: 64px; margin: 0 auto 1.4rem; opacity: .95;
  animation: floaty 5s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-10px); } }

.hero h1 {
  font-size: clamp(3.4rem, 11vw, 7rem);
  letter-spacing: .14em;
  text-shadow: 0 4px 30px rgba(0,0,0,.35);
  margin-left: .14em;
}
.hero .sub {
  text-transform: uppercase; letter-spacing: .55em; font-size: clamp(.7rem,2.4vw,1rem);
  margin: .8rem 0 1.8rem; font-weight: 400; color: rgba(255,255,255,.92);
  padding-left: .55em;
}
.hero .lead {
  font-family: 'Cormorant Garamond', serif; font-size: clamp(1.3rem, 3.5vw, 1.9rem);
  font-weight: 400; font-style: italic; max-width: 620px; margin: 0 auto 2.4rem;
  color: rgba(255,255,255,.95);
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 20px;
}
.scroll-cue::after {
  content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; background: #fff; border-radius: 4px;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot { 0%{opacity:0;top:8px} 40%{opacity:1} 80%{opacity:0;top:22px} 100%{opacity:0} }

/* ---------- Secciones genéricas ---------- */
section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.section-head h2 {
  font-size: clamp(2rem, 5vw, 3.1rem); color: var(--navy); letter-spacing: .06em; margin: .8rem 0;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }
.divider { width: 60px; height: 2px; background: var(--grad); margin: 1.1rem auto 0; border-radius: 2px; }

/* ---------- Bienvenida (split) ---------- */
.welcome { background: var(--cream); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split .copy .eyebrow { margin-bottom: .8rem; display: block; }
.split .copy h2 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); color: var(--navy); margin-bottom: 1.3rem; letter-spacing: .04em; }
.split .copy p { color: var(--muted); margin-bottom: 1.1rem; }
.split .copy p strong { color: var(--ink); font-weight: 500; }
.frame {
  position: relative; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-soft);
}
.frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; transition: transform .8s ease; }
.frame:hover img { transform: scale(1.05); }
.frame::after {
  content: ''; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.4);
  border-radius: 14px; pointer-events: none;
}
.frame.outlined { box-shadow: none; }
.frame.outlined::before {
  content: ''; position: absolute; inset: 16px; border: 1.5px solid rgba(255,255,255,.55); border-radius: 8px; z-index: 2; pointer-events: none;
}

/* ---------- Beneficios ---------- */
.benefits { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.bcard {
  background: var(--white); border-radius: 16px; padding: 2.4rem 1.8rem; text-align: center;
  box-shadow: var(--shadow-card); transition: transform .35s ease, box-shadow .35s ease;
  border: 1px solid rgba(20,58,94,.05);
}
.bcard:hover { transform: translateY(-8px); box-shadow: var(--shadow-soft); }
.bcard .ic {
  width: 64px; height: 64px; margin: 0 auto 1.3rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--cream-2); color: var(--green-deep);
}
.bcard .ic svg { width: 30px; height: 30px; }
.bcard h3 { font-size: 1.15rem; color: var(--navy); letter-spacing: .04em; margin-bottom: .6rem; }
.bcard p { color: var(--muted); font-size: .96rem; }

/* ---------- Clases ---------- */
.classes { background: var(--navy-deep); color: #fff; }
.classes .section-head h2 { color: #fff; }
.classes .section-head p { color: rgba(255,255,255,.7); }
.grid-3.classes-grid { gap: 1.5rem; }
.ccard {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; padding: 2.2rem 1.9rem; transition: background .35s ease, transform .35s ease;
}
.ccard:hover { background: rgba(255,255,255,.10); transform: translateY(-6px); }
.ccard .num { font-family: 'Cormorant Garamond', serif; font-size: 2.4rem; color: var(--blue); font-style: italic; }
.ccard h3 { font-size: 1.2rem; margin: .4rem 0 .7rem; letter-spacing: .05em; }
.ccard p { color: rgba(255,255,255,.72); font-size: .96rem; }

/* ---------- Galería ---------- */
.gallery { background: var(--cream); }
.masonry { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.masonry a { position: relative; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-card); display: block; }
.masonry img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.masonry a:hover img { transform: scale(1.08); }
.masonry .tall { grid-row: span 2; }
.masonry img { aspect-ratio: 1/1; }
.masonry .tall img { aspect-ratio: 1/2.06; }

/* ---------- CTA banda ---------- */
.cta-band {
  background: var(--grad); color: #fff; text-align: center;
}
.cta-band h2 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: .05em; margin-bottom: 1rem; }
.cta-band p { font-size: 1.1rem; color: rgba(255,255,255,.92); max-width: 560px; margin: 0 auto 2rem; }
.cta-band .btn-wa { background: #fff; color: var(--green-deep); box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.cta-band .btn-wa svg { fill: #25a955; }

/* ---------- Ubicación ---------- */
.location { background: var(--cream-2); }
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,4vw,3.5rem); align-items: stretch; }
.loc-info .eyebrow { display: block; margin-bottom: .7rem; }
.loc-info h2 { color: var(--navy); font-size: clamp(1.9rem,4.5vw,2.8rem); margin-bottom: 1.4rem; letter-spacing: .04em; }
.loc-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.loc-item .ic { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--green-deep); box-shadow: var(--shadow-card); }
.loc-item .ic svg { width: 22px; height: 22px; }
.loc-item h4 { font-family: 'Jost', sans-serif; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--navy); margin-bottom: .25rem; font-weight: 600; }
.loc-item p { color: var(--muted); margin: 0; }
.loc-item a:hover { color: var(--green-deep); }
.map-wrap { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-soft); min-height: 360px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 360px; border: 0; filter: grayscale(.15); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.75); padding: 3.5rem 0 2rem; text-align: center; }
.footer .mark { font-family: 'Cinzel', serif; font-size: 1.6rem; letter-spacing: .22em; color: #fff; }
.footer .tag { text-transform: uppercase; letter-spacing: .35em; font-size: .68rem; color: var(--blue); margin-top: .4rem; }
.footer .fsocial { display: flex; gap: 1.2rem; justify-content: center; margin: 1.6rem 0; }
.footer .fsocial a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: grid; place-items: center; transition: background .25s ease, transform .25s ease; }
.footer .fsocial a:hover { background: rgba(255,255,255,.12); transform: translateY(-3px); }
.footer .fsocial svg { width: 18px; height: 18px; fill: #fff; }
.footer .copy { font-size: .8rem; color: rgba(255,255,255,.45); margin-top: 1.5rem; }

/* ---------- Botón flotante WhatsApp ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, #34c065, #1faa55);
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(37,170,85,.5);
  animation: waPulse 2.4s ease-in-out infinite;
}
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
.wa-float:hover { transform: scale(1.08); }
@keyframes waPulse {
  0% { box-shadow: 0 10px 30px rgba(37,170,85,.5), 0 0 0 0 rgba(37,170,85,.45); }
  70% { box-shadow: 0 10px 30px rgba(37,170,85,.5), 0 0 0 18px rgba(37,170,85,0); }
  100% { box-shadow: 0 10px 30px rgba(37,170,85,.5), 0 0 0 0 rgba(37,170,85,0); }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .split { grid-template-columns: 1fr; }
  .split .frame { order: -1; max-width: 460px; margin-inline: auto; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .loc-grid { grid-template-columns: 1fr; }
  .masonry { grid-template-columns: repeat(2, 1fr); }
  .masonry .tall { grid-row: span 1; }
  .masonry .tall img, .masonry img { aspect-ratio: 1/1; }
}
@media (max-width: 540px) {
  .grid-3 { grid-template-columns: 1fr; }
  .hero .sub { letter-spacing: .35em; }
  .hero-cta { flex-direction: column; align-items: stretch; }
}
