/* Yo en el Planeta – Portada v1.0.0
   Concepto: tierra oscura y luz cálida arriba; papel crema abajo, separados por un borde rasgado.
   Un solo look (no cambia con el modo oscuro del sistema). */
.yp {
  --yp-soil: #10261B;      /* fondo del hero y bandas oscuras */
  --yp-forest: #1F4D36;    /* verde principal */
  --yp-leaf: #5E8F45;      /* botón principal */
  --yp-sprout: #C9E0A5;    /* acentos sobre oscuro */
  --yp-paper: #F3EEDF;     /* papel */
  --yp-paper-2: #E9E2CE;   /* papel más oscuro */
  --yp-ink: #1C2A21;       /* texto */
  --yp-muted: #5B6858;     /* texto secundario */
  --yp-sun: #E8C27A;       /* luz cálida */
  --yp-display: "Fraunces", Georgia, "Times New Roman", serif;
  --yp-body: "Figtree", "Segoe UI", Helvetica, Arial, sans-serif;
  color-scheme: light;
  background: var(--yp-paper);
  color: var(--yp-ink);
  font-family: var(--yp-body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}
.yp *, .yp *::before, .yp *::after { box-sizing: border-box; }
.yp a { text-decoration: none; }
.yp img { max-width: 100%; display: block; }
.yp h1, .yp h2 { font-family: var(--yp-display); font-weight: 600; letter-spacing: -.01em; text-wrap: balance; margin: 0; }
.yp p { margin: 0; }
.yp-wrap {
  width: 100%; max-width: 1200px; margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---------- Botones ---------- */
.yp .yp-btn { display: inline-flex; align-items: center; gap: .5em; padding: .8em 1.4em; border-radius: 999px; font-weight: 600; font-size: 16px; line-height: 1.2; transition: transform .15s ease, background-color .15s ease; }
.yp .yp-btn:hover { transform: translateY(-1px); }
.yp .yp-btn:focus-visible, .yp a:focus-visible, .yp summary:focus-visible { outline: 3px solid var(--yp-sun); outline-offset: 3px; }
.yp .yp-btn-leaf { background: var(--yp-leaf); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.yp .yp-btn-leaf:hover { background: #6C9F51; }
.yp .yp-btn-line { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); }
.yp .yp-btn-line:hover { background: rgba(255,255,255,.1); }
.yp .yp-btn-forest { background: var(--yp-forest); color: var(--yp-paper); }
.yp .yp-btn-forest:hover { background: var(--yp-soil); }

/* ---------- Hero ---------- */
.yp-hero {
  position: relative; color: #fff; padding-bottom: 72px;
  background-color: var(--yp-soil);
  background-image:
    radial-gradient(60% 70% at 78% 30%, rgba(232, 194, 122, .35), transparent 70%),
    radial-gradient(40% 50% at 15% 90%, rgba(94, 143, 69, .25), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 500'%3E%3Cellipse cx='330' cy='470' rx='300' ry='70' fill='%2321160d'/%3E%3Cellipse cx='330' cy='455' rx='190' ry='38' fill='%23332216'/%3E%3Cpath d='M330 440 C 328 360 322 300 332 210' stroke='%237aa35a' stroke-width='9' fill='none' stroke-linecap='round'/%3E%3Cpath d='M331 300 C 300 230 220 210 165 235 C 200 300 270 320 331 300Z' fill='%236d9a4c'/%3E%3Cpath d='M333 240 C 360 160 440 135 500 160 C 470 230 400 260 333 240Z' fill='%238ab863'/%3E%3Cpath d='M332 212 C 315 160 280 140 245 150 C 262 195 300 215 332 212Z' fill='%239cc673'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center, center, right max(-60px, calc(50% - 720px)) bottom 40px;
  background-size: auto, auto, min(640px, 70%) auto;
}
.yp-hero.has-photo {
  background-image: linear-gradient(90deg, rgba(10, 24, 16, .88) 0%, rgba(10, 24, 16, .55) 45%, rgba(10, 24, 16, .15) 100%), var(--yp-hero);
  background-position: center, center;
  background-size: cover, cover;
}
@media (max-width: 760px) {
  .yp-hero.has-photo { background-image: linear-gradient(180deg, rgba(10,24,16,.55), rgba(10,24,16,.85) 70%), var(--yp-hero-m); }
}

/* Navegación */
.yp-nav { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; }
.yp .yp-logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.yp-logo-mark { width: 46px; height: 46px; flex: none; }
.yp-logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.yp-logo-name { font-family: var(--yp-display); font-size: 22px; font-weight: 600; }
.yp-logo-tag { margin-top: 4px; font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.yp-menu { display: none; }
.yp-menu summary { list-style: none; }
.yp-menu summary::-webkit-details-marker { display: none; }
.yp-links { display: flex; align-items: center; gap: 26px; }
.yp .yp-links a { color: rgba(255,255,255,.9); font-weight: 500; font-size: 15.5px; }
.yp .yp-links a:hover { color: #fff; }
.yp .yp-links .yp-nav-cta { padding: .55em 1.1em; border-radius: 999px; background: var(--yp-paper); color: var(--yp-forest); font-weight: 600; }

/* Cuerpo del hero */
.yp-hero-body { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; gap: 48px; padding-top: clamp(56px, 9vw, 120px); padding-bottom: 40px; }
.yp-hero-copy { min-width: 0; max-width: 34rem; }
.yp .yp-hero h1 { font-size: clamp(46px, 7.4vw, 92px); line-height: .98; font-weight: 600; }
.yp-hero-copy p { margin-top: 22px; font-size: clamp(17px, 1.6vw, 20px); color: rgba(255,255,255,.88); max-width: 30rem; }
.yp-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Números */
.yp-stats { display: grid; gap: 0; padding: 6px 22px; border-radius: 20px; background: rgba(12, 30, 20, .55); border: 1px solid rgba(255,255,255,.14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.yp-stat { display: flex; align-items: center; gap: 16px; padding: 16px 0; }
.yp-stat + .yp-stat { border-top: 1px solid rgba(255,255,255,.14); }
.yp-stat-ico { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: rgba(201, 224, 165, .14); color: var(--yp-sprout); }
.yp-stat-ico .yp-ico { width: 30px; height: 30px; }
.yp-stat strong { display: block; font-family: var(--yp-display); font-size: 30px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.yp-stat small { display: block; font-size: 14px; color: rgba(255,255,255,.75); }
.yp-stat-invite strong { font-size: 24px; }
.yp-stat-invite small { margin-top: 4px; font-size: 14.5px; line-height: 1.45; }

.yp-torn { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 44px; fill: var(--yp-paper); z-index: 2; }

/* ---------- Caminos ---------- */
.yp-paths { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding-block: 18px 40px; }
.yp .yp-path { display: flex; align-items: center; gap: 14px; padding: 14px 22px; color: var(--yp-ink); font-size: 17px; line-height: 1.25; }
.yp .yp-path + .yp-path { border-left: 1px solid var(--yp-paper-2); }
.yp .yp-path .yp-ico { width: 44px; height: 44px; flex: none; color: var(--yp-forest); transition: transform .2s ease; }
.yp .yp-path:hover .yp-ico { transform: rotate(-6deg) scale(1.06); }
.yp-path strong { display: block; font-family: var(--yp-display); font-size: 20px; font-weight: 600; color: var(--yp-forest); }

/* ---------- Secciones con foto ---------- */
.yp-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 5vw, 72px); padding-block: clamp(40px, 6vw, 80px); }
.yp-feature-rev .yp-feature-img, .yp-feature-rev .yp-fig { order: 2; }
.yp-feature-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px 28px 6px 28px; box-shadow: 0 24px 50px -28px rgba(16, 38, 27, .55); }
.yp-photo-empty { background-color: var(--yp-forest); background-repeat: no-repeat; background-position: center; background-size: 46%; }
.yp-ph-recycle { background-image: radial-gradient(70% 70% at 30% 30%, rgba(232,194,122,.25), transparent 70%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23C9E0A5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M26.8 13.8L35.9 29.6M36.7 23.7L35.9 29.6L30.3 27.4M33.7 35.2L15.3 35.2M20.1 38.9L15.3 35.2L20.1 31.6M11.6 30.5L20.8 14.6M15.2 16.9L20.8 14.6L21.6 20.6'/%3E%3C/svg%3E"); background-size: cover, 40%; }
.yp-ph-tree { background-image: radial-gradient(70% 70% at 70% 30%, rgba(232,194,122,.25), transparent 70%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23C9E0A5' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M24 44V30'/%3E%3Cpath d='M24 30c-9 0-14-5-14-11 0-5 4-8 7-8 1-5 4-7 7-7s6 2 7 7c3 0 7 3 7 8 0 6-5 11-14 11z'/%3E%3Cpath d='M24 36l-5-4M24 33l5-4'/%3E%3C/svg%3E"); background-size: cover, 40%; }
.yp-feature-copy { min-width: 0; display: grid; gap: 16px; justify-items: start; }
.yp-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--yp-leaf); }
.yp .yp-feature h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.08; color: var(--yp-forest); }
.yp-feature-copy > p:not(.yp-eyebrow) { color: var(--yp-muted); max-width: 34rem; }
.yp-facts { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 10px; }
.yp-facts li { position: relative; padding-left: 26px; font-size: 15.5px; }
.yp-facts li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 12px; border-radius: 0 50% 0 50%; background: var(--yp-leaf); }

/* Créditos de fotos */
.yp-fig { position: relative; margin: 0; min-width: 0; }
.yp-credit { margin: 0; font-size: 11.5px; line-height: 1.3; letter-spacing: .02em; color: rgba(255,255,255,.85); }
.yp-fig .yp-credit { position: absolute; right: 10px; bottom: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(16, 38, 27, .6); }
.yp-hero, .yp-community { position: relative; }
.yp-credit-hero { position: absolute; z-index: 3; right: max(20px, env(safe-area-inset-right, 0px)); bottom: 54px; color: rgba(255,255,255,.7); }
.yp-community .yp-credit-band { max-width: none; font-size: 11.5px; } 
.yp-credit-band { position: absolute; right: max(20px, env(safe-area-inset-right, 0px)); bottom: 14px; color: rgba(255,255,255,.7); }

/* ---------- Nativos ---------- */
.yp-native { background: var(--yp-paper-2); }
.yp-native-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 28px; padding-block: 44px; }
.yp-native .yp-ico { width: 56px; height: 56px; color: var(--yp-forest); }
.yp .yp-native h2 { font-size: clamp(24px, 2.6vw, 32px); color: var(--yp-forest); }
.yp-native p { margin-top: 8px; color: var(--yp-muted); max-width: 46rem; }
.yp-soon { padding: .55em 1.1em; border-radius: 999px; border: 1.5px dashed var(--yp-forest); color: var(--yp-forest); font-weight: 600; font-size: 14px; white-space: nowrap; }

/* ---------- Comunidad ---------- */
.yp-community { color: #fff; background-color: var(--yp-forest); background-image: radial-gradient(50% 80% at 85% 20%, rgba(232,194,122,.28), transparent 70%); }
.yp-community.has-photo { background-image: linear-gradient(rgba(10,24,16,.62), rgba(10,24,16,.62)), var(--yp-com); background-size: cover; background-position: center; }
.yp-community-inner { display: grid; justify-items: start; gap: 18px; padding-block: clamp(56px, 8vw, 104px); }
.yp .yp-community h2 { font-size: clamp(32px, 4.6vw, 58px); line-height: 1.04; max-width: 20ch; }
.yp-community p { max-width: 34rem; color: rgba(255,255,255,.85); font-size: 18px; }

/* ---------- Pie ---------- */
.yp-foot { background: var(--yp-soil); color: rgba(255,255,255,.75); }
.yp-foot-inner { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 20px 40px; padding-block: 40px; }
.yp-foot-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 22px; }
.yp .yp-foot-links a { color: rgba(255,255,255,.8); font-size: 15px; }
.yp .yp-foot-links a:hover { color: #fff; }
.yp-foot-note { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: rgba(255,255,255,.55); }

/* ---------- Páginas internas ---------- */
.yp .yp-links a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--yp-sprout); }
.yp-hero-sm { padding-bottom: 64px; }
.yp-page-head { position: relative; z-index: 2; display: grid; gap: 14px; padding-top: clamp(40px, 6vw, 72px); padding-bottom: 24px; max-width: 1200px; }
.yp-page-head > * { max-width: 40rem; }
.yp .yp-page-head h1 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.02; }
.yp-page-head p { color: rgba(255,255,255,.88); font-size: clamp(16px, 1.5vw, 19px); }
.yp-crumb { font-size: 13.5px; letter-spacing: .02em; }
.yp .yp-crumb a { color: var(--yp-sprout); }
.yp-tool-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 28px 64px; align-items: start; }
.yp-tool-layout.has-side { grid-template-columns: minmax(0, 1fr) 300px; }
.yp-tool-main { min-width: 0; display: grid; gap: 40px; }
.yp-tool-main .yep-calc { max-width: none; width: 100%; margin: 0; }
.yp-tool-side { position: sticky; top: 24px; }
.yp-ad { display: grid; gap: 6px; justify-items: center; }
.yp-ad-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--yp-muted); }
.yp-ad-result { margin: 22px 0 4px; padding-block: 12px; border-block: 1px solid var(--yp-paper-2); }
.yp-ad-empty { padding: 28px 18px; border: 1.5px dashed #B9B09A; border-radius: 16px; color: var(--yp-muted); font-size: 13.5px; text-align: center; background: rgba(255,255,255,.4); }
.yp-ad-side.yp-ad-empty { min-height: 600px; align-content: center; }
.yp-learn { display: grid; gap: 14px; max-width: 46rem; }
.yp .yp-learn h2 { font-size: clamp(24px, 2.6vw, 32px); color: var(--yp-forest); margin-top: 8px; }
.yp-learn > p { color: var(--yp-muted); }
.yp-table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--yp-paper-2); background: #fff; }
.yp-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.yp-table caption { padding: 14px 16px 4px; text-align: left; font-weight: 600; color: var(--yp-forest); }
.yp-table th, .yp-table td { padding: 10px 16px; text-align: left; border-bottom: 1px solid var(--yp-paper-2); }
.yp-table th { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--yp-muted); font-weight: 600; }
.yp-table td:nth-child(n+2) { font-variant-numeric: tabular-nums; }
.yp-table td:nth-child(2) { font-weight: 700; color: var(--yp-forest); }
.yp-table tbody tr:last-child td { border-bottom: 0; }
.yp-src { font-size: 13px; color: var(--yp-muted); }
.yp-missing { padding: 20px; border-radius: 16px; background: var(--yp-paper-2); }

