/* =====================================================================
   Ian Cárdenas — hoja de estilos MOBILE-FIRST
   Estilos base = celular. Las pantallas más grandes se agregan con
   @media (min-width: …): 640px (tableta) y 960px (escritorio).
   ===================================================================== */

/* ---------------------------------------------------------------- fuentes (alojadas en el sitio, sin Google) */
@font-face {
  font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/anton-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------- identidad (tema en js/config.js) */
:root, [data-tema="marino"] {
  --primary: #13294b;  --primary-dark: #0b1a33;
  --accent: #c93a1e;   --on-accent: #ffffff;   /* contraste AA (≥4.5:1) con texto blanco */
  --highlight: #ffd23f; --tint: #eef3fb;
}
[data-tema="guinda"]  { --primary: #5e1a32; --primary-dark: #3f0f21; --accent: #8a6a22; --on-accent: #fff; --highlight: #e9c46a; --tint: #f8efe9; }
/* "ian": colores de su CV (#7D2D40 guinda, #BB9A92 rosa). El rosa se oscurece en --accent para contraste AA con texto blanco. */
[data-tema="ian"]     { --primary: #7D2D40; --primary-dark: #5A1F2E; --accent: #8A6159; --on-accent: #fff; --highlight: #E6CFC8; --tint: #F6EEEB; --rose: #BB9A92; --cta: #7D2D40; --on-cta: #fff; }
[data-tema="naranja"] { --primary: #222222; --primary-dark: #111111; --accent: #b34f00; --on-accent: #fff; --highlight: #ffb15c; --tint: #fff3e8; }
[data-tema="azul"]    { --primary: #0a3a7a; --primary-dark: #06275a; --accent: #0b74b8; --on-accent: #fff; --highlight: #8fd3ff; --tint: #eaf4fc; }
[data-tema="verde"]   { --primary: #0b4f34; --primary-dark: #073826; --accent: #437517; --on-accent: #fff; --highlight: #c6ef7e; --tint: #eef7ea; }
[data-tema="rojo"]    { --primary: #6b0f14; --primary-dark: #4a0a0d; --accent: #c81e25; --on-accent: #fff; --highlight: #ffcf4a; --tint: #fcefee; }

:root {
  --bg: #ffffff; --card: #ffffff; --text: #121826; --muted: #535c6b; --border: #e3e6ec;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(10, 20, 40, .10);
  --header-h: 64px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Anton", "Impact", "Arial Narrow Bold", sans-serif;
}
@media (min-width: 960px) { :root { --radius: 22px; --header-h: 72px; } }

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 1rem; color: var(--text); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.container { width: min(1240px, 100% - 2rem); margin-inline: auto; }
@media (min-width: 640px) { .container { width: min(1240px, 100% - 4rem); } }
.hidden { display: none !important; }
.is-empty { display: none !important; } /* secciones sin contenido real; independiente del modo legal */
.display { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .5px; line-height: .95; }
em.hl { font-style: italic; color: var(--highlight); }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: .75rem; font-weight: 800; color: var(--accent); margin-bottom: .6rem; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 3000; background: #fff; padding: .6rem 1rem; }
.skip-link:focus { left: .5rem; top: .5rem; }

/* ---------------------------------------------------------------- botones (mín. 48px de alto: área táctil) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; border: 0; border-radius: 999px;
  padding: .8em 1.5em; font: 800 1rem var(--font); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .1s, filter .2s; -webkit-tap-highlight-color: transparent; }
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--cta, var(--accent)); color: var(--on-cta, var(--on-accent)); }
.hero-x .btn-primary, .promise-band .btn-primary, .map-band .btn-primary { background: #fff; color: var(--primary); }
.btn-dark { background: var(--primary); color: #fff; }
.btn-light { background: #fff; color: var(--primary); }
.btn-ghost { background: transparent; color: inherit; border: 2px solid currentColor; }
.btn-sm { min-height: 40px; padding: .5em 1.1em; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------------------------------------------------------------- logo */
.logo { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--primary); line-height: .85; transform: rotate(-4deg); }
.logo .l1 { font: 800 .68rem var(--font); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 5px; }
.logo .l2 { font-family: var(--display); font-size: 1.55rem; text-transform: uppercase; letter-spacing: .5px; }
.logo .l2::after { content: ""; display: block; height: 4px; background: var(--accent); border-radius: 2px; margin-top: 3px; width: 70%; }
.logo.light { color: #fff; }
.logo-img { display: inline-flex; align-items: center; }
.logo-img img { height: 44px; width: auto; }
.site-footer .logo-img img { height: 70px; }
@media (min-width: 960px) { .site-header .logo-img img { height: 52px; } }
.brand-ic { height: 30px; width: auto; float: left; margin: 2px .6rem 0 0; }
.hormigas { height: 56px; width: auto; margin: 0 0 1rem; }
.hormiga { height: 44px; width: auto; margin: 0 0 .8rem; }
.qr { margin: 2rem auto 0; display: inline-grid; justify-items: center; gap: .6rem; }
.qr img { width: 180px; height: 180px; border-radius: 16px; }
.qr figcaption { font-weight: 800; letter-spacing: 1px; text-transform: uppercase; font-size: .8rem; color: var(--primary); }
@media (min-width: 960px) { .logo .l2 { font-size: 1.75rem; } }

/* ---------------------------------------------------------------- header + menú */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }
.nav-toggle { display: grid; place-items: center; width: 48px; height: 48px; margin-right: -10px; background: none; border: 0; color: var(--primary); cursor: pointer; }
.nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch;
  background: #fff; padding: .5rem 1rem 1.2rem; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
.nav.open { display: flex; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.05rem; padding: .8rem .2rem; border-bottom: 1px solid var(--border); }
.nav .btn { margin-top: .8rem; }
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav { display: flex; position: static; flex-direction: row; align-items: center; gap: 1.6rem; padding: 0; background: none; border: 0; box-shadow: none; }
  .nav a:not(.btn) { font-size: .95rem; padding: 0; border: 0; }
  .nav a:not(.btn):hover { color: var(--accent); }
  .nav .btn { margin-top: 0; }
}
/* header oscuro (mapa y aviso) */
.site-header.dark { background: var(--primary); border-bottom: 0; }
.site-header.dark .brand, .site-header.dark .nav-mini a { color: #fff; }
.brand { color: var(--primary); text-decoration: none; font-weight: 800; font-size: 1.1rem; }
.brand small { display: block; font-weight: 500; font-size: .72rem; opacity: .8; }

.banner-campana { background: var(--accent); color: var(--on-accent); text-align: center; padding: .6rem; font-weight: 800; }

/* ---------------------------------------------------------------- secciones y utilidades */
section { padding: 3.5rem 0; scroll-margin-top: var(--header-h); }
@media (min-width: 960px) { section { padding: 6rem 0; } }
.section-title { font-size: clamp(2.3rem, 6vw, 4.2rem); margin: 0 0 .6rem; color: var(--primary); }
.section-sub { color: var(--muted); max-width: 42em; margin: 0 0 2rem; font-size: 1.05rem; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }
.tint { background: var(--tint); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.panel { border-radius: var(--radius); overflow: hidden; position: relative; }
.panel-dark { background: var(--primary); color: #fff; padding: 1.6rem; }
.two-col, .hero-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .panel-dark { padding: 2.4rem; } .card { padding: 1.8rem; } }
@media (min-width: 960px) {
  .two-col { grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
  .hero-grid { grid-template-columns: 1fr 1.1fr; gap: 1.2rem; }
  .panel-dark { padding: 3rem; }
}

/* ---------------------------------------------------------------- HERO: foto a sangre (celular primero) */
.hero-x { position: relative; padding: 0; min-height: calc(100svh - var(--header-h)); display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--primary-dark); color: #fff; overflow: hidden; }
.hero-x__photo, .hero-x__photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-x__photo img { object-fit: cover; object-position: 50% 18%; }
.hero-x::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, color-mix(in srgb, var(--primary-dark) 70%, transparent) 62%, var(--primary-dark) 96%); }
.hero-x__body { position: relative; z-index: 1; padding: 0 0 2.2rem; }
.hero-x .eyebrow { color: var(--highlight); }
.hero-x__name { font-size: clamp(4.2rem, 22vw, 8.6rem); line-height: .9; margin: 0 0 .5rem; letter-spacing: 1px; }
.hero-x__tag { font-size: clamp(1.7rem, 8vw, 2.8rem); margin: 0 0 1rem; }
.hero-x__lead { font-size: 1.06rem; line-height: 1.5; max-width: 30em; margin: 0 0 1.4rem; opacity: .95; }
.ctas { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.hero-x .btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
@media (min-width: 640px) { .ctas { display: flex; flex-wrap: wrap; } }
@media (min-width: 960px) {
  .hero-x { min-height: min(88vh, 820px); display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .hero-x::after { display: none; }
  .hero-x__photo { left: 50%; }
  .hero-x__photo img { object-position: 50% 45%; }
  .hero-x__body { width: auto; margin: 0; padding: 4rem 3rem 4rem max(2rem, calc((100vw - 1240px) / 2)); }
  .hero-x__name { font-size: clamp(5rem, 8vw, 8.4rem); }
}

/* ---------------------------------------------------------------- formularios */
form .field { display: grid; gap: .35rem; margin-bottom: 1rem; }
label { font-weight: 700; font-size: .95rem; }
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%; min-height: 48px; padding: .75em 1em; border: 1px solid var(--border); border-radius: 12px;
  font: inherit; font-size: 1rem; /* 16px evita el zoom automático en iPhone */ background: #fff; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); border-color: var(--accent); }
textarea { min-height: 110px; resize: vertical; }
.join-form .row { display: grid; gap: .6rem; margin-bottom: .6rem; }
@media (min-width: 640px) { .join-form .row { grid-template-columns: 1fr 1fr; } }
.join-form input[type=text], .join-form input[type=tel], .join-form input[type=email] { border-width: 2px; }
.panel-dark .join-form input { border-color: transparent; }
.panel-dark .join-form input:focus { border-color: var(--highlight); outline: none; }
.join-form .consent { color: inherit; font-size: .8rem; margin-top: .8rem; }
.panel-dark .consent { color: rgba(255,255,255,.85); }
.join-form .consent a { color: inherit; }
.checks { display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; }
.checks label { font-weight: 500; display: flex; gap: .5rem; align-items: center; min-height: 40px; }
.consent { font-weight: 400; font-size: .86rem; color: var(--muted); display: flex; gap: .6rem; align-items: flex-start; }
.consent input, .checks input { width: 20px; height: 20px; margin-top: .1rem; flex-shrink: 0; accent-color: var(--accent); }
.form-msg { padding: .8rem 1rem; border-radius: 12px; margin-top: 1rem; font-weight: 600; }
.form-msg.ok { background: #e6f4ea; color: #1e4620; }
.form-msg.err { background: #fde8e8; color: #7a1c1c; }
.hint { font-size: .85rem; color: var(--muted); font-weight: 400; }

/* ---------------------------------------------------------------- Quién soy: texto grande, sin tarjetas */
.narrow { max-width: 860px; }
.statement { font-weight: 800; font-size: clamp(1.65rem, 6.6vw, 3.1rem); line-height: 1.15; letter-spacing: -.02em; color: var(--text); margin: 0 0 2rem; }
mark { color: var(--primary); background: linear-gradient(transparent 58%, var(--highlight) 58%); padding: 0 .08em; }
.story-text p { font-size: 1.08rem; line-height: 1.65; margin: 0 0 1.1rem; color: #2b2f38; }
.story-text p:first-child::first-letter { font-family: var(--display); float: left; font-size: 3.6rem; line-height: .85; padding: .3rem .5rem 0 0; color: var(--primary); }
@media (min-width: 960px) { .story-text { columns: 2; column-gap: 3rem; } .story-text p { break-inside: avoid; } }

/* ---------------------------------------------------------------- Compromiso: banda guinda */
.promise-band { background: var(--primary); color: #fff; }
.promise-band .eyebrow { color: var(--highlight); }
.promise-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 2rem; }
.promise-list li { border-top: 2px solid rgba(255,255,255,.25); padding-top: 1.1rem; }
.promise-list .n { font-family: var(--display); font-size: 1.4rem; color: var(--highlight); }
.promise-list h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.2rem, 10vw, 3.2rem); line-height: .95; margin: .3rem 0 .6rem; }
.promise-list p { margin: 0; font-size: 1.05rem; opacity: .9; max-width: 26em; }
@media (min-width: 960px) { .promise-list { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }

/* ---------------------------------------------------------------- Trayectoria (línea de tiempo) */
.timeline { list-style: none; padding: 0; margin: 1.6rem 0 0; }
.timeline li { position: relative; padding: 0 0 1.6rem 1.8rem; border-left: 2px solid var(--rose, var(--border)); margin-left: .4rem; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: .2rem; width: 14px; height: 14px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--tint); }
.timeline .yr { display: block; font-family: var(--display); font-size: 1.35rem; line-height: 1; color: var(--primary); margin-bottom: .3rem; }
.timeline .org { display: block; text-transform: uppercase; letter-spacing: 1.2px; font-size: .72rem; font-weight: 800; color: var(--accent); }
.timeline b { display: block; font-size: 1.08rem; }
.timeline .what { color: var(--muted); }
@media (min-width: 960px) { .timeline { columns: 2; column-gap: 3rem; } .timeline li { break-inside: avoid; } }

/* ---------------------------------------------------------------- carril deslizable (causas, galería) */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: .9rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .2rem 1rem 1rem; scroll-padding-inline: 1rem; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.swipe-hint { font-size: .85rem; font-weight: 700; color: var(--muted); margin: 0 1rem; }
@media (min-width: 640px) { .rail { grid-auto-columns: 46%; padding-inline: 2rem; scroll-padding-inline: 2rem; } }
@media (min-width: 960px) {
  .rail { width: min(1240px, 100% - 4rem); margin-inline: auto; padding-inline: 0; grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; gap: 1.2rem; }
  .swipe-hint { display: none; }
}

/* ---------------------------------------------------------------- Causas */
.cause-x { position: relative; min-height: 340px; border-radius: var(--radius); padding: 1.6rem; color: #fff; background: var(--primary);
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.cause-x:nth-child(2) { background: var(--accent); }
.cause-x:nth-child(3) { background: var(--primary-dark); }
.cause-x svg { width: 52px; height: 52px; stroke: var(--highlight); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cause-x .n { position: absolute; top: 1.2rem; right: 1.4rem; font-family: var(--display); font-size: 3.4rem; line-height: 1; opacity: .18; }
.cause-x h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.3rem, 10vw, 2.8rem); line-height: .95; margin: 0; }
.cause-x .count { align-self: flex-start; margin-top: .9rem; font-weight: 800; font-size: .82rem; background: rgba(0,0,0,.25); padding: .3rem .75rem; border-radius: 999px; }

/* ---------------------------------------------------------------- Galería "En territorio" */
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 4 / 5; background: var(--tint); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1rem .9rem; color: #fff; font-weight: 700; font-size: .95rem;
  background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.reel { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.1rem; color: #fff; text-decoration: none; background: linear-gradient(170deg, var(--primary), var(--accent) 140%); }
.reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.7)); z-index: 1; }
.reel > *:not(img) { position: relative; z-index: 2; }
.reel h3 { margin: 0; font-size: 1.1rem; line-height: 1.2; }
.reel small { opacity: .85; }

/* ---------------------------------------------------------------- banda del Mapa Ciudadano */
.map-band { background: var(--primary-dark); color: #fff; }
.map-band .eyebrow { color: var(--highlight); }
.map-band .section-title { color: #fff; }
.map-band .lead { opacity: .9; font-size: 1.05rem; max-width: 34em; margin: 0 0 1.6rem; }
.map-band .hint { color: rgba(255,255,255,.75); margin-top: 1rem; }
.map-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: 1rem; }
.map-stats div { border-top: 2px solid rgba(255,255,255,.25); padding: .8rem 0; }
.map-stats b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 9vw, 3.8rem); line-height: 1; color: var(--highlight); }
.map-stats span { font-weight: 600; font-size: .85rem; opacity: .85; }

/* ---------------------------------------------------------------- Agenda */
.events { display: grid; gap: .7rem; }
.event { display: grid; grid-template-columns: 4.2rem 1fr; gap: .9rem; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: .9rem; }
.event .date { background: var(--primary); color: #fff; border-radius: 12px; text-align: center; padding: .5rem 0; line-height: 1; }
.event .date b { display: block; font-family: var(--display); font-size: 1.8rem; font-weight: 400; }
.event .date span { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.event h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.event p { margin: 0; color: var(--muted); font-size: .9rem; }
.event .btn { grid-column: 1 / -1; }
.event > span:empty { display: none; }
@media (min-width: 640px) { .event { grid-template-columns: 5.2rem 1fr auto; padding: 1rem 1.2rem; gap: 1.2rem; } .event .btn { grid-column: auto; } }

/* ---------------------------------------------------------------- Súmate: un solo formulario corto */
.join-x .section-title { margin-bottom: .4rem; }
.join-x .section-sub { margin-bottom: 1.4rem; }
.join-x form { display: grid; gap: .7rem; max-width: 560px; }
.join-x .consent { margin: .2rem 0 0; }
.join-x .btn { width: 100%; }

/* ---------------------------------------------------------------- Conecta */
.connect { text-align: center; }
.connect .section-title { font-size: clamp(2rem, 8vw, 3rem); }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 1.2rem; }
.pill { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--primary); color: #fff; text-decoration: none; }
.pill:hover { background: var(--accent); }
.pill svg { width: 26px; height: 26px; fill: currentColor; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,.82); padding: 2.6rem 0 6.5rem; font-size: .92rem; }
.site-footer a { color: #fff; }
.site-footer .container { display: grid; gap: 2rem; }
.site-footer .footer-h { color: #fff; margin: 0 0 .7rem; text-transform: uppercase; letter-spacing: 1.5px; font-size: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.site-footer ul a { display: inline-block; padding: .35rem 0; }
.footer-social { display: flex; gap: .6rem; margin-top: 1rem; }
.footer-social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); display: grid; place-items: center; }
.footer-social svg { width: 18px; height: 18px; fill: #fff; }
.disclaimer { border-top: 1px solid rgba(255,255,255,.15); padding-top: 1.4rem; font-size: .8rem; opacity: .8; }
@media (min-width: 640px) { .site-footer .container { grid-template-columns: 1.2fr 1fr 1fr; } .disclaimer { grid-column: 1 / -1; } }
@media (min-width: 960px) { .site-footer { padding-bottom: 3rem; } }

/* ---------------------------------------------------------------- barra fija inferior (solo celular): aparece al pasar el hero */
.mobile-bar { position: fixed; left: .7rem; right: .7rem; bottom: max(.7rem, env(safe-area-inset-bottom)); z-index: 999; display: flex; gap: .5rem;
  padding: .45rem; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-radius: 999px; box-shadow: 0 8px 30px rgba(0,0,0,.22);
  transform: translateY(160%); transition: transform .25s ease; }
.mobile-bar.show { transform: none; }
.mobile-bar .btn-primary { flex: 1; }
.mobile-bar .bar-icon { width: 48px; min-width: 48px; padding: 0; background: var(--tint); color: var(--primary); }
.mobile-bar .bar-icon svg { width: 22px; height: 22px; fill: currentColor; }
@media (min-width: 960px) { .mobile-bar { display: none; } }

/* ---------------------------------------------------------------- otros */
.demo-banner { position: fixed; left: .7rem; bottom: 5.4rem; z-index: 5000; background: #1d2327; color: #fff; padding: .35rem .8rem; border-radius: 999px; font-size: .72rem; opacity: .85; }
@media (min-width: 960px) { .demo-banner { bottom: .8rem; } }
.demo-banner button { background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }

.legal { max-width: 780px; background: #fff; padding: 1.4rem; border-radius: var(--radius); margin: 1rem auto; box-shadow: var(--shadow); }
@media (min-width: 640px) { .legal { padding: 2.5rem; margin: 2rem auto; } }
.legal h1 { margin-top: 0; }
body.page-legal { background: var(--tint); }
