/* =========================================================
   Adopta un Negocio · Fenalco Quindío — PROPUESTA LIGERA
   Orden: franja · campaña · directorio por categorías · banner · cinta · footer
   ========================================================= */

:root {
  --purple: #280072;
  --purple-deep: #17003F;
  --purple-soft: #EEE9F8;
  --green: #26CD7D;
  --green-dark: #0A7A47;
  --mint: #E2F7EC;
  --sand: #F6EBDD;
  --sand-ink: #8A4B1E;
  --cream: #F7F4EE;
  --white: #FFFFFF;
  --ink: #1C1530;
  --muted: #5D5670;
  --line: #E3DEEC;

  --dur-fast: 200ms;
  --dur-base: 500ms;
  --dur-slow: 900ms;
  --slide-time: 6s;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --stagger: 70ms;

  --gutter: 80px;
  --radius: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--white); line-height: 1.5; -webkit-font-smoothing: antialiased; }
/* height:auto evita que una imagen con width/height en el HTML se deforme cuando el CSS cambia solo su ancho */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--green); color: var(--purple); padding: 10px 16px; border-radius: 999px; font-weight: 600; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: calc(1280px + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-wa { stroke: none; fill: currentColor; }

/* Tipografía */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--green-dark); }
.eyebrow.green { color: var(--green); }
.eyebrow.small { font-size: 12px; letter-spacing: .08em; }
.h2 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; color: var(--purple); }
.accent-dark { color: var(--green-dark); }
.muted { color: var(--muted); }
.on-dark-soft { color: rgba(255, 255, 255, .78); }

/* Botones (M11) */
.btn { --bg: var(--green); --fg: var(--purple); display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-size: 16px; font-weight: 600; line-height: 1.2; background: var(--bg); color: var(--fg); border: 1.5px solid transparent; white-space: nowrap; transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background-color var(--dur-fast); }
.btn .ic { transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(23, 0, 63, .45); }
.btn:hover .ic:last-child:not(:first-child) { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary { --bg: var(--green); --fg: var(--purple); }
.btn-primary .ic-wa .wa-phone { fill: var(--green); }
.btn-dark { --bg: var(--purple); --fg: var(--white); }
.btn-dark .ic-wa .wa-phone { fill: var(--purple); }
.btn-ghost { --bg: transparent; --fg: var(--purple); border-color: rgba(40, 0, 114, .35); }
.btn-ghost.on-dark { --fg: var(--white); border-color: rgba(255, 255, 255, .45); }
.btn-ghost:hover { --bg: rgba(40, 0, 114, .04); }
.btn-ghost.on-dark:hover { --bg: rgba(255, 255, 255, .06); }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--purple); }
.text-link.green { color: var(--green); }
.text-link .ic { transition: transform var(--dur-fast) var(--ease-out); }
.text-link:hover .ic { transform: translateX(4px); }

/* =========================================================
   01 · Franja superior
   ========================================================= */
.top-strip { height: 28px; background: var(--purple); }

/* =========================================================
   02 · Campaña
   ========================================================= */
/* Banner de fondo: la foto llena el bloque y un velo crema al centro garantiza la lectura del texto */
.campaign {
  position: relative; isolation: isolate; overflow: hidden; padding: 56px 0;
  /* WebP con transparencia: se funde con el fondo crema en los bordes, a cualquier ancho */
  background: var(--cream) url("../img/banner-campana.webp") center / cover no-repeat;
}
.campaign::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 46% 95% at 50% 50%, rgba(247, 244, 238, .96) 0%, rgba(247, 244, 238, .9) 48%, rgba(247, 244, 238, .45) 78%, rgba(247, 244, 238, .05) 100%);
}
.campaign-head { display: flex; align-items: center; justify-content: center; gap: 48px; }
.campaign-seal { width: 140px; height: auto; flex: none; }
.campaign-copy { display: flex; flex-direction: column; gap: 22px; }
.row-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* =========================================================
   03 · Directorio por categorías
   ========================================================= */
