/* ============================================================
   LOCALWISE — Frontend nuevo (lo que ve la gente de la ciudad)
   Nova (2026-11-28) · Fase 1: marco del sitio + inicio

   - Mockup aprobado por Enlian el 28 nov 2026.
   - NO es el estilo del panel (panel.css): el panel es tranquilo, para
     trabajar; esto es más vivo, con fotos, para disfrutar. Comparten el
     azul y el ámbar del logo.
   - Todas las clases empiezan con `st-`. No se toca app.css: las páginas
     que todavía no se rediseñan se siguen viendo como antes.
   - Decisiones de Enlian que hay que respetar:
       · fichas en UN solo tono gris; el color va solo en el icono
       · azul marino + amarillo para lo seleccionado y para "Conoce tu ciudad"
       · esquinas a medio camino: ni cuadradas ni muy redondas
       · el gris claro debe notarse contra el blanco (no tan tenue)
       · títulos en Bricolage Grotesque (probó la serif del panel y no le gustó)
   ============================================================ */

:root {
    --st-tinta:      #0e1730;
    --st-texto:      #2b3650;
    --st-gris:       #55607a;
    --st-fondo:      #ffffff;
    --st-tenue:      #e4eaf4;   /* el gris claro de fichas y recuadros */
    --st-linea:      #d6deeb;
    --st-borde:      #cbd5e5;
    --st-azul:       #1d4ed8;
    --st-azul-hover: #1e3a8a;
    --st-azul-suave: #e3ecff;
    --st-marca:      #1a4fc4;   /* azul del logo oficial */
    --st-sol:        #f2c318;   /* amarillo del logo oficial */
    --st-marino:     #0d1b3e;
    --st-marino-2:   #172a57;
    --st-ambar:      #fcd34d;
    --st-ok-fondo:   #e2f5ea;  --st-ok-texto:   #0b5f3a;
    --st-promo-fondo:#fff3d6;  --st-promo-texto:#8a4a06;
    --st-evento-fondo:#ece8fb; --st-evento-texto:#45309a;

    --st-r-xs: 8px;    /* botones, chips, buscador */
    --st-r-sm: 10px;   /* fotos chicas, renglones */
    --st-r-md: 12px;   /* fotos y tarjetas */
    --st-r-lg: 14px;   /* la foto grande de la ciudad */

    --st-titulo: 'Bricolage Grotesque', 'Outfit', system-ui, sans-serif;
    --st-ancho: 1200px;
}

/* ------------------------------------------------------------
   1. Marco: barra de arriba
   ------------------------------------------------------------ */
.st-top {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--st-fondo);
    border-bottom: 1px solid var(--st-linea);
}
.st-top__dentro {
    display: flex;
    align-items: center;
    gap: 8px 24px;
    max-width: var(--st-ancho);
    margin: 0 auto;
    padding: 8px 16px;
    min-height: 60px;
    box-sizing: border-box;
}
@media (min-width: 768px) { .st-top__dentro { padding: 10px 24px; } }

/* Logo oficial: LOCALWISE con el pin en la "O" y MX arriba */
.st-logo {
    display: inline-flex;
    align-items: flex-start;
    flex: none;
    line-height: 1;
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 19px;
    letter-spacing: 0.01em;
    color: var(--st-marca);
    text-decoration: none;
}
.st-logo:hover { color: var(--st-marca); }
.st-logo svg { flex: none; width: 15px; height: 19px; margin: 3px 1px 0; }
.st-logo__mx { margin: 1px 0 0 2px; font-size: 8px; letter-spacing: 0.04em; }
@media (min-width: 768px) {
    .st-logo { font-size: 23px; }
    .st-logo svg { width: 18px; height: 23px; }
    .st-logo__mx { font-size: 10px; }
}

.st-menu { display: none; flex: 1; flex-wrap: wrap; gap: 4px; }
@media (min-width: 768px) { .st-menu { display: flex; } }
.st-menu a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: var(--st-r-xs);
    font-weight: 600;
    font-size: 15px;
    color: var(--st-texto);
    text-decoration: none;
}
.st-menu a:hover { background: var(--st-tenue); color: var(--st-tinta); }
.st-menu a.is-activo { background: var(--st-azul-suave); color: var(--st-azul-hover); font-weight: 700; }

.st-top__lado { display: flex; align-items: center; gap: 6px 14px; margin-left: auto; }
.st-ciudad {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--st-borde);
    border-radius: 999px;
    background: var(--st-fondo);
    font-weight: 600;
    font-size: 14px;
    color: var(--st-tinta);
    text-decoration: none;
    white-space: nowrap;
}
.st-ciudad:hover { border-color: var(--st-azul); color: var(--st-tinta); }
.st-ciudad svg { color: var(--st-azul); }
.st-top__enlace {
    display: none;
    align-items: center;
    min-height: 44px;
    font-weight: 600;
    font-size: 15px;
    color: var(--st-azul);
    text-decoration: none;
    white-space: nowrap;
}
.st-top__enlace:hover { color: var(--st-azul-hover); }
@media (min-width: 768px) { .st-top__enlace { display: inline-flex; } }

