/* ═══════════════════════════════════════════
   Raíz Yoga — Estilo natural y orgánico
   ═══════════════════════════════════════════ */

/* ─── Google Fonts ─── */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

/* ─── Variables ─── */
:root {
  --verde: #4A6652;
  --verde-claro: #5D7D66;
  --arena: #F0E6D3;
  --arena-oscuro: #E0D4BC;
  --coral: #D48A7A;
  --coral-hover: #C07768;
  --blanco: #FDFBF7;
  --texto: #2C2C2C;
  --texto-claro: #6B6B6B;
  --linea: rgba(74, 102, 82, 0.12);
  --sombra: rgba(74, 102, 82, 0.08);
  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --max-w: 1100px;
  --section-py: 6rem;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-sans); background: var(--blanco); color: var(--texto); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ─── Utilidades ─── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: 720px; }
.section { padding: var(--section-py) 0; }
.section--alt { background: var(--arena); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ─── Reveal ─── */
.reveal { opacity: 0; transform: translateY(2rem); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── Header ─── */
.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; padding: 1.25rem 0; transition: background 0.4s var(--ease), padding 0.4s var(--ease); }
.header--scrolled { background: var(--blanco); box-shadow: 0 1px 20px var(--sombra); padding: 0.75rem 0; }
.header__inner { display: flex; justify-content: space-between; align-items: center; }
.header__logo { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; color: var(--verde); }
.header__nav { display: flex; gap: 2rem; align-items: center; }
.header__nav a { font-size: 0.8125rem; color: var(--texto); transition: color 0.3s; position: relative; }
.header__nav a:hover { color: var(--verde); }
.header__nav a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--coral); transition: width 0.3s var(--ease); }
.header__nav a:hover::after { width: 100%; }
.header__cta { background: var(--coral); color: var(--blanco) !important; padding: 0.6rem 1.5rem; border-radius: 2rem; font-weight: 500; font-size: 0.75rem; transition: background 0.3s; }
.header__cta:hover { background: var(--coral-hover) !important; }
.header__cta::after { display: none !important; }

/* ─── Mobile hamburger ─── */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; z-index: 110; }
.hamburger span { display: block; width: 26px; height: 2px; background: var(--verde); border-radius: 2px; transition: all 0.3s var(--ease); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Mobile menu ─── */
.mobile-menu { position: fixed; inset: 0; background: var(--blanco); z-index: 105; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; opacity: 0; visibility: hidden; transition: all 0.4s var(--ease); }
.mobile-menu.active { opacity: 1; visibility: visible; }
.mobile-menu a { font-family: var(--font-serif); font-size: 1.75rem; color: var(--verde); transition: color 0.3s; }
.mobile-menu a:hover { color: var(--coral); }
.mobile-menu .header__cta { font-family: var(--font-sans); font-size: 0.875rem; }

/* ─── Hero ─── */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8rem 1.5rem 5rem; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--verde) 0%, var(--verde-claro) 40%, var(--arena) 100%); }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(255,255,255,0.08) 0%, transparent 70%); pointer-events: none; }
.hero__content { position: relative; z-index: 2; max-width: 720px; }
.hero__tag { display: inline-block; font-family: var(--font-sans); font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--arena); opacity: 0.7; margin-bottom: 1.5rem; }
.hero__title { font-family: var(--font-serif); font-size: 3rem; font-weight: 600; line-height: 1.1; color: var(--blanco); margin-bottom: 1.5rem; animation: heroFade 1.2s var(--ease) both; }
.hero__sub { font-size: 1rem; color: var(--arena); opacity: 0.85; max-width: 520px; margin: 0 auto 2.5rem; line-height: 1.7; animation: heroFade 1.2s var(--ease) 0.15s both; }
.hero__cta { display: inline-block; background: var(--coral); color: var(--blanco); padding: 1.1rem 2.8rem; border-radius: 2rem; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; transition: background 0.3s, transform 0.3s; animation: heroFade 1.2s var(--ease) 0.3s both; }
.hero__cta:hover { background: var(--coral-hover); transform: translateY(-2px); }
@keyframes heroFade { 0% { opacity: 0; transform: translateY(24px); } 100% { opacity: 1; transform: translateY(0); } }

/* ─── Sobre mí ─── */
.about__grid { display: grid; gap: 3rem; align-items: center; }
.about__image { width: 100%; height: 360px; object-fit: cover; border-radius: 1.25rem; background: linear-gradient(135deg, var(--arena), var(--verde-claro)); display: flex; align-items: center; justify-content: center; color: var(--blanco); font-family: var(--font-serif); font-style: italic; font-size: 1.1rem; }
.about__label { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.25em; color: var(--coral); margin-bottom: 0.75rem; }
.about__title { font-family: var(--font-serif); font-size: 2.25rem; font-weight: 600; line-height: 1.2; margin-bottom: 1.25rem; color: var(--verde); }
.about__text { font-size: 0.9375rem; color: var(--texto-claro); line-height: 1.8; margin-bottom: 1rem; }
@media (min-width: 768px) { .about__grid { grid-template-columns: 1fr 1fr; } }

