@import url('https://fonts.googleapis.com/css2?family=Geologica:wght@300&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
button,
input,
select,
textarea {
    font-family: 'calsans-regular', Arial, sans-serif;
    font-weight: 300;
    background-color: #000;
    color: #fff;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1 {
    display: none;
}

h2{
    display: flex;
}

/* HEADER */
header {
    background-color: #000;
    color: #fff;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-bottom: 2px solid #fff;
    width: 100%;
    height: 80px;
}

.header-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
    height: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1 1 auto;
    height: 100%;
}

.header-left button {
    font-size: 2em;
    font-weight: 300;
    background: none;
    color: #fff;
    border: none;
    cursor: pointer;
    letter-spacing: 2px;
    margin: 0;
    padding: 0;
    text-align: left;
    display: flex;
    align-items: center;
    height: auto;
}

.header-left button img {
    height: 250px;
    width: auto;
    object-fit: contain;
}

.header-center {
    display: none;
}

.btn-promos {
    display: block;
    width: fit-content;
    margin: 0 auto 20px auto;
    margin-top: 10px;
    text-align: center;
    font-size: 1.8em;
    font-weight: 850;
    letter-spacing: 0px;
    color: #fff;
    background: none;
    border: none;
    border-bottom: 2px solid #fff;
    cursor: pointer;
    font-family: "Geologica", sans-serif;
}

.btn-promos:hover {
    color: #fffefe;
}

/* BUSCADOR */
#buscador-locales {
    display: flex;
    border: 2px solid #ffffff62;
    border-radius: 12px;
    background: #000;
    align-items: center;
    overflow: hidden;
    flex: 0 0 auto;
    width: 320px;
    min-width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
}

#busqueda-locales {
    flex: 1;
    padding: 10px 16px;
    border: none;
    font-size: 1em;
    background: #000;
    color: #fff;
    outline: none;
}

#busqueda-locales::placeholder {
    color: #666;
}

#buscador-locales button {
    border: none;
    background: none;
    color: #fff;
    font-size: 1.5em;
    padding: 0 8px;
    cursor: pointer;
}

#buscador-locales button svg {
    width: 20px;
    height: 20px;
}

/* BANNER */
.banner-hamburguesas {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
    border-bottom: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-hamburguesas img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.5);
}

.banner-titulo {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    color: #fff;
    font-size: 2.5em;
    font-weight: 300;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* CONTENEDOR PRINCIPAL */
.locales-lista {
    flex: 1 1 auto;
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.seccion-categoria {
    margin-bottom: 30px;
}

.categoria-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: nowrap;
    width: 100%;

}

.categoria-header h2 {
    flex: 0 0 auto;
    color: #fff;
    font-size: 1.3em;
    font-weight: 300;
    letter-spacing: 0.5px;
    margin: 0;
    font-family: "Geologica", sans-serif;
}
.categoria-header h3 {
    flex: 1 1 auto;
    min-width: 0;
    color: #fff;
    font-size: 1.3em;
    font-weight: 300;
    letter-spacing: 1.0px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    
}

.locales-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* TARJETAS DE LOCALES */
.local {
    background: #000;
    border: 1.7px solid #fff;
    border-radius: 14px;
    padding: 5px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.local > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.local h2 {
    font-size: 1.4em;
    margin: 0 0 4px 0;
    font-weight: 300;
    letter-spacing: 0.5px;
    color: #fff;
    word-break: break-word;
    font-family: "Geologica", sans-serif;
}

.local p {
    font-size: 0.95em;
    margin: 0;
    color: #999;
    word-break: break-word;
    line-height: 1.3;
}

.local .redes {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-end;
}

.local .redes button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.local .redes img {
    width: 80px;
    height: 80px;
    transition: transform 0.2s;
}

.local .redes button:hover img {
    transform: scale(1.1);
}

/* FOOTER */
footer {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 40px 20px;
    border-top: 2px solid #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: auto;
    width: 100%;
}

footer .social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
}

footer button {
    font-family: "Geologica", sans-serif;
    font-weight: 300;
    background: #222;
    color: #fff;
    border: 2px solid #fff;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.3s;
}

footer button:hover {
    background-color: #fff;
    color: #000;
}

footer p {
    font-size: 0.9em;
    color: #aaa;
}

/* CARRUSEL */
.carrusel-container {
    position: relative;
    width: 100%;
    margin: 0px;
    overflow: hidden;
    background-color: #000;
}

.carrusel-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.carrusel-imagen {
    min-width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: relative;
    display: block;
}

.carrusel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    color: #fff;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    border: none;
}

.carrusel-link {
    display: flex;
    flex-shrink: 0;
    width: 100%;
}

.carrusel-link img {
    width: 100%;
}

.carrusel-prev { left: 1px; }
.carrusel-next { right: 1px; }

/* ── Header de categoría con filtro ── */
.filtro-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filtro-category-label {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #ffffff;
    text-transform: uppercase;

}

/* ── Wrapper posicionado (para el dropdown) ── */
.filtro-wrapper {
    position: relative;
}

