/* ============================================================
   STUDIO ASPEN PILATES
   Paleta: naranja cálido (#E8632B) + gris oscuro / negro + neutros
   ============================================================ */

:root {
  --naranja: #E8632B;
  --naranja-oscuro: #C44F1F;
  --naranja-suave: #F6E3D8;
  --oscuro: #1D1B19;
  --gris: #2A2825;
  --gris-suave: #4A453F;
  --blanco: #FFFFFF;
  --neutral: #F6F4F1;
  --borde: #E7E1DA;
  --texto: #3A3631;

  --font-body: 'Poppins', system-ui, sans-serif;
  --font-title: 'Playfair Display', Georgia, serif;

  --radius: 14px;
  --sombra: 0 10px 30px rgba(29, 27, 25, 0.10);
  --sombra-fuerte: 0 16px 40px rgba(29, 27, 25, 0.18);

  --transition: 0.3s ease;
}

/* ============ RESET / BASE ============ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--texto);
  background: var(--blanco);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

h1, h2, h3 {
  font-family: var(--font-title);
  color: var(--oscuro);
  line-height: 1.2;
}

section[id] { scroll-margin-top: 80px; }

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

/* ============ BOTONES ============ */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-align: center;
}

.btn--primary {
  background: var(--naranja);
  color: var(--blanco);
  box-shadow: 0 6px 18px rgba(232, 99, 43, 0.35);
}

.btn--primary:hover {
  background: var(--naranja-oscuro);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--blanco);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--blanco);
}

.btn--outline {
  background: transparent;
  color: var(--naranja);
  border-color: var(--naranja);
}

.btn--outline:hover {
  background: var(--naranja);
  color: var(--blanco);
}

/* ============ HEADER / NAV ============ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--blanco);
  box-shadow: 0 1px 0 var(--borde);
  transition: box-shadow var(--transition), background var(--transition);
}

.header.is-scrolled {
  box-shadow: 0 4px 20px rgba(29, 27, 25, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand__logo {
  display: inline-flex;
  flex-shrink: 0;
}

.brand__logo-img {
  display: block;
  height: 44px;
  width: auto;
  object-fit: contain;
}

.brand__logo svg {
  display: block;
  border-radius: 50%;
  filter: drop-shadow(0 2px 4px rgba(29, 27, 25, 0.18));
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__text strong {
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: var(--oscuro);
}

.brand__text small {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--naranja);
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav__link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--gris-suave);
  transition: color var(--transition);
  position: relative;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--naranja);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav__link:hover { color: var(--naranja); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__cta { padding: 0.6rem 1.3rem; font-size: 0.9rem; }

.nav__tools {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

/* Selector de idioma */
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--borde);
  border-radius: 999px;
  overflow: hidden;
}

.lang-toggle__btn {
  background: transparent;
  border: none;
  padding: 0.45rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gris-suave);
  cursor: pointer;
  transition: var(--transition);
}

.lang-toggle__btn:hover { color: var(--naranja); }

.lang-toggle__btn.is-active {
  background: var(--naranja);
  color: var(--blanco);
}

/* Toggle móvil */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--oscuro);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.is-active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-block: 140px 80px;
  background: linear-gradient(135deg, var(--oscuro) 0%, var(--gris) 60%, var(--gris-suave) 100%);
  color: var(--blanco);
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__tagline {
  display: inline-block;
  background: rgba(232, 99, 43, 0.18);
  border: 1px solid rgba(232, 99, 43, 0.5);
  color: #F8B08D;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 1.4rem;
}

.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  color: var(--blanco);
  max-width: 18ch;
  margin-bottom: 1.1rem;
}

.hero__title span {
  color: var(--naranja);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #E4DDD5;
  max-width: 46ch;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Círculos decorativos del hero */
.hero__bg { position: absolute; inset: 0; }

.hero__circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(232, 99, 43, 0.10);
  border: 1px solid rgba(232, 99, 43, 0.25);
}

.hero__circle--1 { width: 420px; height: 420px; top: -120px; right: -120px; }
.hero__circle--2 { width: 280px; height: 280px; bottom: -90px; right: 20%; background: rgba(232, 99, 43, 0.06); }
.hero__circle--3 { width: 140px; height: 140px; bottom: 18%; left: 6%; background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.15); }

