/* ===================================================== */
/* 🔤 1. FUENTES PERSONALIZADAS */
/* ===================================================== */
@font-face {
    font-family: '../Atlantica LF';
    src: url('fonts/Atlantica-LF.woff2') format('woff2'),
        url('fonts/Atlantica-LF.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: '../Gloucester MT Extra Condensed';
    src: url('fonts/Gloucester-MT.woff2') format('woff2'),
        url('fonts/Gloucester-MT.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


/* ===================================================== */
/* 🎨 2. VARIABLES (COLORES Y TIPOGRAFÍAS) */
/* ===================================================== */
:root {
    /* Paleta Minimalista */
    --bg-color: #0F3D2E;
    --main-color: #D4AF37;
    --text-color: #F5F2EB;
    --second-bg-color: #1F5A44;
    --dark-text: #1A1A1A;

    /* Tipografías */
    --font-logo: 'Gloucester MT Extra Condensed', serif;
    --font-heading: 'Gloucester MT Extra Condensed', serif;
    --font-subheading: 'Playfair Display', serif;
    --font-body: 'Cormorant Garamond', serif;
}


/* ===================================================== */
/* 🌍 3. RESET Y ESTILOS GLOBALES */
/* ===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.4;
    overflow-x: hidden;
}

span {
    color: var(--main-color);
}


/* ===================================================== */
/* 🔠 4. TIPOGRAFÍA Y TEXTOS */
/* ===================================================== */
.logo,
.home-content h1 {
    font-family: var(--font-logo);
    letter-spacing: 2px;
}

.home-content h1 {
    font-size: 4rem;
    color: var(--main-color);
    margin: 10px 0;
}

.heading {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h3,
h4 {
    font-family: var(--font-subheading);
    color: var(--main-color);
    font-weight: 600;
}

.price {
    display: block;
    margin-top: 10px;
    font-family: var(--font-subheading);
    font-size: 1.3rem;
    color: var(--main-color);
    font-weight: bold;
}

.subtitle {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 2rem;
    letter-spacing: 2px;
    font-size: 1rem;
}


/* ===================================================== */
/* 🧭 5. HEADER Y NAVEGACIÓN */
/* ===================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 9%;
    background: rgba(15, 61, 46, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.logo {
    font-size: 2.5rem;
    color: var(--main-color);
}

.navbar a {
    font-family: var(--font-subheading);
    font-size: 1.2rem;
    color: var(--text-color);
    margin-left: 2.5rem;
    transition: .3s;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

#menu-icon {
    font-size: 2.5rem;
    color: var(--text-color);
    display: none;
    cursor: pointer;
}


/* ===================================================== */
/* 🧱 6. SECCIONES Y ESTRUCTURA GENERAL */
/* ===================================================== */
section {
    min-height: 100vh;
    min-width: 60vh;
    padding: 100px 9% 60px;
}

.dark-bg-section {
    background: #0b2e22;
}

.home {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 10px 28px;
    background: var(--main-color);
    color: var(--bg-color);
    border-radius: 8px;
    font-family: var(--font-subheading);
    font-weight: bold;
    margin-top: 2rem;
    transition: .3s;
}

.btn:hover {
    box-shadow: 0 0 15px var(--main-color);
    background: transparent;
    color: var(--main-color);
    border: 1px solid var(--main-color);
}


/* ===================================================== */
/* 📱 7. REDES SOCIALES (¡Añadido!) */
/* ===================================================== */
.social-media {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--main-color);
    transition: .3s;
}

.social-media a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 10px var(--main-color);
}


/* ===================================================== */
/* 🎯 8. CARRUSEL HORIZONTAL */
/* ===================================================== */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.horizontal-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 2rem;
    padding: 1rem 0 2rem 0;
    scroll-snap-type: x proximity;
    /* ✅ CAMBIADO: mandatory → proximity, libera el scroll */
    scroll-behavior: auto;
    /* ✅ CAMBIADO: smooth → auto, el JS maneja la animación */
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

/* Scroll personalizado */
.horizontal-container::-webkit-scrollbar {
    height: 8px;
}

.horizontal-container::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-radius: 10px;
}

.horizontal-container::-webkit-scrollbar-thumb {
    background: var(--main-color);
    border-radius: 10px;
}


/* ===================================================== */
/* 🍔 9. TARJETAS DEL MENÚ */
/* ===================================================== */
.menu-card {
    flex: 0 0 auto;
    width: 320px;
    scroll-snap-align: start;
    background: var(--second-bg-color);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: .4s;
}

.menu-card:hover {
    transform: translateY(-10px);
    border-color: var(--main-color);
}

.menu-card.alt-bg {
    background: var(--text-color);
    color: var(--dark-text);
}

.menu-card.alt-bg p {
    color: var(--dark-text);
}

.icon-card {
    font-size: 4rem;
    color: var(--main-color);
    margin-bottom: 1rem;
}


/* ===================================================== */
/* 🖼️ 10. TARJETAS CON IMAGEN */
/* ===================================================== */
.img-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-img-placeholder {
    width: 100%;
    height: 200px;
    background: #154c3a;
}

.card-details {
    padding: 1.5rem;
    text-align: left;
}


/* ===================================================== */
/* 🔘 11. BOTONES DEL CARRUSEL */
/* ===================================================== */
.carousel-btn {
    background: var(--main-color);
    color: var(--bg-color);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: absolute;
    z-index: 10;
    transition: .3s;
}

.carousel-btn:hover {
    background: var(--text-color);
    color: var(--main-color);
}

.prev-btn {
    left: -25px;
}

.next-btn {
    right: -25px;
}

/* ===================================================== */
/* 📱 12. RESPONSIVE (AJUSTES PARA MÓVILES) */
/* ===================================================== */
@media (max-width: 768px) {

    /* 🔥 FORZAR VISIBILIDAD DEL BURGER */
    #menu-icon {
        display: block !important;
        position: relative;
        z-index: 2000;
    }

    /* 🔥 OCULTAR NAV LINKS */
    .navbar {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-color);
        flex-direction: column;
        z-index: 1500;
        width: 100%;
        padding: 1rem;
        box-sizing: border-box;
    }

    /* 🔥 MOSTRAR NAV CUANDO ACTIVO */
    .navbar.active {
        display: flex !important;
    }

    /* 🔥 ITEMS */
    .navbar a,
    .dropbtn {
        width: 100%;
        margin: 1.2rem 0;
        text-align: left;
    }

    /* 🔥 DROPDOWN EXPANDIBLE */
    .dropdown {
        width: 100%;
    }

    .dropdown-content {
        position: static;
        width: 100%;
        display: none;
        box-shadow: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dropdown.active .dropdown-content {
        display: flex;
    }
}

