:root {
  --mgt: #CF2063;
  --tinta: #1B1B1D;
  --gris: #6B6B73;
  --linea: #E7E5E9;
  --papel: #FAF9F7;
  --blanco: #FFFFFF;
  --radio: 18px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Outfit", system-ui, sans-serif;
  min-height: 100vh;
  display: flex; flex-direction: column;
  transition: background-color .3s;
}
body.tema-claro { background: var(--papel); color: var(--tinta); }
body.tema-oscuro { background: #0B0B0C; color: #fff; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
svg { width: 100%; height: 100%; display: block; }

@keyframes entrar { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- INICIO ---------- */
.inicio, .ciudad { max-width: 620px; margin: 0 auto; padding: 56px 16px 40px; }
.encabezado { text-align: center; margin-bottom: 40px; animation: entrar .6s ease both; }
.logo-principal { width: min(420px, 88%); height: auto; }
.subtitulo {
  margin-top: 18px; font-size: 13px; font-weight: 600; letter-spacing: .32em;
  text-transform: uppercase; color: var(--mgt);
}
.instruccion { margin-top: 10px; color: var(--gris); font-size: 16px; }

.ciudades, .negocios { display: grid; gap: 14px; }
.tarjeta-ciudad, .tarjeta-negocio {
  display: flex; align-items: center; gap: 16px;
  background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio);
  padding: 18px 20px; position: relative; overflow: hidden;
  animation: entrar .5s ease both; animation-delay: calc(var(--i) * 70ms + 150ms);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.tarjeta-ciudad::before, .tarjeta-negocio::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--acento, var(--mgt)); transform: scaleY(0); transition: transform .25s;
}
@media (hover: hover) { .tarjeta-ciudad:hover, .tarjeta-negocio:hover {
  transform: translateY(-2px); border-color: transparent;
  box-shadow: 0 10px 30px -12px rgba(27,27,29,.25);
}
.tarjeta-ciudad:hover::before, .tarjeta-negocio:hover::before { transform: scaleY(1); } }
.tarjeta-ciudad:active, .tarjeta-negocio:active, .enlace:active, .cta-cotiza:active { transform: scale(.98); }
.ciudad-pin {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; padding: 11px;
  background: #FBE7EF; color: var(--mgt);
}
.ciudad-texto, .negocio-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ciudad-texto strong { font-size: 21px; font-weight: 700; line-height: 1.15; }
.ciudad-texto small, .negocio-texto small { color: var(--gris); font-size: 14.5px; margin-top: 2px; }
.ciudad-conteo {
  font-size: 12.5px; font-weight: 500; color: var(--gris);
  background: var(--papel); border: 1px solid var(--linea); border-radius: 99px; padding: 4px 10px;
  white-space: nowrap;
}
.flecha { width: 20px; height: 20px; flex-shrink: 0; color: #B5B3BA; transition: transform .2s, color .2s; }
a:hover > .flecha { transform: translateX(3px); color: var(--acento, var(--mgt)); }

/* ---------- CIUDAD ---------- */
.volver {
  display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 500;
  color: var(--gris); padding: 6px 10px 6px 4px; border-radius: 10px; transition: color .2s;
}
.volver svg { width: 20px; height: 20px; }
.volver:hover { color: var(--mgt); }
.encabezado-ciudad { text-align: center; margin: 18px 0 32px; animation: entrar .5s ease both; }
.logo-chico { width: 150px; height: auto; opacity: .9; }
.encabezado-ciudad h1 { font-size: clamp(38px, 9vw, 54px); font-weight: 800; letter-spacing: -.02em; margin-top: 14px; line-height: 1; }
.encabezado-ciudad p { color: var(--gris); margin-top: 8px; }
.encabezado-ciudad h1::after {
  content: ""; display: block; width: 44px; height: 4px; border-radius: 4px; background: var(--mgt); margin: 14px auto 0;
}
.negocio-mini {
  width: 58px; height: 58px; flex-shrink: 0; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--acento); background: #111;
}
.negocio-texto strong { font-size: 18px; font-weight: 600; }
.vacio {
  text-align: center; padding: 48px 20px; color: var(--gris);
  border: 1.5px dashed var(--linea); border-radius: var(--radio); background: var(--blanco);
}

