/* ==========================================================
   Escuela TREA — Landing
   Paleta y tipografía tomadas del sitio original.
   ========================================================== */

:root {
  /* Colores */
  --cream: #F8F6F2;
  --white: #FFFFFF;
  --navy: #1F3A52;
  --burgundy: #8A1E4D;
  --burgundy-dark: #6B1239;
  --gold: #D4AF37;
  --gold-text: #8C6D16;   /* dorado oscuro para texto legible sobre claro */
  --gold-num: #B8932A;
  --ink: #2E333B;
  --text: #4A505A;
  --muted: #5B616B;
  --line: #E6DFD3;
  --line-soft: #ECE5D9;
  --placeholder: #E4D9CB;

  /* Tipografía */
  --serif: "Spectral", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Espaciado */
  --gutter: 20px;
  --section-y: 64px;
  --radius: 14px;
  --max: 1248px;
}

@media (min-width: 768px) {
  :root { --gutter: 40px; --section-y: 88px; }
}
@media (min-width: 1100px) {
  :root { --gutter: 96px; --section-y: 112px; --radius: 16px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, blockquote { margin: 0; }
a { color: var(--burgundy); text-decoration: none; }
a:hover { color: var(--burgundy-dark); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--navy); color: #fff; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Tipos ---------- */
h1, h2, h3 { font-family: var(--serif); color: var(--navy); }
h1 {
  font-weight: 300;
  font-size: clamp(2.75rem, 1.6rem + 4.2vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
h1 em { font-style: italic; color: var(--burgundy); }
h2 {
  font-weight: 300;
  font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3.25rem);
  line-height: 1.1;
}
h3 { font-weight: 400; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--burgundy);
}
.eyebrow-gold { color: var(--gold-text); }
.lead { font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); line-height: 1.65; color: var(--text); max-width: 34rem; }
.section-intro { font-size: 1.0625rem; color: var(--muted); max-width: 26rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 30px;
  border-radius: 999px;
  font-family: var(--sans); font-size: 1rem; font-weight: 500;
  border: 1px solid transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 46px; padding: 0 24px; font-size: 0.9375rem; }
.btn-primary { background: var(--burgundy); color: #fff; }
.btn-primary:hover { background: var(--burgundy-dark); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: var(--cream); color: var(--navy); font-weight: 600; }
.btn-light:hover { background: #fff; color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px 16px; }

.text-link {
  align-self: flex-start;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 246, 242, 0.94);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand-mark {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--gold); object-fit: cover; flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--serif); font-size: 1.25rem; letter-spacing: 0.02em; }
.brand-sub { display: none; font-size: 0.625rem; letter-spacing: 0.2em; text-transform: uppercase; color: #6B7280; margin-top: 3px; }

.menu-toggle {
  width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
}
.menu-toggle span { display: block; width: 22px; height: 1.6px; background: var(--navy); border-radius: 2px; transition: transform .25s ease; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.3px) rotate(-45deg); }

.site-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  display: none; flex-direction: column; gap: 4px;
  padding: 12px var(--gutter) 24px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.site-nav.is-open { display: flex; }
.site-nav a:not(.btn) { color: var(--navy); padding: 12px 0; font-size: 1.0625rem; border-bottom: 1px solid var(--line-soft); }
.site-nav a:not(.btn):hover { color: var(--burgundy); }
.site-nav .btn { margin-top: 16px; }

@media (min-width: 1024px) {
  .header-inner { min-height: 96px; }
  .brand-mark { width: 58px; height: 58px; }
  .brand-name { font-size: 1.4375rem; }
  .brand-sub { display: block; }
  .menu-toggle { display: none; }
  .site-nav {
    position: static; display: flex; flex-direction: row; align-items: center; gap: 36px;
    padding: 0; background: none; border: 0;
  }
  .site-nav a:not(.btn) { padding: 0; border: 0; font-size: 0.9375rem; }
  .site-nav .btn { margin-top: 0; }
}

/* ---------- Hero ---------- */
.hero { padding: 40px 0 64px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.trust {
  list-style: none; margin: 4px 0 0; padding: 18px 0 0;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 14px;
  font-size: 0.875rem; color: var(--muted);
}
.trust li + li::before { content: "·"; color: var(--gold); margin-right: 14px; }

.hero-media { position: relative; padding: 0 16px 16px 0; max-width: 560px; width: 100%; justify-self: center; }
.arch-frame {
  position: absolute; top: 16px; left: 16px; right: 0; bottom: 0;
  border: 1.5px solid var(--gold);
  border-radius: 999px 999px var(--radius) var(--radius);
}
.arch-img {
  position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 999px 999px var(--radius) var(--radius);
  background: var(--placeholder);
}

@media (max-width: 1023px) {
  /* En móvil la foto va entre el texto y los botones */
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; }
  .hero-copy { display: contents; }
  .hero-copy > .eyebrow { order: 1; }
  .hero-copy > h1 { order: 2; }
  .hero-copy > .lead { order: 3; }
  .hero-media { order: 4; margin: 4px 0; }
  .hero-copy > .btn-row { order: 5; }
  .hero-copy > .trust { order: 6; justify-content: center; }
  .hero-grid { gap: 22px; }
  .btn-row .btn { flex: 1 1 100%; }
}
@media (min-width: 1024px) {
  .hero { padding: 96px 0 112px; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 96px; }
  .hero-copy { gap: 28px; }
  .hero-media { padding: 0 28px 28px 0; justify-self: stretch; max-width: none; }
  .arch-frame { top: 28px; left: 28px; }
  .arch-img { aspect-ratio: auto; height: 592px; }
  .trust { gap: 8px 28px; }
  .trust li + li::before { margin-right: 28px; }
}

/* ---------- Secciones ---------- */
.section { padding: var(--section-y) 0; }
.section-white { background: var(--white); }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
.section-head.center { text-align: left; }
@media (min-width: 768px) {
  .section-head { margin-bottom: 56px; }
  .section-head.center { align-items: center; text-align: center; }
  .section-head.center .section-intro { max-width: 35rem; }
}
@media (min-width: 1024px) {
  .section-head.split { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 64px; margin-bottom: 64px; }
  .section-head.split > div { display: flex; flex-direction: column; gap: 16px; }
}

/* ---------- Pilares ---------- */
.pillars { display: grid; }
.pillar { padding: 28px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.pillar:first-child { border-top-color: var(--navy); }
.pillar:last-child { padding-bottom: 0; }
.pillar-num { font-family: var(--serif); font-size: 1.125rem; color: var(--gold-num); }
.pillar h3 { font-size: 1.75rem; }
.pillar p { color: var(--text); }
@media (min-width: 768px) {
  .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pillar { padding: 40px 32px 16px; border-top-color: var(--navy); border-left: 1px solid var(--line); gap: 18px; }
  .pillar:first-child { padding-left: 0; border-left: 0; }
  .pillar:last-child { padding: 40px 0 16px 32px; }
  .pillar h3 { font-size: 2rem; }
  .pillar p { font-size: 1.0625rem; }
}
@media (min-width: 1100px) {
  .pillar { padding-left: 48px; padding-right: 48px; }
  .pillar:last-child { padding-left: 48px; }
}

/* ---------- Cita ---------- */
.quote-band { background: var(--navy); padding: 72px 0; text-align: center; }
.quote-inner { display: flex; flex-direction: column; align-items: center; gap: 26px; max-width: 1040px; }
.gold-rule { width: 48px; height: 1.5px; background: var(--gold); }
.quote-band blockquote p {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); line-height: 1.36; color: var(--cream);
}
.quote-author { font-size: 0.8125rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
@media (min-width: 1024px) { .quote-band { padding: 128px 0; } .quote-inner { gap: 36px; } }

/* ---------- Tarjetas de sesión ---------- */
.cards { display: grid; gap: 20px; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }

.card {
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .25s ease, transform .25s ease;
}
.card:hover { box-shadow: 0 18px 40px -24px rgba(31, 58, 82, .35); transform: translateY(-2px); }
.card-img { width: 100%; height: 200px; object-fit: cover; background: var(--placeholder); }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.card-meta { display: flex; gap: 10px; font-size: 0.8125rem; color: var(--muted); letter-spacing: 0.03em; }
.card-meta span + span::before { content: "·"; color: var(--gold); margin-right: 10px; }
.card h3 { font-size: 1.5rem; line-height: 1.2; }
.card-text { font-size: 0.9375rem; color: var(--text); flex-grow: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; margin-top: 4px; border-top: 1px solid var(--line-soft); }
.price { font-family: var(--serif); font-size: 1.625rem; color: var(--navy); }
@media (min-width: 1100px) {
  .card-img { height: 280px; }
  .card-body { padding: 32px; gap: 16px; }
  .card h3 { font-size: 1.75rem; }
  .card-text { font-size: 1rem; }
  .price { font-size: 1.75rem; }
}

.workshop {
  margin-top: 24px; padding: 28px 24px;
  border: 1.5px solid var(--gold); border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 18px;
}
.workshop > div { display: flex; flex-direction: column; gap: 10px; }
.workshop h3 { font-size: 1.5rem; }
.workshop p:not(.eyebrow) { color: var(--text); font-size: 0.9375rem; }
@media (min-width: 900px) {
  .workshop { margin-top: 32px; padding: 36px 44px; flex-direction: row; align-items: center; justify-content: space-between; gap: 48px; }
  .workshop h3 { font-size: 1.75rem; }
  .workshop p:not(.eyebrow) { font-size: 1rem; }
  .workshop .btn { flex-shrink: 0; }
}

/* ---------- Sobre Mercedes ---------- */
.about { padding-top: 16px; }
.about-grid { display: grid; gap: 28px; align-items: center; }
.about-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); background: var(--placeholder); }
.about-copy { display: flex; flex-direction: column; gap: 18px; }
.about-copy p:not(.eyebrow) { color: var(--text); font-size: 1rem; line-height: 1.7; }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .about-img { aspect-ratio: 4 / 5; }
}
@media (min-width: 1100px) {
  .about-grid { gap: 96px; }
  .about-img { aspect-ratio: auto; height: 560px; }
  .about-copy { gap: 24px; }
  .about-copy p:not(.eyebrow) { font-size: 1.125rem; }
}

