/* Casa Pilates Jasna Carrasco — hoja de estilos compartida */
:root {
  --cream: #FFFDFB;
  --dark: #25231F;
  --orange: #EA7C55;
  --orange-dark: #d9673f;
  --peach: #FCEEE8;
  --muted: #5b5750;
  --muted2: #6b6862;
  --nav-link: #4a4842;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  font-family: 'Nunito Sans', sans-serif;
  overflow-x: hidden;
  color: var(--dark);
}
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-dark); }
img { max-width: 100%; }
h1, h2 { margin: 0; font: inherit; color: inherit; }

@keyframes menuFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="hero"], [data-reveal="header"], [data-reveal="blocks"] {
  transform: translateY(22px) scale(.98);
  transition: opacity .8s cubic-bezier(.22,.8,.32,1), transform .8s cubic-bezier(.22,.8,.32,1);
}
[data-reveal="hero"].visible, [data-reveal="header"].visible, [data-reveal="blocks"].visible {
  transform: translateY(0) scale(1);
}
.stagger-1 { transition-delay: .12s; }
.stagger-2 { transition-delay: .24s; }
.stagger-3 { transition-delay: .36s; }

/* ---------- Nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 64px;
  background: var(--cream);
  border-bottom: 1px solid rgba(37,35,31,.06);
  position: relative;
  z-index: 60;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-wordmark {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 19px;
  letter-spacing: .03em;
  line-height: 1.05;
  white-space: nowrap;
}
.nav-wordmark .dark { color: var(--dark); }
.nav-wordmark .orange { color: var(--orange); }
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--nav-link);
  font-weight: 600;
}
.nav-links a { color: var(--nav-link); }
.nav-links a.active { color: var(--orange); }
.nav-desktop-right { display: flex; align-items: center; gap: 24px; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
}
.hamburger span { width: 22px; height: 2px; background: var(--dark); display: block; }

.btn-pill {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  background: var(--peach);
  color: var(--orange);
  border: none;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease;
}
.btn-pill:hover { background: var(--orange); color: #fff; }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 65;
  display: none;
  flex-direction: column;
  padding: 100px 32px 36px;
  animation: menuFadeIn .3s ease;
}
.mobile-menu.open { display: flex; }
.mobile-menu-links { display: flex; flex-direction: column; }
.mobile-menu-links a {
  padding: 16px 0;
  border-bottom: 1px solid rgba(37,35,31,.1);
  font-size: 21px;
  font-weight: 600;
  color: var(--dark);
  font-family: 'Fredoka', sans-serif;
}
.mobile-menu-links a.active { color: var(--orange); }
.mobile-menu-cta {
  margin-top: 28px;
  text-align: center;
  font-size: 15px;
}
.mobile-menu-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 28px;
}
.mobile-menu-bottom a.tel { font-size: 14px; font-weight: 700; color: var(--dark); }
.mobile-menu-socials { display: flex; gap: 16px; }
.mobile-menu-socials a { color: var(--dark); display: flex; }
.mobile-menu-close {
  position: absolute;
  top: 26px;
  right: 28px;
  font-size: 28px;
  color: var(--dark);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(37,35,31,.25);
  z-index: 50;
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Buttons ---------- */
.btn-dark {
  padding: 16px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  background: var(--dark);
  color: #fff;
  display: inline-block;
  transition: background-color .25s ease, color .25s ease;
}
.btn-dark:hover { background: var(--orange); color: #fff; }
.btn-outline {
  padding: 16px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  background: transparent;
  border: 1.5px solid var(--dark);
  color: var(--dark);
  display: inline-block;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn-outline:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-peach {
  padding: 16px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  background: var(--peach);
  color: var(--orange);
  display: inline-block;
  transition: background-color .25s ease, color .25s ease;
}
.btn-peach:hover { background: var(--orange); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 40px 64px 90px;
  gap: 50px;
  max-width: 1360px;
  margin: 0 auto;
}
.hero-text { display: flex; flex-direction: column; gap: 22px; }
.eyebrow { font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); }
.hero-title { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 60px; line-height: 1.08; color: var(--dark); }
.hero-sub { font-weight: 300; font-size: 17px; line-height: 1.7; color: var(--muted); max-width: 420px; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.hero-img { height: 460px; max-width: min(540px,100%); margin: 0 0 0 auto; border-radius: 28px; overflow: hidden; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; }

/* ---------- Generic sections ---------- */
.section { padding: 80px 64px; background: var(--cream); text-align: center; }
.section-peach { background: var(--peach); }
.h2 { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 36px; color: var(--dark); margin-bottom: 16px; }
.lead { font-weight: 300; font-size: 15px; color: var(--muted2); max-width: 480px; margin: 0 auto 50px; }

.services-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: left; }
.service-card {
  display: flex; flex-direction: column; gap: 14px; padding: 26px;
  border-radius: 20px; border: 1.5px solid rgba(37,35,31,.08);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-4px) scale(1.01); border-color: var(--orange); box-shadow: 0 12px 24px rgba(37,35,31,.08); }
