/* Montse López theme.
   Also loaded by Core iframe via Landing.embedCssUrl. */
:root {
  --paper: #f3eee6;
  --paper-2: #faf7f2;
  --ink: #1c1712;
  --muted: #5e554c;
  --line: #e2d8cb;
  --gold: #8a6430;
  --pine: #243832;
  --ember: #c45c38;
  --ok: #2f6b4f;
  --danger: #a33b2b;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Outfit", system-ui, sans-serif;
  --script: "Great Vibes", cursive;
  --header: 4.25rem;
  --wrap: 1080px;
  --gutter: 1.25rem;
  --radius: 14px;
  --space: 1.25rem;
  --section: clamp(3.5rem, 7vw, 5.5rem);
  --shadow: 0 18px 40px rgb(28 23 18 / 0.18);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  outline: 1px solid rgb(28 23 18 / 0.08);
  outline-offset: -1px;
}
a { color: var(--gold); text-underline-offset: 0.15em; }
a:hover { color: var(--ember); }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 0.9rem;
  z-index: 20;
}
.skip:focus { top: 0.6rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(var(--wrap), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.stack {
  display: grid;
  gap: var(--space);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 0.45rem;
  min-height: var(--header);
  padding: 0.55rem var(--gutter);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.wordmark {
  font-family: var(--script);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  font-weight: 400;
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}
.wordmark:hover { color: var(--ink); }
.nav-toggle {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.nav-toggle-bars {
  display: block;
  width: 1.25rem;
  height: 1.05rem;
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after,
.nav-toggle-bars span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 180ms ease, top 180ms ease, opacity 180ms ease;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; }
.nav-toggle-bars span { top: 50%; transform: translateY(-50%); display: block; }
.nav-toggle-bars::before { top: 0.1rem; }
.nav-toggle-bars::after { bottom: 0.1rem; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}
.site-nav {
  display: none;
  grid-column: 1 / -1;
  grid-row: 2;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  margin: 0 calc(-1 * var(--gutter));
  padding: 0.35rem var(--gutter) 0.85rem;
}
.site-nav.is-open { display: grid; }
.site-nav a {
  display: block;
  padding: 0.75rem 0.15rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.site-nav a:last-child { border-bottom: 0; }
.site-nav a[aria-current="page"] { color: var(--gold); }
.social {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}
.social a {
  display: grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}
.social a:hover {
  color: var(--gold);
  border-color: color-mix(in srgb, var(--gold) 45%, var(--line));
  background: #fff;
}
.social svg { width: 1.2rem; height: 1.2rem; fill: currentColor; }

.kicker {
  margin: 0 0 0.55rem;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0 0 0.85rem;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
h4 { font-size: 1.15rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0; }
.lede {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 40rem;
  text-wrap: pretty;
}
.prose {
  max-width: 42rem;
}
.legal {
  max-width: 42rem;
}
.legal h2 {
  margin-top: 2.2rem;
  font-size: 1.25rem;
}
.legal ul {
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}
.legal li { margin-bottom: 0.35rem; }
.legal-updated {
  margin: -0.35rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.story {
  max-width: none;
}
.story > :is(h1, h2, h3, h4, p, .story-cite, .story-pull, .story-close, .note) {
  max-width: 42rem;
}
.prose p, .story p {
  margin: 0 0 1.05rem;
  text-wrap: pretty;
}
.story h2, .story h3, .story h4 { margin-top: 2.4rem; }
.story h2:first-child, .story .story-chapter:first-child { margin-top: 0; }
.story-chapter {
  margin-top: 3.2rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--line);
  color: var(--pine);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}
.story-cite {
  margin: 0.4rem 0 1.4rem;
  color: var(--muted);
  font-style: italic;
}
.story-punch {
  margin: 2rem 0 0.85rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-style: italic;
  color: var(--pine);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn:hover { background: var(--pine); border-color: var(--pine); color: var(--paper); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
}
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--pine);
  border-color: var(--pine);
  color: var(--paper);
}
.btn-block { width: 100%; }
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.35rem;
}

/* Hero: one grid, same gutters as the rest of the site */
.hero {
  display: grid;
  gap: 0;
  padding: 0;
}
.hero-copy {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  display: grid;
  align-content: center;
  gap: 0.15rem;
}
.hero-visual {
  position: relative;
  display: grid;
  place-items: end center;
  min-height: 30rem;
  padding: 2rem var(--gutter) 2.4rem;
  background:
    linear-gradient(180deg, rgb(243 238 230 / 0.1), rgb(28 23 18 / 0.22)),
    url("../img/mountain.jpg") center 28% / cover no-repeat;
}
.cover {
  width: min(520px, 92%);
  border-radius: 4px;
  box-shadow: var(--shadow);
  transform: none;
}
.publisher {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.publisher img {
  width: 8.5rem;
  height: auto;
  mix-blend-mode: multiply;
  outline: none;
}

.section { padding: var(--section) 0; }
.section.alt { background: var(--paper-2); }
.section.pine {
  background: var(--pine);
  color: #f6f1e8;
}
.section.pine a { color: #f0d7a8; }
.section.pine .btn {
  background: #f6f1e8;
  color: var(--ink);
  border-color: #f6f1e8;
}
.section.pine .btn:hover { background: #fff; }

.page-hero { padding: clamp(2.4rem, 5vw, 3.6rem) 0 0.5rem; }

/* Sobre mí — watercolor chapter banners (like original WP) */
.story-banner {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(18rem, 48vw, 28rem);
  padding: clamp(3.5rem, 9vw, 6.5rem) var(--gutter);
  background-color: #3a2f28;
  background-image: var(--wash);
  background-size: cover;
  background-position: center;
  text-align: center;
  overflow: hidden;
}
.story-banner:first-of-type {
  min-height: clamp(20rem, 56vw, 32rem);
}
.story-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgb(28 23 18 / 0.1) 0%,
    rgb(28 23 18 / 0.18) 55%,
    rgb(28 23 18 / 0.22) 100%
  );
  pointer-events: none;
}
.story-banner.is-photo::before {
  background: linear-gradient(
    180deg,
    rgb(28 23 18 / 0.12) 0%,
    rgb(28 23 18 / 0.28) 100%
  );
}
.story-banner .wrap {
  position: relative;
  z-index: 1;
  width: min(42rem, 100%);
}
.story-banner-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.65rem, 4.2vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.25), 0 4px 28px rgb(0 0 0 / 0.35);
}
.story-banner.is-quote {
  min-height: clamp(20rem, 52vw, 30rem);
  padding: clamp(4rem, 10vw, 7rem) var(--gutter);
}
.story-banner.is-quote.is-photo {
  min-height: clamp(26rem, 72vw, 42rem);
  padding: clamp(5.5rem, 14vw, 9rem) var(--gutter);
  background-position: center 50%;
}
.story-banner.is-quote .wrap {
  width: min(40rem, 100%);
}
.story-banner-quote {
  margin: 0;
  padding: 0;
  border: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  line-height: 1.4;
  font-style: italic;
  color: #fff;
  text-wrap: pretty;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 6px 32px rgb(0 0 0 / 0.4);
}
.story-banner-quote p { margin: 0; }
.story-banner-signature {
  display: block;
  width: min(14rem, 55%);
  height: auto;
  margin: 1.35rem auto 0.15rem;
  outline: none;
}
.story-banner-cite {
  display: block;
  margin-top: 1.1rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgb(255 255 255 / 0.88);
}
.story-section {
  padding-top: clamp(2.2rem, 4vw, 3.2rem);
}
.story-section .story > :first-child {
  margin-top: 0;
}

.offers {
  display: grid;
  gap: var(--space);
  margin-top: 0.4rem;
}
.offer {
  display: grid;
  gap: 0.45rem;
  padding: 1.35rem 1.4rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: transform 160ms ease, border-color 160ms ease;
}
.offer strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 560;
}
.offer span { color: var(--muted); }
.offer.primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.offer.primary span { color: #d9cbb8; }
.offer:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }

.pull-line {
  margin: 1.6rem 0 0;
  max-width: 36rem;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--pine);
  font-style: italic;
}

.service-plans {
  display: grid;
  gap: clamp(2rem, 4vw, 2.75rem);
}
.service-plan {
  display: grid;
  gap: 0.85rem;
  padding: clamp(1.5rem, 3vw, 2rem) 0;
  border-top: 1px solid var(--line);
}
.service-plan:last-child { border-bottom: 1px solid var(--line); padding-bottom: clamp(1.8rem, 3.5vw, 2.4rem); }
.service-plan > :last-child { margin-bottom: 0; }
.service-plan h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2rem);
}
.service-plan p { margin: 0; max-width: 40rem; }
.service-plan-num {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold);
}
.service-plan.is-premium .service-plan-tag {
  color: var(--ember);
}
.service-plan-includes {
  margin-top: 0.4rem !important;
  font-weight: 600;
}
.service-plan ul {
  margin: 0;
  padding-left: 1.15rem;
  max-width: 40rem;
  color: var(--muted);
}
.service-plan li { margin: 0.35rem 0; }
.service-plan-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem 0.85rem;
  margin-top: 0.35rem !important;
}
.service-plan-price strong {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 560;
  color: var(--ink);
}
.service-plan-price span {
  color: var(--muted);
  font-size: 0.95rem;
}
.service-plan .btn { justify-self: start; margin-top: 0.35rem; }

