/* Plantas Fáciles — sistema visual editorial, suave y accesible */
:root {
  --forest: #234c3a;
  --forest-deep: #17372a;
  --leaf: #39755a;
  --leaf-light: #e5f0e8;
  --sage: #cbded0;
  --paper: #fbfcfa;
  --canvas: #f3f6f2;
  --ink: #24352b;
  --muted: #607066;
  --line: #d9e4dc;
  --white: #ffffff;
  --shadow-sm: 0 2px 10px rgba(30, 65, 48, 0.06);
  --shadow-md: 0 10px 28px rgba(30, 65, 48, 0.09);
  --radius: 12px;
  --max: 1160px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* aliases usados en contenido legado */
  --green-dark: var(--forest-deep);
  --text-muted: var(--muted);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--canvas);
  font: 400 1rem/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
}
main#contenido {
  flex: 1 0 auto;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--forest-deep); text-decoration: underline; }
:focus-visible { outline: 3px solid #8fc3a3; outline-offset: 3px; }
::selection { color: var(--white); background: var(--leaf); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 3px 16px rgba(24, 57, 40, .06);
  backdrop-filter: blur(10px);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 74px;
  padding: .85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  flex: 0 0 auto;
  color: var(--forest-deep);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -.025em;
  white-space: nowrap;
}
.logo:hover { color: var(--leaf); text-decoration: none; }
.logo span { font-size: 1.45rem; line-height: 1; }
.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .25rem .3rem;
  flex-wrap: wrap;
}
.nav a {
  padding: .42rem .62rem;
  border-radius: 7px;
  color: var(--muted);
  font-size: .87rem;
  font-weight: 600;
  letter-spacing: .005em;
  white-space: nowrap;
}
.nav a:hover { color: var(--forest); background: var(--leaf-light); text-decoration: none; }

/* Hamburger toggle + drawer backdrop (visible ≤900px) */
.nav-toggle {
  display: none;
  appearance: none;
  border: 0;
  cursor: pointer;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border-radius: 8px;
  color: var(--forest-deep);
  background: transparent;
  transition: background .18s ease;
}
.nav-toggle:hover { background: var(--leaf-light); }
.nav-toggle:focus-visible { outline: 3px solid #8fc3a3; outline-offset: 2px; }
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(23, 55, 42, .42);
  border: 0;
  padding: 0;
  cursor: pointer;
}
body.nav-open { overflow: hidden; }
body.nav-open .nav-backdrop { display: block; }

/* Page layout */
.container {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 2.25rem;
  align-items: start;
}
.sidebar { min-width: 0; }

/* Home hero */
.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .95fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: center;
  margin-bottom: 2.25rem;
  padding: clamp(1.35rem, 4vw, 2.5rem) clamp(1.2rem, 4vw, 2.5rem);
  background: linear-gradient(120deg, #e8f2e9 0%, #d7e8da 100%);
  border: 1px solid #c9ddcf;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.hero-copy { position: relative; z-index: 1; min-width: 0; }
.hero h1 {
  max-width: 34rem;
  margin-bottom: .8rem;
  color: var(--forest-deep);
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: -.045em;
}
.hero p {
  max-width: 34rem;
  color: #486052;
  font-size: 1.05rem;
  line-height: 1.65;
}
.hero-media {
  position: relative;
  z-index: 1;
  margin: 0;
  min-width: 0;
}
.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(35, 76, 58, .08);
}

/* Article featured image */
.article-hero {
  margin: 0 0 1.5rem;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--leaf-light);
  box-shadow: var(--shadow-sm);
}
.article-hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.article-hero--portrait img { aspect-ratio: 4 / 5; max-height: 420px; margin: 0 auto; object-fit: cover; width: 100%; }
.article-hero figcaption {
  padding: .55rem .9rem .7rem;
  color: var(--muted);
  background: var(--paper);
  border-top: 1px solid var(--line);
  font-size: .82rem;
  line-height: 1.45;
}

/* Ad placeholders: ocultos hasta ca-pub real (HTML + comentarios ADSENSE quedan para cablear) */
.ad-label,
.ad-slot {
  display: none !important;
}
.ad-slot--728,
.ad-slot--300,
.ad-slot--inarticle {
  /* tamaños reservados cuando se reactive display */
  min-height: 0;
}