/* ------------------------------------------------------------
   2. Marco: barra de abajo (celular)
   ------------------------------------------------------------ */
.st-barra {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    height: 66px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--st-fondo);
    border-top: 1px solid var(--st-linea);
}
@media (min-width: 768px) { .st-barra { display: none; } }
.st-barra a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--st-gris);
    text-decoration: none;
}
.st-barra a.is-activo { color: var(--st-azul); font-weight: 700; }
.st-barra svg { width: 22px; height: 22px; }

/* ------------------------------------------------------------
   3. Piezas que comparten las páginas nuevas
   ------------------------------------------------------------ */
.st { color: var(--st-tinta); background: var(--st-fondo); }
.st a { text-decoration: none; }
.st-dentro {
    max-width: var(--st-ancho);
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
}
@media (min-width: 768px) { .st-dentro { padding-left: 24px; padding-right: 24px; } }

.st-pila { display: flex; flex-direction: column; gap: 34px; padding-top: 22px; padding-bottom: 40px; }
@media (min-width: 768px) { .st-pila { gap: 56px; padding-top: 28px; padding-bottom: 56px; } }

.st-cabeza { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.st-h2 {
    margin: 0;
    font-family: var(--st-titulo);
    font-weight: 600;
    font-size: 23px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--st-tinta);
}
@media (min-width: 768px) { .st-h2 { font-size: 30px; } .st-cabeza { margin-bottom: 18px; } }
.st-mas {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-weight: 600;
    font-size: 14px;
    color: var(--st-azul);
    white-space: nowrap;
}
.st-mas:hover { color: var(--st-azul-hover); }

.st-chip {
    display: inline-block;
    align-self: flex-start;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: var(--st-azul-suave);
    color: var(--st-azul-hover);
}
.st-chip--promo  { background: var(--st-promo-fondo);  color: var(--st-promo-texto); }
.st-chip--evento { background: var(--st-evento-fondo); color: var(--st-evento-texto); }
.st-chip--ok     { background: var(--st-ok-fondo);     color: var(--st-ok-texto); }

/* Cuando un negocio no tiene foto: su inicial, sobria */
.st-inicial {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--st-azul-suave);
    color: var(--st-azul);
    font-family: var(--st-titulo);
    font-weight: 700;
}

/* ------------------------------------------------------------
   4. Inicio
   ------------------------------------------------------------ */
