/* ============================================
   Rosario Ya - Home layer
   Source of truth for the public home/cards UI.
   Keep legacy global/modal styles in style.css.
   ============================================ */

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.hero-primary-cta,
.hero-secondary-cta,
.hero-live-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 16px;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.hero-primary-cta {
    background: linear-gradient(135deg, #ff5a00, #ff7a1a);
    color: #fff;
    box-shadow: 0 12px 26px rgba(255, 90, 0, 0.22);
}

.hero-secondary-cta {
    background: #fff;
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.12);
}

.hero-primary-cta:hover,
.hero-secondary-cta:hover,
.hero-live-link:hover {
    transform: translateY(-1px);
}

.home-spotlight,
.home-steps {
    margin: 0 auto 24px;
    padding: 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.home-spotlight-header,
.home-steps-header {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.section-kicker {
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff1e8;
    color: #c2410c;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.home-spotlight-header h2,
.home-steps-header h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.2rem, 2.3vw, 1.6rem);
    line-height: 1.2;
}

.home-spotlight-grid,
.home-steps-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-spotlight-card,
.home-steps article {
    padding: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
}

.home-spotlight-card .icon,
.home-steps article strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 10px;
    border-radius: 12px;
    background: #fff1e8;
    color: #c2410c;
}

.home-spotlight-card h3,
.home-steps article h3 {
    margin: 0 0 6px;
    color: #111827;
    font-size: 1rem;
}

.home-spotlight-card p,
.home-steps article p {
    margin: 0;
    color: #64748b;
    font-size: .92rem;
    line-height: 1.5;
}

.home-steps article strong {
    width: auto;
    min-width: 40px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 900;
}

@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .home-spotlight,
    .home-steps {
        padding: 18px;
        border-radius: 24px;
    }

    .home-spotlight-grid,
    .home-steps-grid {
        grid-template-columns: 1fr;
    }
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 1180px;
    width: 100%;
}

.header.hero-rosarioya {
    text-align: left;
    border-bottom: none;
    transform: none;
    filter: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.header.hero-rosarioya::before,
.header.hero-rosarioya::after {
    display: none;
    content: none;
}

.hero-rosarioya {
    margin: 8px auto 28px;
    padding: 28px 24px;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid rgba(17, 24, 39, 0.07);
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 90, 0, 0.18), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82));
    box-shadow: 0 20px 54px rgba(15, 23, 42, 0.10);
}

.hero-brand-row {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.logo-principal {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.hero-brand-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.hero-eyebrow {
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff1e8;
    color: #c2410c;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-brand-copy strong {
    color: #111827;
    font-size: 1rem;
    font-weight: 850;
}

.hero-copy h1 {
    max-width: 100%;
    margin-top: 18px;
    color: #0f172a;
    font-size: clamp(2.8rem, 7vw, 5rem);
    line-height: .9;
    letter-spacing: 0 !important;
    margin-bottom: 0;
    overflow-wrap: normal;
}

.hero-copy .sub {
    max-width: 100%;
    margin-top: 16px;
    color: #475569;
    font-size: clamp(1rem, 2.2vw, 1.18rem);
    line-height: 1.5;
    font-weight: 650;
    overflow-wrap: normal;
}

.hero-copy {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.hero-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(17, 24, 39, 0.08);
    color: #334155;
    font-size: .84rem;
    font-weight: 800;
    box-shadow: none;
}

.filtros {
    max-width: 920px;
    margin: 0 auto 18px;
    gap: 10px;
}

.btn-filtro {
    border: 1px solid rgba(17, 24, 39, 0.10);
    background: #fff;
    color: #374151;
    box-shadow: none;
    font-weight: 800;
    transform: none;
}

.btn-filtro:hover {
    transform: none;
    border-color: rgba(255, 90, 0, 0.28);
}

.btn-filtro.activo {
    background: #ff5a00;
    border-color: #ff5a00;
    color: #fff;
    box-shadow: none;
}

.buscador-box {
    max-width: 920px;
    margin: 0 auto 26px;
}

.buscador-input {
    border: 1px solid rgba(17, 24, 39, 0.10);
    border-radius: 999px;
    box-shadow: none;
    font-weight: 600;
}

.buscador-input:focus {
    border-color: rgba(255, 90, 0, 0.58);
    box-shadow: 0 0 0 4px rgba(255, 90, 0, 0.12);
}

.grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 22px;
    align-items: start;
}

.estado-vacio {
    grid-column: 1 / -1;
    padding: 44px 22px;
    border: 1px dashed rgba(17, 24, 39, 0.14);
    border-radius: 24px;
    background: #fff;
    color: #64748b;
    text-align: center;
}

.estado-vacio h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 1.1rem;
    font-weight: 900;
}