.directory { padding: 40px 0 72px; }
.filter-row { display: flex; gap: 12px; margin-bottom: 40px; }
.search, .select { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line); color: var(--purple); transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.search { flex: 1; background: var(--cream); }
.search:focus-within, .select:focus-within { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(38, 205, 125, .35); }
.search input { flex: 1; border: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); outline: none; min-width: 0; }
.search input::placeholder { color: var(--muted); }
.select { position: relative; }
.select select { appearance: none; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 500; color: var(--purple); padding-right: 24px; outline: none; cursor: pointer; }
.select .chev { position: absolute; right: 20px; pointer-events: none; width: 16px; height: 16px; }

.dir-head { display: grid; grid-template-columns: auto minmax(0, 440px); justify-content: space-between; align-items: center; gap: 40px; max-width: 1100px; margin: 0 auto 44px; }
.dir-head .eyebrow { margin-bottom: 12px; }
.dir-head > p { font-size: 16px; line-height: 1.6; }

/* Círculos de categoría */
/* Flex con ancho por columnas: así una fila incompleta queda centrada */
.cat-grid { --cols: 5; --gap: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 36px var(--gap); max-width: 1000px; margin: 0 auto; }
.cat-grid > .cat { width: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); }
.cat { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; color: var(--purple); }
.cat-circle { width: 120px; height: 120px; border-radius: 50%; background: var(--green); color: var(--white); display: grid; place-items: center; position: relative; transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background-color var(--dur-fast); }
.cat-circle .ic { width: 46px; height: 46px; stroke-width: 1.7; }
.cat-circle img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.cat:hover .cat-circle { transform: translateY(-4px) scale(1.04); box-shadow: 0 16px 30px -14px rgba(10, 122, 71, .6); }
.cat-name { font-size: 16px; font-weight: 700; line-height: 1.2; }
.cat-count { font-size: 13px; font-weight: 500; color: var(--muted); margin-top: -6px; }
/* Íconos oficiales (PNG con forma de cuadro redondeado y fondo transparente) */
.cat-circle:has(img) { background: none; border-radius: 30%; }
.cat-circle img { border-radius: 0; object-fit: contain; }
.cat:hover .cat-circle:has(img) { box-shadow: none; filter: drop-shadow(0 14px 18px rgba(10, 122, 71, .35)); }
.cat.is-empty .cat-circle img { filter: grayscale(1); opacity: .45; }
.cat.is-empty:hover .cat-circle img { opacity: .7; }
.cat.is-active .cat-circle:has(img) { box-shadow: 0 0 0 5px var(--white), 0 0 0 8px var(--purple); }
.cat.is-empty .cat-circle:not(:has(img)) { background: var(--white); color: var(--muted); border: 2px dashed var(--line); }
.cat.is-empty .cat-name { color: var(--muted); }
.cat.is-active .cat-name { color: var(--purple); }
.cat.is-active .cat-circle:not(:has(img)) { background: var(--purple); color: var(--green); box-shadow: 0 0 0 6px var(--mint); }
/* Categorías extra: ocultas hasta "Ver todas las categorías" */
.cat-grid:not(.show-all) > .cat.is-extra { display: none; }
.cat-grid.show-all > .cat.is-extra { animation: panel-in 400ms var(--ease-out) both; }
.cats-more { display: flex; justify-content: center; margin-top: 32px; }
.cats-more .btn .ic { transition: transform 300ms var(--ease-out); }
.cats-more .btn.is-open .ic { transform: rotate(180deg); }

/* Panel de resultados */
.results { margin: 48px auto 0; max-width: 1280px; padding: 32px; border-radius: 28px; background: var(--cream); animation: panel-in 450ms var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(16px); } }
.results-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 8px; }
.results-head h3 { font-size: 28px; font-weight: 800; color: var(--purple); margin-top: 6px; }
.results-close { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--white); color: var(--purple); display: grid; place-items: center; transition: transform var(--dur-fast) var(--ease-out); }
.results-close:hover { transform: rotate(90deg); }
.result-count { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.biz-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.biz { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 10px; transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.biz:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(23, 0, 63, .35); }
.biz-logo { width: 72px; height: 72px; border-radius: 50%; background: var(--tint); color: var(--ink2); display: grid; place-items: center; font-size: 24px; font-weight: 800; margin-bottom: 4px; overflow: hidden; }
.biz-logo img { width: 100%; height: 100%; object-fit: cover; }
/* Logos reales: completos (sin recortar) sobre círculo blanco */
/* Logos centrados en la tarjeta; los reales ocupan el ancho y ~2× de alto (120 px) */
.biz-logo { align-self: center; }
.biz-logo.has-img { width: 100%; height: 120px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); padding: 10px 16px; display: flex; align-items: center; justify-content: center; }
.biz-logo.has-img img { width: auto; height: auto; max-width: 100%; max-height: 100%; }
.biz-logo.has-img img { object-fit: contain; }
.biz h4 { font-size: 19px; font-weight: 700; color: var(--purple); line-height: 1.2; }
.biz p { color: var(--muted); font-size: 14.5px; line-height: 1.5; flex: 1; }
.meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.tag { padding: 4px 10px; border-radius: 999px; background: var(--tint); color: var(--ink2); font-size: 12px; font-weight: 600; }
.loc { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; }
.loc .ic { width: 14px; height: 14px; }
.biz-actions { display: flex; justify-content: center; padding-top: 6px; }
.biz-actions .btn { min-width: 170px; }
.biz-more { width: 42px; height: 42px; flex: none; border-radius: 50%; border: 1px solid var(--line); color: var(--purple); display: grid; place-items: center; transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast); }
.biz-more:hover { background: var(--purple-soft); transform: translateX(2px); }