/* ── Botón principal ── */
.filtro-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #1e1e1e;
    border: 1px solid #444444;
    border-radius: 20px;
    padding: 7px 13px;
    color: #cccccc;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    white-space: nowrap;
}

.filtro-btn:hover,
.filtro-btn--active {
    border-color: #4da6ff;
    color: #4da6ff;
    background: #0d2340;
}

/* ── Badge numérico ── */
.filtro-badge {
    display: none;
    align-items: center;
    justify-content: center;
    background: #4da6ff;
    color: #ffffff;
    border-radius: 50%;
    width: 17px;
    height: 17px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    margin-left: 2px;
}

/* ── Dropdown ── */
.filtro-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #1e1e1e;
    border: 1px solid #333333;
    border-radius: 12px;
    padding: 8px 6px;
    z-index: 9999;
    min-width: 210px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.filtro-dropdown--open {
    display: block;
}

/* ── Etiqueta de sección ── */
.filtro-section-label {
    font-size: 10px;
    color: #666666;
    letter-spacing: 1.5px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 8px 10px 4px;
    margin: 0;
}

/* ── Opción individual ── */
.filtro-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 8px;
    cursor: pointer;
    color: #cccccc;
    font-size: 13px;
    transition: background 0.15s;
    user-select: none;
}

.filtro-option:hover {
    background: #2a2a2a;
}

.filtro-option--selected {
    color: #4da6ff;
}

/* ── Círculo de check ── */
.filtro-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid #444444;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s;
}

.filtro-option--selected .filtro-check {
    background: #4da6ff;
    border-color: #4da6ff;
}

.filtro-check-icon {
    width: 10px;
    height: 10px;
    stroke: #ffffff;
    display: none;
}

.filtro-option--selected .filtro-check-icon {
    display: block;
}

/* ── Divisor entre secciones ── */
.filtro-divider {
    border: none;
    border-top: 1px solid #2a2a2a;
    margin: 6px 8px;
}

/* ── Botón limpiar ── */
.filtro-clear {
    display: block;
    width: calc(100% - 16px);
    margin: 8px 8px 4px;
    padding: 8px;
    background: transparent;
    border: 1px solid #444444;
    border-radius: 8px;
    color: #888888;
    font-size: 12px;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
    text-align: center;
}

.filtro-clear:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

/* ── Pills de filtros activos (debajo del header) ── */
.filtro-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    min-height: 0;
}

.filtro-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #0d2340;
    border: 1px solid #4da6ff;
    border-radius: 20px;
    padding: 5px 11px;
    color: #4da6ff;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.filtro-pill:hover {
    background: #1a3a5c;
    border-color: #7ec4ff;
}

.filtro-pill span {
    font-size: 14px;
    line-height: 1;
    margin-left: 2px;
    opacity: 0.8;
}

/* RESPONSIVE MÓVIL */
@media (max-width: 900px) {
    #buscador-locales {
        width: 40vw;
        max-width: 60vw;
        min-width: 120px;
    }        
    .categoria-header h2{
        margin-left: 5px; 
        letter-spacing: 0.6px;
        font-family: "Geologica", sans-serif;
    }
    .categoria-header h3 {
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    .header-left button img {
        height: 250px;
    }

    .categoria-header h2{
        font-size: 1.3em;
        font-family: "Geologica", sans-serif;
        font-weight: 850;
    } 

    #buscador-locales {
        width: 100%;
        max-width: 100%;
        margin-bottom: 12px;
    }

    #busqueda-locales {
        font-size: 0.95em;
        padding: 10px 12px;
    }

    .banner-hamburguesas {
        height: 80px;
    }

    .banner-titulo {
        font-size: 1.4em;
    }

    .locales-lista {
        padding: 2px 10px;
    }

    .categoria-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 12px;
        margin-top: 12px;
        font-size: 1.3em;
        font-family: "Geologica", sans-serif;
        letter-spacing: 1.5px;
    }

.btn-promos {
    display: block;
    width: fit-content;
    margin: 0 auto 20px auto;
    margin-top: 15px;
    text-align: center;
    font-size: 1.7em;
    font-weight: 850;
    letter-spacing: 0px;
    color: #fff;
    background: none;
    border: none;
    border-bottom: 2px solid #fff;
    cursor: pointer;
    font-family: "Geologica", sans-serif;
}

    .local {
        padding: 10px;
        border-radius: 12px;
        gap:2px
    }

    .local h2 {
        font-size: 1.1em;
        font-family: "Geologica", sans-serif;
    }

    .local p {
        font-size: 0.8em;
    }

    .local .redes {
        gap: 1px;
    }

    .local .redes button {
        width: 50px;
        height: 50px;
    }

    .local .redes img {
        width: 60px;
        height: 60px;
    }

    footer {
        padding: 24px 12px;
    }

    footer button {
        font-size: 0.95em;
        padding: 8px 14px;
    }

    .carrusel-imagen {
        height: 250px;
        margin-top: 0px;
    }

    .carrusel-btn {
        font-size: 28px;
        padding: 30px 15px;
    }
    .carrusel-link {
    display: flex;
    flex-shrink: 0;
    width: 100%;
}

.carrusel-link img {
    width: 100%;
}
}