/* ═══════════ Búsqueda del enlace de un negocio ═══════════ */

:root {
    --ay-fondo: #EDEFF2;
    --ay-oro: #C9A84C;
    --ay-tinta: #16191D;
    --ay-gris: #5A6470;
    --ay-linea: #C9CED5;
    --ay-enlace: #7A5F1F;
}

.sidebar, .guest-login-btn, .bottom-nav { display: none !important; }
.shell { display: block; }
.main { height: 100dvh; overflow-y: auto; background: var(--ay-fondo); }

body {
    min-height: 100dvh;
    overflow-y: auto !important;
    background: var(--ay-fondo);
    color: var(--ay-tinta);
    font-family: 'DM Sans', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
}

.ay-pagina {
    box-sizing: border-box;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 64px 24px 28px;
}

.ay-centro {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding-bottom: 48px;
}

.ay-marca {
    margin-bottom: 40px;
    font-family: 'Cinzel', serif;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: .14em;
    text-align: center;
}

.ay-titulo {
    margin: 0 0 12px;
    font-family: 'DM Serif Display', serif;
    font-size: 44px;
    font-weight: 400;
    line-height: 1.1;
    text-align: center;
    text-wrap: balance;
}

.ay-intro {
    margin: 0 auto 32px;
    max-width: 480px;
    font-size: 17px;
    line-height: 1.5;
    color: var(--ay-gris);
    text-align: center;
}

/* ═══════════ Búsqueda ═══════════ */

.ay-etiqueta {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
}

.ay-caja {
    display: flex;
    gap: 6px;
    padding: 6px;
    border: 1px solid var(--ay-linea);
    border-radius: 14px;
    background: #fff;
}

.ay-caja:focus-within {
    border-color: var(--ay-enlace);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, .35);
}

.ay-entrada {
    flex: 1 1 auto;
    min-width: 0;
    height: 48px;
    padding: 0 10px;
    border: 0;
    outline: none;
    background: none;
    color: var(--ay-tinta);
    font: inherit;
}

.ay-boton {
    flex: none;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 10px;
    background: var(--ay-oro);
    color: var(--ay-tinta);
    font: 600 16px 'DM Sans', sans-serif;
    cursor: pointer;
    transition: background-color .15s;
}

.ay-boton:hover { background: #BC9A3E; }

.ay-boton:focus-visible,
.ay-fila:focus-visible,
.ay-pie a:focus-visible {
    outline: 2px solid var(--ay-tinta);
    outline-offset: 2px;
}

.ay-aviso {
    margin: 14px 0 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--ay-gris);
}

.ay-aviso:empty { display: none; }

.ay-resultados {
    margin-top: 14px;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.ay-resultados:empty { display: none; }

.ay-fila {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 64px;
    padding: 12px 18px;
    color: var(--ay-tinta);
    text-decoration: none;
    transition: background-color .15s;
}

.ay-fila + .ay-fila { border-top: 1px solid #E1E4E9; }
.ay-fila:hover { background: #FBF6E9; color: var(--ay-tinta); }

.ay-fila-texto {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ay-fila-nombre { font-weight: 600; overflow-wrap: anywhere; }
.ay-fila-lugar { font-size: 14px; color: var(--ay-gris); }
.ay-fila-flecha { display: flex; flex: none; color: var(--ay-gris); }

.ay-correo {
    margin: 22px 0 0;
    font-size: 15px;
    color: var(--ay-gris);
    text-align: center;
}

/* ═══════════ Pie ═══════════ */

.ay-pie {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--ay-gris);
}

.ay-pie a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    color: var(--ay-gris);
}

.ay-pie a:hover { color: var(--ay-enlace); }

.ay-acceso { font-weight: 500; }

.ay-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2px 16px;
}

@media (max-width: 560px) {
    .ay-pagina { padding: 60px 18px 22px; }
    .ay-marca { margin-bottom: 28px; }
    .ay-titulo { font-size: 34px; }
    .ay-intro { font-size: 16px; margin-bottom: 26px; }
}

@media (prefers-reduced-motion: reduce) {
    .ay-boton, .ay-fila { transition: none; }
}
