/* =========================================================
   Parque Nacional Iguazú · CSS mobile-first limpio
   Paleta principal: #A1A149 · secundaria: #EEBA40 · header/footer: #80803B
   ========================================================= */

:root {
  color-scheme: light;

  --primary: #A1A149;
  --primary-dark: #70712f;
  --primary-soft: #e8e7c5;
  --secondary: #EEBA40;
  --secondary-dark: #c89216;
  --chrome: #80803B;

  --ink: #17180c;
  --ink-soft: #3f421e;
  --muted: #676849;
  --paper: #fbf5e4;
  --paper-strong: #fffaf0;
  --surface: #ffffff;
  --surface-soft: #f6eed8;
  --border: rgba(23, 24, 12, 0.14);
  --border-strong: rgba(23, 24, 12, 0.24);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1160px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --radius-xl: 42px;
  --radius-pill: 999px;

  --shadow-soft: 0 22px 64px rgba(23, 24, 12, 0.08);
  --shadow-panel: 0 30px 90px rgba(23, 24, 12, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.72;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open,
body:has(#nav-toggle-state:checked) {
  overflow: hidden;
}

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

img {
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

p,
h1,
h2,
h3,
figure {
  margin: 0;
}

ul,
ol {
  margin-top: 0;
}

::selection {
  color: var(--ink);
  background: var(--secondary);
}

:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 4px;
}

.container {
  width: min(100% - 1.5rem, var(--container));
  margin-inline: auto;
}

.content-narrow {
  max-width: 860px;
}

.page-main {
  position: relative;
  isolation: isolate;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-pill);
  color: var(--ink);
  background: var(--secondary);
  font-weight: 850;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.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;
}

/* Header y navegación */
.nav-toggle-state {
  position: fixed;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.site-header {
  position: sticky;
  z-index: 160;
  top: 0;
  color: var(--ink);
  background: var(--chrome);
  border-bottom: 1px solid rgba(23, 24, 12, 0.12);
}

.top-notice {
  padding: 0.62rem 1rem;
  color: var(--ink);
  background: rgba(238, 186, 64, 0.34);
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.top-notice strong {
  font-weight: 900;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
  padding-block: 0.7rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 0.8rem;
  color: var(--ink);
  text-decoration: none;
}

.site-brand-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 2px solid rgba(23, 24, 12, 0.42);
  border-radius: 50%;
  color: var(--ink);
  background: var(--secondary);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.06em;
}

.site-brand-text {
  display: grid;
  min-width: 0;
  gap: 0.08rem;
}

.site-brand-title {
  max-width: 52vw;
  overflow: hidden;
  color: var(--ink);
  font-weight: 900;
  font-size: 1.03rem;
  line-height: 1.05;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.site-brand-subtitle {
  color: rgba(23, 24, 12, 0.75);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-toggle {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(23, 24, 12, 0.18);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.65);
  box-shadow: none;
  cursor: pointer;
}

.nav-toggle-lines {
  position: relative;
  display: block;
  width: 22px;
  height: 15px;
}

.nav-toggle-lines span,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  border-radius: 8px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease, top 180ms ease;
  content: "";
}

.nav-toggle-lines::before {
  top: 0;
}

.nav-toggle-lines span {
  top: 6.5px;
}

.nav-toggle-lines::after {
  top: 13px;
}

body.nav-open .nav-toggle-lines::before,
body:has(#nav-toggle-state:checked) .nav-toggle-lines::before {
  top: 6.5px;
  transform: rotate(45deg);
}

body.nav-open .nav-toggle-lines span,
body:has(#nav-toggle-state:checked) .nav-toggle-lines span {
  opacity: 0;
}

body.nav-open .nav-toggle-lines::after,
body:has(#nav-toggle-state:checked) .nav-toggle-lines::after {
  top: 6.5px;
  transform: rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  z-index: 180;
  inset: 0;
  display: block;
  background: rgba(23, 24, 12, 0.58);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.site-nav {
  position: fixed;
  z-index: 190;
  right: max(0.9rem, env(safe-area-inset-right));
  bottom: max(0.9rem, env(safe-area-inset-bottom));
  left: max(0.9rem, env(safe-area-inset-left));
  display: grid;
  gap: 0.55rem;
  max-height: min(78svh, 640px);
  padding: 1rem;
  overflow-y: auto;
  color: var(--ink);
  background: var(--paper-strong);
  border: 1px solid rgba(23, 24, 12, 0.16);
  border-radius: 30px 30px 22px 22px;
  box-shadow: var(--shadow-panel);
  opacity: 0;
  pointer-events: none;
  transform: translateY(105%) scale(0.985);
  transform-origin: bottom center;
  visibility: hidden;
  transition: transform 220ms ease, opacity 160ms ease, visibility 160ms ease;
  -webkit-overflow-scrolling: touch;
}

#nav-toggle-state:checked ~ .nav-backdrop,
body.nav-open .nav-backdrop {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

#nav-toggle-state:checked ~ .site-nav,
body.nav-open .site-nav {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.site-nav a,
.site-nav-desktop a {
  text-decoration: none;
}

.site-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0.9rem 1.15rem;
  border: 1px solid rgba(23, 24, 12, 0.10);
  border-radius: 20px;
  color: var(--ink);
  background: rgba(161, 161, 73, 0.09);
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  background: rgba(238, 186, 64, 0.45);
  border-color: rgba(23, 24, 12, 0.16);
}

.site-nav .nav-cta,
.site-nav-desktop .nav-cta {
  color: var(--ink);
  background: var(--secondary);
  border-color: rgba(23, 24, 12, 0.18);
  font-weight: 950;
}

.whatsapp-icon-wrap {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 0.45rem;
  color: currentColor;
}

.whatsapp-icon {
  width: 22px;
  height: 22px;
}

.site-nav-desktop {
  display: none;
}

/* Botones */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  padding: 0.95rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--ink);
  background: var(--secondary);
  border-color: rgba(23, 24, 12, 0.16);
}

.button-primary:hover {
  background: #f2c85d;
}

.button-secondary {
  color: var(--surface);
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.42);
}

.button-secondary:hover {
  color: var(--ink);
  background: var(--surface);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(780px, 94svh);
  overflow: hidden;
  color: #fff;
  background: linear-gradient(140deg, #202111 0%, #4f5124 100%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #303114;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 19, 7, 0.88), rgba(18, 19, 7, 0.44) 58%, rgba(18, 19, 7, 0.30)),
    linear-gradient(0deg, rgba(18, 19, 7, 0.50), transparent 34%);
  content: "";
}

.hero-inner {
  display: flex;
  align-items: flex-end;
  min-height: min(780px, 94svh);
  padding-block: clamp(6.2rem, 18vw, 9rem) clamp(3rem, 12vw, 6rem);
}

.hero-content {
  display: grid;
  max-width: 920px;
  gap: clamp(1.05rem, 4vw, 1.4rem);
}

.hero-badge,
.eyebrow,
.official-ticket-cta__eyebrow,
.commercial-cta__eyebrow {
  width: fit-content;
  color: var(--secondary-dark);
  border-bottom: 2px solid currentColor;
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  line-height: 1.25;
  text-transform: uppercase;
}

.hero-badge {
  color: var(--secondary);
}

.hero-title,
.page-title,
.section-title,
.article-content h2,
.card-title,
.hero-panel-title,
.quick-planner-title,
.official-ticket-cta__title,
.commercial-cta__title,
.timeline-card strong {
  font-family: var(--font-display);
  font-weight: 850;
  letter-spacing: -0.055em;
}

.hero-title {
  max-width: 930px;
  font-size: clamp(4rem, 18vw, 8.8rem);
  line-height: 0.88;
}

.hero-title span {
  color: var(--secondary);
}

.hero-lead {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.13rem, 4.2vw, 1.45rem);
  line-height: 1.58;
}

.hero-actions {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

/* Secciones */
.section {
  padding-block: clamp(3.25rem, 10vw, 6.8rem);
}

.section-compact {
  padding-block: clamp(1.8rem, 6vw, 3rem);
}

.first-after-hero {
  padding-top: clamp(2rem, 7vw, 4.5rem);
}

.section-header {
  display: grid;
  gap: 1rem;
  max-width: 840px;
  margin-bottom: clamp(1.7rem, 5.5vw, 3rem);
}

.section-title {
  max-width: 940px;
  font-size: clamp(2.35rem, 9.5vw, 5.1rem);
  line-height: 0.98;
  color: var(--ink);
}

.section-lead,
.article-content p,
.article-content li {
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 3.8vw, 1.24rem);
  line-height: 1.82;
}

.section-dark {
  color: var(--surface);
  background: var(--ink);
}

.section-dark .section-title,
.section-dark .section-lead {
  color: var(--surface);
}

.section-dark .eyebrow {
  color: var(--secondary);
}

/* Home */
.independent-notice,
.hero-panel,
.quick-planner,
.official-ticket-cta,
.commercial-cta,
.sidebar-card,
.table-wrap,
.faq-item,
.card,
.intro-stats,
.timeline-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.independent-notice {
  display: grid;
  gap: 0.45rem;
  padding: clamp(1.25rem, 5vw, 1.8rem);
  margin-bottom: clamp(1.6rem, 5vw, 2.4rem);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
}

.independent-notice strong {
  font-size: 0.85rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.independent-notice p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.hero-panel {
  padding: clamp(1.45rem, 6vw, 2.4rem);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.hero-panel-title {
  margin-bottom: 1.2rem;
  color: var(--ink);
  font-size: clamp(2rem, 7vw, 3.2rem);
  line-height: 1;
}

.hero-panel-grid,
.cards-grid,
.quick-planner-grid,
.timeline-grid {
  display: grid;
  gap: 1rem;
}

.hero-panel-link {
  display: grid;
  gap: 0.25rem;
  min-height: 112px;
  padding: 1.25rem;
  border: 1px solid rgba(23, 24, 12, 0.10);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: var(--surface-soft);
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.hero-panel-link:hover {
  background: var(--primary-soft);
  transform: translateY(-2px);
}

.hero-panel-link strong {
  font-size: 1.12rem;
  font-weight: 950;
  line-height: 1.2;
}

.hero-panel-link span {
  color: var(--muted);
  font-size: 0.98rem;
}

.intro-grid {
  display: grid;
  gap: clamp(1.5rem, 6vw, 3rem);
}

.intro-copy {
  display: grid;
  gap: 1rem;
}

.intro-stats {
  display: grid;
  gap: 0.8rem;
  padding: clamp(1.2rem, 5vw, 1.8rem);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.intro-stats article {
  display: grid;
  gap: 0.22rem;
  padding: 1.05rem;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.intro-stats strong {
  color: var(--primary-dark);
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 10vw, 3.6rem);
  font-weight: 850;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.intro-stats span {
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.45;
}

.section-history {
  background: #f6efd9;
}

.timeline-card {
  display: grid;
  gap: 0.65rem;
  padding: clamp(1.25rem, 5vw, 1.8rem);
  background: var(--surface);
}

.timeline-card strong {
  color: var(--primary-dark);
  font-size: clamp(3rem, 13vw, 5rem);
  line-height: 0.88;
}

.timeline-card h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.2;
}

.timeline-card p {
  color: var(--ink-soft);
  line-height: 1.65;
}

/* Cards */
.cards-grid {
  margin-top: 1.2rem;
}

.card {
  overflow: hidden;
  background: var(--surface);
  box-shadow: none;
}

.card-media {
  display: block;
  aspect-ratio: 16 / 10.5;
  overflow: hidden;
  background: var(--primary-soft);
  text-decoration: none;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.card:hover .card-media img {
  transform: scale(1.025);
}

.card-body {
  display: grid;
  gap: 0.8rem;
  padding: clamp(1.25rem, 5vw, 1.75rem);
}

.card-title {
  color: var(--ink);
  font-size: clamp(1.55rem, 6vw, 2.05rem);
  line-height: 1.04;
}

.card-text {
  color: var(--muted);
  line-height: 1.65;
}

.card-link {
  width: fit-content;
  color: var(--ink);
  border-bottom: 2px solid var(--secondary);
  font-weight: 900;
  text-decoration: none;
}

/* Páginas internas */
.page-hero {
  color: var(--surface);
  background:
    radial-gradient(circle at 84% 8%, rgba(238, 186, 64, 0.20), transparent 28rem),
    linear-gradient(135deg, #272915 0%, #4b4d23 100%);
}

.page-hero-inner {
  display: grid;
  gap: 1rem;
  padding-block: clamp(3.4rem, 12vw, 6.5rem) clamp(3rem, 10vw, 5.6rem);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
  font-weight: 750;
}

.breadcrumbs a {
  color: var(--secondary);
  text-decoration: none;
}

.page-title {
  max-width: 1020px;
  color: var(--surface);
  font-size: clamp(2.85rem, 11.5vw, 6.2rem);
  line-height: 0.93;
}

.page-lead {
  max-width: 830px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.1rem, 4vw, 1.35rem);
  line-height: 1.7;
}

.content-layout {
  display: grid;
  gap: clamp(2rem, 6vw, 4rem);
}

.article-content {
  display: grid;
  gap: clamp(1.8rem, 6vw, 3rem);
  min-width: 0;
}

.article-content figure {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--primary-soft);
}

.article-content figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.article-content a:not(.button):not(.card-link):not(.card-media) {
  color: var(--primary-dark);
  font-weight: 850;
}

.content-section {
  display: grid;
  gap: 0.95rem;
  padding-bottom: clamp(1.5rem, 5vw, 2.3rem);
  border-bottom: 1px solid var(--border);
}

.content-section h2 {
  position: relative;
  padding-bottom: 0.48rem;
  color: var(--ink);
  font-size: clamp(2rem, 7vw, 3.35rem);
  line-height: 1.02;
}

.content-section h2::after,
.quick-planner-title::after,
.article-content h2::after {
  display: block;
  width: 96px;
  height: 2px;
  margin-top: 0.65rem;
  background: var(--secondary);
  content: "";
}

.article-content ul {
  display: grid;
  gap: 0.55rem;
  padding-left: 1.2rem;
}

/* Información rápida */
.quick-planner {
  display: grid;
  gap: 1.05rem;
  padding: clamp(1.35rem, 6vw, 2rem);
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.quick-planner-title {
  color: var(--ink);
  font-size: clamp(1.85rem, 7vw, 3rem);
  line-height: 1.03;
}

.quick-planner-item {
  display: grid;
  gap: 0.25rem;
  padding: 1.1rem;
  border: 1px solid rgba(23, 24, 12, 0.10);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: #fff8e7;
}

.quick-planner-item strong {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-planner-item span {
  color: var(--ink-soft);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.45;
}

/* Tablas */
.table-wrap {
  overflow: hidden;
  color: var(--ink);
  background: transparent;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table thead {
  display: none;
}

.table tbody,
.table tr,
.table td {
  display: block;
}

.table tbody {
  display: grid;
  gap: 0.85rem;
}

.table tr {
  overflow: hidden;
  border: 1px solid rgba(23, 24, 12, 0.12);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.table td {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(23, 24, 12, 0.08);
  color: var(--ink-soft);
}

.table td:last-child {
  border-bottom: 0;
}

.table td::before {
  color: var(--ink);
  content: attr(data-label);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.table strong {
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 950;
}

/* CTAs */
.official-ticket-cta,
.commercial-cta {
  overflow: hidden;
  padding: clamp(1.45rem, 6vw, 2.3rem);
}

.official-ticket-cta {
  background: #fff4d1;
}

.commercial-cta {
  color: var(--ink);
  background: var(--primary);
  border-color: rgba(23, 24, 12, 0.16);
}

.official-ticket-cta__content,
.commercial-cta__content {
  display: grid;
  gap: 1rem;
}

.official-ticket-cta__title,
.commercial-cta__title {
  color: var(--ink);
  font-size: clamp(2.35rem, 9vw, 4.6rem);
  line-height: 0.98;
}

.official-ticket-cta__text,
.commercial-cta__text,
.commercial-cta__disclaimer {
  color: var(--ink-soft);
  font-size: clamp(1.06rem, 3.6vw, 1.22rem);
  line-height: 1.75;
}

.commercial-cta__eyebrow {
  color: var(--ink);
}

.commercial-cta__disclaimer {
  padding: 1rem;
  border: 1px solid rgba(23, 24, 12, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 250, 240, 0.36);
  font-size: 0.98rem;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  overflow: hidden;
  background: var(--surface);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.15rem;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: 1.05rem;
  font-weight: 950;
  line-height: 1.3;
  text-align: left;
}

.faq-question::after {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin-left: 1rem;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--ink);
  content: "+";
  display: grid;
  place-items: center;
  font-weight: 900;
}

.faq-item.is-open .faq-question::after {
  content: "–";
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 180ms ease;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer-content {
  padding: 0 1.15rem 1.2rem;
  color: var(--ink-soft);
}

/* Sidebar */
.sidebar {
  min-width: 0;
}

.sidebar-card {
  padding: 1.3rem;
  color: var(--ink);
  background: var(--surface);
}

.sidebar-card h2 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-card p {
  color: var(--ink-soft);
  line-height: 1.65;
}

/* Footer */
.site-footer {
  color: var(--ink);
  background: var(--chrome);
  border-top: 1px solid rgba(23, 24, 12, 0.14);
}

.footer-inner {
  display: grid;
  gap: clamp(2rem, 7vw, 4rem);
  padding-block: clamp(3rem, 9vw, 5rem);
}

.footer-brand {
  display: grid;
  max-width: 620px;
  gap: 0.9rem;
}

.footer-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 3.4rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.055em;
}

.footer-text {
  color: rgba(23, 24, 12, 0.82);
  line-height: 1.65;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.footer-column {
  display: grid;
  gap: 0.65rem;
}

.footer-column h2 {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-column a {
  width: fit-content;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.footer-column a:hover {
  text-decoration: underline;
}

.footer-bottom {
  display: grid;
  gap: 0.35rem;
  padding-block: 1rem;
  border-top: 1px solid rgba(23, 24, 12, 0.16);
  color: rgba(23, 24, 12, 0.78);
  font-size: 0.92rem;
}

/* Estado imágenes rotas */
img.is-broken-image {
  display: none !important;
}

/* Reveals */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible,
.no-js .reveal {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Breakpoints */
@media (min-width: 640px) {
  .hero-actions {
    grid-template-columns: repeat(2, max-content);
  }

  .button {
    width: auto;
    padding-inline: 1.5rem;
  }

  .hero-panel-grid,
  .quick-planner-grid,
  .cards-grid,
  .timeline-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 760px) {
  body {
    font-size: 18px;
  }

  .intro-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    align-items: start;
  }

  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .table-wrap {
    overflow-x: auto;
    background: var(--surface);
  }

  .table {
    min-width: 680px;
  }

  .table thead {
    display: table-header-group;
  }

  .table tbody {
    display: table-row-group;
  }

  .table tr {
    display: table-row;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .table th,
  .table td {
    display: table-cell;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid rgba(23, 24, 12, 0.10);
    text-align: left;
    vertical-align: top;
  }

  .table th {
    color: var(--ink);
    background: #f5edcf;
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0.09em;
    text-transform: uppercase;
  }

  .table td::before {
    display: none;
  }
}

@media (min-width: 920px) {
  .top-notice {
    padding-block: 0.72rem;
  }

  .site-header .container {
    width: min(100% - 2rem, 1360px);
  }

  .header-inner {
    min-height: 104px;
    padding-block: 1rem;
    gap: 1.35rem;
  }

  .site-brand-mark {
    width: 64px;
    height: 64px;
    font-size: 1.18rem;
  }

  .site-brand-title {
    max-width: none;
    overflow: visible;
    font-size: 1.13rem;
    white-space: nowrap;
    text-overflow: clip;
  }

  .site-brand-subtitle {
    font-size: 0.78rem;
  }

  .nav-toggle,
  .site-nav,
  .nav-backdrop {
    display: none !important;
  }

  .site-nav-desktop {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    min-width: 0;
  }

  .site-nav-desktop a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.7rem 0.78rem;
    border-radius: var(--radius-pill);
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 850;
    line-height: 1.1;
    text-align: center;
  }

  .site-nav-desktop a:hover,
  .site-nav-desktop a[aria-current="page"] {
    background: rgba(255, 250, 240, 0.55);
  }

  .site-nav-desktop .nav-cta {
    margin-left: 0.3rem;
    padding-inline: 1rem;
    background: var(--secondary);
  }

  .content-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
  }

  .sidebar {
    position: sticky;
    top: 140px;
  }

  .hero-panel-grid,
  .quick-planner-grid,
  .timeline-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .timeline-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: 1fr 1.25fr;
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-bottom {
    grid-template-columns: 1fr auto;
  }
}

@media (min-width: 1180px) {
  .site-nav-desktop {
    gap: 0.4rem;
  }

  .site-nav-desktop a {
    padding-inline: 1rem;
    font-size: 0.92rem;
  }
}

/* Ajuste de usabilidad: el contenido no depende de animaciones JS */
.reveal,
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 639.98px) {
  .hero {
    min-height: calc(100svh - 147px);
  }

  .hero-inner {
    align-items: center;
    min-height: calc(100svh - 147px);
    padding-block: 3.3rem 3rem;
  }

  .hero-title {
    font-size: clamp(3.15rem, 15.5vw, 4.75rem);
  }

  .hero-lead {
    font-size: 1.08rem;
  }

  .page-hero-inner {
    padding-block: 3rem 3.3rem;
  }
}
