/* --- VARIABLES DE DISEÑO (PALETA CORPORATIVA) --- */
:root {
    --maiz-yellow: #F4D03F;
    --price-green: #2ECC71;
    --slate-black: #1B2631;
    --card-bg: #283747;
    --text-white: #ECF0F1;
    --text-gray: #BDC3C7;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* --- RESET Y BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--slate-black);
    color: var(--text-white);
    overflow-x: hidden;
}

/* --- HEADER --- */
header {
    background-color: rgba(27, 38, 49, 0.95);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--maiz-yellow);
    backdrop-filter: blur(10px);
}

.brand h1 {
    color: var(--maiz-yellow);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.5rem;
}

.contact-info {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.contact-info span {
    display: block;
}

.contact-info strong {
    color: var(--price-green);
}

/* --- CARRUSEL CONTAINER --- */
.carousel-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 60px;
}

.carousel-track-container {
    width: 90%;
    max-width: 1200px;
    height: 80vh;
    overflow: hidden;

    /* encima del fondo */
    position: relative;
    z-index: 2;

    border-radius: 20px;
    box-shadow: var(--shadow);
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    cursor: grab;
}

.carousel-track:active {
    cursor: grabbing;
}

/* --- SLIDES (BANNERS) --- */
.slide {
    min-width: 100%;
    height: 100%;
    background-color: var(--card-bg);
    display: flex;
    overflow: hidden;
    position: relative;
}

.slide-content {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.slide-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 300px;
}

.slide-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, var(--card-bg), transparent);
}

/* Títulos de Categoría */
.category-title {
    font-size: 2.5rem;
    color: var(--maiz-yellow);
    margin-bottom: 1.5rem;
    border-left: 5px solid var(--price-green);
    padding-left: 15px;
    text-transform: uppercase;
}

/* Lista de Menú con Scroll Interno */
.menu-list {
    overflow-y: auto;
    padding-right: 10px;
    flex-grow: 1;
}

.menu-list::-webkit-scrollbar {
    width: 6px;
}

.menu-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.menu-list::-webkit-scrollbar-thumb {
    background: var(--maiz-yellow);
    border-radius: 3px;
}

/* Items del menú */
.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.item-details {
    flex: 1;
    margin-right: 15px;
}

.item-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-white);
    display: block;
}

.item-ingredients {
    font-size: 0.85rem;
    color: var(--text-gray);
    font-weight: 300;
}

.item-price {
    font-weight: 700;
    color: var(--price-green);
    font-size: 1.2rem;
    white-space: nowrap;
}

/* --- CONTROLES Y NAVEGACIÓN --- */
.carousel-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-dot.active {
    background: var(--maiz-yellow);
    transform: scale(1.2);
}

.btn-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    font-size: 1.5rem;
    transition: 0.3s;
}

.btn-control:hover {
    background: var(--maiz-yellow);
    color: var(--slate-black);
}

.btn-prev {
    left: 20px;
}

.btn-next {
    right: 20px;
}

