/* ==========================================================================
   Jangaut — hoja de estilos de producción
   Agenda de eventos de Córdoba, Argentina
   Sistema de diseño basado en los tokens de marca (ver CLAUDE.md / AGENTS.md)
   ========================================================================== */

:root {
  /* Marca */
  --indigo: #1F2A44;
  --indigo-2: #2b3a63;
  --coral: #E4572E;
  --coral-dark: #c8461f;
  --teal: #17A398;
  --gold: #C8963E;
  --tech: #5B5BD6;

  /* Neutros */
  --ink: #222831;
  --muted: #5A6472;
  --line: #E5E9F0;
  --mist: #F5F7FA;
  --white: #fff;
  --green: #1FA971;

  /* Color por vertical */
  --gastro: #E4572E;
  --cultura: #17A398;
  --tecnologia: #5B5BD6;
  --mice: #C8963E;
  --deporte: #2F6FED;

  /* Tipografía */
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --wrap: 1160px;
  --radius: 16px;
  --shadow-sm: 0 1px 3px rgba(31, 42, 68, .06);
  --shadow-md: 0 14px 34px rgba(31, 42, 68, .12);
  --header-h: 68px;
}

/* Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--mist);
  line-height: 1.5;
  min-height: 100vh;
}
h1, h2, h3, h4, .font-head { font-family: var(--font-head); }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 4px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--indigo); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-weight: 600; transition: top .2s; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Botones ------------------------------------------------------------- */
.btn {
  font-family: var(--font-head);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 11px; padding: 11px 18px; font-weight: 600; font-size: 15px;
  text-decoration: none; transition: background .15s, transform .1s, box-shadow .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-dark); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--indigo); }
