/* ==========================================================================
   Campistas.club — sistema de diseño "Cuaderno de viaje"
   Papel cálido · tinta pino · acento arcilla · serif Fraunces + Figtree
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT,WONK@0,9..144,300..800,0..100,0..1;1,9..144,300..800,0..100,0..1&family=Figtree:ital,wght@0,300..900;1,300..900&display=swap');

:root {
  /* paleta */
  --paper: #F8F4EB;
  --paper-2: #F1EBDD;
  --paper-3: #E8E0CE;
  --card: #FFFDF8;
  --ink: #1B211D;
  --ink-2: #3D453F;
  --ink-3: #6B736D;
  --line: #E1D9C6;
  --line-2: #CFC5AE;
  --pine: #1F3B2E;
  --pine-2: #2C5140;
  --moss: #4F7A5A;
  --moss-soft: #DCE8DA;
  --clay: #D9642B;
  --clay-2: #B84E1D;
  --clay-soft: #FBE5D6;
  --sun: #E9B949;
  --sun-soft: #FBF0CC;
  --sky: #5E93B3;
  --sky-soft: #DCEAF2;
  --berry: #A5334B;
  --berry-soft: #F6DADF;
  --gold: #B8902A;
  --white: #fff;

  /* semánticos */
  --bg: var(--paper);
  --fg: var(--ink);
  --muted: var(--ink-3);
  --primary: var(--pine);
  --accent: var(--clay);
  --ok: var(--moss);
  --warn: #C4861B;
  --bad: var(--berry);

  /* tipografía */
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, monospace;

  /* radios / sombras */
  --r-xs: 8px; --r-sm: 12px; --r-md: 18px; --r-lg: 26px; --r-xl: 36px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(27,33,29,.06), 0 1px 1px rgba(27,33,29,.03);
  --sh-2: 0 6px 18px -6px rgba(27,33,29,.14), 0 2px 6px -2px rgba(27,33,29,.06);
  --sh-3: 0 24px 50px -20px rgba(27,33,29,.28), 0 8px 18px -8px rgba(27,33,29,.1);
  --sh-clay: 0 10px 24px -10px rgba(217,100,43,.55);

  --container: 1240px;
  --nav-h: 76px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: 16px; line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100vh; display: flex; flex-direction: column;
}
body::before { /* grano de papel */
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--clay-2); }
p { margin: 0 0 1em; }
h1, h2, h3, h4, .display { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -.015em; margin: 0 0 .5em; font-variation-settings: 'SOFT' 60, 'WONK' 1, 'opsz' 96; }
h1, .h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); }
h2, .h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3, .h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); font-variation-settings: 'SOFT' 50, 'opsz' 40; }
h4, .h4 { font-size: 1.15rem; font-variation-settings: 'SOFT' 50, 'opsz' 24; }
em.acc, .acc { font-style: italic; color: var(--clay); font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 96; font-weight: 400; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); font-size: .9em; }
.eyebrow { font-family: var(--font-body); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--clay); display: inline-flex; align-items: center; gap: .6rem; margin-bottom: .9rem; }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
::selection { background: var(--clay-soft); color: var(--ink); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 6px; }

/* ---------- layout ---------- */
.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
.container.narrow { max-width: 820px; }
.container.wide { max-width: 1440px; }
.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section.tight { padding: clamp(2rem, 4vw, 3.5rem) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.2rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; max-width: 22ch; }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.between { justify-content: space-between; }
.center { text-align: center; }
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2.5rem}.mb-0{margin-bottom:0}.mb-1{margin-bottom:.5rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}.mb-4{margin-bottom:2.5rem}
.hide { display: none !important; }
@media (max-width: 760px) { .hide-m { display: none !important; } }
@media (min-width: 761px) { .only-m { display: none !important; } }

/* ---------- iconos ---------- */
.ico { display: inline-block; width: 1.15em; height: 1.15em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.2em; }
.ico.lg { width: 1.6em; height: 1.6em; }
.ico.xl { width: 2.2em; height: 2.2em; stroke-width: 1.5; }

