/* Enlace · Una iniciativa de Grupo Inírida */
:root {
  --verde: #0A6B35; --verde-osc: #063D20; --verde-claro: #DDF1E3;
  --amarillo: #FFC81E; --amarillo-claro: #FFF3C4; --cafe: #6B4E00;
  --azul: #1350A8; --azul-claro: #DCE8FA; --azul-osc: #0E3D82;
  --rojo: #D11F3A; --rojo-osc: #B0172F; --rojo-claro: #FDE0E4;
  --tinta: #13241A; --gris: #4E5D54; --fondo: #F5F6EF; --borde: #D5DCCB; --linea: #ECEFE4;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fondo); color: var(--tinta); font-family: 'Figtree', system-ui, sans-serif; }
a { color: var(--verde); }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, .t-display { font-family: 'Bricolage Grotesque', 'Figtree', sans-serif; font-weight: 800; margin: 0; letter-spacing: -.01em; }
#app { max-width: 560px; margin: 0 auto; min-height: 100vh; background: var(--fondo); padding-bottom: 96px; position: relative; }
.cargando { padding: 48px 16px; text-align: center; color: var(--gris); }
.oculto { display: none !important; }
.sr { position: absolute; left: -9999px; }
.pad { padding: 0 16px; }
.sec { padding: 28px 16px 0; }
.h2 { font-size: 22px; }
.sub { margin: 2px 0 0; font-size: 13px; color: var(--gris); }
.sec-cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.sec-cab a { font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.franja { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: 6px; }
.franja i:nth-child(1) { background: var(--azul); } .franja i:nth-child(2) { background: var(--amarillo); } .franja i:nth-child(3) { background: var(--verde); }

/* Encabezados */
.cab { background: var(--verde); color: #fff; padding: 18px 16px 22px; display: flex; flex-direction: column; gap: 14px; }
.cab.inicio { padding-bottom: 72px; }
.cab.oscuro { background: var(--tinta); }
.cab.amarillo { background: var(--amarillo); color: var(--tinta); }
.cab .fila-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.logo { width: 40px; height: 40px; border-radius: 12px; background: var(--rojo); display: flex; align-items: center; justify-content: center; flex: 0 0 40px; }
.marca b { font-family: 'Bricolage Grotesque', sans-serif; font-size: 20px; display: block; line-height: 1.1; }
.marca span { font-size: 12px; color: #D6EEDC; }
.btn-publique { height: 40px; padding: 0 14px; border-radius: 999px; background: var(--amarillo); color: var(--tinta); font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; }
.cab h1 { font-size: 30px; line-height: 1.08; }
.cab h1 em { font-style: normal; color: var(--amarillo); }
.cab .sup { font-size: 13px; font-weight: 700; color: var(--amarillo); }
.cab.amarillo .sup { color: var(--cafe); }
.cab p { margin: 0; font-size: 15px; line-height: 1.45; color: #D6EEDC; }
.cab.amarillo p { color: #4A3700; }
.cab.oscuro p { color: #C9D2CE; }
.volver { width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 0; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; }

/* Buscador */
.buscador { margin: -52px 16px 0; background: #fff; border-radius: 16px; padding: 6px 6px 6px 14px; display: flex; align-items: center; gap: 10px; box-shadow: 0 6px 20px rgba(10, 107, 53, .18); position: relative; }
.buscador.plano { margin: 0; box-shadow: none; border: 1.5px solid var(--borde); }
.buscador input { flex: 1; min-width: 0; border: 0; outline: none; font: 500 16px 'Figtree', sans-serif; color: var(--tinta); height: 44px; background: transparent; }
.buscador button { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--amarillo); display: flex; align-items: center; justify-content: center; flex: 0 0 44px; }

/* Chips y filtros */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; border: 1px solid var(--borde); background: #fff; color: var(--tinta); text-decoration: none; }
.chip.activo { background: var(--tinta); color: #fff; border-color: var(--tinta); }
.chip.peq { min-height: 26px; padding: 0 10px; font-size: 12px; font-weight: 600; border: 0; }
.punto { width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; display: inline-block; }
.c-verde { background: var(--verde-claro) !important; color: var(--verde) !important; }
.c-azul { background: var(--azul-claro) !important; color: var(--azul) !important; }
.c-gris { background: var(--fondo) !important; color: var(--tinta) !important; }
.c-amarillo { background: var(--amarillo) !important; color: var(--tinta) !important; font-weight: 800 !important; }
.c-tenue { background: var(--fondo) !important; color: var(--gris) !important; }

/* Grupos del inicio */
.grupos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.grupo { text-decoration: none; background: #fff; border-radius: 16px; padding: 14px 8px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-height: 112px; }
.grupo .ico { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.grupo b { font-size: 14px; color: var(--tinta); line-height: 1.15; }
.grupo span { font-size: 11px; color: var(--gris); }
.grupo.rojo { background: var(--rojo); }
.grupo.rojo b { color: #fff; font-size: 16px; font-weight: 800; }
.grupo.rojo span { color: #FFE3E7; }

/* Fotos */
.foto { background: #E2E8D6; position: relative; overflow: hidden; }
.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto.vacia { display: flex; align-items: center; justify-content: center; }
.sello { position: absolute; z-index: 1; font-size: 11px; font-weight: 800; padding: 5px 9px; border-radius: 8px; }
.sello.dest { top: 10px; left: 10px; background: var(--amarillo); color: var(--tinta); }
.sello.oferta { bottom: 10px; left: 10px; background: var(--rojo); color: #fff; font-size: 13px; }
.ayuuu { position: absolute; z-index: 1; top: 14px; right: 12px; background: var(--amarillo); color: var(--tinta); font-family: 'Bricolage Grotesque', sans-serif; font-size: 18px; font-weight: 800; padding: 6px 12px; border-radius: 999px; transform: rotate(8deg); }
.beneficio { position: absolute; z-index: 1; top: 10px; left: 10px; background: var(--rojo); color: #fff; padding: 8px 12px; border-radius: 12px; display: flex; flex-direction: column; line-height: 1; max-width: 62%; }
.beneficio b { font-family: 'Bricolage Grotesque', sans-serif; font-size: 26px; }
.beneficio span { font-size: 12px; font-weight: 700; margin-top: 4px; line-height: 1.2; }

/* Tarjetas */
.lista { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.tarjeta { background: #fff; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.tarjeta > a { text-decoration: none; color: inherit; display: block; }
.tarjeta .foto { height: 150px; }
.tarjeta .cuerpo { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.nombre { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 17px; }
.nombre.peq { font-size: 16px; }
.desc { font-size: 13px; color: var(--gris); }
.estado-hora { font-size: 13px; }
.estado-hora b { color: var(--verde); }
.estado-hora .cerrado { color: var(--gris); font-weight: 700; }
.fila { text-decoration: none; color: inherit; background: #fff; border-radius: 18px; overflow: hidden; display: flex; min-height: 112px; }
.fila .foto { flex: 0 0 116px; }
.fila .cuerpo { padding: 12px 14px; display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; }
.fila.apagada { opacity: .72; }
.aviso-azul { font-size: 12px; color: var(--azul); font-weight: 700; }
.wa { min-height: 44px; border-radius: 12px; background: var(--verde); color: #fff; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; padding: 0 12px; text-align: center; }
.wa.borde { background: #fff; color: var(--verde); border: 1.5px solid var(--verde); }
.btn-borde { min-height: 44px; border-radius: 12px; border: 1.5px solid var(--tinta); color: var(--tinta); background: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; text-decoration: none; padding: 0 14px; }
.btn-suave { min-height: 44px; border-radius: 12px; background: var(--fondo); color: var(--tinta); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; text-decoration: none; padding: 0 10px; text-align: center; flex: 1; border: 0; }

/* Carrusel de ofertas */
.carrusel { display: flex; gap: 12px; overflow-x: auto; padding: 14px 16px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carrusel::-webkit-scrollbar { display: none; }
.oferta { flex: 0 0 270px; scroll-snap-align: start; background: #fff; border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit; }
.oferta .foto { height: 130px; }
.oferta .cuerpo { padding: 12px 14px 14px; }
.oferta .cuerpo b { font-size: 15px; display: block; }
.oferta .cuerpo span { font-size: 12px; color: var(--gris); }

/* Evento */
.evento { margin-top: 12px; background: var(--tinta); color: #fff; border-radius: 18px; padding: 16px; display: flex; gap: 14px; align-items: center; text-decoration: none; }
.fecha-caja { flex: 0 0 64px; height: 72px; border-radius: 14px; background: var(--fondo); color: var(--tinta); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.fecha-caja small { font-size: 12px; font-weight: 800; color: var(--rojo); text-transform: uppercase; }
.fecha-caja b { font-family: 'Bricolage Grotesque', sans-serif; font-size: 26px; line-height: 1; }
.evento .t { font-weight: 700; font-size: 16px; }
.evento .d { font-size: 13px; color: #C9D2CE; margin-top: 4px; }

/* Bloques destacados del inicio */
.bloque-amarillo { background: var(--amarillo-claro); border-radius: 18px; padding: 18px; display: flex; align-items: center; gap: 14px; text-decoration: none; }
.bloque-amarillo .ico { flex: 0 0 56px; height: 56px; border-radius: 16px; background: #fff; display: flex; align-items: center; justify-content: center; }
.bloque-amarillo b { font-family: 'Bricolage Grotesque', sans-serif; font-size: 20px; color: var(--tinta); display: block; }
.bloque-amarillo span { font-size: 13px; color: var(--cafe); }
.pusana { margin-top: 14px; border-radius: 18px; overflow: hidden; background: var(--azul); color: #fff; text-decoration: none; display: block; }
.pusana .foto { height: 170px; background: #1D5FB8; }
.pusana .cuerpo { padding: 14px 16px 16px; }
.pusana b { font-size: 17px; display: block; }
.pusana span { font-size: 13px; color: #D6E4FA; }

/* Pie */
.pie { margin-top: 32px; padding: 24px 16px 32px; background: var(--tinta); color: #fff; display: flex; flex-direction: column; gap: 14px; }
.pie b.t-display { font-size: 20px; }
.pie p { margin: 0; font-size: 14px; color: #C9D2CE; }
.pie .legal { font-size: 11px; color: #A9B4AF; line-height: 1.5; }
.pie .firma { font-size: 12px; font-weight: 600; }

/* Barra inferior */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: #fff; border-top: 1px solid #DDE3D3; padding-bottom: env(safe-area-inset-bottom); }
.nav .in { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); height: 68px; }
.nav a { text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--gris); font-size: 11px; font-weight: 600; }
.nav a.activo { color: var(--verde); font-weight: 800; }
.barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: #fff; border-top: 1px solid #DDE3D3; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); }
.barra .in { max-width: 528px; margin: 0 auto; display: flex; gap: 10px; }
.barra .wa { flex: 1; min-height: 52px; border-radius: 14px; font-size: 16px; font-weight: 800; }
.barra .cuad { flex: 0 0 52px; height: 52px; border-radius: 14px; border: 1.5px solid var(--borde); display: flex; align-items: center; justify-content: center; background: #fff; }
.barra .amarillo { background: var(--amarillo); color: var(--tinta); }

/* Ficha */
.portada { height: 250px; position: relative; }
.portada .volver { position: absolute; top: 16px; left: 16px; z-index: 2; }
.portada .compartir { position: absolute; top: 16px; left: auto; right: 16px; z-index: 2; }
.contador { position: absolute; bottom: 30px; right: 12px; z-index: 1; background: rgba(19, 36, 26, .82); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; border: 0; }
.hoja { background: #fff; border-radius: 22px 22px 0 0; margin-top: -20px; padding: 20px 16px 18px; position: relative; display: flex; flex-direction: column; gap: 10px; }
.hoja h1 { font-size: 30px; line-height: 1.05; }
.hoja .linea { font-size: 14px; color: var(--gris); }
.hoja .texto { font-size: 15px; line-height: 1.45; }
.card { background: #fff; border-radius: 18px; padding: 16px; }
.h3 { font-size: 19px; }
.tabla { display: flex; flex-direction: column; }
.tabla .reng { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 50px; border-bottom: 1px solid var(--linea); font-size: 14px; }
.tabla .reng:last-child { border-bottom: 0; }
.tabla .reng.hoy { font-weight: 800; }
.tabla .p { font-weight: 700; font-size: 15px; }
.tabla .pd { font-size: 12px; color: var(--gris); }
.galeria { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.galeria button { height: 120px; border-radius: 14px; overflow: hidden; border: 0; padding: 0; background: var(--linea); }
.galeria button img { width: 100%; height: 100%; object-fit: cover; }
.mapa { width: 100%; height: 160px; border: 0; display: block; background: #D9E3DE; }
.caja-verde { background: var(--verde-claro); border-radius: 18px; padding: 16px; display: flex; gap: 14px; align-items: center; }
.caja-verde .ico { flex: 0 0 48px; height: 48px; border-radius: 14px; background: #fff; display: flex; align-items: center; justify-content: center; }
.caja-verde b { font-size: 16px; color: var(--verde); display: block; }
.caja-verde span { font-size: 13px; color: #1F4A2E; }
.caja-amarilla { background: var(--amarillo-claro); border-radius: 20px; padding: 18px 16px; display: flex; flex-direction: column; gap: 14px; }
.caja-amarilla .pre { font-size: 13px; font-weight: 700; color: var(--azul); }
.caja-amarilla h2 { font-size: 24px; margin-top: 2px; }
.caja-amarilla p { margin: 6px 0 0; font-size: 14px; color: #4A3700; line-height: 1.45; }
.paso { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #4A3700; }
.paso i { flex: 0 0 24px; height: 24px; border-radius: 50%; background: var(--tinta); color: #fff; font-size: 12px; font-weight: 800; font-style: normal; display: flex; align-items: center; justify-content: center; }
.nota-peq { font-size: 11px; color: var(--cafe); line-height: 1.45; }
.caja-azul { background: var(--azul); color: #fff; border-radius: 20px; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; }
.caja-azul .pre { font-size: 13px; font-weight: 700; color: var(--amarillo); }
.caja-azul .reng { display: flex; gap: 12px; align-items: flex-start; }
.caja-azul .reng b { font-size: 17px; display: block; }
.caja-azul .reng span { font-size: 13px; color: #D6E4FA; }
.caja-azul .blanco { min-height: 44px; border-radius: 12px; background: #fff; color: var(--azul); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.caja-roja { background: var(--rojo); color: #fff; border-radius: 18px; padding: 16px; position: relative; }
.caja-roja .grande { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 44px; line-height: 1; padding-right: 96px; }
.caja-roja .med { font-weight: 700; font-size: 16px; margin-top: 4px; padding-right: 60px; }
.caja-roja .peq { font-size: 13px; color: #FFE3E7; margin-top: 4px; }
.caja-roja .uso { margin-top: 12px; background: #fff; color: var(--rojo-osc); border-radius: 10px; padding: 10px 12px; font-size: 13px; font-weight: 700; text-align: center; }
.caja-roja + .caja-roja { margin-top: 10px; }
.caja-oscura { background: var(--tinta); color: #fff; border-radius: 18px; padding: 16px; }
.caja-oscura p { margin: 0; font-size: 15px; line-height: 1.6; white-space: pre-line; }
.datos3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.datos3 .card { padding: 12px; text-align: center; }
.datos3 small { font-size: 11px; color: var(--gris); font-weight: 600; display: block; }
.datos3 b { font-size: 15px; margin-top: 4px; display: block; }
.prestador { background: #fff; border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.prestador .arriba { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; }
.avatar { flex: 0 0 60px; height: 60px; border-radius: 50%; overflow: hidden; background: #E2D6C2; display: flex; align-items: center; justify-content: center; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.texto-largo { font-size: 15px; line-height: 1.55; white-space: pre-line; }
.puntos { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.45; }
.puntos li { display: flex; gap: 10px; }
.puntos li::before { content: '·'; color: var(--verde); font-weight: 800; }
.mini { flex: 0 0 150px; text-decoration: none; color: inherit; background: #fff; border-radius: 16px; overflow: hidden; }
.mini .foto { height: 90px; }
.mini div.n { padding: 10px 12px; font-weight: 700; font-size: 14px; }
.vacio { background: #fff; border-radius: 18px; padding: 20px; color: var(--gris); font-size: 14px; text-align: center; line-height: 1.5; }
.contador-res { padding: 12px 16px 0; font-size: 13px; color: var(--gris); }

/* Visor de fotos */
.visor { position: fixed; inset: 0; z-index: 50; background: rgba(10, 18, 13, .94); display: flex; align-items: center; justify-content: center; padding: 16px; }
.visor img { max-width: 100%; max-height: 86vh; border-radius: 10px; }
.visor button { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; font-size: 22px; }

@media (min-width: 600px) {
  body { background: #E8ECDF; }
}