@media (min-width: 900px) {
  .service-plans {
    grid-template-columns: 1fr 1fr;
    gap: 0 3rem;
    align-items: start;
  }
  .service-plan {
    border-top: 0;
    border-bottom: 0;
    padding: 0;
  }
  .service-plan + .service-plan {
    border-left: 1px solid var(--line);
    padding-left: 3rem;
  }
  .service-plan:last-child { padding-bottom: 0; }
}

.grid-2, .grid-3, .split, .contact-grid, .footer-grid {
  display: grid;
  gap: var(--space);
}
.surface, .card, .embed-shell, .quote.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card {
  padding: 1.2rem 1.25rem 1.3rem;
}
.card p { margin: 0; color: var(--muted); }
.quote { margin: 0; }
.quote p {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--ink);
}
.quote footer { color: var(--muted); font-size: 0.92rem; }
.stars { color: var(--gold); letter-spacing: 0.12em; font-size: 0.85rem; }

.split { align-items: center; }
.portrait {
  width: min(100%, 420px);
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 4 / 5;
}
.note {
  margin: 1rem 0 0;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--gold);
  background: color-mix(in srgb, var(--gold) 8%, var(--paper-2));
  border-radius: 0 var(--radius) var(--radius) 0;
}
.embed-shell {
  padding: 0.55rem;
  min-height: 18rem;
}
.embed-shell [data-core-embed] iframe {
  width: 100%;
  border: 0;
}