.estado-vacio p {
    margin: 0;
    font-weight: 650;
}

.card {
    position: relative;
    overflow: hidden;
    isolation: auto;
    contain: none;
    border-radius: 32px;
    background: #fff;
    border: 1px solid rgba(17, 24, 39, 0.07);
    box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
    transform: none;
    transition: box-shadow .18s ease, border-color .18s ease;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 104px;
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 90, 0, 0.16), transparent 34%),
        linear-gradient(135deg, rgba(255, 90, 0, 0.07), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.card:hover {
    transform: none;
    border-color: rgba(255, 90, 0, 0.18);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.11);
}

.card-header,
.card-body {
    position: relative;
    z-index: 1;
}

.card-header {
    min-height: auto;
    padding: 22px 22px 14px;
    gap: 16px;
    background: transparent;
    border-bottom: none;
    align-items: flex-start;
}

.card-body {
    display: flex;
    flex-direction: column;
    padding: 0 22px 22px;
    transform: none;
}

.destacado-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: .72rem;
    font-weight: 850;
    box-shadow: none;
}

.logo-carrito {
    width: 70px;
    height: 70px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
}

.info-header {
    min-width: 0;
    flex: 1;
}

.nombre {
    font-size: 1.34rem;
    line-height: 1.08;
    letter-spacing: 0;
    color: #111827;
}

.estado-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin-top: 10px;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 850;
    line-height: 1;
    box-shadow: none;
}

.estado-badge.abierto {
    background: #e7f8ef;
    color: #047857;
}

.estado-badge.cerrado {
    background: #fff1f2;
    color: #b91c1c;
}

.especialidad {
    margin-top: 2px;
    color: #6b7280;
    font-size: .82rem;
    font-weight: 650;
    text-transform: none;
    letter-spacing: 0;
}