/* ---------- Página de árboles ---------- */
.yp-trees-layout.has-side { grid-template-columns: minmax(0, 1fr) 380px; }
.yp-tool-main .yep-arb { max-width: none; width: 100%; margin: 0; }
.yp-tree-side { min-width: 0; display: grid; gap: 14px; align-content: start; }
.yp-plaque-demo { transform: rotate(-1.5deg); }
.yp-plaque-demo .yep-plaque { width: 100%; max-width: 14cm; min-height: 0; margin: 0; box-shadow: 0 18px 36px -22px rgba(16, 38, 27, .5); }
.yp-tip-note { font-size: 13px; color: var(--yp-muted); }
.yp .yp-share-demo { width: 100%; max-width: 300px; height: auto; border-radius: 14px; box-shadow: 0 18px 36px -22px rgba(16, 38, 27, .55); }
.yp-ad-trees { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--yp-paper-2); }
.yp-ad-trees.yp-ad-empty { padding: 22px 14px; border: 1.5px dashed #B9B09A; min-height: 250px; align-content: center; }
.yp .yp-side-title { margin-top: 14px; font-size: 24px; color: var(--yp-forest); }
.yp-trees-counter { background: var(--yp-paper-2); padding-block: clamp(40px, 6vw, 72px); }
.yp-trees-counter .yp-wrap { display: grid; gap: 12px; }
.yp .yp-trees-counter h2 { font-size: clamp(28px, 3.4vw, 42px); color: var(--yp-forest); margin-bottom: 8px; }
.yp-trees-counter .yep-arb { max-width: none; width: 100%; margin: 0; }

/* ---------- Guía de nativos (mapa) ---------- */
.yn-geo { position: relative; display: block !important; aspect-ratio: 2 / 3; max-width: 100%; border-radius: 22px; overflow: hidden; background: #123C6B; box-shadow: 0 24px 50px -30px rgba(16, 38, 27, .6); }
.yn-geo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.yp .yn-pin { position: absolute; z-index: 1; padding: 2px 4px; border: 0; background: none; cursor: pointer; font: inherit; transform: translate(-50%, -50%); }
.yn-pin-label { display: block; color: #fff; font-family: var(--yp-body); font-size: 13px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; text-shadow: 0 1px 2px rgba(0,0,0,.95), 0 0 6px rgba(0,0,0,.75), 0 0 12px rgba(0,0,0,.45); transition: transform .15s ease, color .15s ease; }
.yp .yn-pin:not(.has-data) .yn-pin-label { color: rgba(255,255,255,.82); font-weight: 600; }
.yp .yn-pin.has-data .yn-pin-label { color: var(--yp-sprout); font-size: 14.5px; }
.yp .yn-pin:hover .yn-pin-label { transform: scale(1.1); }
.yp .yn-pin.is-active .yn-pin-label { color: #fff; font-size: 16px; text-decoration: underline; text-decoration-color: var(--yp-sun); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.yp .yn-pin:focus-visible { outline: none; }
.yp .yn-pin:focus-visible .yn-pin-label { outline: 2px solid var(--yp-sun); outline-offset: 3px; border-radius: 4px; }
@media (max-width: 420px) { .yn-pin-label { font-size: 11px; } .yp .yn-pin.has-data .yn-pin-label { font-size: 12.5px; } .yp .yn-pin.is-active .yn-pin-label { font-size: 13.5px; } }

.yp-guide { padding-block: 28px 64px; }
.yn { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.yn-map-wrap { position: sticky; top: 24px; display: grid; gap: 10px; }
.yn-hint { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--yp-leaf); }
.yn-map { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-auto-rows: minmax(44px, auto); gap: 5px; }
.yp .yn-tile { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1px; min-width: 0; padding: 4px 2px; border: 1px solid var(--yp-paper-2); border-radius: 10px; background: #fff; color: var(--yp-muted); font: inherit; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.yp .yn-tile:hover { transform: translateY(-1px); }
.yp .yn-tile:focus-visible { outline: 3px solid var(--yp-sun); outline-offset: 2px; }
.yn-code { font-weight: 700; font-size: 13px; letter-spacing: .04em; }
.yn-name { font-size: 9.5px; line-height: 1.1; text-align: center; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.yp .yn-tile.has-data { background: var(--yp-sprout); border-color: #A9CC86; color: var(--yp-soil); }
.yp .yn-tile.is-active { background: var(--yp-forest); border-color: var(--yp-forest); color: #fff; box-shadow: 0 10px 20px -12px rgba(16,38,27,.7); }
.yn-legend { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--yp-muted); }
.yn-dot { display: inline-block; width: 12px; height: 12px; border-radius: 4px; background: #fff; border: 1px solid var(--yp-paper-2); margin-left: 8px; }
.yn-dot:first-child { margin-left: 0; }
.yn-dot.is-data { background: var(--yp-sprout); border-color: #A9CC86; }
.yn-panel { min-width: 0; display: grid; gap: 14px; }
.yn-kicker { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--yp-leaf); }
.yp .yn-panel h3 { margin: 0; font-family: var(--yp-display); font-weight: 600; font-size: clamp(32px, 4vw, 46px); line-height: 1.05; color: var(--yp-forest); }
.yn-intro { color: var(--yp-muted); max-width: 42rem; }
.yn-season { padding: 14px 16px; border-radius: 14px; background: var(--yp-forest); color: var(--yp-paper); font-size: 15.5px; }
.yn-season strong { color: var(--yp-sprout); }
.yn-zone { border: 1px solid var(--yp-paper-2); border-radius: 16px; background: #fff; }
.yn-zone summary { list-style: none; cursor: pointer; display: grid; gap: 2px; padding: 14px 44px 14px 16px; position: relative; }
.yn-zone summary::-webkit-details-marker { display: none; }
.yn-zone summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--yp-leaf); }
.yn-zone[open] summary::after { content: "−"; }
.yn-zone-name { font-family: var(--yp-display); font-weight: 600; font-size: 21px; color: var(--yp-forest); }
.yn-zone-where { font-size: 13.5px; color: var(--yp-muted); }
.yn-note { margin: 0 16px 10px !important; padding: 8px 12px; border-radius: 10px; background: #FBF3DF; font-size: 14px; color: #6A4E12; }
.yn-species { list-style: none; margin: 0; padding: 0 16px 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.yn-species li { display: grid; gap: 1px; padding: 10px 12px; border-radius: 12px; background: var(--yp-paper); }
.yn-sp-name { font-weight: 700; color: var(--yp-soil); }
.yn-species em { font-size: 13.5px; color: var(--yp-leaf); }
.yn-sp-note { font-size: 12.5px; color: var(--yp-muted); }
.yn-avoid { padding: 14px 16px; border-radius: 16px; border: 1.5px solid #E7B9B0; background: #FDF1EE; }
.yn-avoid strong { color: #8A2E1C; }
.yn-avoid ul { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.yn-avoid li { padding: 4px 10px; border-radius: 999px; background: #fff; font-size: 13.5px; }
.yn-avoid em { color: var(--yp-muted); }
.yn-sources summary { cursor: pointer; font-weight: 600; color: var(--yp-forest); }
.yn-sources ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13.5px; }
.yp .yn-sources a { color: var(--yp-forest); text-decoration: underline; }
.yn-soon { padding: 24px; border-radius: 18px; background: var(--yp-paper-2); display: grid; gap: 8px; }
.yn-soon p:last-child { color: var(--yp-muted); }
.yp-why-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding-block: 44px; }
.yp .yp-why h2 { font-size: clamp(24px, 2.6vw, 32px); color: var(--yp-forest); }
.yp-why p { margin-top: 8px; color: var(--yp-muted); max-width: 46rem; }

/* ---------- Página de historias ---------- */
.yp-stories-layout.has-side { grid-template-columns: minmax(0, 1fr) 360px; }
.yp-tool-main .yh { max-width: none; width: 100%; margin: 0; }
.yp-steps { list-style: none; counter-reset: paso; margin: 0; padding: 0; display: grid; gap: 12px; }
.yp-steps li { counter-increment: paso; position: relative; padding-left: 44px; font-size: 15.5px; color: var(--yp-ink); }
.yp-steps li::before { content: counter(paso); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--yp-forest); color: var(--yp-paper); font-family: var(--yp-display); font-weight: 600; }
.yp-steps strong { color: var(--yp-forest); }
.yp-stories-wall .yh-wall { max-width: none; }

/* Aportes de la comunidad a la guía */
.yn-help { display: grid; gap: 10px; padding: 18px; border-radius: 18px; border: 1.5px dashed #A9CC86; background: #F2F7EA; }
.yp .yn-help h4 { margin: 0; font-family: var(--yp-display); font-weight: 600; font-size: 22px; color: var(--yp-forest); }
.yn-help p { margin: 0; color: var(--yp-ink); }
.yn-help .yn-help-ok { font-size: 13.5px; color: var(--yp-muted); }
.yp .yn-help-btn { justify-self: start; padding: 10px 18px; border: 0; border-radius: 999px; background: var(--yp-forest); color: var(--yp-paper); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; }
.yp .yn-help-btn:hover { background: var(--yp-soil); }
.yp .yn-help-btn:disabled { opacity: .6; cursor: wait; }
.yn-form { display: grid; gap: 12px; margin-top: 4px; }
.yn-form[hidden] { display: none; }
.yn-form label { display: block; font-size: 14px; font-weight: 600; color: var(--yp-forest); }
.yn-form small { font-weight: 400; color: var(--yp-muted); }
.yn-form input:not(.yn-hp), .yn-form textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--yp-paper-2); border-radius: 12px; background: #fff; font: inherit; font-weight: 400; color: var(--yp-ink); }
.yn-form input:focus, .yn-form textarea:focus { outline: 2px solid var(--yp-leaf); outline-offset: 1px; }
.yn-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.yn-form-note { font-size: 13px; color: var(--yp-muted) !important; }
.yn-form-msg { padding: 10px 14px; border-radius: 12px; font-size: 14.5px; }
.yn-form-msg.is-ok { background: #fff; color: var(--yp-forest) !important; }
.yn-form-msg.is-err { background: #FBEAEA; color: #8A1C1C !important; }
.yn-soon + .yn-help { margin-top: 0; }

/* Páginas legales */
.yp .yp-legal { max-width: 72ch; margin: 0 auto; padding-block: 48px 72px; color: var(--yp-ink); font-size: 17px; line-height: 1.65; }
.yp .yp-legal > p:first-child { color: var(--yp-muted); font-size: 15px; }
.yp .yp-legal h3 { margin: 40px 0 10px; font-family: var(--yp-display); font-weight: 600; font-size: 26px; line-height: 1.2; color: var(--yp-forest); text-wrap: balance; }
.yp .yp-legal p { margin: 0 0 14px; }
.yp .yp-legal ul { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 6px; }
.yp .yp-legal a { color: var(--yp-forest); text-decoration: underline; text-decoration-color: var(--yp-leaf); text-underline-offset: 3px; }
.yp .yp-legal strong { color: var(--yp-forest); }
.yp .yp-legal-table { overflow-x: auto; margin: 6px 0 18px; border: 1px solid var(--yp-paper-2); border-radius: 14px; background: #fff; }
.yp .yp-legal table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; min-width: 560px; }
.yp .yp-legal th, .yp .yp-legal td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--yp-paper-2); }
.yp .yp-legal th { font-weight: 700; color: var(--yp-forest); background: var(--yp-paper); }
.yp .yp-legal tr:last-child td { border-bottom: 0; }
.yp .yp-legal td:first-child { font-weight: 600; }
.yp .yp-legal-next { margin-top: 32px !important; padding-top: 18px; border-top: 1px solid var(--yp-paper-2); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .yn { grid-template-columns: minmax(0, 1fr); }
  .yn-map-wrap { position: static; max-width: 460px; }
  .yp-why-inner { grid-template-columns: 1fr; justify-items: start; }
  .yp-tool-layout.has-side { grid-template-columns: minmax(0, 1fr); }
  .yp-tool-side { display: none; }
  .yp-trees-layout.has-side, .yp-stories-layout.has-side { grid-template-columns: minmax(0, 1fr); }
  .yp-tree-side { max-width: 36rem; }
  .yp-hero-body { grid-template-columns: 1fr; gap: 36px; }
  .yp-hero-copy { max-width: none; }
  .yp-stats { max-width: 30rem; }
  .yp-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
  .yp .yp-path:nth-child(3) { border-left: 0; }
}
@media (max-width: 860px) {
  .yp-nav-desk { display: none; }
  .yp-menu { display: block; position: relative; }
  .yp-menu summary { display: grid; gap: 5px; place-content: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.12); cursor: pointer; }
  .yp-menu summary span { display: block; width: 20px; height: 2px; border-radius: 2px; background: #fff; }
  .yp-menu .yp-links { display: none; }
  .yp-menu[open] .yp-links { display: flex; position: absolute; right: 0; top: 56px; flex-direction: column; align-items: stretch; gap: 4px; min-width: 220px; padding: 10px; border-radius: 16px; background: var(--yp-soil); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
  .yp-menu[open] .yp-links a { padding: 10px 12px; }
  .yp-menu[open] .yp-links .yp-nav-cta { margin-top: 6px; text-align: center; }
}
@media (max-width: 760px) {
  .yp-hero { padding-bottom: 56px; background-position: center, center, right -80px bottom 30px; background-size: auto, auto, 380px auto; }
  .yp-feature { grid-template-columns: 1fr; }
  .yp-feature-rev .yp-feature-img, .yp-feature-rev .yp-fig { order: 0; }
  .yp-native-inner { grid-template-columns: 1fr; gap: 16px; justify-items: start; }
  .yp-foot-inner { grid-template-columns: 1fr; }
  .yp-foot-links { justify-content: flex-start; }
}
@media (max-width: 520px) {
  .yp-hero-sm:not(.has-photo) { background-size: auto, auto, 200px auto; background-position: center, center, right -50px bottom 30px; }
  .yp { font-size: 16px; }
  .yp-paths { grid-template-columns: 1fr; padding-block: 8px 24px; }
  .yp .yp-path { padding: 12px 4px; }
  .yp .yp-path + .yp-path { border-left: 0; border-top: 1px solid var(--yp-paper-2); }
  .yp-logo-tag { display: none; }
  .yp-logo-mark { width: 40px; height: 40px; }
  .yp-logo-name { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .yp *, .yp *::before, .yp *::after { transition: none !important; }
}
.yn-avoid-note { margin: 6px 0 0; font-size: 14px; color: #6B3A2E; }