/* --- MEDIA QUERIES --- */
@media (max-width: 768px) {
    .carousel-track-container {
        height: 85vh;
        width: 95%;
    }

    .slide {
        flex-direction: column-reverse;
    }

    .slide-image {
        flex: 0 0 150px;
        min-height: auto;
    }

    .slide-image::after {
        background: linear-gradient(to top, var(--card-bg), transparent);
    }

    .slide-content {
        padding: 1.5rem;
    }

    .category-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .item-name {
        font-size: 1rem;
    }

    .item-price {
        font-size: 1rem;
    }

    header {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    .contact-info {
        text-align: center;
    }

    .btn-control {
        display: flex; /* Las hacemos visibles */
        justify-content: center;
        align-items: center;

        /* Tamaño más discreto para móvil */
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        padding: 0;

        /* Efecto Vidrio (Aesthetic) */
        background: rgba(255, 255, 255, 0.1); /* Fondo semitransparente */
        backdrop-filter: blur(8px);           /* Desenfoque del fondo */
        -webkit-backdrop-filter: blur(8px);   /* Soporte para Safari/iPhone */
        border: 1px solid rgba(255, 255, 255, 0.2); /* Borde sutil */
        color: var(--maiz-yellow);            /* Color del ícono */
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Sombra suave */
    }

    .btn-control {
        top: 40%; /* Ajusta este % si las quieres más arriba o abajo */
    }

    .btn-prev {
        left: 10px; /* Más super-pegaditas al borde */
    }

    .btn-next {
        right: 10px;
    }

    /* Efecto al tocar en el celular */
    .btn-control:active {
        background: var(--maiz-yellow);
        color: var(--slate-black);
        transform: translateY(-50%) scale(0.95);
    }
}

/* --- REDES SOCIALES --- */
.social-icons {
    margin-top: 8px; /* Espacio con el teléfono */
    display: flex;
    justify-content: flex-end; /* Alineados a la derecha */
    gap: 15px; /* Espacio entre íconos */
}

.social-icons a {
    color: var(--text-gray); /* Color base */
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Efectos Hover */
.social-icons a:hover {
    transform: translateY(-2px); /* Pequeña animación hacia arriba */
}

/* Colores específicos al pasar el mouse */
.social-icons a:hover .fa-facebook-f {
    color: #1877F2; /* Azul Facebook */
}

.social-icons a:hover .fa-instagram {
    color: #E1306C; /* Rosa Instagram */
}

.social-icons a:hover .fa-whatsapp {
    color: #25D366; /* Verde WhatsApp */
}

/* Ajuste para móviles (opcional, agrégalo dentro de tu media query existente) */
@media (max-width: 768px) {
    .social-icons {
        justify-content: center; /* Centrados en móvil */
        margin-top: 10px;
    }
}

/* ===================================================
   SECCIÓN UBICACIÓN / MAPA
=================================================== */

.location-section {
    padding: 120px 20px 40px; /* espacio para header fijo */
    background:transparent; /*linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);*/
    text-align: center;
    color: #ffffff;
}

.location-section h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.location-section p {
    font-size: 1.2rem;
    color: #efa653;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.map-container {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(172, 108, 5, 0.86);
    border: 5px solid #fff;
}

.map-container iframe {
    width: 100%;
    height: 450px;
    display: block;
    border: none;
}

.contact-details {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
    padding: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    color: #ffffff;
}

.contact-item i {
    color: #e74c3c;
    font-size: 1.4rem;
}

/* --------- Responsive --------- */

@media (max-width: 768px) {
    .location-section h2 {
        font-size: 2rem;
    }

    .location-section p {
        font-size: 1rem;
        padding: 0 15px;
    }

    .map-container iframe {
        height: 350px;
    }

    .contact-details {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .map-container iframe {
        height: 300px;
    }
}

.map-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    margin-right: 10px;
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    color: var(--maiz-yellow);
    background: rgba(244, 208, 63, 0.12);
    border: 1px solid rgba(244, 208, 63, 0.3);
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
}

.map-btn:hover {
    background: var(--maiz-yellow);
    color: var(--slate-black);
    transform: translateY(-1px);
}

/* Fondo de círculos animados */
#bg-circles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0; /* Se queda al fondo */
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244,208,63,0.25), transparent 70%);
    opacity: 0.25;
    pointer-events: none;
    /* Opcional: una animación suave si la deseas */
    animation: float 10s infinite ease-in-out alternate;
}

@keyframes float {
    from { transform: translateY(0); }
    to { transform: translateY(-20px); }
}

/* Contenedor de burbujas */
#bg-circles {
    position: fixed; /* Fixed para que cubra toda la pantalla siempre */
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1; /* Detrás de todo el contenido */
    pointer-events: none;
}

/* ===================================================
   BURBUJAS INTERNAS – SLIDE CONTENT
   =================================================== */

/* Aseguramos que el contenido sea el contenedor de referencia */
.slide-content {
    position: relative;
    overflow: hidden; /* Evita que las burbujas se salgan del slide */
}

/* Burbuja decorativa interna */
.bubble-inner {
    position: absolute;
    bottom: -50px;
    background-color: var(--maiz-yellow);
    border-radius: 50%;
    opacity: 0.1; /* Muy sutil para no competir con el texto */
    filter: blur(4px);
    pointer-events: none;
    z-index: 1; /* Por debajo del contenido */
    animation: rise-inner infinite linear;
}

/* El contenido textual siempre arriba */
.category-title,
.menu-list {
    position: relative;
    z-index: 2;
}

/* Animación vertical suave */
@keyframes rise-inner {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    20% {
        opacity: 0.15;
    }
    100% {
        transform: translateY(-500px) scale(1.5);
        opacity: 0;
    }
}

/*----banner---*/
.modal-overlay {
    display: none; /* Inicia oculto */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--card-bg);
    width: 85%;
    max-width: 400px;
    border-radius: 25px;
    border: 3px solid var(--maiz-yellow);
    position: relative;
    padding: 25px;
    text-align: center;
    box-shadow: 0 0 50px rgba(244, 208, 63, 0.3);
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.promo-img {
    width: 100%;
    border-radius: 15px;
    margin: 15px 0;
    box-shadow: var(--shadow);
}

.close-modal {
    position: absolute;
    top: -15px; right: -15px;
    background: var(--maiz-yellow);
    color: var(--slate-black);
    width: 35px; height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    cursor: pointer;
    border: 2px solid var(--slate-black);
}

.promo-badge {
    background: var(--price-green);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}
 /*botón pedido*/
.item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.order-btn {
    background-color: var(--price-green); /* Usamos el verde de tu paleta */
    color: white;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 15px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.order-btn:hover {
    background-color: var(--maiz-yellow);
    color: var(--slate-black);
    transform: scale(1.05);
}