.descripcion {
    margin: 0 0 12px;
    color: #6b7280;
    font-size: .9rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.promo-banner {
    margin: 12px 0 14px;
    border-radius: 18px;
    box-shadow: 0 10px 22px rgba(255, 107, 53, 0.18);
}

.horario-container {
    margin: 10px 0 12px;
    padding: 12px 14px;
    border-radius: 18px;
    background: #f9fafb;
    border: 1px solid rgba(17, 24, 39, 0.08);
    overflow: visible;
    max-height: none;
}

.horario-container::after {
    display: none;
    content: none;
}

.turno {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 3px 0;
    color: #111827;
}

.turno + .turno {
    margin-top: 6px;
}

.turno-nombre {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: .84rem;
    font-weight: 800;
}

.turno-horario {
    color: #111827;
    font-family: inherit;
    font-size: .84rem;
    font-weight: 850;
    text-align: right;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 14px;
}

.badge {
    border-radius: 999px;
    padding: 7px 11px;
    font-size: .72rem;
    font-weight: 800;
    box-shadow: none;
}

.badge.abierto {
    background: #e7f8ef;
    color: #047857;
}

.badge.cerrado {
    background: #fff1f2;
    color: #b91c1c;
}

.badge.delivery {
    background: #e8f5ff;
    color: #0369a1;
}

.badge.local {
    background: #eaf8ef;
    color: #166534;
}

.badge.solo-delivery {
    background: #fff7ed;
    color: #c2410c;
}

.badge.pago {
    background: #f7eafe;
    color: #7e22ce;
}

.badge.rubro {
    background: #eef2ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
}

.badge.servicio {
    background: #ecfeff;
    color: #0e7490;
}

.badge.reserva {
    background: #fdf2f8;
    color: #be185d;
}

.badge .icon,
.estado-badge .icon,
.btn .icon,
.btn-menu .icon,
.destacado-badge .icon {
    width: 1em;
    height: 1em;
    flex: 0 0 auto;
    stroke-width: 2.4;
}

.btn-menu {
    order: 20;
    width: 100%;
    min-height: 50px;
    margin: 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #ff5a00, #ff7a1a);
    color: #fff;
    font-size: .94rem;
    font-weight: 850;
    box-shadow: 0 12px 26px rgba(255, 90, 0, 0.22);
    transform: none;
}

.btn-menu::after {
    content: "->";
    font-size: 1rem;
}

.botones {
    order: 21;
    gap: 10px;
    margin-top: 12px;
}

.botones .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    border-radius: 999px;
    padding: 12px 10px;
    font-weight: 800;
    text-decoration: none;
    transform: none;
}

.botones .btn-llamar {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

.botones .btn-wsp {
    background: #e9fbf0;
    color: #047857;
    border-color: #bbf7d0;
}

.botones .btn-maps {
    background: #fff;
    color: #334155;
    border-color: rgba(17, 24, 39, 0.12);
}

.botones .btn-reserva {
    background: #fdf2f8;
    color: #be185d;
    border-color: #fbcfe8;
}

.botones .btn-share {
    background: #fff;
    color: #334155;
    border-color: rgba(17, 24, 39, 0.12);
}

.botones:empty {
    display: none;
}

footer {
    color: #94a3b8;
    overflow-wrap: anywhere;
}

.site-footer {
    margin-top: 34px;
    padding: 0;
    border-radius: 28px;
    background: #0f172a;
    color: #cbd5e1;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 18px 44px rgba(15, 23, 42, .12);
}

.footer-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 26px;
    background: linear-gradient(135deg, rgba(255, 90, 0, .18), rgba(14, 165, 233, .12));
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.footer-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    color: #fb923c;
    font-size: .78rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.footer-cta h2 {
    margin: 0;
    max-width: 720px;
    color: #fff;
    font-size: clamp(1.15rem, 2.2vw, 1.8rem);
    line-height: 1.12;
    letter-spacing: 0;
}

.footer-cta p {
    margin: 10px 0 0;
    max-width: 680px;
    color: #cbd5e1;
    font-size: .94rem;
    line-height: 1.5;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.35fr) repeat(3, minmax(150px, 1fr));
    gap: 26px;
    padding: 26px;
}

.footer-brand p {
    margin: 14px 0 0;
    max-width: 320px;
    color: #94a3b8;
    font-size: .92rem;
    line-height: 1.5;
}

.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 14px;
    background: #fff;
}

.footer-logo-row strong,
.footer-logo-row span {
    display: block;
}

.footer-logo-row strong {
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
}

.footer-logo-row span {
    margin-top: 2px;
    color: #94a3b8;
    font-size: .84rem;
}

.footer-column {
    display: grid;
    align-content: start;
    gap: 10px;
}

.footer-column h3 {
    margin: 0 0 4px;
    color: #fff;
    font-size: .88rem;
    font-weight: 900;
}

.footer-column a,
.footer-column button,
.footer-column span {
    width: fit-content;
    max-width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: #cbd5e1;
    font: inherit;
    font-size: .9rem;
    line-height: 1.35;
    text-align: left;
    text-decoration: none;
}

.footer-column button,
.footer-column a {
    cursor: pointer;
}