.empty { text-align: center; padding: 32px 16px 12px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty-door { width: 84px; height: 98px; border-radius: 42px 42px 0 0; background: var(--white); border: 1.5px dashed rgba(40, 0, 114, .25); display: grid; place-items: center; color: var(--purple); margin-bottom: 4px; }
.empty-door .ic { width: 30px; height: 30px; }
.empty h3 { font-size: 26px; font-weight: 800; color: var(--purple); }
.empty p { max-width: 460px; }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 4px; }

.more { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 44px; }
.more .note { font-size: 13px; color: var(--muted); text-align: center; }

/* =========================================================
   04 · Banner rotativo (M3, M4, M5)
   ========================================================= */
.hero { background: var(--purple); color: var(--white); overflow: hidden; padding: 64px 0 0; }
.hero-stage { display: grid; }
.slide { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 480px); justify-content: space-between; align-items: center; gap: 64px; opacity: 0; visibility: hidden; transition: opacity 400ms var(--ease-in-out), visibility 0s 400ms; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity 400ms var(--ease-in-out), visibility 0s; z-index: 1; }
.slide-copy { display: flex; flex-direction: column; gap: 24px; }
.chip-tag { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); font-size: 11.5px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.slide-title { font-size: clamp(40px, 4.6vw, 66px); font-weight: 800; line-height: .98; letter-spacing: -.025em; display: flex; flex-direction: column; }
.slide-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.slide-title .line > span { display: block; transform: translateY(105%); transition: transform 600ms var(--ease-out); }
.slide-title .line.accent { color: var(--green); }
.slide-sub { font-size: 18px; line-height: 1.55; color: rgba(255, 255, 255, .82); max-width: 520px; }
.slide-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.slide-sub, .slide-ctas, .chip-tag, .float-card { opacity: 0; transform: translateY(16px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
/* El banner se anima cuando entra en pantalla (.in-view) */
.hero.in-view .slide.is-active .slide-title .line > span { transform: none; }
.hero.in-view .slide.is-active .slide-title .line:nth-child(1) > span { transition-delay: 150ms; }
.hero.in-view .slide.is-active .slide-title .line:nth-child(2) > span { transition-delay: 240ms; }
.hero.in-view .slide.is-active .slide-title .line:nth-child(3) > span { transition-delay: 330ms; }
.hero.in-view .slide.is-active .chip-tag { opacity: 1; transform: none; transition-delay: 80ms; }
.hero.in-view .slide.is-active .slide-sub { opacity: 1; transform: none; transition-delay: 450ms; }
.hero.in-view .slide.is-active .slide-ctas { opacity: 1; transform: none; transition-delay: 550ms; }
.hero.in-view .slide.is-active .float-card { opacity: 1; transform: none; transition-delay: 800ms; }

.slide-visual { position: relative; width: 100%; max-width: 480px; aspect-ratio: 480 / 520; justify-self: end; }
.ring { position: absolute; width: 38%; aspect-ratio: 1; right: -5%; top: -6%; border: 2px solid rgba(38, 205, 125, .5); border-radius: 50%; }
.door { position: absolute; left: 13%; top: 3%; width: 87%; height: 97%; border-radius: 999px 999px 26px 26px; overflow: hidden; clip-path: inset(0 50% 0 50%); transition: clip-path var(--dur-slow) var(--ease-out); background: var(--purple-deep); }
.door img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.hero.in-view .slide.is-active .door { clip-path: inset(0 0 0 0); }
.hero.in-view .slide.is-active .door img { animation: kenburns var(--slide-time) linear forwards; }
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1); } }
.float-card { position: absolute; left: 0; bottom: 14%; display: flex; align-items: center; gap: 12px; padding: 14px 20px 14px 14px; background: var(--white); color: var(--purple); border-radius: 18px; box-shadow: 0 18px 40px rgba(23, 0, 63, .35); }
.float-card small { display: block; font-size: 13px; color: var(--muted); }
.float-card strong { display: block; font-size: 18px; font-weight: 700; line-height: 1.2; }
.float-ic { width: 44px; height: 44px; border-radius: 13px; background: var(--mint); color: var(--green-dark); display: grid; place-items: center; }
.float-ic .ic { width: 24px; height: 24px; }
.sticker { position: absolute; right: -3%; top: 20%; width: 108px; height: 108px; border-radius: 50%; background: var(--green); color: var(--purple); display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(-10deg); animation: sway 24s linear infinite; }
.sticker small { font-size: 14px; font-weight: 500; }
.sticker strong { font-size: 21px; font-weight: 800; line-height: 1; }
@keyframes sway { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(4deg); } }