.service-card .title { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 18px; color: var(--dark); }
.service-card .desc { font-size: 14px; color: var(--muted2); font-weight: 300; line-height: 1.6; }
.service-card .cta { font-size: 13px; font-weight: 700; color: var(--dark); }

/* ---------- Split (founder teaser) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; background: var(--cream); }
.split-text { padding: 70px 64px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.h3 { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 36px; color: var(--dark); line-height: 1.15; }
.split-body { font-weight: 300; font-size: 15.5px; line-height: 1.8; color: var(--muted); max-width: 420px; }
.split-link { margin-top: 6px; font-weight: 700; font-size: 14px; color: var(--dark); text-decoration: underline; text-underline-offset: 4px; }
.split-img { height: 420px; border-radius: 24px; overflow: hidden; }
.split-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; display: block; }

/* ---------- Planes ---------- */
.planes-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; max-width: 1180px; margin: 0 auto; }
.plan-card {
  background: #fff; border-radius: 20px; padding: 36px 28px; text-align: left;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.plan-card:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 14px 26px rgba(37,35,31,.1); }
.plan-card.dark { background: var(--dark); color: #fff; }
.plan-card.dark:hover { box-shadow: 0 14px 26px rgba(37,35,31,.25); }
.plan-card .title { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 20px; color: var(--dark); }
.plan-card.dark .title { color: #fff; }
.plan-card .freq { font-weight: 700; font-size: 14px; color: var(--orange); }
.plan-card .desc { font-weight: 300; font-size: 14px; color: var(--muted2); line-height: 1.6; }
.plan-card.dark .desc { color: #fff; opacity: .8; }

/* ---------- Ubicación ---------- */
.loc-grid { padding: 80px 64px; background: var(--cream); display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; text-align: left; }
.map-wrap { border-radius: 24px; overflow: hidden; min-height: 360px; }
.map-wrap iframe { border: 0; display: block; min-height: 360px; }
.loc-info { display: flex; flex-direction: column; gap: 16px; }
.loc-body { font-weight: 300; font-size: 15px; line-height: 1.8; color: var(--muted); }
.wa-inline-btn {
  margin-top: 6px; display: inline-flex; align-items: center; gap: 10px; width: fit-content;
  padding: 15px 28px; background: var(--peach); color: var(--orange); font-size: 14px; font-weight: 700; border-radius: 999px;
  transition: background-color .25s ease, color .25s ease;
}
.wa-inline-btn:hover { background: var(--orange); color: #fff; }

/* ---------- CTA oscuro + footer ---------- */
.cta-dark { background: var(--dark); color: #fff; padding: 70px 64px 40px; text-align: left; }
.cta-dark .h2 { color: #fff; max-width: 620px; margin-bottom: 34px; text-align: left; }
.footer-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; font-size: 14.5px;
  padding: 40px 0; border-top: 1px solid rgba(255,255,255,.15); margin-top: 4px;
}
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col .label { font-weight: 700; color: var(--orange); }
.footer-col .value { font-weight: 300; opacity: .85; }
.footer-col .value a { color: inherit; }
.footer-bottom {
  display: flex; flex-direction: row; gap: 12px; justify-content: space-between; align-items: center;
  padding-top: 24px; font-size: 12.5px; opacity: .7;
}
.footer-social { display: flex; gap: 20px; align-items: center; }
.footer-social a { display: flex; align-items: center; gap: 8px; color: inherit; font-size: 14.5px; font-weight: 600; transition: color .2s ease; }
.footer-social a:hover { color: var(--orange); }

/* Standalone footer (Horarios/Contacto — no dark CTA heading above it) */
.footer-standalone { background: var(--dark); color: #fff; padding: 60px 64px 40px; }

/* ---------- Página Clases ---------- */
.classes-header { padding: 70px 64px 20px; text-align: center; }
.classes-header .h1 { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 42px; color: var(--dark); margin-bottom: 16px; }
.classes-header .lead { max-width: 560px; margin: 0 auto; font-size: 15.5px; }

.class-block {
  padding: 30px 64px 70px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center;
  scroll-margin-top: 24px; text-align: left;
}
.class-block.first { padding-top: 70px; }
.class-block.reverse { grid-template-columns: 1.1fr 0.9fr; }
.class-block .block-img { height: 340px; border-radius: 24px; overflow: hidden; }
.class-block .block-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.class-block .block-text { display: flex; flex-direction: column; gap: 14px; }
.class-block .h4 { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 26px; color: var(--dark); }
.class-block .desc { font-weight: 300; font-size: 15px; line-height: 1.8; color: var(--muted); max-width: 460px; }
.badge-pill {
  font-size: 13px; font-weight: 700; color: var(--orange); background: var(--peach);
  display: inline-block; padding: 8px 16px; border-radius: 999px; width: fit-content;
}

/* ---------- Acerca de ---------- */
.about-hero { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; padding: 70px 64px; text-align: left; }
.about-hero .about-img { height: 480px; border-radius: 24px; overflow: hidden; }
.about-hero .about-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; display: block; }
.about-hero .about-text { display: flex; flex-direction: column; gap: 18px; }
.about-hero .h1 { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 44px; color: var(--dark); line-height: 1.1; }
.about-hero .body { font-weight: 300; font-size: 16px; line-height: 1.85; color: var(--muted); max-width: 480px; }
.values-grid { padding: 70px 64px; background: var(--peach); display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; text-align: left; }
.values-grid .title { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 19px; color: var(--dark); margin-bottom: 10px; }
.values-grid .desc { font-weight: 300; font-size: 14.5px; color: var(--muted); line-height: 1.7; }

/* ---------- Horarios ---------- */
.blocks-section { padding: 70px 64px 20px; text-align: center; }
.blocks-section .h2 { margin-bottom: 16px; }
.blocks-section .lead { max-width: 520px; margin: 0 auto 46px; }
.blocks-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; text-align: left; max-width: 920px; margin: 0 auto; }
.block-card { background: var(--peach); border-radius: 20px; padding: 30px 28px; display: flex; flex-direction: column; gap: 12px; }
.block-card.dark { background: var(--dark); color: #fff; }
.block-card .label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
.block-card .time { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 22px; color: var(--dark); }
.block-card.dark .time { color: #fff; }
.block-card .desc { font-weight: 300; font-size: 14px; color: var(--muted); line-height: 1.7; }
.block-card.dark .desc { color: #fff; opacity: .85; }

.form-section { padding: 70px 64px 100px; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; text-align: left; }
.form-section .form-intro { display: flex; flex-direction: column; gap: 18px; }
.form-section .form-intro .h1 { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 38px; line-height: 1.15; color: var(--dark); }
.form-section .form-intro .body { font-weight: 300; font-size: 15.5px; line-height: 1.8; color: var(--muted); max-width: 380px; }
.form-card { background: var(--peach); border-radius: 28px; padding: 40px 44px; display: flex; flex-direction: column; gap: 26px; }
.form-error-banner { background: #D64545; color: #fff; border-radius: 14px; padding: 16px 20px; font-size: 13.5px; line-height: 1.6; font-weight: 600; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--dark); }
.field input, .field textarea {
  padding: 13px 16px; border-radius: 12px; font-size: 14px; font-family: 'Nunito Sans', sans-serif;
  background: #fff; border: 1.5px solid rgba(37,35,31,.15);
}
.field.error input, .field.error textarea { border-color: #D64545; }
.field-error { font-size: 12px; color: #D64545; font-weight: 600; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 11px 20px; border-radius: 999px; font-size: 13.5px; font-weight: 700; cursor: pointer;
  background: #fff; color: var(--dark); border: 1.5px solid rgba(37,35,31,.15);
}
.chip.active { background: var(--dark); color: #fff; border-color: var(--dark); }
.ampm-row { display: flex; gap: 12px; }
.toggle-btn {
  flex: 1; text-align: center; padding: 13px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; cursor: pointer;
  background: #fff; color: var(--dark); border: 1.5px solid rgba(37,35,31,.15);
}
.toggle-btn.active { background: var(--orange); color: #fff; border-color: var(--orange); }
.submit-btn {
  width: 100%; box-sizing: border-box; text-align: center; padding: 17px 30px; border-radius: 999px;
  font-weight: 700; font-size: 14.5px; cursor: pointer; margin-top: 4px; border: none;
  background: var(--dark); color: #fff; transition: background-color .25s ease;
}
.submit-btn:hover { background: var(--orange); }
.form-note { text-align: center; font-size: 12.5px; color: #8a877f; }
.success-card {
  background: var(--peach); border-radius: 28px; padding: 40px 44px; display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: 16px;
}
.success-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--dark); display: flex; align-items: center; justify-content: center; }
.success-title { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 24px; color: var(--dark); }
.success-body { font-weight: 300; font-size: 15px; color: var(--muted); max-width: 360px; }
.hidden { display: none !important; }

/* ---------- Contacto ---------- */
.contact-header { padding: 70px 64px 10px; text-align: center; }
.contact-header .h1 { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 40px; color: var(--dark); margin-bottom: 16px; }
.contact-header .lead { max-width: 520px; margin: 0 auto; font-size: 15.5px; }
.info-grid { padding: 60px 64px 90px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; text-align: left; }
.info-list { display: flex; flex-direction: column; gap: 32px; }
.info-item .title { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 19px; color: var(--dark); margin-bottom: 8px; }
.info-item .value { font-weight: 300; font-size: 15px; color: var(--muted); line-height: 1.7; }
.contact-map { border-radius: 24px; overflow: hidden; min-height: 420px; }
.contact-map iframe { border: 0; display: block; min-height: 420px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1019px) {
  .nav-links, .nav-desktop-right { display: none; }
  .hamburger { display: flex; }
  .nav { padding: 22px 40px; }
  .hero { padding: 30px 40px 70px; }
  .section, .loc-grid, .split-text, .class-block, .about-hero, .values-grid, .cta-dark,
  .classes-header, .blocks-section, .form-section, .contact-header, .info-grid, .footer-standalone {
    padding-left: 40px; padding-right: 40px;
  }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .hero-img { height: 360px; }
  .split-img { height: 340px; }
  .class-block .block-img { height: 280px; }
  .about-hero .about-img { height: 360px; }
}

@media (max-width: 699px) {
  .nav { padding: 18px 20px; }
  .wa-float { bottom: 18px; right: 18px; }
  .hero {
    grid-template-columns: 1fr;
    padding: 20px 20px 50px;
    gap: 30px;
  }
  .hero-text { gap: 16px; }
  .hero-title { font-size: 38px; }
  .hero-sub { font-size: 15px; }
  .hero-img { height: 300px; max-width: 100%; margin: 0; order: -1; }
  .h2 { font-size: 27px; }
  .section, .loc-grid, .cta-dark, .classes-header, .blocks-section, .form-section, .contact-header, .info-grid, .footer-standalone {
    padding-left: 20px; padding-right: 20px;
  }
  .section { padding-top: 50px; padding-bottom: 50px; }
  .services-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split-text { padding: 50px 20px 10px; }
  .split-img { height: 260px; }
  .planes-grid { grid-template-columns: 1fr; }
  .loc-grid { grid-template-columns: 1fr; padding: 50px 20px; gap: 32px; }
  .map-wrap, .map-wrap iframe { min-height: 220px; }
  .cta-dark { padding: 50px 20px 30px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; padding-bottom: 90px; }

  .classes-header { padding: 50px 20px 10px; }
  .classes-header .h1 { font-size: 30px; }
  .class-block, .class-block.reverse, .class-block.first {
    grid-template-columns: 1fr; padding: 40px 20px; gap: 24px;
  }
  .class-block .block-img { height: 220px; order: -1; }
  .class-block .h4 { font-size: 22px; }

  .about-hero { grid-template-columns: 1fr; padding: 40px 20px; gap: 24px; }
  .about-hero .about-img { height: 260px; }
  .about-hero .h1 { font-size: 32px; }
  .values-grid { grid-template-columns: 1fr; padding: 50px 20px; }

  .blocks-section { padding: 50px 20px 10px; }
  .blocks-grid { grid-template-columns: 1fr; }
  .form-section { grid-template-columns: 1fr; padding: 40px 20px 60px; gap: 30px; }
  .form-card, .success-card { padding: 28px 24px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-standalone { padding: 40px 20px 28px; }

  .contact-header { padding: 50px 20px 5px; }
  .contact-header .h1 { font-size: 30px; }
  .info-grid { grid-template-columns: 1fr; padding: 40px 20px 60px; gap: 32px; }
  .contact-map, .contact-map iframe { min-height: 260px; }
}