.footer-column button:hover,
.footer-column a:hover {
    color: #fff;
}

.footer-column span {
    color: #64748b;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 26px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: #94a3b8;
    font-size: .82rem;
}

.btn-agregar-negocio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
    min-height: 46px;
    padding: 12px 22px;
    border: none;
    border-radius: 999px;
    background: #ff5a00;
    color: #fff;
    font-weight: 850;
    line-height: 1.2;
    box-shadow: none;
    transform: none;
}

.btn-agregar-negocio:hover {
    background: #e04e00;
    transform: none;
    box-shadow: none;
}

@media (max-width: 768px) {
    body {
        padding-inline: 12px;
    }

    .container {
        width: 100%;
        max-width: 100%;
    }

    .header.hero-rosarioya,
    .hero-rosarioya {
        width: 100%;
        max-width: calc(100vw - 24px);
        box-sizing: border-box;
        margin-top: 0;
        margin-bottom: 20px;
        padding: 24px 18px;
        border-radius: 30px;
        box-shadow: none;
        transform: none !important;
        filter: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        will-change: auto !important;
    }

    .hero-brand-row {
        align-items: center;
    }

    .logo-principal {
        width: 58px;
        height: 58px;
        border-radius: 20px;
        box-shadow: none;
    }

    .hero-copy h1 {
        width: 100%;
        max-width: 12ch;
        font-size: clamp(1.78rem, 8.7vw, 2.14rem);
        line-height: 1.06;
        letter-spacing: 0 !important;
        text-wrap: balance;
    }

    .hero-copy .sub {
        width: 100%;
        max-width: 34ch;
        font-size: .9rem;
        text-wrap: pretty;
    }

    .hero-trust-row {
        gap: 8px;
    }

    .hero-trust-row span {
        padding: 9px 11px;
        font-size: .78rem;
    }

    .filtros {
        max-width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        scrollbar-width: none;
        overscroll-behavior-inline: contain;
    }

    .filtros::-webkit-scrollbar {
        display: none;
    }

    .btn-filtro {
        flex: 0 0 auto;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .card {
        border-radius: 28px;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
        transition: border-color .18s ease;
        transform: none !important;
        -webkit-transform: none !important;
        backface-visibility: visible;
        -webkit-backface-visibility: visible;
        will-change: auto !important;
    }

    .card:hover,
    .card:active {
        transform: none !important;
        -webkit-transform: none !important;
    }

    .card::before {
        display: none;
        content: none;
    }

    .card-header {
        flex-direction: row;
        text-align: left;
        padding: 20px 18px 12px;
        gap: 14px;
    }

    .card-body {
        padding: 0 18px 18px;
    }

    .logo-carrito {
        width: 64px;
        height: 64px;
        border-radius: 22px;
        box-shadow: none;
    }

    .nombre {
        font-size: 1.28rem;
    }

    .turno {
        gap: 10px;
    }

    .turno-nombre,
    .turno-horario {
        font-size: .8rem;
    }

    .card *,
    .card *::before,
    .card *::after {
        transform: none !important;
        -webkit-transform: none !important;
        filter: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        will-change: auto !important;
    }

    .destacado-badge {
        top: 14px;
        right: 14px;
    }

    .promo-banner,
    .btn-menu,
    .botones .btn,
    .badge,
    .horario-container {
        box-shadow: none;
    }

    .botones {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .botones .btn {
        flex: 1 1 130px;
    }

    .site-footer {
        margin-top: 26px;
        border-radius: 24px;
    }

    .footer-cta,
    .footer-grid,
    .footer-bottom {
        padding-inline: 18px;
    }

    .footer-cta {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .footer-column {
        gap: 9px;
    }

    .btn-agregar-negocio {
        width: 100%;
        justify-content: center;
        min-height: 48px;
        padding: 12px 14px;
        white-space: normal !important;
        text-align: center;
        font-size: .84rem;
        line-height: 1.2;
    }
}
