/* ============================================================
   Esther English Room — styles
   Paleta:  Azul #0d0e5d  ·  Blanco #ffffff  ·  Acento dorado
   Tipos:   Playfair Display (títulos) · Inter (cuerpo)
   Mobile-first · minimalista · elegante.
   ============================================================ */

:root {
  --navy: #0d0e5d;
  --navy-2: #16187a;
  --navy-deep: #08092f;
  --white: #ffffff;
  --offwhite: #f6f6fb;
  --cream: #faf8f2;
  --ink: #0d0e5d;
  --muted: #5d5e88;

  --gold-1: #e7c98a;
  --gold-2: #c79a52;
  --gold-grad: linear-gradient(135deg, #e7c98a 0%, #c79a52 100%);

  --border: rgba(13, 14, 93, 0.12);
  --border-light: rgba(255, 255, 255, 0.22);

  --shadow-soft: 0 18px 50px rgba(13, 14, 93, 0.10);
  --shadow-lift: 0 26px 60px rgba(13, 14, 93, 0.16);

  --maxw: 1040px;
  --maxw-narrow: 720px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

::selection {
  background: var(--navy);
  color: #fff;
}

/* ---------- Layout helpers ---------- */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container--narrow { max-width: var(--maxw-narrow); }

.section {
  position: relative;
  overflow: hidden;
  padding: 84px 0;
  scroll-margin-top: 20px;
}

.section--light { background: var(--white); color: var(--ink); }

.section--dark {
  background: linear-gradient(165deg, var(--navy-2) 0%, var(--navy) 52%, var(--navy-deep) 100%);
  color: var(--white);
}

/* Resplandores decorativos */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}
.glow--gold {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(199, 154, 82, 0.45), transparent 65%);
  top: -90px; right: -80px;
}
.glow--blue {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(60, 64, 200, 0.5), transparent 65%);
  bottom: -120px; left: -100px;
}
.section > .container,
.hero__inner { position: relative; z-index: 1; }

/* ---------- Typography ---------- */

.section__title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2rem, 6.4vw, 2.9rem);
  line-height: 1.14;
  margin: 0 0 18px;
  text-align: center;
}
.section__title::after {
  content: "";
  display: block;
  width: 60px; height: 3px;
  margin: 22px auto 0;
  border-radius: 3px;
  background: var(--gold-grad);
}

.eyebrow {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.74rem;
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--gold-1);
}
.eyebrow--dark { color: var(--gold-2); }

.section__lead {
  text-align: center;
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto 46px;
  opacity: 0.92;
}
.section__lead--dark { color: var(--muted); opacity: 1; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(170deg, var(--navy-2) 0%, var(--navy) 55%, var(--navy-deep) 100%);
  color: var(--white);
  text-align: center;
  padding: 54px 0 96px;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 46px;
  line-height: 1;
}
.wordmark__mark {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800;
  font-size: clamp(2.8rem, 12vw, 3.8rem);
  letter-spacing: 0.04em;
}
.wordmark__name {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 5vw, 1.55rem);
  margin-top: 12px;
}
.wordmark__since {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  opacity: 0.75;
  margin-top: 8px;
}

/* Foto con halo + anillo dorado */
.hero__photo-wrap {
  position: relative;
  margin-bottom: 30px;
  display: grid;
  place-items: center;
}
.hero__photo-wrap::before {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: var(--gold-grad);
  opacity: 0.9;
  z-index: 0;
}
.hero__photo-wrap::after {
  content: "";
  position: absolute;
  inset: -46px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(231, 201, 138, 0.35), transparent 70%);
  z-index: 0;
}
.hero__photo {
  position: relative;
  z-index: 1;
  width: clamp(200px, 56vw, 250px);
  height: clamp(200px, 56vw, 250px);
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 26%;
  border: 5px solid var(--navy);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.4);
}

.hero__name {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 10vw, 3.2rem);
  margin: 0 0 10px;
}
.hero__title {
  font-size: 1.12rem;
  font-weight: 500;
  margin: 0 0 18px;
  max-width: 480px;
  opacity: 0.95;
}
.hero__badge {
  display: inline-block;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gold-1);
  padding: 9px 20px;
  border: 1px solid rgba(231, 201, 138, 0.4);
  border-radius: 999px;
  background: rgba(231, 201, 138, 0.07);
  margin-bottom: 36px;
}

/* ---------- Sobre mí ---------- */

.about {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  max-width: 980px;
  margin: 8px auto 0;
}
.about__media {
  position: relative;
  z-index: 0;
  max-width: 380px;
  width: 100%;
  margin: 0 auto;
}
.about__media::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(16px, 16px);
  border: 2px solid var(--gold-2);
  border-radius: 20px;
  z-index: -1;
}
.about__media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.prose p { font-size: 1.08rem; margin: 0 0 22px; }
.prose p:last-child { margin-bottom: 0; }

.about__text p:first-of-type::first-letter {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 3.3rem;
  font-weight: 700;
  float: left;
  line-height: 0.82;
  padding: 6px 12px 0 0;
  color: var(--gold-2);
}
.signature {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--navy);
  margin-top: 10px !important;
}

/* ---------- Cards ---------- */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0 auto 46px;
  max-width: 760px;
}
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 30px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(6px);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(231, 201, 138, 0.6);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.3);
}
.card__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  margin-bottom: 6px;
  color: var(--gold-1);
  background: rgba(231, 201, 138, 0.14);
  border: 1px solid rgba(231, 201, 138, 0.3);
}
.card__icon svg { width: 26px; height: 26px; }
.card__label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.72;
}
.card__value { font-size: 1.05rem; font-weight: 500; }
.card__value--big {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}

