/* Español en Portobello: the landing page.
   Same palette as the printed materials (templates/print.css); Fraunces for headings, Nunito for text. */

:root {
  --terracotta: #C8553D;      /* accents, large text only */
  --terracotta-deep: #A8432F; /* buttons and links: passes contrast with cream and white */
  --saffron: #F2A541;
  --saffron-tint: #FCEBD0;
  --navy: #1F2A44;
  --navy-soft: #4A5468;
  --cream: #FFF8EE;
  --sand: #F7EBDA;
  --olive: #6A8D73;
  --line: #EADBC6;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 14px;
  --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--terracotta-deep); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); font-weight: 400; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 400; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
em { font-style: italic; }

.kicker {
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--terracotta-deep); margin-bottom: .75em;
}
.kicker::before { content: ""; display: inline-block; width: 28px; height: 2px; background: var(--saffron); vertical-align: middle; margin-right: 10px; }
.muted { color: var(--navy-soft); }

/* Buttons */
.btn {
  display: inline-block; padding: .85em 1.6em; border-radius: 999px; border: 2px solid var(--terracotta-deep);
  background: var(--terracotta-deep); color: #fff; font-family: var(--sans); font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-small { padding: .5em 1.1em; font-size: .9rem; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 248, 238, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.mark {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--terracotta); color: #fff; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1;
}
.brand-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; margin: 0; }
.brand-name em { color: var(--terracotta); font-weight: 400; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--navy); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--terracotta-deep); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 88px 0 72px;
  background:
    radial-gradient(circle at 88% 18%, rgba(242, 165, 65, .28) 0, rgba(242, 165, 65, 0) 34%),
    radial-gradient(circle at 4% 100%, rgba(200, 85, 61, .10) 0, rgba(200, 85, 61, 0) 40%);
}
.hero::after { /* a quiet azulejo-style pattern in the corner */
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 340px; height: 340px; opacity: .5;
  background-image: url("tile.svg"); background-size: 85px 85px; pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at 100% 100%, #000 0, transparent 70%);
          mask-image: radial-gradient(circle at 100% 100%, #000 0, transparent 70%);
}
.hero-inner { position: relative; z-index: 1; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 7px 16px 7px 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  font-size: .9rem; font-weight: 700; color: var(--navy); box-shadow: 0 6px 18px -12px rgba(31, 42, 68, .4);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--olive); box-shadow: 0 0 0 4px rgba(106, 141, 115, .2); }
.eyebrow { font-weight: 700; color: var(--olive); letter-spacing: .02em; margin-bottom: 1.2em; }
.hero h1 { max-width: 15ch; }
.accent { color: var(--terracotta); font-style: italic; }
.lede { font-size: 1.2rem; max-width: 40em; color: var(--navy-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 52px; }
.facts {
  list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 760px;
}
.facts strong { display: block; font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--navy); line-height: 1.2; }
.facts span { font-size: .92rem; color: var(--navy-soft); }

/* Sections */
.section { padding: 88px 0; }
.section-tint { background: var(--sand); }
.section-dark { background: var(--navy); color: var(--cream); }
.section-dark h2 { color: #fff; }
.section-dark .kicker { color: var(--saffron); }

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 14px 0 14px 40px; border-bottom: 1px solid var(--line); }
.ticks li:first-child { padding-top: 0; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 19px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--olive) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.ticks li:first-child::before { top: 5px; }

/* Outcomes */
.outcomes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.outcome {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px;
  display: flex; flex-direction: column;
}
.phrase { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--terracotta-deep); line-height: 1.35; min-height: 4.1em; }
.outcome h3 { font-size: 1.1rem; margin-top: auto; padding-top: 12px; border-top: 2px solid var(--saffron); }
.outcome p:last-child { margin: 0; color: var(--navy-soft); font-size: .98rem; }

/* Approach */
.approach { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 44px; margin-top: 40px; }
.approach h3 { display: flex; align-items: baseline; gap: 12px; }
.approach p { color: var(--navy-soft); margin: 0; }
.num { font-family: var(--serif); font-size: 1.6rem; color: var(--terracotta); font-weight: 400; font-style: italic; }