.hero-controls { display: flex; justify-content: center; padding-top: 28px; padding-bottom: 36px; }
.arrows { display: flex; align-items: center; gap: 14px; }
.arrow { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .35); color: var(--white); display: grid; place-items: center; transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast); }
.arrow:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .08); }
.arrow-next { background: var(--green); color: var(--purple); border-color: var(--green); }
.arrow-next:hover { background: var(--green); }
.dots { display: flex; align-items: center; gap: 6px; }
.dots span { width: 8px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .3); transition: width 300ms var(--ease-out), background-color 300ms; }
.dots span.is-active { width: 28px; background: var(--green); }

/* =========================================================
   05 · Cinta (M9) con franjas blancas arriba y abajo
   ========================================================= */
.doors-strip { background: var(--white); padding: 10px 0; }
.marquee { background: var(--purple); overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 22px; padding: 16px 11px; white-space: nowrap; }
.marquee-group b { color: var(--green); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.marquee-group span { color: var(--white); font-size: 14px; font-weight: 500; }
.marquee-group i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   06 · Footer
   ========================================================= */
.site-footer { background: var(--purple-deep); color: var(--white); padding: 72px 0 32px; }
.sponsors-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 24px; }
.sponsors-head .eyebrow { margin-bottom: 8px; }
.sponsors-head p:not(.eyebrow) { font-size: 17px; }
/* Padrinos: carrusel horizontal infinito (M12) */
.sponsor-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.sponsor-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.sponsor-marquee:hover .sponsor-track { animation-play-state: paused; }
.sponsor-group { display: flex; gap: 16px; padding-right: 16px; }
.sponsor-item { flex: none; width: 220px; height: 88px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); display: grid; place-items: center; transition: background-color var(--dur-fast); }
.sponsor-item:hover { background: rgba(255, 255, 255, .12); }
.sponsor-item img { height: 44px; width: auto; max-width: 170px; object-fit: contain; }
.site-footer hr { border: 0; height: 1px; background: rgba(255, 255, 255, .12); margin: 48px 0; }
.footer-cols { display: grid; grid-template-columns: 1fr auto 400px; gap: 64px; align-items: start; }
.footer-brand { display: flex; flex-direction: column; gap: 18px; }
.footer-brand img { width: 120px; }
.tagline { font-size: 20px; font-weight: 500; line-height: 1.3; }
.tagline span { color: var(--green); }
.footer-nav { display: flex; flex-direction: column; gap: 14px; }
.footer-nav a { color: rgba(255, 255, 255, .8); }
.footer-nav a:hover { color: var(--white); }
.wa-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 26px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.wa-card-head { display: flex; align-items: center; gap: 14px; }
.ic.big { width: 44px; height: 44px; color: var(--green); }
.ic.big .wa-phone { fill: var(--purple-deep); }
.wa-title { font-size: 19px; font-weight: 700; }
.legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; font-size: 13px; color: rgba(255, 255, 255, .55); }