/* ===================================================== */
/* 🐂 13. LOGO PRINCIPAL (TORO VARBACOA) */
/* ===================================================== */
.home-content img {
    width: 180px !important;
    height: 180px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto 20px auto !important;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.6));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.home-content img:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 8px 15px rgba(212, 175, 55, 0.5));
}

/* ===================================================== */
/* 📞 14. ESTILO PARA NÚMEROS DE TELÉFONO */
/* ===================================================== */
.number-font {
    font-family: 'Gloucester MT Extra Condensed', sans-serif;
    font-weight: 400;
    letter-spacing: 2px;
}

/* ===================================================== */
/* 🥤 BEBIDAS EN FORMATO TARJETAS CON IMAGEN             */
/* ===================================================== */

#bebidas-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    overflow: hidden;
}

#bebidas-container .menu-item {
    width: 160px;
    height: 220px;
    /* ✅ altura fija igual para todas */
    background: #e9e5df;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    /* ✅ imagen arriba, texto abajo */
    align-items: stretch;
    overflow: hidden;
    padding: 0;
    /* ✅ sin padding para que imagen ocupe bien */
}

#bebidas-container .menu-item img {
    width: 100%;
    height: 130px;
    /* ✅ altura fija de imagen */
    object-fit: cover;
    object-position: center;
    display: block;
    flex-shrink: 0;
}