/* ============ SECCIONES ============ */
.section {
  padding-block: 5.5rem;
}

.section--dark {
  background: var(--oscuro);
}

.section--dark .section__title { color: var(--blanco); }
.section--dark .section__lead { color: #D8D1C8; }

.section--contact {
  background: var(--neutral);
}

.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section__eyebrow {
  color: var(--naranja);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
}

.section__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 1rem;
}

.section__lead {
  color: var(--gris-suave);
}

.section--dark .section__lead strong,
.section__lead strong { color: var(--naranja); }

/* ============ CARDS BASE ============ */
.card {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--sombra);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sombra-fuerte);
}

/* ============ NOSOTROS ============ */
.about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
  margin-bottom: 2.5rem;
}

.about__card h3 {
  color: var(--naranja);
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.about__card p {
  font-size: 0.95rem;
  color: var(--gris-suave);
}

.about__directora {
  text-align: center;
  font-size: 1.05rem;
  color: var(--gris-suave);
}

.about__directora strong {
  color: var(--oscuro);
}

/* ============ SERVICIOS ============ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--gris);
  border-color: var(--gris);
  color: #E4DDD5;
  box-shadow: none;
}

.service-card h3 {
  color: var(--blanco);
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.93rem;
  color: #CFC7BD;
}

.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(232, 99, 43, 0.16);
  color: var(--naranja);
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
}

/* ============ PLANES ============ */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
  padding-top: 2.4rem;
}

.plan-card__name {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--oscuro);
}

.plan-card__classes {
  font-size: 0.88rem;
  color: var(--gris-suave);
}

.plan-card .btn {
  margin-top: auto;
  margin-inline: auto;
  width: 100%;
  max-width: 220px;
}

.plan-card--featured {
  border-color: var(--naranja);
  box-shadow: 0 14px 40px rgba(232, 99, 43, 0.22);
}

.plan-card__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--naranja);
  color: var(--blanco);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* ============ HORARIOS ============ */
.schedule__wrap {
  max-width: 960px;
  margin-inline: auto;
}

.schedule {
  width: 100%;
  border-collapse: collapse;
  background: var(--gris);
  border-radius: var(--radius);
  overflow: hidden;
  color: #E4DDD5;
  font-size: 0.92rem;
}

.schedule thead th {
  background: var(--naranja);
  color: var(--blanco);
  font-weight: 600;
  padding: 0.9rem 0.8rem;
  text-align: left;
}

.schedule tbody th {
  text-align: left;
  color: var(--blanco);
  font-weight: 600;
  padding: 0.9rem 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

.schedule td {
  padding: 0.9rem 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.schedule__special {
  margin-top: 1.6rem;
  background: var(--gris);
  border: 1px solid rgba(232, 99, 43, 0.35);
  border-radius: var(--radius);
  padding: 1.6rem;
}

.schedule__special h3 {
  color: var(--naranja);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.schedule__special li {
  color: #D8D1C8;
  font-size: 0.95rem;
  padding: 0.35rem 0;
}

.schedule__special li::before {
  content: "\25AA";
  color: var(--naranja);
  margin-right: 0.6rem;
}

.schedule__special li strong { color: var(--blanco); }

/* ============ CAPACITACIONES ============ */
.train__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.train-card {
  border-left: 4px solid var(--naranja);
}

.train-card h3 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--oscuro);
  margin-bottom: 0.6rem;
}

.train-card p {
  color: var(--gris-suave);
  font-size: 0.95rem;
}

.train__cta {
  text-align: center;
  background: var(--naranja-suave);
  border: 1px solid rgba(232, 99, 43, 0.3);
  border-radius: var(--radius);
  padding: 2.4rem 1.5rem;
}

.train__cta p {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: var(--oscuro);
  margin-bottom: 1.2rem;
}

/* ============ GALERÍA ============ */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.gallery__item {
  position: relative;
  height: 260px;
  border-radius: var(--radius);
  background-color: var(--naranja-suave);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: transform var(--transition);
}

.gallery__item:hover {
  transform: scale(1.02);
}

.gallery__item--wide { grid-column: span 2; }

.gallery__item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem 1rem 0.7rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--blanco);
  background: linear-gradient(transparent, rgba(20, 18, 16, 0.7));
}

