/* ============================================================
   PILATES BENALMÁDENA — style.css
   Theme: black / white / beige, matches studio branding.
   Change the variables below to restyle the whole site.
   ============================================================ */

:root {
  --color-bg:           #FFFFFF;
  --color-bg-alt:       #F5F2EC;
  --color-surface:      #FFFFFF;
  --color-dark:         #14120F;

  --color-text:         #14120F;
  --color-text-muted:   #6B655C;

  --color-accent:       #14120F;
  --color-accent-light: rgba(20, 18, 15, 0.06);
  --color-accent-text:  #FFFFFF;

  --color-whatsapp:     #25D366;

  --color-border:       rgba(20, 18, 15, 0.10);
  --shadow-sm:          0 2px 8px  rgba(20,18,15,0.06);
  --shadow-md:          0 4px 24px rgba(20,18,15,0.10);
  --shadow-lg:          0 10px 50px rgba(20,18,15,0.16);

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

  --radius-sm:          6px;
  --radius-md:          14px;
  --radius-lg:          22px;
  --radius-xl:          30px;

  --container-width:    1160px;
  --navbar-height:      72px;
  --section-padding:    clamp(4.5rem, 9vw, 7.5rem);
}


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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height);
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img  { display: block; max-width: 100%; height: auto; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  color: var(--color-text);
}

h1 { font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; }

.icon {
  width: 1.1em; height: 1.1em;
  vertical-align: -0.15em; flex-shrink: 0;
}


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-accent-text);
  border-color: var(--color-accent);
}
.btn-primary:hover {
  filter: brightness(1.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn-ghost:hover {
  background: var(--color-accent);
  color: var(--color-accent-text);
  transform: translateY(-2px);
}


/* ============================================================
   SHARED SECTION STYLES
   ============================================================ */
.section-header {
  text-align: center;
  max-width: var(--container-width);
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  padding: 0 2rem;
}

.section-sub {
  margin-top: 0.6rem;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}


/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--navbar-height);
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 28px rgba(20,18,15,0.08);
}

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-text);
}
.nav-logo span { display: block; font-size: 0.65rem; font-weight: 500; letter-spacing: 0.18em; color: var(--color-text-muted); }

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

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-text);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  transition: width 0.25s ease;
}
.nav-links a:hover             { color: var(--color-text-muted); }
.nav-links a:hover::after      { width: 100%; }
.nav-links a.active::after     { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 36px;
  height: 36px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ============================================================
   HERO
   ============================================================ */
#hero {
  min-height: 100vh;
  padding-top: var(--navbar-height);
  background: var(--color-bg);
  display: flex;
  align-items: center;
}

.hero-container {
  max-width: var(--container-width);
  width: 100%;
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.hero-image-wrap { position: relative; }

.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

.hero-tag {
  display: inline-flex;
  background: var(--color-accent-light);
  color: var(--color-text);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.9rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
}

.hero-content h1 { line-height: 1.05; }
.hero-content h1 em {
  display: block;
  font-style: italic;
  font-weight: 500;
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 32ch;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }


/* ============================================================
   MÉTODO (about)
   ============================================================ */
#metodo {
  background: var(--color-bg-alt);
  padding: var(--section-padding) 2rem;
  text-align: center;
}

.about-container {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.about-container h2 { margin-bottom: 0.3rem; }

.about-container p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.85;
}

.about-highlights {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.highlight { display: flex; align-items: center; gap: 0.3rem; }
.highlight-sep { opacity: 0.3; font-size: 1.1rem; }


/* ============================================================
   PRECIOS
   ============================================================ */
#precios {
  background: var(--color-surface);
  padding: var(--section-padding) 2rem;
}

.pricing-grid {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  align-items: stretch;
}

.price-card {
  position: relative;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  text-align: left;
}

.price-card-featured {
  background: var(--color-dark);
  color: #fff;
  transform: translateY(-0.5rem);
  box-shadow: var(--shadow-lg);
}
.price-card-featured .price-value,
.price-card-featured .price-name { color: #fff; }
.price-card-featured .price-value span,
.price-card-featured .price-features li { color: rgba(255,255,255,0.65); }
.price-card-featured .price-features li::before { color: rgba(255,255,255,0.65); }

.price-badge {
  position: absolute;
  top: -0.8rem; left: 1.75rem;
  background: var(--color-whatsapp);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
}

.price-name { font-size: 1.05rem; }

.price-value {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
}
.price-value span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-top: 0.2rem;
}