/* ─── Clases ─── */
.classes__label { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.25em; color: var(--coral); margin-bottom: 0.75rem; text-align: center; }
.classes__title { font-family: var(--font-serif); text-align: center; font-size: 2.25rem; font-weight: 600; color: var(--verde); margin-bottom: 3rem; }
.classes__grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .classes__grid { grid-template-columns: repeat(3, 1fr); } }
.class-card { background: var(--blanco); border: 1px solid var(--linea); border-radius: 1.25rem; padding: 2rem; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.class-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px var(--sombra); }
.class-card__emoji { font-size: 2.5rem; display: block; margin-bottom: 1rem; }
.class-card__title { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; color: var(--verde); margin-bottom: 0.75rem; }
.class-card__text { font-size: 0.875rem; color: var(--texto-claro); line-height: 1.7; }

/* ─── Horarios ─── */
.schedule__label { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.25em; color: var(--coral); margin-bottom: 0.75rem; text-align: center; }
.schedule__title { font-family: var(--font-serif); text-align: center; font-size: 2.25rem; font-weight: 600; color: var(--verde); margin-bottom: 2rem; }
.schedule__wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 1rem; border: 1px solid var(--linea); background: var(--blanco); }
.schedule__table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 0.8125rem; }
.schedule__table th { background: var(--verde); color: var(--blanco); padding: 0.9rem 1rem; font-weight: 500; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; text-align: left; }
.schedule__table th:first-child { border-radius: 1rem 0 0 0; }
.schedule__table th:last-child { border-radius: 0 1rem 0 0; }
.schedule__table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--linea); color: var(--texto); }
.schedule__table tr:last-child td { border-bottom: none; }
.schedule__table tr:hover td { background: var(--arena); }
.schedule__time { font-weight: 600; color: var(--verde); white-space: nowrap; }
.schedule__class { display: inline-block; }
.schedule__loc { display: block; font-size: 0.6875rem; color: var(--texto-claro); margin-top: 2px; }
@media (max-width: 767px) {
  .schedule__table { min-width: 500px; }
  .schedule__table th:first-child, .schedule__table td:first-child { position: sticky; left: 0; z-index: 2; background: var(--blanco); }
  .schedule__table th:first-child { background: var(--verde); z-index: 3; }
  .schedule__table tr:hover td:first-child { background: var(--arena); }
}

/* ─── Centros ─── */
.centers__label { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.25em; color: var(--coral); margin-bottom: 0.75rem; text-align: center; }
.centers__title { font-family: var(--font-serif); text-align: center; font-size: 2.25rem; font-weight: 600; color: var(--verde); margin-bottom: 3rem; }
.centers__grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .centers__grid { grid-template-columns: repeat(3, 1fr); } }
.center-card { background: var(--blanco); border: 1px solid var(--linea); border-radius: 1.25rem; padding: 2rem; text-align: center; transition: transform 0.4s var(--ease); }
.center-card:hover { transform: translateY(-4px); }
.center-card__icon { font-size: 2rem; margin-bottom: 1rem; display: block; }
.center-card__name { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; color: var(--verde); margin-bottom: 0.5rem; }
.center-card__addr { font-size: 0.8125rem; color: var(--texto-claro); line-height: 1.6; }

/* ─── Contacto ─── */
.contact { text-align: center; }
.contact__title { font-family: var(--font-serif); font-size: 2.25rem; font-weight: 600; color: var(--verde); margin-bottom: 1rem; }
.contact__text { color: var(--texto-claro); margin-bottom: 2rem; font-size: 0.9375rem; }
.contact__whatsapp { display: inline-flex; align-items: center; gap: 0.75rem; background: #25D366; color: #fff; padding: 1.1rem 2.5rem; border-radius: 2rem; font-weight: 600; font-size: 0.875rem; transition: opacity 0.3s, transform 0.3s; }
.contact__whatsapp:hover { opacity: 0.9; transform: translateY(-2px); }
.contact__social { display: block; margin-top: 1rem; color: var(--texto-claro); font-size: 0.8125rem; }
.contact__social a { color: var(--verde); font-weight: 500; transition: color 0.3s; }
.contact__social a:hover { color: var(--coral); }

/* ─── Footer ─── */
.footer { padding: 2rem 1.5rem; text-align: center; border-top: 1px solid var(--linea); }
.footer__name { font-family: var(--font-serif); font-size: 1rem; color: var(--verde); margin-bottom: 0.35rem; }
.footer__meta { font-size: 0.75rem; color: var(--texto-claro); }

/* ─── Media queries ─── */
@media (max-width: 767px) {
  .header__nav { display: none; }
  .hamburger { display: flex; }
  .hero__title { font-size: 2.25rem; }
  .hero { padding: 7rem 1.5rem 4rem; }
  :root { --section-py: 4rem; }
  .about__grid { gap: 2rem; }
  .about__image { height: 240px; }
  .about__title { font-size: 1.75rem; }
  .classes__title { font-size: 1.75rem; }
  .schedule__title { font-size: 1.75rem; }
  .centers__title { font-size: 1.75rem; }
  .contact__title { font-size: 1.75rem; }
}
