@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,600;0,9..144,700;1,9..144,600;1,9..144,700&family=Nunito+Sans:ital,opsz,wght@0,6..12,400;0,6..12,600;1,6..12,400&display=swap");

:root {
  --teal: #12403c;
  --cream: #f5efe3;
  --gold: #c89b3d;
  --sage: #7a8a7a;
  --shell: #fbf8f1;
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
  --pad: clamp(88px, 9vw, 128px);
  --wrap: min(1120px, calc(100% - 48px));
  --hair: 1px solid var(--gold);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--teal);
  background: var(--shell);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1rem;
}

ul.prose-list {
  margin: 0 0 1.25rem;
  padding-left: 1.15rem;
}

ul.prose-list li {
  margin-bottom: 0.45rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--gold);
  color: var(--teal);
  padding: 0.6rem 1rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.surface-teal {
  background: var(--teal);
  color: var(--shell);
}

.surface-cream {
  background: var(--cream);
  color: var(--teal);
}

.surface-shell {
  background: var(--shell);
  color: var(--teal);
}

.surface-gold {
  background: var(--gold);
  color: var(--teal);
}

.band {
  padding-block: var(--pad);
}

.band-tight {
  padding-block: clamp(48px, 6vw, 80px);
}

.kicker,
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.85rem;
}

.lede {
  font-size: 1.125rem;
  max-width: 42rem;
}

.italic-gold {
  font-style: italic;
  font-weight: 600;
  color: var(--gold);
}

.hairline {
  border: 0;
  border-top: var(--hair);
  margin: 1.5rem 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-primary,
.surface-gold.btn {
  background: var(--gold);
  color: var(--teal);
}

.btn-primary:hover {
  background: #d4ad55;
}

.btn-secondary {
  background: transparent;
  color: currentColor;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.35rem 0 0;
}

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--teal);
  color: var(--shell);
  border-bottom: var(--hair);
}

.nav-bar {
  width: var(--wrap);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 600;
}

.mono {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: var(--hair);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
}

.brand-name {
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--shell);
  border: var(--hair);
  min-height: 44px;
  padding: 0.4rem 0.8rem;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.nav-list a[aria-current="page"] {
  color: var(--gold);
  text-decoration: underline;
}

/* Hero — Ventana al Río */
.hero-ventana {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 42%);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  min-height: 100vh;
  padding: clamp(32px, 5vw, 64px) 0;
  width: min(1280px, calc(100% - 40px));
  margin-inline: auto;
}

.hero-brand-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: clamp(48px, 12vh, 120px);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-brand-row .mono {
  width: 32px;
  height: 32px;
  font-size: 0.75rem;
}

.hero-ventana h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  margin: 0 0 1rem;
  font-weight: 700;
}

.hero-sub {
  max-width: 34rem;
  font-size: 1.08rem;
  margin-bottom: 0.4rem;
}