/* ---------- NEGOCIO ---------- */
.negocio { position: relative; min-height: 100vh; overflow: hidden; }
.negocio-fondo {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, color-mix(in srgb, var(--acento) 28%, transparent), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 100%, color-mix(in srgb, var(--acento) 12%, transparent), transparent 70%),
    #0B0B0C;
}
.negocio-fondo.con-imagen { background-size: cover; background-position: center; }
.negocio-fondo.con-imagen::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.72) 55%, rgba(0,0,0,.92) 100%);
}
.negocio-contenido {
  position: relative; z-index: 1; max-width: 560px; margin: 0 auto;
  padding: 24px 16px 40px; text-align: center;
}
.negocio .volver { color: rgba(255,255,255,.65); position: absolute; left: 16px; top: 20px; }
.negocio .volver:hover { color: #fff; }
.negocio-logo {
  width: 168px; height: 168px; border-radius: 50%; object-fit: cover; margin-top: 44px;
  border: 3px solid var(--acento);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--acento) 18%, transparent), 0 18px 50px -10px color-mix(in srgb, var(--acento) 55%, transparent);
  animation: entrar .6s ease both;
}
.negocio-nombre {
  font-family: "Oswald", sans-serif; font-weight: 700; text-transform: uppercase;
  font-size: clamp(30px, 7.5vw, 40px); line-height: 1.05; margin-top: 28px; letter-spacing: .01em;
  animation: entrar .6s .08s ease both;
}
.negocio-nombre span { color: var(--acento); }
.negocio-giro {
  font-family: "Oswald", sans-serif; font-weight: 500; text-transform: uppercase;
  letter-spacing: .28em; font-size: 15px; color: rgba(255,255,255,.8); margin-top: 8px;
  animation: entrar .6s .12s ease both;
}
.negocio-lema { color: rgba(255,255,255,.75); margin: 22px auto 0; max-width: 340px; font-size: 17px; animation: entrar .6s .16s ease both; }