/* ---------- botones ---------- */
.btn {
  --btn-bg: var(--pine); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.35rem; border-radius: var(--r-pill); border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg); font: 600 .95rem/1 var(--font-body); letter-spacing: .01em;
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, color .18s, border-color .18s;
  position: relative; overflow: hidden;
}
.btn:hover { transform: translateY(-1px); color: var(--btn-fg); box-shadow: var(--sh-2); }
.btn:active { transform: translateY(0); }
.btn.accent { --btn-bg: var(--clay); box-shadow: var(--sh-clay); }
.btn.accent:hover { --btn-bg: var(--clay-2); }
.btn.ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-2); }
.btn.ghost:hover { --btn-bg: var(--card); --btn-fg: var(--ink); border-color: var(--ink-3); }
.btn.soft { --btn-bg: var(--paper-2); --btn-fg: var(--pine); }
.btn.soft:hover { --btn-bg: var(--paper-3); }
.btn.light { --btn-bg: #fff; --btn-fg: var(--pine); }
.btn.danger { --btn-bg: var(--berry-soft); --btn-fg: var(--berry); }
.btn.link { --btn-bg: transparent; --btn-fg: var(--pine); padding: .4rem .2rem; box-shadow: none !important; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.btn.sm { padding: .5rem .95rem; font-size: .84rem; }
.btn.xs { padding: .32rem .7rem; font-size: .78rem; }
.btn.lg { padding: 1.05rem 1.8rem; font-size: 1.05rem; }
.btn.block { width: 100%; white-space: normal; text-align: center; line-height: 1.25; }
.btn.icon { padding: .6rem; width: 2.6rem; height: 2.6rem; }
.btn.icon.sm { width: 2rem; height: 2rem; padding: .35rem; }
.btn[disabled], .btn.disabled { opacity: .55; pointer-events: none; }
.btn .spin { display: none; }
.btn.is-loading .spin { display: inline-block; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- badges / chips / tags ---------- */
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .65rem; border-radius: var(--r-pill); font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--paper-2); color: var(--ink-2); line-height: 1; white-space: nowrap; }
.badge.green { background: var(--moss-soft); color: var(--pine-2); }
.badge.clay { background: var(--clay-soft); color: var(--clay-2); }
.badge.gold { background: linear-gradient(135deg, #F7E7B0, #E9C86A); color: #6E5210; }
.badge.sky { background: var(--sky-soft); color: #2F5F7A; }
.badge.red, .badge.berry { background: var(--berry-soft); color: var(--berry); }
.badge.amber { background: var(--sun-soft); color: #7A5A0E; }
.badge.gray { background: var(--paper-3); color: var(--ink-3); }
.badge.teal { background: #D5EDE8; color: #1E5F55; }
.badge.blue { background: var(--sky-soft); color: #2F5F7A; }
.badge.ink { background: var(--pine); color: #fff; }
.badge.dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: var(--card); font-size: .86rem; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: all .15s; user-select: none; }
.chip:hover { border-color: var(--line-2); color: var(--ink); }
.chip.on, .chip:has(input:checked) { border-color: var(--pine); background: var(--pine); color: #fff; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.tag { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--ink-2); background: var(--paper-2); border-radius: var(--r-xs); padding: .3rem .55rem; }
.stamp { /* sello estilo "socio premium" */
  display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .75rem; border: 2px dashed var(--clay); border-radius: var(--r-sm); color: var(--clay-2); font-family: var(--font-display); font-style: italic; font-size: .95rem; transform: rotate(-2deg); background: rgba(255,255,255,.7);
}

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.card.pad { padding: 1.5rem; }
.card.pad-lg { padding: 2rem; }
.card.soft { background: var(--paper-2); border-color: transparent; box-shadow: none; }
.card.dark { background: var(--pine); color: #fff; border-color: transparent; }
.card.dark .muted { color: rgba(255,255,255,.65); }
.card.clay { background: var(--clay); color: #fff; border-color: transparent; }
.card.hover { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.card.hover:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.card-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; margin: 0 0 .25rem; }

/* tarjeta camping */
.camp-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-1); transition: transform .25s var(--ease), box-shadow .25s var(--ease); position: relative; }
.camp-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); color: inherit; }
.camp-card .ph { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--paper-3); }
.camp-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.camp-card:hover .ph img { transform: scale(1.04); }
.camp-card .ph .badges { position: absolute; top: .8rem; left: .8rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.camp-card .ph .fav { position: absolute; top: .7rem; right: .7rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: rgba(255,253,248,.92); display: grid; place-items: center; border: 0; cursor: pointer; color: var(--ink); transition: transform .2s; }
.camp-card .ph .fav:hover { transform: scale(1.08); }
.camp-card .ph .fav.on { color: var(--berry); }
.camp-card .ph .fav.on .ico { fill: var(--berry); }
.camp-card .body { padding: 1.1rem 1.2rem 1.25rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.camp-card .name { font-family: var(--font-display); font-size: 1.28rem; font-weight: 500; line-height: 1.15; margin: 0; }
.camp-card .where { color: var(--muted); font-size: .88rem; display: flex; align-items: center; gap: .3rem; }
.camp-card .amen { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .2rem; }
.camp-card .amen span { display: inline-flex; align-items: center; gap: .3rem; font-size: .76rem; color: var(--ink-2); background: var(--paper-2); border-radius: var(--r-xs); padding: .25rem .5rem; }
.camp-card .foot { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .6rem; border-top: 1px dashed var(--line); }
.camp-card .price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; line-height: 1; white-space: nowrap; }
.camp-card .price small { font-family: var(--font-body); font-size: .78rem; color: var(--muted); font-weight: 500; }
.rating { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; font-size: .9rem; }
.rating .ico { fill: var(--sun); stroke: var(--sun); }
.rating small { font-weight: 500; color: var(--muted); }
.discount-pill { display: inline-flex; align-items: center; gap: .3rem; background: var(--clay); color: #fff; font-weight: 700; font-size: .74rem; padding: .3rem .6rem; border-radius: var(--r-pill); }
.compat { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 600; padding: .3rem .6rem; border-radius: var(--r-pill); }
.compat.ok { background: var(--moss-soft); color: var(--pine-2); }
.compat.no { background: var(--berry-soft); color: var(--berry); }

/* ---------- formularios ---------- */
label, .label { display: block; font-size: .84rem; font-weight: 600; color: var(--ink-2); margin-bottom: .35rem; }
.input,
input:not([type]),
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=date], input[type=time], input[type=datetime-local], input[type=month], input[type=week], input[type=url], input[type=search],
select, textarea {
  width: 100%; min-width: 0; max-width: 100%; font: 500 .95rem/1.3 var(--font-body); color: var(--ink); background: var(--card); border: 1.5px solid var(--line-2); border-radius: var(--r-sm); padding: .8rem 1rem; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
/* Subida de archivos con el mismo lenguaje visual */
input[type=file] { width: 100%; min-width: 0; font: 500 .9rem/1.3 var(--font-body); color: var(--ink-2); background: var(--paper-2); border: 1.5px dashed var(--line-2); border-radius: var(--r-sm); padding: .55rem .7rem; cursor: pointer; }
input[type=file]::file-selector-button { font: 600 .85rem var(--font-body); color: var(--pine); background: var(--card); border: 1.5px solid var(--line-2); border-radius: var(--r-pill); padding: .4rem .9rem; margin-right: .7rem; cursor: pointer; }
input[type=file]:hover { border-color: var(--pine); }
input[type=file]::file-selector-button:hover { border-color: var(--pine); background: var(--paper-2); }
input[type=date], input[type=time], input[type=datetime-local] { -webkit-appearance: none; appearance: none; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236B736D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.5rem; }
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus, input:not([type]):focus { outline: 0; border-color: var(--pine); box-shadow: 0 0 0 4px rgba(31,59,46,.1); }
input::placeholder, textarea::placeholder { color: #A7ADA8; }
.field { margin-bottom: 1.1rem; }
.field .help { font-size: .8rem; color: var(--muted); margin-top: .35rem; }
.field.error input, .field.error select, .field.error textarea { border-color: var(--berry); }
.field .err { font-size: .8rem; color: var(--berry); margin-top: .35rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 1.2rem; }
.form-grid > *, .form-3 > * { min-width: 0; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.check { display: flex; align-items: flex-start; gap: .6rem; font-size: .92rem; font-weight: 500; cursor: pointer; margin-bottom: 0; }
.check input { width: 1.15rem; height: 1.15rem; margin: .1rem 0 0; accent-color: var(--pine); flex: none; }
.switch { position: relative; display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; font-weight: 500; font-size: .92rem; }
.switch input { position: absolute; opacity: 0; }
.switch i { width: 42px; height: 24px; border-radius: 99px; background: var(--line-2); position: relative; transition: background .2s; flex: none; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); box-shadow: var(--sh-1); }
.switch input:checked + i { background: var(--moss); }
.switch input:checked + i::after { transform: translateX(18px); }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: var(--r-pill); background: var(--card); overflow: hidden; }
.stepper button { width: 2.4rem; height: 2.4rem; border: 0; background: transparent; font-size: 1.2rem; cursor: pointer; color: var(--pine); font-weight: 600; }
.stepper button:hover { background: var(--paper-2); }
.stepper output, .stepper input { width: 2.2rem; text-align: center; font-weight: 700; border: 0; padding: 0; background: transparent; }
.input-icon { position: relative; }
.input-icon .ico { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon input, .input-icon select { padding-left: 2.7rem; }
.seg { display: inline-flex; background: var(--paper-2); border-radius: var(--r-pill); padding: .25rem; gap: .2rem; }
.seg a, .seg button, .seg label { padding: .5rem 1rem; border-radius: var(--r-pill); font-size: .88rem; font-weight: 600; color: var(--ink-2); cursor: pointer; border: 0; background: transparent; }
.seg .on, .seg :has(input:checked) { background: var(--card); color: var(--pine); box-shadow: var(--sh-1); }
.seg input { display: none; }
.rating-input { display: inline-flex; flex-direction: row-reverse; gap: .1rem; }
.rating-input input { display: none; }
.rating-input label { font-size: 1.7rem; color: var(--line-2); cursor: pointer; margin: 0; transition: color .1s; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: var(--sun); }

/* ---------- alerts / toasts ---------- */
.alert { display: flex; gap: .75rem; align-items: flex-start; padding: .95rem 1.1rem; border-radius: var(--r-md); font-size: .92rem; background: var(--sky-soft); color: #2F5F7A; border: 1px solid transparent; margin-bottom: 1rem; }
.alert.success { background: var(--moss-soft); color: var(--pine-2); }
.alert.error, .alert.danger { background: var(--berry-soft); color: var(--berry); }
.alert.warn, .alert.warning { background: var(--sun-soft); color: #7A5A0E; }
.alert.info { background: var(--sky-soft); }
.alert .ico { margin-top: .1rem; }
.toasts { position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%); z-index: 1000; display: flex; flex-direction: column; gap: .5rem; width: min(440px, 92vw); }
.toast { background: var(--ink); color: #fff; padding: .85rem 1.1rem; border-radius: var(--r-md); box-shadow: var(--sh-3); display: flex; gap: .7rem; align-items: center; font-size: .92rem; animation: toast-in .35s var(--ease); }
.toast.success { background: var(--pine); } .toast.error { background: var(--berry); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

/* ---------- tablas ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--card); }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: .85rem 1rem; border-bottom: 1px solid var(--line); background: var(--paper-2); white-space: nowrap; }
.table td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #FBF8F0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .actions { text-align: right; white-space: nowrap; }

/* ---------- misc ---------- */
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--pine); color: #fff; display: inline-grid; place-items: center; font-weight: 700; font-size: .95rem; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 64px; height: 64px; font-size: 1.4rem; }
.avatar.sm { width: 30px; height: 30px; font-size: .78rem; }
.divider { display: flex; align-items: center; gap: 1rem; color: var(--muted); font-size: .8rem; margin: 1.2rem 0; }
.divider::before, .divider::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.2rem; font-size: .92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }
.dropdown { position: relative; }
.dropdown .menu { position: absolute; top: calc(100% + .5rem); right: 0; min-width: 220px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-3); padding: .5rem; display: none; z-index: 50; }
.dropdown.open .menu { display: block; animation: toast-in .2s var(--ease); }
.dropdown .menu a, .dropdown .menu button { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .6rem .8rem; border-radius: var(--r-xs); font-size: .9rem; font-weight: 500; border: 0; background: none; text-align: left; cursor: pointer; color: var(--ink); }
.dropdown .menu a:hover, .dropdown .menu button:hover { background: var(--paper-2); }
.dropdown .menu hr { margin: .4rem 0; }
.tabs { display: flex; gap: .2rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; overflow-x: auto; }
.tabs a, .tabs button { padding: .8rem 1rem; font-weight: 600; font-size: .92rem; color: var(--muted); border: 0; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.tabs .on, .tabs a.is-active { color: var(--pine); border-bottom-color: var(--clay); }
.progress { height: 8px; background: var(--paper-3); border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--moss); border-radius: 99px; }
.skeleton { background: linear-gradient(90deg, var(--paper-2) 25%, var(--paper-3) 50%, var(--paper-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--r-sm); }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { text-align: center; padding: 3rem 1.5rem; color: var(--muted); }
.empty .ico { width: 3rem; height: 3rem; margin: 0 auto 1rem; stroke-width: 1.2; color: var(--line-2); }
.empty h3 { color: var(--ink-2); }
.pagination { display: flex; gap: .35rem; justify-content: center; margin-top: 2rem; }
.pagination a, .pagination span { min-width: 2.4rem; height: 2.4rem; padding: 0 .6rem; display: inline-grid; place-items: center; border-radius: var(--r-pill); font-weight: 600; font-size: .9rem; border: 1.5px solid var(--line); background: var(--card); }
.pagination .on { background: var(--pine); color: #fff; border-color: var(--pine); }
.modal-bg { position: fixed; inset: 0; background: rgba(27,33,29,.5); backdrop-filter: blur(3px); z-index: 900; display: none; align-items: center; justify-content: center; padding: 1rem; }
.modal-bg.open { display: flex; animation: fade .2s; }
.modal { background: var(--card); border-radius: var(--r-lg); width: min(560px, 100%); max-height: 92vh; overflow: auto; box-shadow: var(--sh-3); animation: pop .25s var(--ease); }
.modal.lg { width: min(860px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; }
.modal-body { padding: 1.5rem; }
.modal-foot { padding: 1rem 1.5rem; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: .6rem; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.map { width: 100%; height: 100%; min-height: 320px; border-radius: var(--r-lg); overflow: hidden; background: var(--paper-3); }
.maplibregl-popup-content { border-radius: 14px !important; padding: 0 !important; overflow: hidden; font-family: var(--font-body); box-shadow: var(--sh-3) !important; }
.maplibregl-popup-close-button { font-size: 20px; padding: 2px 8px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.map-pop { width: 220px; }
.map-pop img { width: 100%; height: 110px; object-fit: cover; }
.map-pop .b { padding: .7rem .8rem; }
.map-pop .b strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.marker { background: var(--pine); color: #fff; font-weight: 700; font-size: .78rem; padding: .3rem .55rem; border-radius: 99px; box-shadow: var(--sh-2); border: 2px solid #fff; cursor: pointer; white-space: nowrap; transition: transform .15s; }
.marker:hover, .marker.on { transform: scale(1.1); background: var(--clay); z-index: 5; }
.marker.cluster { background: var(--clay); width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; padding: 0; }
.marker.poi { background: #fff; color: var(--pine); border-color: var(--pine); }
/* Atribución de mapas: discreta y plegada (obligatoria por licencia, pero sin ruido visual) */
.maplibregl-ctrl-attrib.maplibregl-compact { background: rgba(255,253,248,.72); border-radius: 99px; margin: 0 6px 6px 0; font-size: 10px; }
.maplibregl-ctrl-attrib.maplibregl-compact:not(.maplibregl-compact-show) .maplibregl-ctrl-attrib-inner { display: none; }
.maplibregl-ctrl-attrib-button { opacity: .45; }
.maplibregl-ctrl-attrib-button:hover { opacity: 1; }