.price-features { display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.price-features li {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  padding-left: 1.1rem;
  position: relative;
}
.price-features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-text-muted);
}

.price-card .btn { align-self: flex-start; }
.price-card-featured .btn-primary { background: #fff; color: var(--color-dark); border-color: #fff; }


/* ============================================================
   PROMOCIÓN
   ============================================================ */
#promo {
  background: var(--color-dark);
  padding: var(--section-padding) 2rem;
}

.promo-banner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.promo-kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-whatsapp);
}

.promo-title { color: #fff; }

.promo-text {
  color: rgba(255,255,255,0.72);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 52ch;
}

#promo .btn-primary { background: var(--color-whatsapp); border-color: var(--color-whatsapp); margin-top: 0.5rem; }


/* ============================================================
   EQUIPO
   ============================================================ */
#equipo {
  background: var(--color-bg-alt);
  padding: var(--section-padding) 2rem;
}

.team-container {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.team-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.team-info h3 { margin-bottom: 0.9rem; }
.team-info p {
  color: var(--color-text-muted);
  font-size: 0.98rem;
  line-height: 1.8;
  margin-bottom: 0.9rem;
}
.team-info p:last-child { margin-bottom: 0; }


/* ============================================================
   GALERÍA
   ============================================================ */
#galeria {
  background: var(--color-surface);
  padding: var(--section-padding) 2rem;
}

.gallery-grid {
  max-width: var(--container-width);
  margin: 0 auto;
  columns: 3;
  column-gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  object-fit: cover;
  break-inside: avoid;
  display: block;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}


/* ============================================================
   UBICACIÓN Y CONTACTO
   ============================================================ */
#ubicacion {
  background: var(--color-bg-alt);
  padding: var(--section-padding) 2rem;
}

.contact-container {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: stretch;
}

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 380px;
}
.map-wrap iframe {
  width: 100%; height: 100%;
  border: none; display: block;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.contact-business-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
}

.contact-address {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.contact-link-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-whatsapp);
  width: fit-content;
}
.contact-link-whatsapp:hover { filter: brightness(0.9); }


/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.7);
}

.footer-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.footer-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #FFFFFF;
}
.footer-tagline {
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.footer-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: #FFFFFF; }

.footer-details {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  font-size: 0.82rem;
  text-align: right;
  color: rgba(255,255,255,0.5);
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  padding: 1rem 2rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}


/* ============================================================
   FADE-IN ON SCROLL
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

.gallery-grid img:nth-child(2) { transition-delay: 0.05s; }
.gallery-grid img:nth-child(3) { transition-delay: 0.10s; }
.gallery-grid img:nth-child(4) { transition-delay: 0.05s; }
.gallery-grid img:nth-child(5) { transition-delay: 0.10s; }
.gallery-grid img:nth-child(6) { transition-delay: 0.15s; }


/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  width: 3.5rem; height: 3.5rem;
  background: var(--color-whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  z-index: 9999;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  animation: float-bounce 2.2s ease-in-out 1.5s 3;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(37,211,102,0.5); }

@keyframes float-bounce {
  0%, 100% { transform: translateY(0); }
  45%       { transform: translateY(-12px); }
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── Tablet (≤ 960px) ── */
@media (max-width: 960px) {
  .hamburger   { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--navbar-height);
    left: 0; right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 1.5rem 2rem 2rem;
    gap: 1.25rem;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--color-border);
    z-index: 999;
  }
  .nav-links.open  { display: flex; }
  .nav-links a     { font-size: 1rem; }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 3rem 1.5rem 5rem;
  }
  .hero-image-wrap { max-width: 460px; margin: 0 auto; }
  .hero-content    { align-items: center; }
  .hero-actions    { justify-content: center; }

  .pricing-grid { grid-template-columns: 1fr; gap: 2rem; }
  .price-card-featured { transform: none; }

  .team-container { grid-template-columns: 1fr; text-align: center; }
  .team-photo { max-width: 280px; margin: 0 auto; }

  .gallery-grid { columns: 2; }

  .contact-container { grid-template-columns: 1fr; }
  .map-wrap { min-height: 300px; }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-brand    { align-items: center; }
  .footer-details  { align-items: center; text-align: center; }
}

/* ── Mobile (≤ 580px) ── */
@media (max-width: 580px) {
  .gallery-grid { columns: 2; column-gap: 0.6rem; }
  .whatsapp-float { bottom: 1.25rem; right: 1.25rem; }

  #metodo, #precios, #promo, #equipo, #galeria, #ubicacion {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .contact-info { padding: 1.75rem; }
}