/* ---------- CTA ---------- */
.cta {
  background: var(--burgundy); border-radius: 18px;
  padding: 48px 24px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.cta h2 { color: #fff; font-size: clamp(2.125rem, 1.6rem + 2vw, 3.5rem); }
.cta p { color: #F3E6EC; max-width: 36rem; }
.cta .btn { margin-top: 8px; }
@media (min-width: 1024px) { .cta { padding: 96px; border-radius: 24px; gap: 24px; } .cta p { font-size: 1.125rem; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #C3CCD6; margin-top: 64px; padding: 48px 0 32px; }
.footer-grid { display: grid; gap: 36px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand img { width: 120px; height: 120px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: #E6EAEF; }
.footer-col a:hover { color: var(--gold); }
.footer-col .footer-email { color: #fff; }
.footer-label { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.footer-bottom {
  margin-top: 36px; padding-top: 22px; border-top: 1px solid #36506A;
  display: flex; flex-direction: column; gap: 8px; font-size: 0.8125rem; color: #9FAEBD;
}
.footer-tag { letter-spacing: 0.16em; text-transform: uppercase; }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}
@media (min-width: 1024px) {
  .site-footer { margin-top: 112px; padding: 80px 0 48px; }
  .footer-grid { gap: 64px; }
  .footer-brand img { width: 150px; height: 150px; }
  .footer-bottom { margin-top: 56px; padding-top: 28px; }
}

/* ---------- Animación de entrada (suave) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn { transition: none; }
}