.gallery__hint {
  margin-top: 1.6rem;
  text-align: center;
  color: var(--gris-suave);
  font-size: 0.95rem;
}

.gallery__hint a {
  color: var(--naranja);
  font-weight: 600;
}

.gallery__hint a:hover { text-decoration: underline; }

/* ============ CONTACTO ============ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem;
  align-items: stretch;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.contact__list {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.contact__label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--naranja);
  margin-bottom: 0.2rem;
}

.contact__list p { font-size: 1rem; color: var(--texto); }

.contact__list a {
  color: var(--naranja);
  font-weight: 600;
}

.contact__list a:hover { text-decoration: underline; }

.contact__map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--sombra);
  min-height: 320px;
}

.contact__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
}

.contact-form {
  margin-top: 3rem;
  max-width: 720px;
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: var(--radius);
  box-shadow: var(--sombra);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-form h3 {
  font-size: 1.35rem;
  margin: 0;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--borde);
  border-radius: var(--radius);
  background: #FBF9F6;
  color: var(--texto);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--naranja);
  box-shadow: 0 0 0 3px rgba(232, 99, 43, 0.15);
}

.contact-form textarea { resize: vertical; }

.contact-form .btn { align-self: flex-start; }

.contact-form .btn[disabled] { opacity: 0.6; cursor: progress; }

.contact-form__msg {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--naranja);
  margin: 0;
}

.contact-form__msg.is-error { color: #C0392B; }

/* ============ FOOTER ============ */
.footer {
  background: var(--oscuro);
  color: #D8D1C8;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-block: 4rem 3rem;
}

.footer .brand__text strong { color: var(--blanco); }

.footer .brand__logo-img {
  height: 38px;
  mix-blend-mode: screen;
}

.footer__brand p {
  margin-top: 1rem;
  font-size: 0.92rem;
  max-width: 30ch;
}

.footer__col h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blanco);
  margin-bottom: 1rem;
}

.footer__col ul { display: flex; flex-direction: column; gap: 0.6rem; }

.footer__col a:hover { color: var(--naranja); }

.footer__col li {
  font-size: 0.92rem;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 1.2rem;
}

.footer__bottom p {
  font-size: 0.82rem;
  text-align: center;
  color: #9E968B;
}

/* ============ BOTÓN FLOTANTE WHATSAPP ============ */
.whatsapp-float {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float svg {
  fill: var(--blanco);
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
}

/* ============ MODAL ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}

.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 16, 0.72);
  backdrop-filter: blur(3px);
  animation: fadeIn 0.25s ease;
}

.modal__dialog {
  position: relative;
  z-index: 1;
  background: var(--blanco);
  border-radius: var(--radius);
  padding: 2.4rem;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  animation: slideUp 0.3s ease;
}

.modal__dialog h2 {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}

.modal__dialog p {
  color: var(--gris-suave);
  font-size: 0.95rem;
  margin-bottom: 1.6rem;
}

.modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.modal__actions .btn { width: 100%; }

.modal__close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--gris-suave);
  cursor: pointer;
  transition: color var(--transition);
}

.modal__close:hover { color: var(--naranja); }

body.modal-open { overflow: hidden; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 84vw);
    background: var(--blanco);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1.2rem;
    padding: 5.5rem 1.8rem 2rem;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.18);
    transform: translateX(100%);
    transition: transform 0.35s ease;
    overflow-y: auto;
  }

  .nav.is-open { transform: translateX(0); }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    width: 100%;
  }

  .nav__link {
    display: block;
    width: 100%;
    padding: 0.7rem 0;
    font-size: 1.05rem;
  }

  .nav__tools {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    width: 100%;
  }

  .lang-toggle {
    align-self: flex-start;
  }

  .nav__cta { width: 100%; text-align: center; }

  .nav-toggle {
    display: flex;
    z-index: 110;
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .hero { padding-block: 120px 60px; }

  .contact-form { padding: 1.5rem; }

  .contact-form__row {
    grid-template-columns: 1fr;
  }

  .schedule {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