.trust-strip {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: var(--hair);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero-pane {
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-mat {
  margin: 0;
  padding: 10px;
  border: var(--hair);
  background: var(--shell);
  box-shadow: 0 18px 40px rgba(18, 64, 60, 0.12);
}

.photo-mat img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.hero-pane .photo-mat img {
  aspect-ratio: 3 / 4;
  max-height: 78vh;
  object-fit: cover;
}

/* Console / press-room */
.console-panel {
  border: var(--hair);
  padding: clamp(24px, 4vw, 40px);
  background: transparent;
}

.console-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: var(--hair);
  padding-bottom: 0.85rem;
  margin-bottom: 1.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}

.chip {
  display: inline-block;
  border: var(--hair);
  padding: 0.28rem 0.7rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
}

.console-brief h3 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.console-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.console-card {
  border: var(--hair);
  padding: 1.25rem 1.15rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.console-card h2,
.console-card h3 {
  font-size: 1.28rem;
  margin: 0;
}

.console-num {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.gold-strip {
  background: var(--gold);
  color: var(--teal);
  padding: 1.1rem clamp(24px, 5vw, 64px);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  text-align: center;
}

/* Split editorial 60/40 */
.split-editorial {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.split-editorial.is-flip {
  grid-template-columns: 2fr 3fr;
}

.split-editorial .photo-mat img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* Portrait mosaic */
.portrait-mosaic {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
}

.portrait-mosaic .tile {
  margin: 0;
  padding: 8px;
  border: var(--hair);
  background: var(--shell);
  overflow: hidden;
}

.portrait-mosaic .tile:first-child {
  grid-row: 1 / 3;
}

.portrait-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

.portrait-mosaic .tile:first-child img {
  aspect-ratio: 3 / 5;
  min-height: 100%;
}

.tile figcaption {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  padding-top: 0.45rem;
  color: var(--teal);
}

.surface-teal .tile figcaption {
  color: var(--shell);
}

.bio-chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Case notes */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.note-card {
  border: var(--hair);
  padding: 1.2rem;
}

.note-card h3 {
  font-size: 1.15rem;
  margin: 0.4rem 0 0.6rem;
}

/* Contact two-col */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
}

.map-frame {
  min-height: 440px;
  height: 100%;
  width: 100%;
  border: var(--hair);
  overflow: hidden;
  background: var(--cream);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 440px;
  border: 0;
  filter: brightness(0.94) saturate(0.9) hue-rotate(-6deg);
}

.contact-aside .photo-mat {
  margin-top: 1.25rem;
  max-width: 280px;
}

.contact-aside .photo-mat img {
  aspect-ratio: 5 / 4;
}

/* Forms */
.form-stack {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  font: inherit;
  font-weight: 400;
  color: var(--teal);
  background: var(--shell);
  border: var(--hair);
  padding: 0.7rem 0.85rem;
  border-radius: 2px;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-weight: 400;
  font-size: 0.92rem;
}

.consent input {
  margin-top: 0.3rem;
}

.hp,
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert {
  border: var(--hair);
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}

.alert-success {
  background: var(--cream);
  color: var(--teal);
}

.alert-error {
  background: var(--teal);
  color: var(--shell);
}

.alert-wait {
  background: var(--cream);
  color: var(--teal);
  border-color: var(--gold, #c89b3d);
}

.field-error {
  color: #8a2a2a;
  font-size: 0.85rem;
  font-weight: 600;
}

.is-invalid input,
.is-invalid textarea {
  outline: 2px solid #8a2a2a;
}

/* FAQ */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.faq-jump {
  position: sticky;
  top: 96px;
  border-left: var(--hair);
  padding-left: 1rem;
}

.faq-jump a {
  display: block;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.faq-item {
  border: var(--hair);
  padding: 0;
  margin-bottom: 0.85rem;
  background: transparent;
}

.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  padding: 1rem 1.15rem;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item .faq-body {
  padding: 0 1.15rem 1.15rem;
}

.faq-photo {
  margin: 0 0 1.5rem;
  max-width: 420px;
}

/* Legal prose */
.legal-prose h2 {
  font-size: 1.45rem;
  margin: 2rem 0 0.8rem;
}

.legal-prose h3 {
  font-size: 1.15rem;
  margin: 1.4rem 0 0.55rem;
}

.disclaimer {
  border: var(--hair);
  padding: 1.1rem 1.2rem;
  font-size: 0.92rem;
}

.cta-band h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin: 0 0 0.75rem;
}

/* Footer */
.site-footer {
  background: var(--teal);
  color: var(--shell);
  padding: clamp(48px, 6vw, 80px) 0 2rem;
  border-top: var(--hair);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer a {
  text-decoration: none;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.footer-meta {
  border-top: var(--hair);
  padding-top: 1.2rem;
  font-size: 0.82rem;
  color: var(--cream);
}

.footer-disclaimer {
  margin-top: 1rem;
  font-size: 0.8rem;
  max-width: 70rem;
  opacity: 0.92;
}

/* Cookie banner — visible at rest */
.cookie-banner {
  position: sticky;
  bottom: 0;
  z-index: 50;
  background: var(--cream);
  color: var(--teal);
  border-top: var(--hair);
  padding: 1rem 0;
}

.cookie-banner.is-dismissed {
  display: none;
}

.cookie-inner {
  width: var(--wrap);
  margin-inline: auto;
}

.cookie-inner h2 {
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.cookie-panel {
  margin-top: 0.85rem;
  border: var(--hair);
  padding: 0.85rem;
  display: grid;
  gap: 0.5rem;
}

.cookie-panel[hidden] {
  display: none;
}

/* Reveal — only when .js is present */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal,
  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .hero-ventana {
    grid-template-columns: 1fr;
    min-height: 82vh;
    padding-top: 1.5rem;
  }

  .hero-brand-row {
    margin-bottom: 1.5rem;
  }

  .hero-pane .photo-mat img {
    max-height: 52vh;
    aspect-ratio: 4 / 3;
  }

  .split-editorial,
  .split-editorial.is-flip,
  .contact-grid,
  .faq-layout,
  .console-grid,
  .notes-grid,
  .footer-grid,
  .bio-chips {
    grid-template-columns: 1fr;
  }

  .portrait-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .portrait-mosaic .tile:first-child {
    grid-row: auto;
  }

  .faq-jump {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    border-left: 0;
    padding-left: 0;
    border-bottom: var(--hair);
    padding-bottom: 1rem;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    display: none;
  }

  .nav-list.is-open,
  body.nav-open .site-nav {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    background: var(--teal);
    border-bottom: var(--hair);
    padding: 1rem 24px 1.25rem;
  }

  .nav-list.is-open {
    display: grid;
    gap: 0.75rem;
  }

  .site-header {
    position: sticky;
  }

  .nav-bar {
    position: relative;
  }
}

@media (max-width: 600px) {
  :root {
    --wrap: min(1120px, calc(100% - 32px));
  }

  body {
    font-size: 1rem;
  }
}