/* 4.1 La ciudad primero */
.st-ciudad-foto {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 318px;
    margin-top: 12px;
    border-radius: var(--st-r-md);
    overflow: hidden;
    background: var(--st-marino);
}
.st-ciudad-foto > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-ciudad-foto__velo {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(8,15,38,0.10) 0%, rgba(8,15,38,0.34) 45%, rgba(8,15,38,0.88) 100%);
}
.st-ciudad-foto__texto {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.st-fecha { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--st-ambar); }
.st-h1 {
    margin: 0;
    font-family: var(--st-titulo);
    font-weight: 600;
    font-size: 34px;
    line-height: 1.04;
    letter-spacing: -0.025em;
    color: #ffffff;
    text-wrap: balance;
}
.st-ciudad-foto__sub { display: none; margin: 0; font-size: 18px; line-height: 1.5; color: #dbe3f5; max-width: 46ch; }
@media (min-width: 768px) {
    .st-ciudad-foto { min-height: 440px; margin-top: 4px; border-radius: var(--st-r-lg); }
    .st-ciudad-foto__velo { background: linear-gradient(90deg, rgba(8,15,38,0.86) 0%, rgba(8,15,38,0.55) 42%, rgba(8,15,38,0.05) 78%); }
    .st-ciudad-foto__texto { max-width: 640px; padding: 48px 44px; gap: 20px; }
    .st-fecha { font-size: 13px; }
    .st-h1 { font-size: 60px; line-height: 1; letter-spacing: -0.03em; }
    .st-ciudad-foto__sub { display: block; }
}

/* El buscador. Conserva las clases `hero-search*` porque el script del
   autocompletado (al final de home/index.php) las busca por nombre. */
.st .hero-search-wrap { position: relative; margin: 0; }
.st .hero-search {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 6px 0 16px;
    background: #ffffff;
    border-radius: var(--st-r-xs);
    box-shadow: none;
}
.st .hero-search > svg { flex: none; color: var(--st-azul); }
.st .hero-search__input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--st-tinta); }
.st .hero-search__btn {
    display: none;
    min-height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: var(--st-r-xs);
    background: var(--st-azul);
    font-weight: 600;
    font-size: 15px;
    color: #ffffff;
    cursor: pointer;
}
.st .hero-search__btn:hover { background: var(--st-azul-hover); }
@media (min-width: 768px) {
    .st .hero-search { min-height: 60px; padding-left: 18px; }
    .st .hero-search__btn { display: block; }
}
.hero-autocomplete { position: fixed; background: #ffffff; border-radius: var(--st-r-md); box-shadow: 0 8px 32px rgba(0,0,0,.2); z-index: 9999; overflow: hidden; display: none; max-height: 400px; overflow-y: auto; }
.hero-ac__group { padding: 8px 16px 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; color: #6b7280; letter-spacing: .5px; background: #f9fafb; border-bottom: 1px solid #f3f4f6; }
.hero-autocomplete__item { padding: 8px 16px; cursor: pointer; display: flex; align-items: center; gap: 12px; font-size: 14px; border-bottom: 1px solid #f3f4f6; color: #111827; text-decoration: none; }
.hero-autocomplete__item:hover { background: #eff6ff; }
.hero-ac__icon { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hero-ac__icon--negocio { background: #dbeafe; color: #2563eb; }
.hero-ac__icon--producto { background: #fef3c7; color: #d97706; }
.hero-ac__icon--servicio { background: #d1fae5; color: #059669; }
.hero-ac__icon--propiedad { background: #f3e8ff; color: #9333ea; }
.hero-ac__text { min-width: 0; flex: 1; }
.hero-ac__name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-ac__sub { font-size: 11px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-ac__viewall { display: block; padding: 12px 16px; text-align: center; font-size: 14px; font-weight: 600; color: #2563eb; cursor: pointer; border-top: 1px solid #e5e7eb; text-decoration: none; }
.hero-ac__viewall:hover { background: #eff6ff; }

/* 4.2 Las seis intenciones */
.st-intenciones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.st-intencion {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 88px;
    padding: 14px;
    box-sizing: border-box;
    border-radius: var(--st-r-md);
    background: var(--st-tenue);
    color: var(--st-tinta);
    font-weight: 600;
    font-size: 15px;
    transition: background .15s;
}
.st-intencion:hover { background: #d8e0ee; color: var(--st-tinta); }
.st-intencion svg { width: 24px; height: 24px; flex: none; }
.st-intencion--marino { background: var(--st-marino); color: #ffffff; }
.st-intencion--marino:hover { background: var(--st-marino-2); color: #ffffff; }
@media (min-width: 768px) {
    .st-intenciones { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
    .st-intencion { flex-direction: row; align-items: center; gap: 12px; min-height: 72px; padding: 0 18px; font-size: 16px; }
}
.st-tambien { margin: 12px 0 0; font-size: 14px; color: var(--st-gris); }
.st-tambien a { display: inline-block; padding: 10px 0; font-weight: 600; color: var(--st-azul); }
.st-tambien a + a { margin-left: 16px; }

/* 4.3 Tarjeta de negocio con foto (Abierto ahora) */
.st-tira { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px; }
.st-tira::-webkit-scrollbar { display: none; }
.st-negocio { flex: none; width: 236px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; color: var(--st-tinta); }
.st-negocio:hover { color: var(--st-tinta); }
.st-negocio__foto { position: relative; display: block; height: 150px; border-radius: var(--st-r-md); overflow: hidden; background: var(--st-tenue); }
.st-negocio__foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.st-negocio:hover .st-negocio__foto img { transform: scale(1.03); }
.st-negocio__foto .st-inicial { width: 100%; height: 100%; font-size: 44px; }
.st-negocio__foto .st-chip { position: absolute; left: 10px; top: 10px; }
.st-negocio__nombre { display: block; font-weight: 700; font-size: 16px; line-height: 1.25; }
.st-negocio__sub { display: block; margin-top: 3px; font-size: 14px; color: var(--st-gris); }
@media (min-width: 768px) {
    .st-tira { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; overflow: visible; margin: 0; padding: 0; }
    .st-negocio { width: auto; }
    .st-negocio__foto { height: auto; aspect-ratio: 4 / 3; }
    .st-negocio__nombre { font-size: 17px; }
}

/* 4.4 Dos columnas en computadora: Abierto ahora + Lo más visto */
.st-dos { display: flex; flex-direction: column; gap: 34px; }
@media (min-width: 1024px) {
    .st-dos { flex-direction: row; gap: 48px; }
    .st-dos > :first-child { flex: 1 1 0; min-width: 0; }
    .st-dos > :last-child  { flex: 0 0 320px; min-width: 0; }
}

/* 4.5 Lo más visto: lista con su lugar */
.st-visto { display: flex; align-items: center; gap: 14px; min-height: 72px; border-bottom: 1px solid var(--st-linea); color: var(--st-tinta); }
.st-visto:last-child { border-bottom: 0; }
.st-visto:hover { color: var(--st-azul); }
.st-visto__n { flex: none; width: 22px; font-family: var(--st-titulo); font-weight: 700; font-size: 22px; color: #d97706; }
.st-visto__foto { flex: none; width: 52px; height: 52px; border-radius: var(--st-r-sm); object-fit: cover; font-size: 20px; }
.st-visto__texto { flex: 1; min-width: 0; }
.st-visto__nombre { display: block; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-visto__sub { display: block; margin-top: 2px; font-size: 13px; color: var(--st-gris); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 4.6 Pasando hoy: lo que publican los negocios */
.st-hoy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { .st-hoy { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.st-post { display: flex; flex-direction: column; gap: 10px; color: var(--st-tinta); min-width: 0; }
.st-post:hover { color: var(--st-tinta); }
.st-post__foto { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--st-r-md); background: var(--st-tenue); }
.st-post__sinfoto { display: flex; align-items: flex-end; aspect-ratio: 4 / 5; padding: 14px; box-sizing: border-box; border-radius: var(--st-r-md); background: var(--st-marino); color: #ffffff; font-family: var(--st-titulo); font-weight: 600; font-size: 18px; line-height: 1.2; }
.st-post__texto { display: flex; flex-direction: column; gap: 4px; }
.st-post__titulo { font-weight: 600; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-post__quien { font-size: 13px; color: var(--st-gris); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 4.7 Conoce tu ciudad: la banda azul marino */
.st-conoce { background: var(--st-marino); color: #ffffff; }
.st-conoce__dentro { display: flex; flex-direction: column; gap: 18px; padding-top: 30px; padding-bottom: 26px; }
.st-conoce__titulo { margin: 6px 0 0; font-family: var(--st-titulo); font-weight: 600; font-size: 27px; line-height: 1.1; letter-spacing: -0.02em; color: #ffffff; text-wrap: balance; }
.st-conoce__lugares { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.st-lugar { position: relative; display: block; min-height: 232px; border-radius: var(--st-r-md); overflow: hidden; background: var(--st-marino-2); color: #ffffff; }
.st-lugar:hover { color: #ffffff; }
.st-lugar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.st-lugar:hover img { transform: scale(1.03); }
.st-lugar__velo { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,15,38,0) 38%, rgba(8,15,38,0.9) 100%); }
.st-lugar__texto { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 4px; }
.st-lugar__tipo { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--st-ambar); }
.st-lugar__nombre { font-family: var(--st-titulo); font-weight: 600; font-size: 21px; line-height: 1.15; }
.st-fechas { display: flex; flex-direction: column; gap: 10px; }
.st-fecha-fila { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 8px 14px; box-sizing: border-box; border-radius: var(--st-r-sm); background: var(--st-marino-2); color: #ffffff; }
.st-fecha-fila:hover { background: #1f3670; color: #ffffff; }
.st-fecha-fila__dia { flex: none; width: 46px; text-align: center; line-height: 1; }
.st-fecha-fila__dia b { display: block; font-family: var(--st-titulo); font-weight: 700; font-size: 22px; }
.st-fecha-fila__dia span { display: block; margin-top: 3px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--st-ambar); }
.st-fecha-fila__texto { flex: 1; min-width: 0; }
.st-fecha-fila__texto b { display: block; font-weight: 600; font-size: 15px; }
.st-fecha-fila__texto span { display: block; margin-top: 2px; font-size: 13px; color: #b9c4dd; }
.st-conoce__mas { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 15px; color: var(--st-ambar); }
.st-conoce__mas:hover { color: #ffffff; }
@media (min-width: 900px) {
    .st-conoce__dentro { flex-direction: row; gap: 48px; padding-top: 56px; padding-bottom: 56px; }
    .st-conoce__lado { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
    .st-conoce__lugares { flex: 2 1 480px; min-width: 0; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
    .st-conoce__titulo { font-size: 40px; line-height: 1.05; letter-spacing: -0.025em; }
    .st-lugar { min-height: 380px; }
    .st-lugar__nombre { font-size: 24px; }
}
.st-conoce__lado { display: flex; flex-direction: column; gap: 14px; }

/* 4.8 Por qué Localwise (una tira) y la invitación al negocio */
.st-cierre { display: flex; flex-direction: column; gap: 16px; }
.st-razones { list-style: none; margin: 0; padding: 18px; display: flex; flex-direction: column; gap: 12px; border-radius: var(--st-r-md); background: var(--st-tenue); font-size: 14px; line-height: 1.4; color: var(--st-texto); }
.st-razones li { display: flex; gap: 10px; }
.st-razones li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 999px; background: #d97706; }
.st-razones li:nth-child(2)::before { background: var(--st-azul); }
.st-razones li:nth-child(3)::before { background: #0f7a4a; }
.st-razones strong { color: var(--st-tinta); }
.st-invita { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 18px; box-sizing: border-box; border: 1px solid var(--st-borde); border-radius: var(--st-r-md); color: var(--st-tinta); }
.st-invita:hover { border-color: var(--st-azul); color: var(--st-tinta); }
.st-invita__texto { flex: 1; min-width: 0; }
.st-invita__texto b { display: block; font-weight: 700; font-size: 15px; }
.st-invita__texto span { display: block; font-size: 13px; color: var(--st-gris); }
.st-invita svg { flex: none; color: var(--st-azul); }
@media (min-width: 900px) {
    .st-cierre { flex-direction: row; align-items: stretch; gap: 24px; }
    .st-razones { flex: 2 1 0; flex-direction: row; gap: 28px; align-items: center; padding: 22px 26px; font-size: 15px; }
    .st-razones li { flex: 1; }
    .st-invita { flex: 1 1 0; }
}

/* Las piezas viejas que el inicio sigue incluyendo (banners, videos,
   "para ti", vistos) heredan el ancho nuevo sin tocar sus archivos. */
.st .container { max-width: var(--st-ancho); }

@media (prefers-reduced-motion: reduce) {
    .st-negocio__foto img, .st-lugar img, .st-intencion { transition: none; }
}

/* Ajustes tras la primera prueba — Nova (2026-11-28) */
.st-negocio__nombre { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-visto__foto { background: var(--st-tenue); }

/* ------------------------------------------------------------
   5. Explorar (/negocios) — Fase 2, Nova (2026-11-28)
   ------------------------------------------------------------ */
.st-explorar { display: flex; flex-direction: column; gap: 16px; padding-top: 14px; padding-bottom: 48px; }

/* Encabezado de página: el MISMO para todas las secciones del sitio
   (antes cada una tenía una banda de otro color). */
.st-pagina { display: flex; flex-direction: column; gap: 14px; }
.st-pagina__titulo { margin: 0; font-family: var(--st-titulo); font-weight: 600; font-size: 32px; line-height: 1.1; letter-spacing: -0.025em; color: var(--st-tinta); }
.st-pagina__linea { margin: 0; font-size: 15px; color: var(--st-gris); }
@media (min-width: 768px) {
    .st-explorar { gap: 20px; padding-top: 28px; }
    .st-pagina { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; }
    .st-pagina__titulo { font-size: 44px; }
}

.st-buscador { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 6px 0 16px; border-radius: var(--st-r-xs); background: var(--st-tenue); }
.st-buscador svg { flex: none; color: var(--st-azul); }
.st-buscador input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--st-tinta); }
.st-buscador:focus-within { box-shadow: 0 0 0 2px var(--st-azul); }
.st-buscador button { display: none; min-height: 40px; padding: 0 18px; border: 0; border-radius: var(--st-r-xs); background: var(--st-azul); font-weight: 600; font-size: 15px; color: #ffffff; cursor: pointer; }
.st-buscador button:hover { background: var(--st-azul-hover); }
@media (min-width: 768px) { .st-buscador { flex: 0 1 460px; } .st-buscador button { display: block; } }

/* Las intenciones como pestañas (se deslizan en celular) */
.st-pestanas { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px; }
.st-pestanas::-webkit-scrollbar { display: none; }
.st-pestanas a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--st-borde); border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--st-tinta); white-space: nowrap; }
.st-pestanas a:hover { border-color: var(--st-tinta); color: var(--st-tinta); }
.st-pestanas a.is-activo { background: var(--st-marino); border-color: var(--st-marino); color: #ffffff; }
@media (min-width: 768px) { .st-pestanas { margin: 0; padding: 0; flex-wrap: wrap; overflow: visible; } }

/* Filtros de un toque */
.st-toques { display: flex; flex-wrap: wrap; gap: 8px; }
.st-toque { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: var(--st-r-xs); background: var(--st-tenue); font-weight: 600; font-size: 14px; color: var(--st-texto); }
.st-toque:hover { background: #d8e0ee; color: var(--st-tinta); }
.st-toque.is-activo { background: var(--st-ok-fondo); color: var(--st-ok-texto); }

.st-cuenta { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--st-gris); }
.st-cuenta strong { color: var(--st-tinta); }
.st-cuenta a { font-weight: 600; color: var(--st-azul); }

/* Botón del sitio nuevo */
.st-boton { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: var(--st-r-xs); background: var(--st-azul); font-weight: 600; font-size: 14px; color: #ffffff; }
.st-boton:hover { background: var(--st-azul-hover); color: #ffffff; }
.st-boton--claro { background: var(--st-tenue); color: var(--st-tinta); }
.st-boton--claro:hover { background: #d8e0ee; color: var(--st-tinta); }

/* La tarjeta de negocio */
.st-lista { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; margin-top: 4px; }
@media (min-width: 700px)  { .st-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; } }
@media (min-width: 1080px) { .st-lista { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.st-tarjeta { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.st-tarjeta__foto { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--st-r-md); overflow: hidden; background: var(--st-tenue); }
.st-tarjeta__foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.st-tarjeta:hover .st-tarjeta__foto img { transform: scale(1.03); }
.st-tarjeta__foto .st-chip { position: absolute; left: 10px; top: 10px; }
.st-corazon { position: absolute; right: 10px; top: 10px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,0.94); color: var(--st-tinta); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.st-corazon:hover { background: #ffffff; color: #b4233a; }
.st-corazon.is-fav { background: #ffffff; color: #b4233a; border: 0; }
.st-corazon.is-fav svg { fill: #b4233a; }
.st-tarjeta__cuerpo { display: flex; align-items: flex-start; gap: 12px; }
.st-tarjeta__texto { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.st-tarjeta__nombre { margin: 0; display: flex; align-items: center; gap: 6px; font-family: var(--st-titulo); font-weight: 600; font-size: 20px; line-height: 1.2; letter-spacing: -0.015em; }
.st-tarjeta__nombre a { color: var(--st-tinta); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-tarjeta__nombre a:hover { color: var(--st-azul); }
.st-verificado { flex: none; color: var(--st-azul); }
.st-tarjeta__sub { margin: 0; font-size: 14px; line-height: 1.4; color: var(--st-gris); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-tarjeta__estado { margin: 2px 0 0; font-size: 14px; color: var(--st-texto); }
.st-tarjeta__estado .es-abierto { font-weight: 700; color: var(--st-ok-texto); }
.st-tarjeta__estado .es-cerrado { font-weight: 700; color: var(--st-gris); }
.st-tarjeta__ver { flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px 0 16px; border-radius: var(--st-r-xs); background: var(--st-azul); font-weight: 600; font-size: 14px; color: #ffffff; }
.st-tarjeta__ver:hover { background: var(--st-azul-hover); color: #ffffff; }

/* Sin foto de portada: un renglón sobrio con el logo o la inicial */
.st-tarjeta--sinfoto { flex-direction: row; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--st-linea); border-radius: var(--st-r-md); }
.st-tarjeta--sinfoto .st-tarjeta__foto { flex: none; width: 64px; height: 64px; aspect-ratio: auto; border-radius: var(--st-r-sm); }
.st-tarjeta--sinfoto .st-inicial { width: 100%; height: 100%; font-size: 26px; }
.st-tarjeta--sinfoto .st-tarjeta__cuerpo { flex: 1; min-width: 0; align-items: center; }
.st-tarjeta--sinfoto .st-tarjeta__nombre { font-size: 18px; }
.st-tarjeta--sinfoto .st-tarjeta__ver { padding: 0; width: 44px; justify-content: center; background: var(--st-tenue); color: var(--st-azul); }
.st-tarjeta--sinfoto .st-tarjeta__ver span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.st-vacio { padding: 28px 22px; border: 1px dashed var(--st-borde); border-radius: var(--st-r-md); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.st-vacio__titulo { margin: 0; font-family: var(--st-titulo); font-weight: 600; font-size: 20px; color: var(--st-tinta); }
.st-vacio__texto { margin: 0 0 8px; font-size: 15px; color: var(--st-gris); }

.st-paginas { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 20px; font-size: 14px; color: var(--st-gris); }

/* ------------------------------------------------------------
   6. Hoy en la ciudad (/hoy) — Fase 3, Nova (2026-11-28)
   ------------------------------------------------------------ */
.st-hoyp { display: flex; flex-direction: column; gap: 20px; padding-top: 14px; padding-bottom: 48px; }
@media (min-width: 768px) { .st-hoyp { gap: 24px; padding-top: 28px; } }
.st-pagina--apilada { flex-direction: column; align-items: flex-start; gap: 6px; }
@media (min-width: 768px) { .st-pagina--apilada { flex-direction: column; align-items: flex-start; gap: 8px; } }
.st-h2--chico { font-size: 21px; }
@media (min-width: 768px) { .st-h2--chico { font-size: 24px; } }

/* La tira de la semana */
.st-semana { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; max-width: 560px; }
.st-semana__dia { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 66px; border-radius: var(--st-r-sm); background: var(--st-tenue); color: var(--st-tinta); }
.st-semana__dia:hover { background: #d8e0ee; color: var(--st-tinta); }
.st-semana__nombre { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--st-gris); }
.st-semana__numero { font-family: var(--st-titulo); font-weight: 700; font-size: 19px; line-height: 1; }
.st-semana__punto { width: 5px; height: 5px; border-radius: 999px; background: transparent; }
.st-semana__punto.hay { background: #d97706; }
.st-semana__dia.is-activo { background: var(--st-marino); color: #ffffff; }
.st-semana__dia.is-activo .st-semana__nombre { color: var(--st-ambar); }
.st-semana__dia.is-activo .st-semana__punto.hay { background: var(--st-ambar); }

/* Pestañas en un solo bloque */
.st-segmentos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; max-width: 560px; padding: 4px; border-radius: var(--st-r-sm); background: var(--st-tenue); }
.st-segmentos a { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: var(--st-r-xs); font-weight: 600; font-size: 14px; color: var(--st-gris); }
.st-segmentos a:hover { color: var(--st-tinta); }
.st-segmentos a.is-activo { background: #ffffff; box-shadow: 0 1px 3px rgba(14,23,48,0.14); font-weight: 700; color: var(--st-tinta); }

/* El cuerpo: en celular todo en una columna; en computadora el muro a la
   izquierda y la agenda y los lugares a un lado. */
.st-hoyp__cuerpo { display: flex; flex-direction: column; gap: 30px; }
.st-hoyp__muro { max-width: 640px; width: 100%; }
@media (min-width: 1024px) {
    .st-hoyp__cuerpo { display: grid; grid-template-columns: minmax(0, 640px) minmax(0, 1fr); column-gap: 56px; row-gap: 36px; align-items: start; }
    .st-hoyp__muro   { grid-column: 1; grid-row: 1 / span 3; }
    .st-hoyp__agenda, .st-hoyp__videos, .st-hoyp__lugares { grid-column: 2; }
    /* Sin muro (se eligió otro día), la agenda ocupa el lugar principal */
    .st-hoyp__cuerpo:not(:has(.st-hoyp__muro)) .st-hoyp__agenda { grid-column: 1; }
}

/* Renglón de fecha en fondo claro (el de la banda marino está en la sección 4.7) */
.st-fecha-fila--clara { background: var(--st-tenue); color: var(--st-tinta); }
.st-fecha-fila--clara:hover { background: #d8e0ee; color: var(--st-tinta); }
.st-fecha-fila--clara .st-fecha-fila__dia span { color: #b45309; }
.st-fecha-fila--clara .st-fecha-fila__texto span { color: var(--st-gris); }

.st-vacio--chico { padding: 16px 18px; }

/* Lugares */
.st-lugares { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.st-lugares .st-lugar { min-height: 220px; }
.st-lugares .st-lugar__nombre { font-size: 17px; }
.st-lugares .st-lugar__texto { left: 12px; right: 12px; bottom: 12px; }
@media (min-width: 768px) {
    .st-lugares { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
    .st-lugares .st-lugar { min-height: 300px; }
    .st-lugares--chicos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .st-lugares--chicos .st-lugar { min-height: 220px; }
}

/* Videos */
.st-videos { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.st-videos::-webkit-scrollbar { display: none; }
.st-video { position: relative; flex: none; width: 112px; aspect-ratio: 9 / 16; border-radius: var(--st-r-sm); overflow: hidden; background: var(--st-marino); display: block; }
.st-video img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.st-video__nombre { position: absolute; left: 8px; right: 8px; bottom: 8px; font-size: 11px; font-weight: 600; line-height: 1.25; color: #ffffff; text-shadow: 0 1px 3px rgba(0,0,0,.7); }

/* Las tarjetas del muro (de Vera) toman las esquinas del sitio nuevo */
.st .muro-card { border-radius: var(--st-r-md); border-color: var(--st-linea); }

/* ------------------------------------------------------------
   7. Lo que faltaba — Fase 4, Nova (2026-11-28)
      Encabezado común en eventos, turismo y blog; buscador; pie.
   ------------------------------------------------------------ */

/* 7.1 El logo: los colores de sus trazos (antes iban escritos en el SVG) */
.st-logo__pin { fill: var(--st-marca); }
.st-logo__aro { fill: #ffffff; }
.st-logo__sol { fill: var(--st-sol); }
/* Versión clara, para fondos oscuros: letras y pin blancos, el aro toma el fondo */
.st-logo--claro, .st-logo--claro:hover { color: #ffffff; }
.st-logo--claro .st-logo__pin { fill: #ffffff; }
.st-logo--claro .st-logo__aro { fill: var(--st-marino); }

/* 7.2 Encabezado común de una página de sección */
.st-encabezado { display: flex; flex-direction: column; gap: 16px; padding-top: 14px; padding-bottom: 20px; }
@media (min-width: 768px) { .st-encabezado { gap: 20px; padding-top: 28px; padding-bottom: 28px; } }

/* 7.3 Buscador (/buscar y /categoria/…). La vista trae sus estilos de antes
   dentro de la página; estos van con `body` delante para ganarles. */
.st-busqueda { border-bottom: 1px solid var(--st-linea); }
.st-busqueda .st-encabezado { padding-bottom: 16px; }
body .search-tabs { background: var(--st-fondo); border-bottom: 1px solid var(--st-linea); gap: 4px; padding: 0 16px; scrollbar-width: none; }
body .search-tabs::-webkit-scrollbar { display: none; }
body .search-tabs > .container { max-width: var(--st-ancho); padding: 0; display: flex; gap: 4px; }
body .search-tab { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; font-size: 14px; color: var(--st-gris); border-bottom-width: 3px; }
body .search-tab:hover { color: var(--st-tinta); }
body .search-tab.active { color: var(--st-tinta); border-bottom-color: var(--st-marino); font-weight: 700; }
body .search-tab__count { background: var(--st-tenue); color: var(--st-texto); }
body .search-tab.active .search-tab__count { background: var(--st-marino); color: #ffffff; }

/* 7.4 Pie de página: el azul marino del sitio nuevo */
.site-footer { background: var(--st-marino); color: #dbe3f5; }
.site-footer__logo { display: block; margin-bottom: 14px; }
.site-footer__desc, .site-footer__links a { color: #b9c4dd; }
.site-footer__links a { display: inline-block; padding: 4px 0; }
.site-footer__links a:hover { color: var(--st-ambar); }
.site-footer__title { font-family: 'Inter', system-ui, sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; color: var(--st-ambar); }
.site-footer__bottom { border-top-color: var(--st-marino-2); color: #b9c4dd; }

/* ------------------------------------------------------------
   8. Ajustes de Enlian tras verlo en producción (28 nov 2026)
   ------------------------------------------------------------ */

/* 8.1 La foto de la ciudad a todo lo ancho, SOLO en celular.
   En computadora se queda con su borde (así le gustó más). */
@media (max-width: 767px) {
    .st-dentro--portada { padding-left: 0; padding-right: 0; }
    .st-dentro--portada .st-ciudad-foto { margin-top: 0; border-radius: 0; min-height: 340px; }
    .st-dentro--portada .st-ciudad-foto__texto { padding: 26px 16px 22px; }
}

/* 8.2 "Pasando hoy": una tira que se desliza, con la siguiente tarjeta
   asomándose para que se note que hay más. */
.st-cabeza__lado { display: inline-flex; align-items: center; gap: 14px; flex: none; }
.st-flechas { display: none; gap: 6px; }
@media (min-width: 768px) { .st-flechas:not([hidden]) { display: inline-flex; } }
.st-flechas button { width: 40px; height: 40px; padding: 0; border: 1px solid var(--st-borde); border-radius: 999px; background: var(--st-fondo); color: var(--st-tinta); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.st-flechas button:hover { border-color: var(--st-tinta); background: var(--st-tenue); }

.st-hoy--tira { display: flex; grid-template-columns: none; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px 4px; scroll-padding-left: 16px; }
.st-hoy--tira::-webkit-scrollbar { display: none; }
.st-hoy--tira:focus-visible { outline: 2px solid var(--st-azul); outline-offset: 4px; }
.st-hoy--tira .st-post { flex: none; width: 68%; max-width: 280px; scroll-snap-align: start; }
@media (min-width: 768px) {
    .st-hoy--tira { gap: 20px; margin: 0; padding: 0 0 4px; scroll-padding-left: 0; }
    .st-hoy--tira .st-post { width: 262px; max-width: none; }
}

/* 8.3 ¿Por qué Localwise? — una sección de verdad */
.st-porque { padding: 44px 0 48px; background: var(--st-tenue); }
.st-porque .st-h2 { font-size: 27px; }
.st-porque__linea { margin: 6px 0 22px; font-size: 16px; color: var(--st-gris); }
.st-porque__razones { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 16px; }
.st-razon { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--st-r-md); background: var(--st-fondo); }
.st-razon__icono { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: var(--st-r-sm); background: var(--st-tenue); }
.st-razon__titulo { margin: 6px 0 0; font-family: var(--st-titulo); font-weight: 600; font-size: 21px; line-height: 1.2; letter-spacing: -0.015em; color: var(--st-tinta); }
.st-razon__texto { margin: 0; font-size: 16px; line-height: 1.55; color: var(--st-texto); }
.st-porque .st-invita { background: var(--st-fondo); border-color: transparent; }
.st-porque .st-invita:hover { border-color: var(--st-azul); }
@media (min-width: 768px) {
    .st-porque { padding: 64px 0 68px; }
    .st-porque .st-h2 { font-size: 36px; }
    .st-porque__linea { margin-bottom: 30px; font-size: 18px; }
    .st-porque__razones { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
    .st-razon { padding: 30px; gap: 12px; }
    .st-razon__titulo { font-size: 24px; }
    .st-razon__texto { font-size: 17px; }
}
/* El pie viene pegado a esta sección: sin el hueco de antes */
.st-porque + * { margin-top: 0; }

/* En el inicio, "Por qué Localwise" llega hasta el pie: sin la franja blanca de en medio */
.main-content:has(.st-porque) { padding-bottom: 0; }
.main-content:has(.st-porque) + .site-footer { margin-top: 0; }

/* 8.4 Tarjetas de "Pasando hoy" mas chicas (Enlian, 28 nov): caben dos y asoma la tercera,
   para que se note que se desliza sin tapar lo demas del inicio. */
.st-hoy--tira { gap: 10px; }
.st-hoy--tira .st-post { width: 41%; max-width: 190px; gap: 8px; }
.st-hoy--tira .st-post__titulo { font-size: 14px; }
.st-hoy--tira .st-post__quien { font-size: 12px; }
.st-hoy--tira .st-chip { font-size: 11px; padding: 2px 8px; }
@media (min-width: 768px) {
    .st-hoy--tira { gap: 16px; }
    .st-hoy--tira .st-post { width: 196px; max-width: none; }
}