/* Form fields (iframe + theme via Landing.embedCssUrl) */
.embed-form {
  font-family: var(--sans);
  color: var(--ink);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.field label {
  font-weight: 600;
  font-size: 0.9rem;
}
.req { color: var(--ember); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 4px);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
.field textarea {
  min-height: 7rem;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--gold) 55%, transparent);
  outline-offset: 1px;
  border-color: var(--gold);
}
.field-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.88rem;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid var(--line);
  font-family: var(--sans);
}
.form-status[data-state="ok"] {
  background: color-mix(in srgb, var(--ok) 14%, var(--paper-2));
  border-color: var(--ok);
}
.form-status[data-state="error"] {
  background: color-mix(in srgb, var(--danger) 12%, var(--paper-2));
  border-color: var(--danger);
}

.fine { color: var(--muted); font-size: 0.92rem; }

.story-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 1.4rem 0 2rem;
  max-width: none;
}
.story-shot {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-2);
}
.story-shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.site-footer {
  padding: 2.4rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.1rem; }
.footer-nav a { color: var(--ink); text-decoration: none; }
.footer-nav a:hover { color: var(--gold); }

details.fold { border-top: 1px solid var(--line); }
details.fold:last-child { border-bottom: 1px solid var(--line); }
details.fold summary {
  cursor: pointer;
  padding: 1.05rem 0;
  font-weight: 600;
  letter-spacing: 0.03em;
  list-style: none;
}
details.fold summary::-webkit-details-marker { display: none; }
details.fold summary::after { content: "+"; float: right; color: var(--gold); }
details.fold[open] summary::after { content: "–"; }
details.fold .fold-body { padding: 0 0 1.15rem; color: var(--muted); }
details.fold .fold-body ul { padding-left: 1.1rem; }

@media (min-width: 700px) {
  .story-gallery { grid-template-columns: 1fr 1fr; }
  .story-gallery .story-shot:only-child,
  .story-gallery .story-shot:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto 1fr;
    column-gap: 1rem;
  }
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    position: static;
    justify-self: center;
    background: none;
    border: 0;
    margin: 0;
    padding: 0;
    gap: 0.15rem 1.05rem;
  }
  .site-nav a {
    border: 0;
    padding: 0.35rem 0;
    border-radius: 0;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0 1px;
    transition: background-size 180ms ease, color 180ms ease;
  }
  .site-nav a:hover {
    background-size: 100% 1px;
    color: var(--ink);
  }
  .site-nav a[aria-current="page"] {
    color: var(--gold);
    background-size: 100% 1px;
  }
  .social {
    grid-column: 3;
    grid-row: 1;
  }

  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    min-height: calc(100svh - var(--header));
    align-items: stretch;
  }
  .hero-copy {
    padding: 3rem var(--gutter) 3rem;
    max-width: none;
    width: auto;
    margin: 0;
  }
  .hero-copy.wrap {
    width: auto;
    max-width: none;
    padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
    padding-right: 2rem;
  }
  .hero-visual {
    min-height: 100%;
    place-items: center;
    padding: 2.75rem;
  }
  .cover { width: min(560px, 88%); }

  .offers,
  .grid-2,
  .split,
  .contact-grid,
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { align-items: start; }

  .story > :is(h1, h2, h3, h4, p, .story-cite, .story-pull, .story-close, .note) { max-width: 46rem; }
  .story-gallery {
    width: 100%;
    max-width: 52rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .offer, .btn, .site-nav a, .nav-toggle-bars::before, .nav-toggle-bars::after, .nav-toggle-bars span {
    transition: none;
  }
}