/* Weeks */
.weeks { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.weeks li { display: grid; grid-template-columns: 44px 1fr; grid-template-areas: "wk wt" "wk wd"; padding: 18px 0; border-bottom: 1px solid rgba(255, 248, 238, .16); }
.wk { grid-area: wk; font-family: var(--serif); color: var(--saffron); font-size: 1.05rem; padding-top: 4px; }
.wt { grid-area: wt; font-family: var(--serif); font-size: 1.45rem; color: #fff; line-height: 1.25; }
.wd { grid-area: wd; color: rgba(255, 248, 238, .78); }
.note { margin: 32px 0 0; color: rgba(255, 248, 238, .78); font-style: italic; }

/* Teacher */
.teacher { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: center; }
.portrait {
  aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: var(--sand) url("tile.svg") center / 70px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 10px var(--sand);
}
.portrait span {
  width: 54%; aspect-ratio: 1; border-radius: 50%; background: var(--cream); color: var(--terracotta);
  display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 5rem; line-height: 1;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

/* Details */
.details { margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.details div { background: var(--cream); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.details dt { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; margin-bottom: 6px; }
.details dd { margin: 0; color: var(--navy-soft); font-size: .98rem; }

/* Register */
.register { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.register-intro { position: sticky; top: 110px; }
.signup {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px;
  box-shadow: 0 18px 40px -28px rgba(31, 42, 68, .35);
}
.field { margin: 0 0 20px; border: 0; padding: 0; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 6px; padding: 0; }
.optional { font-weight: 400; color: var(--navy-soft); font-size: .88rem; margin-left: 6px; }
input[type=text], input[type=email], select, textarea {
  width: 100%; font: inherit; color: var(--navy); background: var(--cream);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 14px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(242, 165, 65, .35); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.checks label { font-weight: 400; display: flex; align-items: center; gap: 10px; margin: 0; cursor: pointer; }
.checks input { width: 18px; height: 18px; accent-color: var(--terracotta-deep); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { font-size: .9rem; color: var(--navy-soft); }
.form-status { margin: 14px 0 0; font-weight: 600; min-height: 1.4em; }
.form-status.error { color: var(--terracotta-deep); }
.thanks { text-align: center; padding: 24px 8px; }
.thanks .mark { width: 56px; height: 56px; font-size: 2rem; margin-bottom: 16px; }

/* FAQ */
.faq { max-width: 820px; }
.faq h2 { margin-bottom: 28px; }
details { border-bottom: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-family: var(--serif); font-size: 1.2rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-size: 1.6rem; color: var(--terracotta); transition: transform .2s;
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { color: var(--navy-soft); margin: 0 0 20px; }

/* Footer */
.footer { padding: 48px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; align-items: baseline; }
.footer p { margin: 0; color: var(--navy-soft); font-size: .95rem; }
.footer .brand-name { color: var(--navy); }

/* Plain pages (privacy, thanks) */
.page { padding: 72px 0 96px; }
.page .wrap { max-width: 760px; }
.page h2 { font-size: 1.5rem; margin-top: 1.6em; }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: .4em; }

/* Smaller screens */
@media (max-width: 960px) {
  .outcomes, .details { grid-template-columns: 1fr 1fr; }
  .phrase { min-height: 2.8em; }
  .checks { grid-template-columns: 1fr; }
  .approach { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .nav a:not(.btn) { display: none; }
  .hero { padding: 56px 0 48px; }
  .hero::after { width: 220px; height: 220px; }
  .facts { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .section { padding: 64px 0; }
  .split, .register, .teacher { grid-template-columns: 1fr; gap: 32px; }
  .register-intro { position: static; }
  .teacher .portrait { width: 200px; }
  .approach, .weeks { grid-template-columns: 1fr; }
  .approach { gap: 28px; }
  .signup { padding: 24px 20px; }
}
@media (max-width: 520px) {
  .outcomes, .details { grid-template-columns: 1fr; }
  .phrase { min-height: 0; }
  .checks { grid-template-columns: 1fr; }
  .wrap { padding: 0 18px; }
  .brand { gap: 8px; }
  .brand-name { font-size: 1rem; white-space: nowrap; }
  .mark { width: 30px; height: 30px; font-size: 1.15rem; }
  .btn-small { white-space: nowrap; padding: .45em .9em; font-size: .82rem; }
  .wide-only { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