/* Placeholder para los que no tienen imagen */
#bebidas-container .menu-item .img-placeholder {
    width: 100%;
    height: 130px;
    background: #154c3a;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

#bebidas-container .item-info {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

#bebidas-container .item-info h3 {
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: #143d2a;
    line-height: 1.2;
}

#bebidas-container .item-info .price {
    font-size: 0.95rem;
    color: #143d2a;
    font-weight: bold;
    margin-top: 0;
    display: block;
}

/* ===================================================== */
/* ➕ ADICIONALES EN FORMATO TARJETAS (IGUAL A BEBIDAS) */
/* ===================================================== */

#adicionales-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    overflow: hidden;
}

#adicionales-container .menu-item {
    width: 160px;
    height: 220px;
    /* ✅ altura fija igual para todas */
    background: #e9e5df;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    /* ✅ imagen arriba, texto abajo */
    align-items: stretch;
    overflow: hidden;
    padding: 0;
    /* ✅ sin padding para que imagen ocupe bien */
}

#adicionales-container .menu-item img {
    width: 100%;
    height: 130px;
    /* ✅ altura fija de imagen */
    object-fit: cover;
    object-position: center;
    display: block;
    flex-shrink: 0;
}

/* Placeholder para los que no tienen imagen */
#adicionales-container .menu-item .img-placeholder {
    width: 100%;
    height: 130px;
    background: #154c3a;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

#adicionales-container .item-info {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

#adicionales-container .item-info h3 {
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: #143d2a;
    line-height: 1.2;
}

#adicionales-container .item-info .price {
    font-size: 0.95rem;
    color: #143d2a;
    font-weight: bold;
    margin-top: 0;
    display: block;
}

/* ===================================================== */
/* ➕ MENÚ */
/* ===================================================== */

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu a {
    padding: 1rem;
    text-decoration: none;
    color: var(--text-color);
    transition: .3s;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--main-color);
}

.dropdown.active .dropdown-menu {
    display: flex;
}

.navbar {
    display: flex;
    align-items: center;
}

.navbar a,
.dropbtn {
    font-family: var(--font-subheading);
    font-size: 1.2rem;
    color: var(--text-color);
    margin-left: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.navbar a:hover,
.dropbtn:hover {
    color: var(--main-color);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-color);
    min-width: 250px;
    display: none;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

/* SOLO JS controla apertura */
.dropdown.active .dropdown-content {
    display: flex;
}

.dropdown-content a {
    margin: 0;
    padding: 1rem;
    display: block;
}

.dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* ========================= */
/* FOOTER BASE               */
/* ========================= */
.footer {
    background: linear-gradient(180deg, #0a0a0a, #111);
    color: #fff;
    padding: 60px 20px 30px;
    font-family: 'Open Sans', sans-serif;
    position: relative;
    overflow: hidden;
    min-width: 60vh;
}

/* Línea superior elegante */
.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #f5a623, transparent);
    transform: translateX(-50%);
}

/* ========================= */
/* CONTENEDOR                */
/* ========================= */
.footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr auto;
    gap: 40px;
    align-items: center;
}

/* ========================= */
/* BRAND                     */
/* ========================= */
.footer-brand h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-brand p {
    margin: 5px 0;
    color: #ccc;
}

.footer-brand span {
    font-size: 0.85rem;
    color: #888;
}

/* ========================= */
/* LINKS                     */
/* ========================= */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    text-decoration: none;
    color: #ccc;
    font-size: 0.9rem;
    transition: 0.3s ease;
}

.footer-links a:hover {
    color: #f5a623;
}

/* ========================= */
/* COPYRIGHT                 */
/* ========================= */
.footer-copy {
    font-size: 0.85rem;
    color: #777;
}

/* ========================= */
/* BOTÓN ARRIBA              */
/* ========================= */
.footer-top {
    background: #f5a623;
    color: #000;
    padding: 10px 14px;
    border-radius: 10%;
    text-decoration: none;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.footer-top:hover {
    background: #fff;
    transform: translateY(-3px);
}

/* ========================= */
/* RESPONSIVE                */
/* ========================= */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-top {
        margin: 20px auto 0;
    }
}