/* Home cards */
.section-title {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: .15rem 0 1.15rem;
  color: var(--forest-deep);
  font-size: 1.4rem;
  line-height: 1.25;
  letter-spacing: -.02em;
}
.section-title::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
  margin-bottom: 0;
}
.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: #b8d0be; box-shadow: var(--shadow-md); }
.card-media {
  display: block;
  overflow: hidden;
  background: var(--leaf-light);
  border-bottom: 1px solid var(--line);
}
.card-media:hover { text-decoration: none; }
.card-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .25s ease;
}
.card:hover .card-media img { transform: scale(1.03); }
.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.15rem 1.25rem 1.2rem;
}
.card-icon {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  margin-bottom: 1rem;
  background: var(--leaf-light);
  border-radius: 9px;
  font-size: 1.35rem;
}
.card h2, .card h3 {
  margin-bottom: .5rem;
  color: var(--forest);
  font-size: 1.08rem;
  line-height: 1.35;
  letter-spacing: -.01em;
}
.card h2 a, .card h3 a { color: inherit; }
.card h2 a:hover, .card h3 a:hover { color: var(--leaf); text-decoration: none; }
.card p { flex: 1; margin-bottom: 1rem; color: var(--muted); font-size: .92rem; line-height: 1.6; }
.card .btn { align-self: flex-start; color: var(--leaf); font-size: .86rem; font-weight: 700; }
.card .btn:hover { text-decoration: none; }
.card .btn::after { content: ""; display: inline-block; width: 0; height: 1px; margin-left: 0; background: currentColor; vertical-align: middle; transition: width .18s ease, margin-left .18s ease; }
.card .btn:hover::after { width: 1rem; margin-left: .3rem; }