/* Cards sobre fondo claro */
.card--outline {
  background: var(--cream);
  border: 1px solid var(--border);
  color: var(--ink);
}
.card--outline:hover {
  border-color: var(--gold-2);
  box-shadow: var(--shadow-lift);
}
.card--outline .card__label { color: var(--muted); opacity: 1; }
.card__icon--gold {
  color: var(--gold-2);
  background: rgba(199, 154, 82, 0.12);
  border-color: rgba(199, 154, 82, 0.35);
}

/* ---------- Intensivo ---------- */

.price { text-align: center; margin: 0 0 22px; }
.price__num {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800;
  font-size: clamp(3.4rem, 15vw, 5rem);
  line-height: 1;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.price__note {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.hours {
  text-align: center;
  margin: 0 0 40px;
}
.hours span {
  display: inline-block;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--navy);
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--offwhite);
  border: 1px solid var(--border);
}

.objectives {
  list-style: none;
  padding: 0;
  margin: 0 auto 48px;
  max-width: 680px;
  display: grid;
  gap: 14px;
}
.objectives li {
  position: relative;
  padding: 14px 18px 14px 56px;
  font-size: 1.05rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.objectives li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-soft);
}
.objectives li::before {
  content: "";
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 14px no-repeat,
    var(--gold-grad);
}

@media (min-width: 640px) {
  .objectives { grid-template-columns: 1fr 1fr; }
}

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  overflow: hidden;
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 19px 40px;
  border-radius: 999px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.btn::after {
  content: "→";
  display: inline-block;
  margin-left: 0.6em;
  transition: transform 0.25s var(--ease);
}
.btn:hover::after { transform: translateX(5px); }

/* Brillo que cruza el botón */
.btn::before {
  content: "";
  position: absolute;
  top: 0; left: -75%;
  width: 45%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s var(--ease);
}
.btn:hover::before { left: 130%; }

.btn--light {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}
.btn--light:hover { transform: translateY(-3px); box-shadow: 0 20px 42px rgba(0, 0, 0, 0.3); }

.btn--dark {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 14px 32px rgba(13, 14, 93, 0.3);
}
.btn--dark:hover { transform: translateY(-3px); background: var(--navy-2); box-shadow: 0 20px 44px rgba(13, 14, 93, 0.4); }

.btn--block {
  display: block;
  width: 100%;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}
.btn:focus-visible { outline: 3px solid rgba(231, 201, 138, 0.8); outline-offset: 3px; }

/* ---------- Contacto ---------- */

.contact { text-align: center; }
.contact__email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.25rem, 5.4vw, 1.9rem);
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  margin-top: 6px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.05);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}
.contact__email svg { width: 26px; height: 26px; color: var(--gold-1); flex-shrink: 0; }
.contact__email:hover {
  border-color: var(--gold-1);
  background: rgba(231, 201, 138, 0.1);
  transform: translateY(-2px);
}

/* ---------- Footer ---------- */

.footer {
  background: var(--navy-deep);
  color: #fff;
  text-align: center;
  padding: 46px 0 40px;
  border-top: 1px solid rgba(231, 201, 138, 0.25);
}
.footer__mark {
  display: inline-block;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer__text { margin: 0 0 10px; font-size: 0.92rem; opacity: 0.85; }
.footer__text a { color: #fff; text-decoration: none; }
.footer__text a:hover { text-decoration: underline; }
.footer__legal { margin: 0; font-size: 0.88rem; }
.footer__legal a { color: var(--gold-1); text-decoration: underline; text-underline-offset: 3px; }
.footer__legal a:hover { color: #fff; }

/* ---------- Floating CTA (solo móvil) ---------- */

.floating-cta {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 160%);
  z-index: 50;
  display: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
  background: var(--gold-grad);
  padding: 16px 30px;
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(13, 14, 93, 0.4);
  transition: transform 0.4s var(--ease);
  white-space: nowrap;
}
body.show-cta .floating-cta { transform: translate(-50%, 0); }

@media (max-width: 700px) {
  .floating-cta { display: inline-block; }
}

/* ---------- Legal (privacidad) ---------- */

.legal h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: 1.3rem;
  margin: 38px 0 10px;
  color: var(--navy);
}
.legal p { font-size: 1.02rem; }
.legal a { color: var(--gold-2); font-weight: 600; }
.back-link {
  text-decoration: none;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 2px solid var(--gold-2);
  padding-bottom: 3px;
}

/* ============================================================
   Animaciones (mejora progresiva — sólo si hay JS)
   ============================================================ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__anim {
  animation: fadeUp 0.9s var(--ease) both;
  animation-delay: var(--d, 0s);
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__anim { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn::before, .card, .objectives li, .floating-cta { transition: none; }
}

/* ============================================================
   Responsive — tablet y escritorio
   ============================================================ */

@media (min-width: 600px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .cards--2 { max-width: 680px; }
}

@media (min-width: 900px) {
  .section { padding: 110px 0; }

  .hero { padding: 74px 0 96px; }

  .about {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 56px;
    text-align: left;
  }
  .about__media { margin: 0; max-width: none; }
  .about__media img { aspect-ratio: 4 / 5; }

  .cards:not(.cards--2) { grid-template-columns: repeat(4, 1fr); }
}