.btn-ghost:hover { background: var(--mist); }
.btn-light { background: #fff; color: var(--indigo); }
.btn-light:hover { background: #f0f2f6; }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 24px; font-size: 16px; }

/* Isotipo pin --------------------------------------------------------- */
.pin {
  width: 28px; height: 28px; background: var(--coral); flex: none;
  border-radius: 50% 50% 50% 4px; transform: rotate(-45deg);
  display: grid; place-items: center;
}
.pin::after {
  content: "J"; transform: rotate(45deg);
  font: 700 17px/1 'Space Grotesk', system-ui, -apple-system, sans-serif;
  color: #fff; -webkit-font-smoothing: antialiased;
}

/* Header -------------------------------------------------------------- */
.topbar {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 60;
}
.topbar .wrap { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brandmark { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brandmark .brand { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--indigo); line-height: 1; }
.brandmark .brand small { display: block; color: var(--muted); font-weight: 500; font-size: 11px; margin-top: 2px; font-family: var(--font-body); }
.topnav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.topnav a.navlink {
  color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500;
  padding: 9px 13px; border-radius: 9px;
}
.topnav a.navlink:hover, .topnav a.navlink.active { background: var(--mist); color: var(--indigo); }
.topnav .btn { font-size: 14px; padding: 9px 15px; }
.nav-toggle { display: none; width: 44px; height: 44px; margin-left: auto; border-radius: 10px; color: var(--indigo); }
.nav-toggle:hover { background: var(--mist); }
.nav-toggle svg { margin: 0 auto; }

/* Hero ---------------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, #1F2A44, #2b3a63 55%, #17313a);
  color: #fff; position: relative; overflow: hidden;
  padding: clamp(40px, 7vw, 72px) 0 clamp(34px, 5vw, 52px);
}
.hero::before { content: ""; position: absolute; right: -80px; top: -100px; width: 340px; height: 340px; background: radial-gradient(circle, rgba(228, 87, 46, .38), transparent 65%); }
.hero::after { content: ""; position: absolute; left: -60px; bottom: -160px; width: 360px; height: 360px; background: radial-gradient(circle, rgba(23, 163, 152, .32), transparent 65%); }
.hero .inner { position: relative; z-index: 1; max-width: 760px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head);
  font-size: 13px; font-weight: 600; letter-spacing: .04em; color: #f0d9a8;
  background: rgba(200, 150, 62, .18); border: 1px solid rgba(200, 150, 62, .4);
  padding: 6px 13px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(30px, 5.2vw, 48px); font-weight: 700; line-height: 1.06; letter-spacing: -.01em; max-width: 18ch; }
.hero p.lead { color: #d5dcea; margin-top: 14px; font-size: clamp(16px, 2vw, 19px); max-width: 54ch; }

.searchbar { margin-top: 26px; display: flex; gap: 10px; flex-wrap: wrap; }
.searchbar .field { flex: 1; min-width: 220px; position: relative; display: flex; align-items: center; }
.searchbar .field svg { position: absolute; left: 15px; color: var(--muted); pointer-events: none; }
.searchbar input {
  flex: 1; width: 100%; border: none; border-radius: 12px; padding: 15px 16px 15px 46px;
  font-size: 16px; font-family: inherit; color: var(--ink);
}
.searchbar input:focus { outline: 3px solid var(--coral); outline-offset: 0; }
.when-tabs { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.when {
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .24);
  color: #fff; padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 13.5px;
  font-family: var(--font-head); transition: background .15s;
}
.when:hover { background: rgba(255, 255, 255, .2); }
.when.active { background: var(--coral); border-color: var(--coral); }

/* Demo note ----------------------------------------------------------- */
.demo-note {
  background: #fff8e9; border: 1px solid #f0dfb5; color: #7a5b1a;
  font-size: 13.5px; padding: 11px 16px; border-radius: 12px; margin: 18px auto 0;
  display: flex; gap: 8px; align-items: flex-start;
}

/* Discovery layout ---------------------------------------------------- */
.discover { padding: 26px 0 64px; }
.discover-grid { display: grid; grid-template-columns: 244px 1fr; gap: 28px; align-items: start; }

/* Filtros */
.filters-toggle { display: none; }
.filters-backdrop { display: none; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); }
.filters .group { margin-bottom: 22px; }
.filters h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.chips { display: flex; flex-direction: column; gap: 8px; }
.chip {
  display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line);
  border-radius: 11px; padding: 10px 12px; font-size: 14px; font-weight: 600; font-family: var(--font-head);
  color: var(--ink); text-align: left; width: 100%; transition: border-color .12s, box-shadow .12s;
}
.chip:hover { border-color: #cdd5e2; }
.chip .dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.chip.active { border-color: var(--indigo); box-shadow: 0 0 0 2px rgba(31, 42, 68, .12); }
.chip .count { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 500; font-family: var(--font-body); }
.price-row { display: flex; gap: 8px; flex-wrap: wrap; }
.mini {
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
  font-size: 13px; font-weight: 600; font-family: var(--font-head); color: var(--ink);
}
.mini:hover { border-color: #cdd5e2; }
.mini.active { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.zone-sel {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px;
  font-family: inherit; font-size: 14px; background: #fff; color: var(--ink);
}

/* Resultados */
.results-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.results-head h2 { font-size: clamp(20px, 3vw, 26px); color: var(--indigo); }
.results-head .n { color: var(--muted); font-size: 14px; }
.sort { margin-left: auto; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.sort select { border: 1px solid var(--line); border-radius: 9px; padding: 7px 9px; font-family: inherit; font-size: 13px; background: #fff; color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }

/* Card ---------------------------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s; text-align: left; width: 100%;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card .thumb { height: 140px; position: relative; display: flex; align-items: flex-end; padding: 11px; color: #fff; overflow: hidden; }
.thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.thumb-ov { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.08) 40%, rgba(0,0,0,.55)); z-index: 1; }
.card .thumb .fav, .card .thumb .cat-badge, .modal .head .close, .modal .head .cat-badge { position: relative; z-index: 2; }
.card .thumb .fav { position: absolute; z-index: 2; }
.modal .head .close { position: absolute; z-index: 2; }
.card .thumb .cat-badge {
  background: rgba(0, 0, 0, .34); backdrop-filter: blur(3px); padding: 5px 11px;
  border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .03em; font-family: var(--font-head);
}
.card .thumb .fav {
  position: absolute; top: 11px; right: 11px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); font-size: 15px; display: grid; place-items: center; color: #7a8598;
}
.card .thumb .fav.on { background: var(--coral); color: #fff; }
.card .body { padding: 15px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .date { font-size: 12px; font-weight: 600; color: var(--coral); text-transform: uppercase; letter-spacing: .03em; font-family: var(--font-head); }
.card h3 { font-size: 16.5px; color: var(--indigo); line-height: 1.22; font-weight: 600; }
.card .title-link { font: inherit; color: inherit; text-align: left; padding: 0; }
.card .title-link:hover { color: var(--coral); }
.card .venue { font-size: 13px; color: var(--muted); }
.card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 10px; }
.price { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--indigo); }
.price.free { color: var(--teal); }
.verified { font-size: 11px; color: var(--teal); font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }

.empty { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 56px 20px; text-align: center; color: var(--muted); grid-column: 1 / -1; }
.empty .big { font-size: 38px; margin-bottom: 8px; }

/* Modal --------------------------------------------------------------- */
.overlay {
  position: fixed; inset: 0; background: rgba(20, 26, 42, .58); z-index: 100;
  display: none; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow: auto;
}
.overlay.open { display: flex; }
.modal { background: #fff; border-radius: 20px; max-width: 640px; width: 100%; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); animation: modalIn .2s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.modal .head { height: 190px; position: relative; color: #fff; display: flex; align-items: flex-end; padding: 16px; }
.modal .head .close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; background: rgba(0, 0, 0, .42); color: #fff; font-size: 18px; display: grid; place-items: center; }
.modal .head .close:hover { background: rgba(0, 0, 0, .6); }
.modal .head .cat-badge { background: rgba(0, 0, 0, .36); padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; font-family: var(--font-head); }
.modal .content { padding: 24px; }
.modal h2 { font-size: clamp(22px, 3vw, 26px); color: var(--indigo); line-height: 1.15; margin-bottom: 6px; }
.meta-row { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 14.5px; margin: 9px 0; }
.meta-row .ic { width: 22px; text-align: center; flex: none; }
.modal p.desc { margin: 16px 0; line-height: 1.6; color: #3a4250; }
.tag-line { display: flex; gap: 8px; flex-wrap: wrap; }
.tg { background: var(--mist); border-radius: 999px; padding: 5px 12px; font-size: 12px; color: var(--muted); font-weight: 600; }
.modal .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; border-top: 1px solid var(--line); padding-top: 20px; }

/* Secciones genéricas -------------------------------------------------- */
.section { padding: clamp(48px, 7vw, 80px) 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head .eyebrow { display: inline-block; font-family: var(--font-head); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--coral); margin-bottom: 10px; }
.section-head h2 { font-size: clamp(26px, 4vw, 38px); color: var(--indigo); line-height: 1.1; letter-spacing: -.01em; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 17px; }

/* Verticales */
.verticals { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.vertical {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px;
  position: relative; overflow: hidden; transition: transform .15s, box-shadow .15s;
}
.vertical:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.vertical .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; color: #fff; margin-bottom: 16px; }
.vertical h3 { font-size: 19px; color: var(--indigo); margin-bottom: 6px; }
.vertical p { font-size: 14.5px; color: var(--muted); }
.vertical .bar { position: absolute; top: 0; left: 0; right: 0; height: 4px; }
a.vertical { text-decoration: none; color: inherit; display: block; }
a.vertical .demo-link { display: inline-block; margin-top: 14px; color: var(--coral); font-family: var(--font-head); font-weight: 600; font-size: 14px; }
a.vertical:hover .demo-link { text-decoration: underline; }

/* Pasos / cómo funciona */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.step { text-align: center; }
.step .num { width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 50%; background: var(--indigo); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 20px; display: grid; place-items: center; }
.step h3 { font-size: 18px; color: var(--indigo); margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, #1F2A44, #2b3a63); color: #fff; border-radius: var(--radius); padding: clamp(32px, 5vw, 56px); text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; bottom: -100px; width: 280px; height: 280px; background: radial-gradient(circle, rgba(228, 87, 46, .4), transparent 65%); }
.cta-band .inner { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(24px, 4vw, 34px); line-height: 1.12; max-width: 20ch; margin: 0 auto 12px; }
.cta-band p { color: #d5dcea; max-width: 48ch; margin: 0 auto 24px; font-size: 17px; }
.cta-band .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Planes (organizadores) */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px; display: flex; flex-direction: column; position: relative; }
.plan.pop { border: 2px solid var(--coral); box-shadow: var(--shadow-md); }
.plan.pop::before { content: "Recomendado"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--coral); color: #fff; font-size: 11px; font-weight: 700; font-family: var(--font-head); padding: 4px 13px; border-radius: 999px; }
.plan h3 { font-size: 20px; color: var(--indigo); }
.plan .pr { font-family: var(--font-head); font-size: 30px; font-weight: 700; color: var(--indigo); margin: 10px 0; }
.plan .pr small { font-size: 14px; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; margin: 8px 0 22px; flex: 1; }
.plan li { padding-left: 26px; position: relative; font-size: 14.5px; margin: 10px 0; color: #3a4250; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

/* Feature rows */
.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature .fi { width: 44px; height: 44px; border-radius: 12px; background: var(--mist); display: grid; place-items: center; font-size: 20px; flex: none; }
.feature h3 { font-size: 17px; color: var(--indigo); margin-bottom: 4px; }
.feature p { font-size: 14.5px; color: var(--muted); }

/* Prose (legales) */
.prose { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); }
.prose h1 { font-size: clamp(26px, 4vw, 34px); color: var(--indigo); margin-bottom: 8px; }
.prose .updated { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.prose h2 { font-size: 20px; color: var(--indigo); margin: 28px 0 10px; }
.prose h3 { font-size: 16px; color: var(--indigo); margin: 18px 0 8px; }
.prose p, .prose li { color: #3a4250; font-size: 15.5px; line-height: 1.7; }
.prose ul, .prose ol { margin: 10px 0 10px 22px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--coral); font-weight: 600; }

/* Footer -------------------------------------------------------------- */
footer { background: var(--indigo); color: #b9c2d6; padding: 52px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
footer .brandmark .brand { color: #fff; }
footer .brandmark .brand small { color: #8fa0c4; }
footer .fcol h4 { font-family: var(--font-head); color: #fff; font-size: 14px; margin-bottom: 12px; }
footer .fcol a { display: block; color: #b9c2d6; text-decoration: none; padding: 5px 0; }
footer .fcol a:hover { color: #fff; }
footer .fabout p { margin: 14px 0; max-width: 34ch; color: #a7b1c9; }
footer .social { display: flex; gap: 10px; }
footer .social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; color: #cdd6e8; }
footer .social a:hover { background: var(--coral); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 36px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #8fa0c4; }

/* Toast --------------------------------------------------------------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(90px); background: var(--indigo); color: #fff; padding: 13px 22px; border-radius: 12px; font-weight: 600; font-size: 14px; z-index: 200; opacity: 0; transition: .3s; box-shadow: var(--shadow-md); }
.toast.show { transform: translateX(-50%); opacity: 1; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .discover-grid { grid-template-columns: 1fr; }
  .filters {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw); z-index: 90;
    background: #fff; padding: 24px 20px; overflow-y: auto;
    transform: translateX(100%); transition: transform .25s ease; box-shadow: -10px 0 40px rgba(0, 0, 0, .15);
    top: 0; height: 100%;
  }
  .filters.open { transform: translateX(0); }
  .filters .filters-close { display: grid; }
  .filters-toggle {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
    background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 11px 16px;
    font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--indigo);
  }
  .filters-backdrop { position: fixed; inset: 0; background: rgba(20, 26, 42, .5); z-index: 89; display: none; }
  .filters-backdrop.open { display: block; }
}
.filters-close { display: none; position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 10px; background: var(--mist); color: var(--indigo); font-size: 18px; place-items: center; }

@media (max-width: 760px) {
  .nav-toggle { display: grid; }
  .topnav {
    position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 55;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 20px;
    box-shadow: var(--shadow-md); display: none;
  }
  .topnav.open { display: flex; }
  .topnav a.navlink { padding: 12px 14px; font-size: 16px; }
  .topnav .btn { width: 100%; padding: 13px; font-size: 15px; margin-top: 4px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer-grid .fabout { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .grid { grid-template-columns: 1fr; }
  .searchbar .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .modal .actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   PLATAFORMA DE USUARIOS  (cuenta, login, proponer, admin)
   ========================================================================== */

/* Utilidades reutilizadas fuera del hero/section-head */
.propose .eyebrow, .account .eyebrow { display:inline-block; font-family:var(--font-head); font-size:13px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--coral); margin-bottom:10px; }
.propose .lead, .account .lead { color:var(--muted); max-width:60ch; font-size:16px; }
.btn-sm { padding:7px 12px; font-size:13px; border-radius:9px; }
.btn-danger { color:#c0392b; border-color:#f0c9c2; }
.btn-danger:hover { background:#fdecea; }
.muted { color:var(--muted); }

/* ---- Header: bloque de cuenta ---------------------------------------- */
.auth-slot { display:inline-flex; align-items:center; gap:10px; }
.acct { position:relative; }
.acct-btn { display:inline-flex; align-items:center; gap:8px; padding:5px 10px 5px 5px; border-radius:999px; border:1px solid var(--line); background:#fff; color:var(--indigo); font-weight:600; font-family:var(--font-head); font-size:14px; }
.acct-btn:hover { background:var(--mist); }
.acct-btn img, .acct-ini { width:30px; height:30px; border-radius:50%; object-fit:cover; }
.acct-ini { display:inline-flex; align-items:center; justify-content:center; background:var(--indigo); color:#fff; font-size:13px; font-weight:700; }
.acct-name { max-width:120px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.acct-caret { font-size:11px; color:var(--muted); }
.acct-menu { position:absolute; right:0; top:calc(100% + 8px); min-width:190px; background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow-md); padding:6px; z-index:60; display:flex; flex-direction:column; }
.acct-menu a, .acct-menu button { text-align:left; padding:9px 12px; border-radius:8px; font-size:14px; color:var(--ink); text-decoration:none; background:none; }
.acct-menu a:hover, .acct-menu button:hover { background:var(--mist); }
.acct-menu .acct-admin { color:var(--coral); font-weight:600; }
@media (max-width:860px){ .acct-name{ max-width:none; } }

/* ---- Modal de login --------------------------------------------------- */
.auth-overlay { position:fixed; inset:0; background:rgba(31,42,68,.55); display:none; align-items:center; justify-content:center; padding:20px; z-index:200; }
.auth-overlay.open { display:flex; }
.auth-modal { position:relative; background:#fff; border-radius:20px; padding:34px 30px 30px; width:100%; max-width:400px; box-shadow:var(--shadow-md); text-align:center; }
.auth-close { position:absolute; top:14px; right:16px; font-size:18px; color:var(--muted); line-height:1; }
.auth-pin { display:inline-block; width:34px; height:34px; background:var(--coral); border-radius:9px 9px 9px 3px; transform:rotate(-45deg); margin-bottom:16px; }
.auth-modal h2 { font-size:23px; color:var(--indigo); }
.auth-sub { color:var(--muted); font-size:14px; margin:6px 0 22px; }
.btn-google { width:100%; background:#fff; color:var(--ink); border:1px solid var(--line); }
.btn-google:hover { background:var(--mist); }
.auth-or { display:flex; align-items:center; gap:12px; color:var(--muted); font-size:13px; margin:18px 0 14px; }
.auth-or::before, .auth-or::after { content:""; flex:1; height:1px; background:var(--line); }
#authEmailForm { display:flex; flex-direction:column; gap:10px; }
#authEmailForm input { padding:12px 14px; border:1px solid var(--line); border-radius:11px; font-size:15px; font-family:var(--font-body); }
.auth-msg { font-size:13px; margin-top:12px; min-height:18px; color:var(--muted); }
.auth-msg.ok { color:var(--green); } .auth-msg.err { color:#c0392b; }

/* ---- Layout de páginas internas -------------------------------------- */
.account, .propose { padding:32px 20px 60px; }
.footer-min { border-top:1px solid var(--line); background:#fff; color:var(--muted); font-size:13px; padding:20px; text-align:center; margin-top:40px; }

.panel-card { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:22px 22px; box-shadow:var(--shadow-sm); margin-bottom:20px; }
.panel-card > h2 { font-size:18px; color:var(--indigo); margin-bottom:14px; }
.panel-card-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; flex-wrap:wrap; }
.panel-card-head h2 { font-size:18px; color:var(--indigo); }

/* Estado sin sesión */
.need-login { max-width:460px; margin:70px auto; text-align:center; padding:0 20px; }
.need-login .big { font-size:52px; margin-bottom:8px; }
.need-login h1, .need-login h2 { color:var(--indigo); margin-bottom:8px; }
.need-login p { color:var(--muted); margin-bottom:22px; }

/* Cabecera de cuenta */
.account-head { display:flex; align-items:center; gap:16px; margin-bottom:24px; }
.account-avatar { width:64px; height:64px; border-radius:50%; overflow:hidden; background:var(--indigo); color:#fff; display:flex; align-items:center; justify-content:center; font-size:24px; font-weight:700; font-family:var(--font-head); flex:none; }
.account-avatar img { width:100%; height:100%; object-fit:cover; }
.account-head h1 { font-size:26px; color:var(--indigo); }

/* Formularios */
.form-grid { display:flex; flex-direction:column; gap:16px; }
.form-grid label { display:flex; flex-direction:column; gap:6px; font-size:14px; font-weight:600; color:var(--indigo); }
.form-grid input, .form-grid select, .form-grid textarea { padding:11px 13px; border:1px solid var(--line); border-radius:11px; font-size:15px; font-family:var(--font-body); font-weight:400; color:var(--ink); background:#fff; }
.form-grid textarea { resize:vertical; }
.form-grid .row-2 { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.form-grid label.check { flex-direction:row; align-items:center; gap:10px; font-weight:500; color:var(--ink); }
.form-grid label.check input { width:18px; height:18px; }
.form-actions { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.form-msg { font-size:14px; } .form-msg.ok { color:var(--green); } .form-msg.err { color:#c0392b; }
@media (max-width:560px){ .form-grid .row-2 { grid-template-columns:1fr; } }

/* Listas compactas (favoritos, propuestas) */
.mini-list { display:flex; flex-direction:column; gap:10px; }
.mini-row { display:flex; align-items:center; gap:14px; padding:10px; border:1px solid var(--line); border-radius:12px; }
.mini-thumb { width:52px; height:52px; border-radius:9px; overflow:hidden; background:var(--mist); display:flex; align-items:center; justify-content:center; font-size:22px; flex:none; }
.mini-thumb img { width:100%; height:100%; object-fit:cover; }
.mini-main { flex:1; display:flex; flex-direction:column; gap:3px; min-width:0; }
.mini-main strong { color:var(--indigo); font-size:15px; }
.mini-main .muted { font-size:13px; }
.mini-actions { display:flex; align-items:center; gap:8px; flex:none; }
.rej-note { font-size:12px; color:#c0392b; }

/* Badges de estado */
.st { font-size:12px; font-weight:600; padding:3px 9px; border-radius:999px; white-space:nowrap; }
.st-pend { background:#fef3e2; color:#a86416; }
.st-ok { background:#e5f6ee; color:#12805c; }
.st-no { background:#fdecea; color:#c0392b; }
.st-cat { background:var(--mist); color:var(--indigo); }
.st-feat { background:#faf0dc; color:#9a7220; }

/* ---- Proponer evento -------------------------------------------------- */
.propose-head { max-width:640px; margin-bottom:26px; }
.propose-head h1 { font-size:clamp(26px,4vw,34px); color:var(--indigo); margin:4px 0 8px; }
.propose-grid { display:grid; grid-template-columns:1fr 340px; gap:24px; align-items:start; }
.propose-preview { position:sticky; top:88px; }
.propose-preview h3 { color:var(--indigo); font-size:16px; margin-bottom:4px; }
.propose-preview .muted { font-size:13px; margin-bottom:12px; }
.propose-preview .card { max-width:none; }
@media (max-width:900px){ .propose-grid { grid-template-columns:1fr; } .propose-preview { position:static; max-width:360px; } }

/* ---- Panel admin ------------------------------------------------------ */
body.admin { background:var(--mist); }
.admin-main { padding:24px 20px 60px; }
.admin-tabs { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:22px; border-bottom:1px solid var(--line); }
.admin-tabs .tab { font-family:var(--font-head); font-weight:600; font-size:14px; color:var(--muted); padding:11px 15px; border-bottom:3px solid transparent; display:inline-flex; align-items:center; gap:7px; }
.admin-tabs .tab:hover { color:var(--indigo); }
.admin-tabs .tab.active { color:var(--indigo); border-bottom-color:var(--coral); }
.tab-badge { background:var(--coral); color:#fff; font-size:11px; font-weight:700; min-width:18px; height:18px; padding:0 5px; border-radius:999px; display:inline-flex; align-items:center; justify-content:center; }
.tabpane { animation:fade .2s ease; }
@keyframes fade { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:none; } }

/* Stat cards */
.stat-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:20px; }
.stat { background:#fff; border:1px solid var(--line); border-radius:14px; padding:18px; box-shadow:var(--shadow-sm); display:flex; flex-direction:column; gap:2px; }
.stat.warn { border-color:#f3d3a6; background:#fffdf8; }
.stat-n { font-family:var(--font-head); font-size:30px; font-weight:700; color:var(--indigo); line-height:1; }
.stat-l { font-weight:600; color:var(--ink); font-size:14px; margin-top:6px; }
.stat-s { font-size:12px; color:var(--muted); }
@media (max-width:900px){ .stat-grid { grid-template-columns:repeat(2,1fr); } }

.dash-2col { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
@media (max-width:860px){ .dash-2col { grid-template-columns:1fr; } }

/* Barras de altas */
.bars { display:flex; align-items:flex-end; gap:6px; height:150px; padding-top:10px; }
.bar-col { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; height:100%; gap:6px; }
.bar { width:100%; max-width:26px; min-height:3px; background:linear-gradient(180deg,var(--tech),var(--indigo)); border-radius:5px 5px 0 0; }
.bar-x { font-size:10px; color:var(--muted); }

/* Lista de moderación / eventos / reportes */
.mod-list { display:flex; flex-direction:column; gap:14px; }
.mod-item { display:flex; gap:16px; align-items:flex-start; padding:16px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.mod-thumb { width:88px; height:88px; border-radius:11px; overflow:hidden; background:var(--mist); display:flex; align-items:center; justify-content:center; font-size:32px; flex:none; }
.mod-thumb img { width:100%; height:100%; object-fit:cover; }
.mod-body { flex:1; min-width:0; }
.mod-body h3 { color:var(--indigo); font-size:16px; margin-bottom:8px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.mod-meta { display:flex; flex-wrap:wrap; gap:8px 14px; font-size:13px; color:var(--muted); margin-bottom:8px; align-items:center; }
.mod-desc { font-size:14px; color:var(--ink); margin:6px 0; }
.mod-link { font-size:13px; color:var(--tech); word-break:break-all; }
.mod-cta { display:flex; flex-direction:column; gap:8px; flex:none; }
@media (max-width:640px){ .mod-item { flex-wrap:wrap; } .mod-cta { flex-direction:row; width:100%; } }

/* Tabla de usuarios */
.table-wrap { overflow-x:auto; }
.admin-table { width:100%; border-collapse:collapse; font-size:14px; }
.admin-table th, .admin-table td { text-align:left; padding:11px 12px; border-bottom:1px solid var(--line); white-space:nowrap; }
.admin-table th { font-family:var(--font-head); color:var(--muted); font-weight:600; font-size:12px; text-transform:uppercase; letter-spacing:.04em; }
.role-sel { padding:6px 8px; border:1px solid var(--line); border-radius:8px; font-size:13px; font-family:var(--font-body); background:#fff; }
.user-search { padding:8px 12px; border:1px solid var(--line); border-radius:10px; font-size:14px; min-width:220px; font-family:var(--font-body); }