/* WhatsApp flotante (M10) */
.wa-float { position: fixed; right: 28px; bottom: 28px; z-index: 30; display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 10px; border-radius: 999px; background: var(--green); color: var(--purple); font-weight: 700; box-shadow: 0 12px 30px rgba(23, 0, 63, .35); opacity: 0; transform: translateY(24px); pointer-events: none; transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out); }
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float-ic { width: 42px; height: 42px; border-radius: 50%; background: var(--purple); color: var(--green); display: grid; place-items: center; }
.wa-float-ic .ic { width: 22px; height: 22px; }
.wa-float-ic .wa-phone { fill: var(--purple); }
.wa-float.nudge .wa-float-ic { animation: nudge 500ms var(--ease-in-out); }
@keyframes nudge { 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }

/* Ficha de negocio */
.biz-dialog { width: min(460px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 28px; overflow: hidden; color: var(--ink); }
.biz-dialog::backdrop { background: rgba(23, 0, 63, .6); backdrop-filter: blur(4px); }
.biz-dialog[open] { animation: dlg-in 350ms var(--ease-out); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.dlg-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; background: var(--white); color: var(--purple); display: grid; place-items: center; z-index: 1; }
.dlg-top { height: 150px; display: flex; align-items: flex-end; justify-content: center; background: var(--tint); }
.door-logo { width: 104px; height: 122px; border-radius: 52px 52px 0 0; background: var(--white); color: var(--ink2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.door-logo strong { font-size: 32px; font-weight: 800; line-height: 1; }
.door-logo small { font-size: 10px; font-weight: 600; letter-spacing: .2em; opacity: .5; }
.dlg-body { padding: 22px 26px 26px; display: flex; flex-direction: column; gap: 12px; }
.dlg-body h3 { font-size: 24px; font-weight: 800; color: var(--purple); }
.dlg-body > p { color: var(--muted); }
.dlg-body h4 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--green-dark); margin-top: 6px; }
.dlg-products { display: flex; flex-direction: column; gap: 8px; margin-bottom: 6px; }
.dlg-products li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 14px; background: var(--cream); font-size: 15px; }
.dlg-products li span:last-child { color: var(--muted); font-size: 13px; }