.enlaces { display: grid; gap: 16px; margin-top: 36px; text-align: left; }
.enlace {
  display: flex; align-items: center; gap: 18px; padding: 20px 22px;
  background: rgba(22,22,24,.82); border: 1px solid rgba(255,255,255,.1); border-radius: 14px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: entrar .5s ease both; animation-delay: calc(var(--i) * 70ms + 220ms);
  transition: transform .2s, border-color .2s, background .2s;
}
.enlace:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--acento) 60%, transparent); background: rgba(30,30,33,.9); }
.enlace-icono { width: 52px; height: 52px; flex-shrink: 0; border-radius: 12px; padding: 13px; color: #fff; background: #3A3A40; }
.icono-whatsapp { background: #25D366; }
.icono-facebook { background: #1877F2; }
.icono-ubicacion { background: #E0242B; }
.icono-instagram { background: linear-gradient(45deg, #F58529, #DD2A7B 55%, #8134AF); }
.icono-tiktok { background: #111; border: 1px solid rgba(255,255,255,.2); }
.icono-telefono { background: #0EA5E9; }
.icono-correo { background: #F59E0B; }
.icono-youtube { background: #FF0000; }
.enlace-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.enlace-texto strong { font-family: "Oswald", sans-serif; font-weight: 600; font-size: 20px; letter-spacing: .01em; }
.enlace-texto small { color: rgba(255,255,255,.7); font-size: 15px; margin-top: 1px; }
.enlace .flecha { color: rgba(255,255,255,.45); }

.servicios { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 34px; }
.servicios li {
  font-family: "Oswald", sans-serif; font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
  padding: 9px 16px; border-radius: 99px; background: rgba(15,15,16,.75);
  border: 1px solid color-mix(in srgb, var(--acento) 45%, transparent);
}
.firma { display: inline-block; margin-top: 46px; opacity: .5; transition: opacity .2s; }
.firma:hover { opacity: .9; }
.firma img { width: 130px; height: auto; display: block; }

/* ---------- PIE ---------- */
.pie {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 22px 16px 28px; color: var(--gris); font-size: 13px;
}
.pie-logo { width: 90px; height: auto; opacity: .7; }
.pie[hidden] { display: none; }

@media (max-width: 480px) {
  .inicio, .ciudad { padding-top: 40px; }
  .ciudad-conteo { display: none; }
  .tarjeta-ciudad, .tarjeta-negocio { padding: 16px; gap: 14px; }
  .enlace { padding: 16px; gap: 14px; }
  .enlace-icono { width: 46px; height: 46px; padding: 11px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* =========================================================
   INICIO CON FONDO VIVO
   ========================================================= */
body.tema-inicio { background: #0d0812; color: #fff; }
.fondo-vivo { position: fixed; left: 0; top: 0; width: 100vw; height: 100lvh; z-index: 0; overflow: hidden; pointer-events: none; background: #0d0812; }
.fondo-vivo[hidden] { display: none; }
main, .pie { position: relative; z-index: 1; }

/* La escena mantiene la proporción de la imagen (1672x941) y siempre cubre la pantalla,
   así las luces quedan exactamente sobre los faroles, velas y la luna. */
.escena {
  --ar: 1.7768;
  --W: max(100vw, calc(100lvh * var(--ar)));
  --H: max(100lvh, calc(100vw / var(--ar)));
  position: absolute; width: var(--W); height: var(--H);
  left: calc((100vw - var(--W)) * 0.62);
  top: calc((100lvh - var(--H)) * 0.5);
  animation: respirar 28s ease-in-out infinite alternate;
  transform-origin: 62% 40%;
}
.modo-movil .escena { left: calc((100vw - var(--W)) * 0.5); top: 0; animation-name: respirar-movil; transform-origin: 30% 20%; }
@keyframes respirar-movil {
  0%   { transform: scale(1.02); }
  100% { transform: scale(1.07) translate(-1.5%, -0.5%); }
}
.escena-img { position: absolute; inset: 0; background-position: center; background-size: 100% 100%; background-repeat: no-repeat; }
@keyframes respirar {
  0%   { transform: scale(1.04) translate(0, 0); }
  50%  { transform: scale(1.09) translate(-1%, -0.6%); }
  100% { transform: scale(1.06) translate(0.8%, -1%); }
}

/* Luces que parpadean */
.luz {
  position: absolute; width: var(--tam); aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(var(--c), .75) 0%, rgba(var(--c), .28) 30%, rgba(var(--c), 0) 68%);
  animation: parpadeo var(--d) ease-in-out var(--r) infinite;
}
.luz-luna { animation: latido 7s ease-in-out infinite; background: radial-gradient(circle, rgba(var(--c), .38) 0%, rgba(var(--c), .16) 38%, rgba(var(--c), 0) 70%); }
@keyframes parpadeo {
  0%, 100% { opacity: .85; transform: translate(-50%, -50%) scale(1); }
  18% { opacity: .5; } 22% { opacity: .95; transform: translate(-50%, -50%) scale(1.08); }
  45% { opacity: .65; } 52% { opacity: 1; } 70% { opacity: .55; transform: translate(-50%, -50%) scale(.94); }
  76% { opacity: .9; }
}
@keyframes latido { 0%, 100% { opacity: .7; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.07); } }

/* Niebla que se desplaza */
.niebla {
  position: absolute; left: 0; width: 200%; background: url("../img/niebla.png") repeat-x;
  background-size: 50% 100%; mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 35%, #000 70%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 35%, #000 70%, transparent);
}
.niebla-1 { top: 48%; height: 40%; opacity: .55; animation: deriva 70s linear infinite; }
.niebla-2 { top: 60%; height: 45%; opacity: .4; animation: deriva 45s linear infinite reverse; filter: blur(2px); }
@keyframes deriva { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Murciélagos */
.bat { position: absolute; width: clamp(28px, 3.4vw, 62px); left: -80px; opacity: .9; }
.bat svg { width: 100%; height: auto; }
.aleteo { display: block; animation: aleteo .28s ease-in-out infinite alternate; transform-origin: 50% 40%; }
@keyframes aleteo { from { transform: scaleY(1); } to { transform: scaleY(.35); } }
.bat-0 { top: 12%; animation: vuelo-a 19s linear 1s infinite; }
.bat-1 { top: 22%; width: clamp(20px, 2.3vw, 42px); animation: vuelo-a 26s linear 6s infinite; }
.bat-2 { top: 8%;  width: clamp(18px, 1.9vw, 36px); animation: vuelo-b 23s linear 3s infinite; }
.bat-3 { top: 30%; width: clamp(22px, 2.7vw, 48px); animation: vuelo-b 31s linear 12s infinite; }
.bat-4 { top: 17%; width: clamp(16px, 1.6vw, 30px); animation: vuelo-a 17s linear 9s infinite; }
@keyframes vuelo-a {
  0% { transform: translate(0, 0); } 25% { transform: translate(28vw, -4vh); }
  50% { transform: translate(55vw, 3vh); } 75% { transform: translate(82vw, -3vh); } 100% { transform: translate(calc(100vw + 120px), 2vh); }
}
@keyframes vuelo-b {
  0% { transform: translate(calc(100vw + 120px), 0) scaleX(-1); } 30% { transform: translate(78vw, 5vh) scaleX(-1); }
  60% { transform: translate(40vw, -2vh) scaleX(-1); } 100% { transform: translate(0, 4vh) scaleX(-1); }
}

.chispas { position: absolute; inset: 0; width: 100%; height: 100%; }
.viñeta {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 50% 42%, rgba(10,5,16,.55), rgba(10,5,16,.2) 70%, transparent),
    linear-gradient(180deg, rgba(10,5,16,.35), rgba(10,5,16,.15) 40%, rgba(10,5,16,.75));
}

/* ---------- Logo animado ---------- */
.logo-animado { position: relative; display: inline-block; width: min(440px, 86%); animation: flotar 5s ease-in-out infinite; }
.logo-animado .logo-principal {
  width: 100%; display: block;
  animation: neon 6s ease-in-out infinite;
}
.logo-brillo {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url("../img/logo-mgt-blanco.png") center / 100% 100% no-repeat;
          mask: url("../img/logo-mgt-blanco.png") center / 100% 100% no-repeat;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.95) 48%, rgba(255,120,190,.9) 52%, transparent 65%) no-repeat;
  background-size: 250% 100%;
  animation: destello 4.5s ease-in-out infinite;
}
@keyframes flotar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes neon {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(207,32,99,.55)) drop-shadow(0 0 22px rgba(207,32,99,.35)); opacity: 1; }
  50% { filter: drop-shadow(0 0 12px rgba(207,32,99,.9)) drop-shadow(0 0 40px rgba(207,32,99,.55)); }
  /* parpadeo tipo letrero */
  80% { opacity: 1; } 81% { opacity: .25; } 82% { opacity: 1; } 84% { opacity: .4; } 85.5% { opacity: 1; }
}
@keyframes destello { 0%, 55% { background-position: 120% 0; } 85%, 100% { background-position: -20% 0; } }

/* ---------- Textos y tarjetas en inicio ---------- */
.tema-inicio .subtitulo { color: #ff4f93; text-shadow: 0 0 12px rgba(207,32,99,.6); }
.tema-inicio .instruccion { color: rgba(255,255,255,.82); text-shadow: 0 1px 8px rgba(0,0,0,.8); }
.tema-inicio .tarjeta-ciudad {
  background: rgba(16,10,22,.62); border-color: rgba(255,255,255,.12);
  backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2);
}
@media (hover: hover) { .tema-inicio .tarjeta-ciudad:hover { border-color: rgba(207,32,99,.7); box-shadow: 0 0 0 1px rgba(207,32,99,.35), 0 14px 40px -10px rgba(207,32,99,.55); } }
.tema-inicio .ciudad-pin { background: rgba(207,32,99,.18); color: #ff4f93; }
.tema-inicio .ciudad-texto small { color: rgba(255,255,255,.65); }
.tema-inicio .ciudad-conteo { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: rgba(255,255,255,.8); }
.tema-inicio .flecha { color: rgba(255,255,255,.45); }
.tema-inicio .pie { color: rgba(255,255,255,.6); }
.tema-inicio .pie-logo { opacity: .75; }

.cta-cotiza {
  display: flex; align-items: center; gap: 16px; margin-top: 26px; padding: 18px 20px;
  border-radius: var(--radio); color: #fff;
  background: linear-gradient(135deg, #1fb855, #128c3e);
  box-shadow: 0 12px 36px -12px rgba(37,211,102,.7);
  animation: entrar .5s ease .5s both; transition: transform .2s, box-shadow .2s;
}
.cta-cotiza:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -10px rgba(37,211,102,.85); }
.cta-icono { width: 46px; height: 46px; flex-shrink: 0; padding: 10px; border-radius: 14px; background: rgba(255,255,255,.18); }
.cta-texto { flex: 1; display: flex; flex-direction: column; }
.cta-texto strong { font-size: 18px; font-weight: 700; }
.cta-texto small { font-size: 14.5px; opacity: .9; }
.cta-cotiza .flecha { color: rgba(255,255,255,.85); }

/* ---------- Botón flotante WhatsApp ---------- */
.wa-flotante {
  position: relative; border: 0; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; gap: 10px;
  height: 58px; padding: 0 20px 0 16px; border-radius: 99px;
  background: #25D366; color: #fff; font-weight: 600; font-size: 16px;
  box-shadow: 0 10px 30px -6px rgba(37,211,102,.65);
  transition: transform .2s;
}
.wa-flotante:hover { transform: scale(1.05); }
.wa-flotante > svg { width: 28px; height: 28px; }
.wa-pulso { position: absolute; inset: 0; border-radius: inherit; border: 2px solid #25D366; animation: pulso 2.2s ease-out infinite; }
@keyframes pulso { from { transform: scale(1); opacity: .8; } to { transform: scale(1.35, 1.6); opacity: 0; } }
.wa-zona { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.wa-zona[hidden] { display: none; }
.wa-menu {
  width: min(310px, calc(100vw - 32px)); padding: 16px; border-radius: 20px;
  background: rgba(16,10,22,.94); color: #fff; border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 24px 60px -12px rgba(0,0,0,.7), 0 0 0 1px rgba(37,211,102,.15);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transform-origin: bottom right; animation: menu-abre .22s ease both;
}
.wa-menu[hidden] { display: none; }
@keyframes menu-abre { from { opacity: 0; transform: translateY(10px) scale(.95); } to { opacity: 1; transform: none; } }
.wa-menu-cabeza { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.wa-menu-icono { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: #25D366; }
.wa-menu-cabeza strong { font-size: 20px; font-weight: 700; flex: 1; }
.wa-cerrar { background: rgba(255,255,255,.1); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; }
.wa-opcion {
  display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; margin-top: 8px;
  border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  transition: background .2s, border-color .2s;
}
.wa-opcion:active { transform: scale(.98); }
@media (hover: hover) { .wa-opcion:hover { background: rgba(37,211,102,.14); border-color: rgba(37,211,102,.5); } }
.wa-opcion-texto { flex: 1; display: flex; flex-direction: column; }
.wa-opcion-texto strong { font-size: 15.5px; font-weight: 600; }
.wa-opcion-texto small { font-size: 15px; color: #6ee7a0; margin-top: 2px; letter-spacing: .02em; }
.wa-opcion-ir { width: 38px; height: 38px; padding: 8px; border-radius: 50%; background: #25D366; flex-shrink: 0; }
.wa-zona.abierto .wa-pulso { display: none; }

@media (max-width: 480px) {
  .wa-flotante { padding: 0; width: 58px; justify-content: center; }
  .wa-etiqueta { display: none; }
  .inicio { padding-bottom: 90px; }
}

/* =========================================================
   CELULAR (vertical) — diseño pensado primero para teléfono
   ========================================================= */
@media (max-width: 600px) {
  .tema-inicio .inicio {
    min-height: 100svh; display: flex; flex-direction: column;
    padding: max(28px, env(safe-area-inset-top)) 16px 104px;
  }
  .tema-inicio .encabezado { margin-bottom: 0; padding-top: 6px; }
  .logo-animado { width: 92%; }
  .tema-inicio .subtitulo { margin-top: 14px; font-size: 12px; letter-spacing: .28em; font-weight: 700; color: #ff6aa6; text-shadow: 0 0 10px rgba(0,0,0,.9), 0 0 2px #000, 0 0 14px rgba(207,32,99,.6); }
  .tema-inicio .instruccion { font-size: 15px; margin: 8px auto 0; max-width: 300px; line-height: 1.4; color: #fff; text-shadow: 0 1px 3px #000, 0 0 14px rgba(0,0,0,.95); }
  /* deja ver el castillo y la luna entre el logo y las tarjetas */
  .tema-inicio .ciudades { margin-top: auto; padding-top: 28vh; gap: 10px; }
  .tema-inicio .tarjeta-ciudad { padding: 13px 14px; gap: 13px; border-radius: 16px; background: rgba(14,8,20,.7); }
  .tema-inicio .ciudad-pin { width: 40px; height: 40px; padding: 9px; border-radius: 12px; }
  .tema-inicio .ciudad-texto strong { font-size: 18px; }
  .tema-inicio .ciudad-texto small { font-size: 13.5px; }
  .tema-inicio .ciudad-conteo { display: inline-block; font-size: 11.5px; padding: 3px 8px; }
  .cta-cotiza { margin-top: 14px; padding: 14px; gap: 13px; }
  .cta-icono { width: 40px; height: 40px; padding: 9px; border-radius: 12px; }
  .cta-texto strong { font-size: 16px; } .cta-texto small { font-size: 13.5px; }
  .tema-inicio .pie { justify-content: flex-start; font-size: 12px; padding: 4px 84px max(30px, env(safe-area-inset-bottom)) 20px; margin-top: -84px; }
  .tema-inicio .pie-logo { width: 78px; }
  .wa-zona { right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); }
  .wa-flotante { width: 56px; height: 56px; }
  /* viñeta más ligera para que se vea la imagen */
  .modo-movil .viñeta {
    background:
      linear-gradient(180deg, rgba(10,5,16,.6) 0%, rgba(10,5,16,.35) 24%, rgba(10,5,16,.05) 36%, rgba(10,5,16,0) 40%, rgba(10,5,16,.35) 62%, rgba(10,5,16,.85) 100%);
  }
  .modo-movil .niebla-1 { top: 50%; height: 26%; }
  .modo-movil .niebla-2 { top: 64%; height: 30%; }
  .ciudad, .inicio { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 600px) and (max-height: 700px) {
  .tema-inicio .ciudades { padding-top: 14vh; }
}

/* =========================================================
   CIUDAD CON FONDO ANIMADO (ej. Monterrey · Magenta)
   ========================================================= */
body.tema-escena { background: #1a0204; color: #fff; }
.capa-escena { position: fixed; left: 0; top: 0; width: 100vw; height: 100lvh; z-index: 0; pointer-events: none; background: #1a0204; }
.capa-escena[hidden] { display: none; }
.magenta-canvas { width: 100%; height: 100%; display: block; }

.ciudad-escena {
  max-width: 640px; margin: 0 auto; min-height: 100svh;
  display: flex; flex-direction: column;
  padding: max(14px, env(safe-area-inset-top)) 16px 96px;
}
.barra-escena { display: flex; align-items: center; justify-content: space-between; gap: 12px; animation: entrar .5s ease both; }
.tema-escena .volver { color: rgba(255,255,255,.85); text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.tema-escena .volver:hover { color: #fff; }
.logo-barra { width: 118px; height: auto; filter: drop-shadow(0 1px 6px rgba(0,0,0,.6)); }
/* espacio libre para que se vea "Magenta" y los ojos */
.escena-espacio { flex: 0 0 calc(65svh - 60px); }
.panel-ciudad {
  background: rgba(14,0,3,.58); border: 1px solid rgba(255,255,255,.1); border-radius: 22px;
  padding: 18px 16px 16px;
  backdrop-filter: blur(10px) saturate(1.1); -webkit-backdrop-filter: blur(10px) saturate(1.1);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.8);
  animation: entrar .6s ease .15s both;
}
.encabezado-escena { text-align: center; margin-bottom: 14px; }
.encabezado-escena h1 { font-size: clamp(30px, 8vw, 42px); font-weight: 800; letter-spacing: -.01em; line-height: 1; }
.encabezado-escena h1::after { content: ""; display: block; width: 40px; height: 3px; border-radius: 3px; background: #ff2d55; margin: 10px auto 0; }
.encabezado-escena p { color: rgba(255,255,255,.7); margin-top: 8px; font-size: 14.5px; }
.tema-escena .tarjeta-negocio { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.tema-escena .negocio-texto small { color: rgba(255,255,255,.65); }
.tema-escena .flecha { color: rgba(255,255,255,.5); }
.tema-escena .vacio { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.18); color: rgba(255,255,255,.75); padding: 22px 16px; }
.tema-escena .pie { color: rgba(255,255,255,.6); }

@media (max-width: 600px) {
  .tema-escena .pie { justify-content: flex-start; font-size: 12px; padding: 4px 84px max(30px, env(safe-area-inset-bottom)) 20px; margin-top: -80px; }
  .tema-escena .pie-logo { width: 78px; }
}
/* Computadora: el panel queda abajo, debajo de los ojos */
@media (min-width: 601px) {
  .ciudad-escena { max-width: 720px; padding-top: 22px; }
  .escena-espacio { flex-basis: calc(73vh - 70px); }
  .panel-ciudad { padding: 20px 22px; }
}

/* ---------- Chetumal: malecón animado ---------- */
.capa-escena[data-tipo="chetumal"] { background: #f2a25a; }
.chetumal-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ciudad-escena.panel-arriba .escena-espacio { order: 3; flex: 1 0 40svh; }
.ciudad-escena.panel-arriba .panel-ciudad { order: 2; margin-top: 18px; }
.ciudad-escena[data-escena="chetumal"] .panel-ciudad { background: rgba(10,22,40,.55); border-color: rgba(255,255,255,.22); }
.ciudad-escena[data-escena="chetumal"] .encabezado-escena h1::after { background: #ffb347; }
.tema-escena .pie span { text-shadow: 0 1px 4px rgba(0,0,0,.85); }
.tema-escena .pie-logo { filter: drop-shadow(0 1px 3px rgba(0,0,0,.8)); }
@media (min-width: 601px) {
  .ciudad-escena.panel-arriba .panel-ciudad { margin-top: 8px; }
}
/* Chetumal en computadora: panel a la izquierda para dejar ver palmeras, obelisco y malecón */
@media (min-width: 900px) and (orientation: landscape) {
  .ciudad-escena[data-escena="chetumal"] { max-width: none; padding-left: 3vw; padding-right: 3vw; }
  .ciudad-escena[data-escena="chetumal"] .panel-ciudad { width: min(500px, 38vw); align-self: flex-start; }
  .ciudad-escena[data-escena="chetumal"] .encabezado-escena { text-align: left; }
  .ciudad-escena[data-escena="chetumal"] .encabezado-escena h1::after { margin-left: 0; }
}

/* =========================================================
   NEGOCIO CON FONDO ANIMADO (Valdez · Jetta)
   ========================================================= */
.negocio-fondo.fondo-animado { background: #1b1410; }
.jetta-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.negocio-fondo.fondo-animado::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.18) 30%, rgba(0,0,0,0) 45%, rgba(0,0,0,0) 62%, rgba(0,0,0,.55) 78%, rgba(0,0,0,.75) 100%);
}
.negocio-espacio { display: none; }
.negocio-animado .negocio-nombre, .negocio-animado .negocio-giro { text-shadow: 0 2px 12px rgba(0,0,0,.8); }
.negocio-animado .negocio-lema { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.9); }
.negocio-animado .servicios li { background: rgba(10,10,12,.72); }

/* Celular: arriba logo y nombre sobre el cielo, se deja ver el carro, abajo los botones */
@media (max-width: 899px), (orientation: portrait) {
  .negocio-animado .negocio-contenido { display: flex; flex-direction: column; align-items: stretch; padding-top: 14px; }
  .negocio-animado .negocio-logo { width: 104px; height: 104px; margin: 30px auto 0; }
  .negocio-animado .negocio-nombre { margin-top: 14px; font-size: clamp(26px, 7.4vw, 36px); }
  .negocio-animado .negocio-giro { font-size: 13px; }
  .negocio-animado .negocio-espacio { display: block; flex: 0 0 auto; height: max(70px, calc(65svh - 236px)); }
  .negocio-animado .negocio-lema { margin-top: 6px; }
  .negocio-animado .enlaces { margin-top: 18px; }
}
/* Computadora: panel a la izquierda para que el carro se vea completo */
@media (min-width: 900px) and (orientation: landscape) {
  .negocio-animado .negocio-contenido {
    max-width: 430px; margin: 24px 0 24px 3vw; padding: 24px 22px 28px;
    background: rgba(12,10,10,.6); border: 1px solid rgba(255,255,255,.12); border-radius: 22px;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .negocio-animado .volver { left: 18px; top: 18px; }
  .negocio-animado .negocio-logo { width: 116px; height: 116px; margin-top: 26px; }
  .negocio-animado .negocio-nombre { font-size: 32px; margin-top: 16px; }
  .negocio-animado .negocio-lema { margin-top: 12px; font-size: 15.5px; }
  .negocio-animado .enlaces { margin-top: 20px; gap: 12px; }
  .negocio-animado .enlace { padding: 14px 16px; }
  .negocio-animado .enlace-icono { width: 44px; height: 44px; padding: 11px; }
  .negocio-animado .servicios { margin-top: 20px; gap: 8px; }
  .negocio-animado .servicios li { font-size: 12.5px; padding: 7px 12px; }
  .negocio-animado .firma { margin-top: 22px; }
  .negocio-animado .negocio-fondo.fondo-animado::after { background: linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.1) 32%, rgba(0,0,0,0) 45%); }
}

/* =========================================================
   CARRUSEL DE FOTOS DEL NEGOCIO (ej. Oni Bento)
   ========================================================= */
.galeria { position: relative; margin-top: 30px; border-radius: 18px; overflow: hidden; background: #111; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); }
.galeria-pista { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; outline: none; }
.galeria-pista::-webkit-scrollbar { display: none; }
.galeria-foto { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 4 / 5; margin: 0; position: relative; overflow: hidden; background: #0d0d0f; }
/* las fotos cuadradas o alargadas se ven completas, con un fondo difuminado de la misma foto */
.galeria-foto::before { content: ""; position: absolute; inset: -30px; background: inherit; background-size: cover; background-position: center; filter: blur(22px) brightness(.45) saturate(1.2); }
.galeria-foto img { position: relative; width: 100%; height: 100%; object-fit: contain; display: block; }
.galeria-foto { background-size: 0 0; }
.galeria-btn {
  position: absolute; top: calc(50% - 19px); transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: rgba(10,10,12,.6); color: #fff; padding: 10px; cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .2s;
}
.galeria-btn:hover { background: color-mix(in srgb, var(--acento) 70%, #000); }
.galeria-ant { left: 10px; } .galeria-sig { right: 10px; }
.galeria-puntos { display: flex; justify-content: center; gap: 7px; padding: 12px 0 13px; background: #111; }
.galeria-puntos button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.5); cursor: pointer; transition: width .25s, background .25s; }
.galeria-puntos button[aria-current="true"] { width: 22px; background: var(--acento); }

/* Computadora: datos a la izquierda, carrusel a la derecha */
@media (min-width: 900px) and (orientation: landscape) {
  .con-galeria .negocio-contenido {
    max-width: 1140px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 56px; align-items: start; padding-top: 56px;
  }
  .con-galeria .negocio-contenido > * { grid-column: 1; }
  .con-galeria .negocio .volver, .con-galeria .volver { top: 22px; }
  .con-galeria .negocio-logo { justify-self: center; margin-top: 10px; }
  .con-galeria .firma { justify-self: center; }
  .con-galeria .galeria-btn { top: calc(50% - 19px); }
  .con-galeria .galeria { grid-column: 2; grid-row: 1 / span 20; margin-top: 10px; position: sticky; top: 24px; }
  .con-galeria .galeria-foto { aspect-ratio: auto; height: min(84vh, 760px); }
}
