/* Escuela Sabática — landing page. Warm Clay palette (app/core/designsystem/theme/Color.kt). */

:root {
  --accent: #b05c38;
  --accent-pressed: #93481f;
  --accent-strong: #8a4324;
  --accent-soft: #f3e4da;
  --on-accent: #ffffff;
  --bg: #f8f6f1;
  --surface: #fcfbf8;
  --surface-raised: #ffffff;
  --surface-variant: #f1efea;
  --ink: #211b16;
  --ink-2: #6e6258;
  --hairline: #e7e3dc;
  --divider: #edeae3;
  --shadow: 0 24px 60px -24px rgba(33, 27, 22, 0.28);
  --shadow-soft: 0 12px 32px -16px rgba(33, 27, 22, 0.22);
  --serif: "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #e8a98a;
    --accent-pressed: #d9966f;
    --accent-strong: #f0bea4;
    --accent-soft: #352b24;
    --on-accent: #1e120b;
    --bg: #15161a;
    --surface: #111317;
    --surface-raised: #1b1d22;
    --surface-variant: #25272d;
    --ink: #ece8e2;
    --ink-2: #a7a29a;
    --hairline: #34363c;
    --divider: #2b2d33;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.65);
    --shadow-soft: 0 12px 32px -16px rgba(0, 0, 0, 0.5);
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent-strong);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}

.brand img {
  width: 32px;
  height: 32px;
}

.brand span {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.lang-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface-variant);
  border-radius: 999px;
}

.lang-switch button {
  font: 600 0.78rem/1 var(--sans);
  letter-spacing: 0.06em;
  color: var(--ink-2);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--surface-raised);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(33, 27, 22, 0.15);
}

.no-js .lang-switch {
  display: none;
}

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

.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  border-radius: 14px;
  padding: 10px 20px 10px 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow-soft);
}

.play-btn:hover {
  transform: translateY(-2px);
}

.play-btn svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.play-btn .play-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}

.play-btn .play-btn-text small {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
}

.play-btn .play-btn-text strong {
  font-size: 1.08rem;
  font-weight: 600;
}

.header-cta {
  display: none;
}

@media (min-width: 720px) {
  .header-cta {
    display: inline-flex;
    padding: 6px 14px 6px 12px;
    border-radius: 11px;
    box-shadow: none;
  }

  .header-cta svg {
    width: 20px;
    height: 20px;
  }

  .header-cta .play-btn-text small {
    display: none;
  }

  .header-cta .play-btn-text strong {
    font-size: 0.9rem;
  }
}

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

.hero {
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, var(--accent-soft) 0%, transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--hairline);
}

.hero .container {
  display: grid;
  gap: 48px;
  padding-top: 64px;
  padding-bottom: 64px;
  align-items: center;
}

@media (min-width: 880px) {
  .hero .container {
    grid-template-columns: 1.1fr 0.9fr;
    padding-top: 88px;
    padding-bottom: 88px;
  }
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.3rem, 5.2vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.hero .lede {
  font-size: 1.12rem;
  color: var(--ink-2);
  max-width: 34em;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
}

.hero-chips li {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--surface-raised);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-chips svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.hero-shot {
  justify-self: center;
  width: min(380px, 82vw);
  border-radius: 28px;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
  border: 1px solid var(--hairline);
}

/* ---------- Sections ---------- */

section {
  padding: 72px 0;
}

.section-head {
  max-width: 620px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--ink-2);
  font-size: 1.05rem;
}

/* ---------- Features ---------- */

.features-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.feature {
  background: var(--surface-raised);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 28px;
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature p {
  color: var(--ink-2);
  font-size: 0.97rem;
}

/* ---------- Light & fast band ---------- */

.band {
  background: var(--surface-variant);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.band-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  text-align: center;
}

.band-item strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.band-item span {
  color: var(--ink-2);
  font-size: 0.95rem;
}

/* ---------- Gallery ---------- */

.gallery-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 24px 28px;
  max-width: 1100px;
  margin: 0 auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.gallery-track img {
  width: min(300px, 74vw);
  flex: none;
  scroll-snap-align: center;
  border-radius: 22px;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-soft);
}

/* ---------- Languages ---------- */

.langs {
  text-align: center;
}

.lang-chips {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  list-style: none;
}

.lang-chips li {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  background: var(--surface-raised);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 10px 26px;
}

/* ---------- Final CTA ---------- */

.final-cta .container {
  background:
    radial-gradient(700px 300px at 50% 120%, var(--accent-soft) 0%, transparent 70%),
    var(--surface-raised);
  border: 1px solid var(--hairline);
  border-radius: 28px;
  padding: 64px 32px;
  text-align: center;
}

.final-cta h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
  max-width: 18em;
  margin: 0 auto 12px;
}

.final-cta p {
  color: var(--ink-2);
  margin-bottom: 32px;
}

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

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 40px 0 56px;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.site-footer img {
  width: 36px;
  height: 36px;
  margin-bottom: 4px;
}

.site-footer p {
  color: var(--ink-2);
  font-size: 0.88rem;
  max-width: 44em;
}

.site-footer .copyright {
  font-size: 0.8rem;
  color: var(--ink-2);
  opacity: 0.75;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .play-btn {
    transition: none;
  }
}