/* M1 · Aparición al hacer scroll */
.js [data-reveal], .js [data-reveal-group] > * { opacity: 0; transform: translateY(24px); transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); transition-delay: calc(var(--i, 0) * var(--stagger)); }
.js [data-reveal].is-visible, .js [data-reveal-group].is-visible > * { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 1180px) {
  :root { --gutter: 40px; }
  .cat-grid { --cols: 4; }
  .biz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slide { gap: 40px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .wa-card { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --gutter: 20px; }
  .top-strip { height: 16px; }

  .campaign { padding: 32px 0; background-position: 78% center; }
  .campaign::before { background: linear-gradient(180deg, rgba(247, 244, 238, .8) 0%, rgba(247, 244, 238, .9) 55%, rgba(247, 244, 238, .82) 100%); }
  .campaign-head { gap: 16px; }
  .campaign-seal { width: 84px; }
  .campaign-copy { gap: 16px; }
  .campaign-copy .h2 { font-size: clamp(21px, 6.2vw, 30px); line-height: 1.1; }
  .row-ctas { gap: 8px; }
  .row-ctas .btn { padding: 10px 14px; font-size: 13.5px; gap: 6px; }

  .directory { padding: 24px 0 48px; }
  .filter-row { flex-direction: column; gap: 10px; margin-bottom: 28px; }
  .search { height: 50px; padding: 0 18px; }
  .select { height: 44px; align-self: flex-start; padding: 0 16px; }
  .dir-head { grid-template-columns: 1fr; gap: 10px; margin-bottom: 28px; }
  .dir-head > p { font-size: 15px; }
  .cat-grid { --cols: 3; --gap: 12px; row-gap: 24px; }
  .cat-circle { width: 84px; height: 84px; }
  .cat-circle .ic { width: 34px; height: 34px; }
  .cat-name { font-size: 14px; }
  .cat-count { font-size: 12px; }
  .results { padding: 20px 16px; border-radius: 22px; margin-top: 32px; }
  .results-head h3 { font-size: 22px; }
  .biz-grid { grid-template-columns: 1fr; gap: 14px; }
  .biz:hover { transform: none; box-shadow: none; }
  .more { margin-top: 32px; }
  .more .btn { width: 100%; }

  .hero { padding-top: 40px; }
  .slide { grid-template-columns: 1fr; gap: 24px; }
  .slide-title { font-size: clamp(36px, 11vw, 46px); }
  .slide-sub { font-size: 16px; }
  .slide-ctas { flex-direction: column; }
  .slide-ctas .btn { width: 100%; }
  .slide-visual { max-width: 380px; justify-self: center; aspect-ratio: 350 / 400; }
  .door { left: 11%; width: 89%; }
  .hero.in-view .slide.is-active .door img { animation: none; transform: none; }
  .sticker, .ring { display: none; }
  .float-card { bottom: 8%; padding: 10px 14px 10px 10px; border-radius: 14px; }
  .float-ic { width: 36px; height: 36px; }
  .float-card strong { font-size: 15px; }
  .hero-controls { padding-top: 24px; padding-bottom: 28px; }

  .marquee-track { animation-duration: 22s; }
  .marquee-group { padding: 13px 8px; gap: 16px; }
  .marquee-group b { font-size: 12px; }
  .marquee-group span { font-size: 13px; }

  .site-footer { padding: 48px 0 100px; }
  .sponsors-head { flex-direction: column; align-items: flex-start; }
  .sponsors-head p:not(.eyebrow) { font-size: 15px; }
  .sponsor-track { animation-duration: 20s; }
  .sponsor-group { gap: 10px; padding-right: 10px; }
  .sponsor-item { width: 170px; height: 72px; border-radius: 16px; }
  .sponsor-item img { height: 36px; max-width: 130px; }
  .site-footer hr { margin: 32px 0; }
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand img { width: 96px; }
  .footer-nav { flex-direction: row; flex-wrap: wrap; gap: 8px; order: 3; }
  .footer-nav .eyebrow { width: 100%; }
  .footer-nav a { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); font-size: 14px; }
  .wa-card { padding: 20px; }
  .legal { flex-direction: column; margin-top: 28px; }

  .wa-float { right: 16px; bottom: 16px; padding: 8px; }
  .wa-float-label { display: none; }
}

@media (max-width: 380px) {
  .cat-circle { width: 76px; height: 76px; }
  .row-ctas .btn { padding: 9px 12px; font-size: 13px; }
}

/* =========================================================
   MÓVIL · textos y logos centrados para una lectura más cómoda
   (las tarjetas de negocio ya tienen logo y botón centrados)
   ========================================================= */
@media (max-width: 860px) {
  /* Campaña: sello arriba, título y botones debajo */
  .campaign-head { flex-direction: column; text-align: center; gap: 14px; }
  .campaign-seal { width: 88px; }
  .campaign-copy { align-items: center; }
  .campaign-copy .h2 { font-size: clamp(24px, 7vw, 30px); }
  .campaign-copy .row-ctas { justify-content: center; }
  .campaign::before { background: radial-gradient(ellipse 85% 75% at 50% 50%, rgba(247, 244, 238, .94) 0%, rgba(247, 244, 238, .86) 60%, rgba(247, 244, 238, .7) 100%); }

  /* Directorio */
  .filter-row .select { align-self: center; }
  .dir-head { text-align: center; justify-items: center; }

  /* Banner rotativo */
  .slide-copy { align-items: center; text-align: center; }
  .chip-tag { align-self: center; }
  .slide-title { align-items: center; }
  .slide-sub { margin: 0 auto; }

  /* Pie de página */
  .sponsors-head { align-items: center; text-align: center; }
  .footer-brand { align-items: center; text-align: center; }
  .footer-nav { justify-content: center; }
  .footer-nav .eyebrow { text-align: center; }
  .wa-card { text-align: center; }
  .wa-card-head { justify-content: center; }
  .wa-card-head > div { text-align: left; }
  .legal { align-items: center; text-align: center; }
}

/* Accesibilidad: movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .js [data-reveal], .js [data-reveal-group] > * { opacity: 1; transform: none; }
  .door { clip-path: none !important; }
  .slide-title .line > span, .slide-sub, .slide-ctas, .chip-tag, .float-card { transform: none !important; opacity: 1 !important; }
  .marquee { overflow-x: auto; }
  .sponsor-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}