/* Content panels */
.page-intro, .article-main, .sidebar-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.page-intro { margin-bottom: 1.5rem; padding: 2rem clamp(1.25rem, 4vw, 2.25rem); }
.page-intro h1 {
  margin-bottom: .85rem;
  color: var(--forest-deep);
  font-size: clamp(1.75rem, 3.5vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -.035em;
}
.page-intro p { margin-bottom: .85rem; }
.page-intro p:last-child { margin-bottom: 0; }
.page-intro ul { color: var(--ink); }
.article-main { padding: clamp(1.35rem, 4vw, 2.4rem); }
.article-main h1 {
  margin-bottom: .65rem;
  color: var(--forest-deep);
  font-size: clamp(1.8rem, 4vw, 2.45rem);
  line-height: 1.15;
  letter-spacing: -.04em;
}
.meta {
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: .84rem;
  letter-spacing: .01em;
}
.article-main > p,
.article-main > ul,
.article-main > ol {
  max-width: 70ch;
}
.article-main p { margin-bottom: 1.05rem; }
.article-main h2 {
  margin: 2rem 0 .7rem;
  color: var(--forest);
  font-size: 1.35rem;
  line-height: 1.3;
  letter-spacing: -.02em;
}
.article-main h3 { margin: 1.5rem 0 .55rem; color: var(--leaf); font-size: 1.1rem; }
.article-main ul, .article-main ol { margin: 0 0 1.35rem 1.35rem; }
.article-main li { margin-bottom: .42rem; padding-left: .2rem; }
.article-main strong { color: var(--forest-deep); }

.article-main .table-wrap { overflow-x: auto; margin: 0 0 1.35rem; }
.article-main table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.article-main th, .article-main td {
  border: 1px solid var(--line);
  padding: .55rem .75rem;
  text-align: left;
  vertical-align: top;
}
.article-main th { background: var(--leaf-light); color: var(--forest); font-weight: 700; }

.related { margin-top: 2.3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.related h2 { margin: 0 0 .75rem; font-size: 1.15rem; }
.related ul { list-style: none; margin: 0; padding: 0; }
.related li { margin-bottom: .45rem; }
.related a { font-weight: 650; }

/* Sidebar */
.sidebar-box { margin-bottom: 1rem; padding: 1.25rem 1.3rem; }
.sidebar-box h2 {
  margin-bottom: .85rem;
  padding-bottom: .65rem;
  color: var(--forest);
  border-bottom: 1px solid var(--line);
  font-size: 1.02rem;
  line-height: 1.3;
}
.sidebar-box ul { list-style: none; }
.sidebar-box li { margin-bottom: .55rem; }
.sidebar-box li:last-child { margin-bottom: 0; }
.sidebar-box a { font-size: .91rem; font-weight: 650; }
.tip {
  color: #3f5b4a;
  background: var(--leaf-light);
  border-color: #c6dbca;
  border-left: 4px solid var(--leaf);
  box-shadow: none;
  font-size: .91rem;
  line-height: 1.6;
}

/* Forms */
.form-group { margin-bottom: 1.15rem; }
.form-group label { display: block; margin-bottom: .38rem; color: var(--forest); font-size: .9rem; font-weight: 700; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: .72rem .85rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #cddbd1;
  border-radius: 8px;
  font: inherit;
  font-size: .96rem;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #98a59c; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(57, 117, 90, .14);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.btn-primary {
  display: inline-block;
  padding: .7rem 1.2rem;
  color: var(--white);
  background: var(--leaf);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(57, 117, 90, .18);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn-primary:hover { color: var(--white); background: var(--forest); box-shadow: 0 6px 14px rgba(35, 76, 58, .2); text-decoration: none; transform: translateY(-1px); }
.form-note { margin-top: 1.1rem; padding: .85rem 1rem; color: var(--muted); background: var(--leaf-light); border-radius: 8px; font-size: .86rem; line-height: 1.6; }
code { padding: .12em .3em; color: var(--forest); background: #edf2ee; border-radius: 4px; font-size: .9em; }

/* Footer */
.site-footer { margin-top: 1rem; padding: 2.5rem 1.25rem 1.25rem; color: #c9d9ce; background: var(--forest-deep); }
.footer-inner { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1.25rem 2rem; }
.footer-inner strong { color: var(--white); font-size: 1.02rem; }
.footer-inner a { color: #d6e6da; font-size: .88rem; }
.footer-inner a:hover { color: var(--white); }
.footer-nav { display: flex; flex-wrap: wrap; gap: .45rem 1.2rem; }
.footer-copy { width: 100%; margin-top: .7rem; padding-top: 1rem; color: #9eb6a5; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .8rem; }

/* Small navigation / utility */
.breadcrumb { margin-bottom: 1.2rem; color: var(--muted); font-size: .84rem; }
.breadcrumb a { font-weight: 650; }

@media (max-width: 900px) {
  /* Avoid trapping position:fixed drawer (backdrop-filter creates containing block) */
  .site-header { backdrop-filter: none; }
  /* Hamburger mode: compact single-row sticky header */
  .header-inner {
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: .75rem;
    min-height: 56px;
    padding: .45rem 1rem;
  }
  .logo { font-size: 1.05rem; }
  .logo span { font-size: 1.25rem; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 210;
    width: min(20rem, 88vw);
    height: 100%;
    height: 100dvh;
    margin: 0;
    padding: 3.75rem .75rem 1.25rem;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: var(--white);
    border-left: 1px solid var(--line);
    box-shadow: -12px 0 32px rgba(24, 57, 40, .12);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .22s ease, visibility .22s ease;
  }
  body.nav-open .nav {
    transform: translateX(0);
    visibility: visible;
  }
  .nav > a,
  .nav-drop > summary {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: .5rem .7rem;
    font-size: .92rem;
    white-space: normal;
  }
  /* No estirar details: evita huecos enormes entre Guías y el resto */
  .nav-drop {
    flex: 0 0 auto;
    width: 100%;
    margin: 0;
  }
  .nav-drop-panel {
    position: static;
    min-width: 0;
    max-height: none;
    margin: 0;
    padding: .15rem .15rem .25rem .35rem;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .nav-drop-group {
    border-top: 0;
    padding: .1rem 0 .15rem;
    margin: 0;
  }
  .nav-drop-label {
    display: block;
    padding: .25rem .65rem .15rem;
    font-size: .72rem;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  .nav-drop-nested {
    margin: 0;
    border: 0;
  }
  .nav-drop-nested > summary {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: .45rem .65rem;
  }
  .nav-drop-nested .nav-drop-panel {
    margin: 0;
    padding: 0 0 .15rem .5rem;
  }
  .nav-drop-panel a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: .45rem .7rem;
    white-space: normal;
  }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .sidebar { order: 2; }
  .sidebar > .ad-slot--300 { max-width: 336px; }
  .hero { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 520px; }
}
@media (max-width: 600px) {
  .container { padding: 1.25rem .9rem 2.75rem; }
  .header-inner { min-height: 56px; padding: .4rem .9rem; }
  .hero {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    margin-bottom: 1.3rem;
    border-radius: 12px;
    padding: 1.2rem 1rem 1.15rem;
  }
  .hero h1 { font-size: 1.75rem; }
  .hero p { font-size: .98rem; }
  .hero-media { order: -1; }
  .article-hero--portrait img { max-height: 360px; }
  .cards { grid-template-columns: 1fr; gap: .8rem; }
  .card { min-height: 0; }
  .section-title { font-size: 1.25rem; }
  .page-intro, .article-main { padding: 1.35rem 1.1rem; }
  .article-main h1 { font-size: 1.75rem; }
  .ad-slot--728 { min-height: 70px; }
  .site-footer { padding-top: 2rem; }
  .footer-inner { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Menús del clúster y avisos editoriales */
.nav-drop { position: relative; }
.nav-drop > summary {
  list-style: none;
  cursor: pointer;
  padding: .42rem .62rem;
  border-radius: 7px;
  color: var(--muted);
  font-size: .87rem;
  font-weight: 600;
  letter-spacing: .005em;
  white-space: nowrap;
}
.nav-drop > summary::-webkit-details-marker { display: none; }
.nav-drop > summary::after { content: "▾"; margin-left: .28rem; font-size: .65em; }
.nav-drop[open] > summary,
.nav-drop > summary:hover { color: var(--forest); background: var(--leaf-light); }
.nav-drop-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + .35rem);
  left: 0;
  min-width: 15.5rem;
  max-height: min(70vh, 22rem);
  overflow-y: auto;
  padding: .35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
}
.nav-drop-panel a { display: block; white-space: normal; }
.callout {
  margin: 0 0 1.25rem;
  padding: .95rem 1.05rem;
  color: #3f4e34;
  background: #f7f4ea;
  border: 1px solid #e4d7b8;
  border-left: 4px solid #b0893e;
  border-radius: 10px;
  font-size: .94rem;
  line-height: 1.6;
}
.callout strong { color: #6a5420; }
.callout-warn {
  color: #5c3b36;
  background: #fbf3f1;
  border-color: #ead5cf;
  border-left-color: #a35245;
}
.callout-warn strong { color: #8a3e34; }

/* Skip link (accesibilidad) */
.skip-link {
  position: absolute;
  left: .75rem;
  top: -100px;
  z-index: 1300;
  padding: .55rem .9rem;
  color: var(--white);
  background: var(--forest-deep);
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: .75rem;
  color: var(--white);
  outline: 3px solid #8fc3a3;
  outline-offset: 3px;
  text-decoration: none;
}


/* Home: más aire entre secciones + leads sin inline */
.home-section { margin-bottom: 2.75rem; }
.home-section .section-title { margin-bottom: .85rem; }
.section-lead {
  margin: -.15rem 0 1.35rem;
  max-width: 42rem;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.6;
}
.page-intro--home { margin-top: 1.25rem; }
.page-intro--home .page-intro-title {
  color: var(--forest-deep);
  margin-bottom: .75rem;
  font-size: 1.35rem;
  line-height: 1.3;
  letter-spacing: -.02em;
}
.home-section + .home-section { margin-top: .25rem; }

/* Hero: intro + aviso + CTA */
.hero-copy .callout { margin-top: 1rem; margin-bottom: 1rem; max-width: 34rem; }
.hero-cta { margin-top: .35rem; }
.hero-cta .btn-primary { margin-top: .15rem; }

/* Nav Guías: subgrupos (menos densidad móvil) */
.nav-drop-group {
  margin: .2rem 0;
  padding: .15rem 0 .25rem;
  border-top: 1px solid var(--line);
}
.nav-drop-group:first-child { border-top: 0; padding-top: 0; }
.nav-drop-label {
  display: block;
  padding: .35rem .55rem .2rem;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nav-drop-nested {
  margin: .15rem .2rem .25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.nav-drop-nested > summary {
  list-style: none;
  cursor: pointer;
  padding: .4rem .55rem;
  color: var(--forest);
  font-size: .82rem;
  font-weight: 700;
}
.nav-drop-nested > summary::-webkit-details-marker { display: none; }
.nav-drop-nested > summary::after { content: "▾"; margin-left: .28rem; font-size: .65em; opacity: .7; }
.nav-drop-nested[open] > summary { background: var(--leaf-light); border-radius: 7px 7px 0 0; }
.nav-drop-nested .nav-drop-panel {
  position: static;
  min-width: 0;
  max-height: none;
  margin: 0;
  padding: .2rem;
  border: 0;
  border-radius: 0 0 7px 7px;
  box-shadow: none;
  background: transparent;
}
@media (max-width: 600px) {
  .cards { gap: 1.1rem; }
  .home-section { margin-bottom: 2.25rem; }
  .hero { margin-bottom: 1.75rem; }
}

/* CMP banner (preferencias de cookies) */
.cmp-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom, 0px));
  background: rgba(23, 55, 42, .97);
  color: #e8f0ea;
  border-top: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 -8px 28px rgba(23, 55, 42, .28);
}
.cmp-banner[hidden] { display: none !important; }
.cmp-banner__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}
.cmp-banner__text { flex: 1 1 280px; min-width: 0; }
.cmp-banner__title {
  margin: 0 0 .35rem;
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.cmp-banner__desc {
  margin: 0;
  color: #c9d9ce;
  font-size: .88rem;
  line-height: 1.55;
}
.cmp-banner__desc a { color: #d6e6da; text-decoration: underline; }
.cmp-banner__desc a:hover { color: var(--white); }
.cmp-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  flex: 0 0 auto;
}
.cmp-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: 8px;
  padding: .55rem 1.05rem;
  font: 700 .88rem/1.2 var(--font);
  transition: background .18s ease, color .18s ease, transform .15s ease;
}
.cmp-btn:focus-visible { outline: 3px solid #8fc3a3; outline-offset: 2px; }
.cmp-btn--accept {
  color: var(--forest-deep);
  background: #e5f0e8;
}
.cmp-btn--accept:hover {
  background: var(--white);
  transform: translateY(-1px);
}
.cmp-btn--reject {
  color: #e8f0ea;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .35);
}
.cmp-btn--reject:hover {
  background: rgba(255, 255, 255, .08);
}
@media (max-width: 600px) {
  .cmp-banner__actions { width: 100%; }
  .cmp-btn { flex: 1 1 auto; text-align: center; }
}

/* Amazon affiliate boxes (placeholder tag hasta Associates aprobado) */
.affiliate-box {
  margin: 1.5rem 0 1.75rem;
  padding: 1.1rem 1.2rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.affiliate-box__title {
  margin: 0 0 .85rem;
  color: var(--forest-deep);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -.015em;
}
.affiliate-box__note {
  margin: -.35rem 0 .85rem;
  color: var(--muted, #5a6b5e);
  font-size: .92rem;
  line-height: 1.45;
  max-width: 70ch;
}
.affiliate-list {
  list-style: none;
  margin: 0 0 .9rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.affiliate-list > li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .45rem .85rem;
  padding: .7rem .8rem;
  background: var(--leaf-light);
  border: 1px solid var(--sage);
  border-radius: 10px;
}
.affiliate-link {
  flex: 1 1 12rem;
  color: var(--forest);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
}
.affiliate-link:hover {
  color: var(--forest-deep);
  text-decoration: underline;
}
.affiliate-price {
  color: var(--ink);
  font-weight: 700;
  font-size: .92rem;
  white-space: nowrap;
}
.affiliate-note {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.affiliate-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .42rem .85rem;
  color: var(--white) !important;
  background: var(--leaf);
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background .18s ease, transform .15s ease;
}
.affiliate-cta:hover {
  background: var(--forest);
  color: var(--white) !important;
  transform: translateY(-1px);
}
.affiliate-disclosure {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.5;
}
.footer-affiliate {
  margin: .55rem 0 0;
  max-width: 42rem;
  color: #8aa090;
  font-size: .78rem;
  line-height: 1.45;
}
/* === mobile drawer cascade fix === */
/* Reafirma overrides tras reglas desktop de .nav-drop y stacking del toggle */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 1210;
  }
  body.nav-open .site-header {
    z-index: 1200;
  }
  body.nav-open .nav-backdrop {
    z-index: 1090;
  }
  body.nav-open .nav {
    z-index: 1100;
  }

  .nav > a,
  .nav-drop > summary {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: .5rem .7rem;
    font-size: .92rem;
    white-space: normal;
  }

  .nav-drop {
    position: static;
    flex: 0 0 auto;
    width: 100%;
    margin: 0;
  }

  .nav-drop-panel {
    position: static !important;
    top: auto;
    left: auto;
    z-index: auto;
    min-width: 0;
    max-height: none;
    margin: 0;
    padding: .15rem .15rem .25rem .35rem;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .nav-drop-panel a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: .45rem .7rem;
    white-space: normal;
  }

  .nav-drop-group {
    border-top: 0;
    padding: .1rem 0 .15rem;
    margin: 0;
  }

  .nav-drop-label {
    display: block;
    padding: .25rem .65rem .15rem;
    white-space: normal;
  }

  .nav-drop-nested {
    margin: 0;
    border: 0;
  }

  .nav-drop-nested > summary {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: .45rem .65rem;
    white-space: normal;
  }

  .nav-drop-nested .nav-drop-panel {
    margin: 0;
    padding: 0 0 .15rem .5rem;
    position: static !important;
    max-height: none;
    box-shadow: none;
    border: 0;
    background: transparent;
  }
}
