/* =========================================
   ESTILOS GENERALES Y VARIABLES
   ========================================= */
:root {
    --primary-color: #006994;
    --secondary-color: #ff6b35;
    --accent-color: #00a8cc;
    --text-color: #333;
    --bg-light: #f4f9fc;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-color);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* =========================================
   HEADER Y NAVEGACIÓN
   ========================================= */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 105, 148, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 5%;
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 50px;
    height: auto;
}

.navbar h1 {
    color: var(--white);
    font-family: 'Pacifico', cursive;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.btn-admin {
    background: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.cart-btn {
    background: var(--white);
    color: var(--primary-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
    transition: 0.3s;
    position: relative;
}

.cart-btn:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.cart-count {
    background: red;
    color: white;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 0.8rem;
    min-width: 20px;
    text-align: center;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 5px;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 30, 60, 0.7), rgba(0, 105, 148, 0.4));
    z-index: -1;
}

.hero-content {
    z-index: 1;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-family: 'Pacifico', cursive;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    transform: scale(1.05);
    background: #e55a2b;
}

/* =========================================
   SECCIÓN DE MENÚ
   ========================================= */
.menu-section {
    padding: 4rem 5%;
    background: #eef6f8;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: 'Pacifico', cursive;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.menu-category {
    max-width: 1200px;
    margin: 0 auto 4rem;
}

.category-title {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.menu-item {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.menu-item:hover {
    transform: translateY(-5px);
}

/* IMÁGENES DEL MENÚ - MEJORADAS */
.item-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center center;
    border-bottom: 1px solid #eee;
}

/* AJUSTE ESPECIAL PARA BEBIDAS - Se ven mejor */
.menu-category:last-child .item-image {
    height: 280px; /* Más altura para bebidas */
    object-fit: contain; /* Muestra la botella completa */
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    padding: 20px;
}

.item-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.item-name {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.item-description {
    color: #777;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex-grow: 1;
    line-height: 1.4;
}

.item-price {
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-weight: bold;
    margin-bottom: 1rem;
}

.btn-add-cart {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.8rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-add-cart:hover {
    background: #005575;
}

/* =========================================
   SOBRE NOSOTROS
   ========================================= */
.about-section {
    padding: 4rem 5%;
    background: var(--white);
    text-align: center;
}

.about-text {
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}

.features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.feature {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
    width: 250px;
    transition: 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.feature h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* =========================================
   UBICACIÓN
   ========================================= */
.location-section {
    padding: 4rem 5%;
    background: var(--bg-light);
}

.location-content {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.map-container {
    flex: 1;
    min-width: 300px;
}

.location-info {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-card i {
    font-size: 2rem;
    color: var(--primary-color);
    width: 50px;
    text-align: center;
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.info-card p {
    color: #666;
    margin: 0;
}

.btn-directions {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 1rem;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
    margin-top: 1rem;
    transition: 0.3s;
}

.btn-directions:hover {
    background: #005575;
}

/* =========================================
   CONTACTO
   ========================================= */
.contact-section {
    padding: 4rem 5%;
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.contact-section .section-title {
    color: var(--white);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.1);
    padding: 1rem 2rem;
    border-radius: 15px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.info-item h4 {
    margin-bottom: 0.2rem;
}

.info-item p {
    margin: 0;
    opacity: 0.9;
}

.info-item a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background: #002b40;
    color: var(--white);
    padding: 2rem 5% 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    width: 60px;
}

.footer-brand h3 {
    font-family: 'Pacifico', cursive;
    font-size: 1.5rem;
}

.footer-signature {
    max-height: 60px;
    filter: brightness(0) invert(1);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    background: rgba(255,255,255,0.1);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    transition: 0.3s;
}

.social-link:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* =========================================
   MODALES Y CARRITO
   ========================================= */
.cart-modal, .checkout-modal, .success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.cart-content, .checkout-content, .success-content {
    background: var(--white);
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow);
}

.cart-header, .checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.close-cart, .close-checkout {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.cart-item-info h4 {
    margin-bottom: 0.2rem;
    color: var(--primary-color);
}

.cart-item-info p {
    font-size: 0.9rem;
    color: #666;
}

.cart-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    background: #eee;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: bold;
    margin: 1.5rem 0;
    color: var(--primary-color);
}

.btn-checkout, .btn-submit-order {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 1rem;
    width: 100%;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.btn-checkout:hover, .btn-submit-order:hover {
    background: #e55a2b;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.order-summary {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.checkout-total {
    margin-top: 1rem;
    text-align: right;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.success-icon {
    font-size: 4rem;
    color: #4CAF50;
    text-align: center;
    margin-bottom: 1rem;
}

.success-content h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.success-content p {
    text-align: center;
    margin-bottom: 0.5rem;
    color: #666;
}

.btn-close-success {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 1rem;
    width: 100%;
    font-weight: bold;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-color);
        padding: 1rem;
        text-align: center;
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .menu-category:last-child .item-image {
        height: 300px; /* Más altura en móvil para bebidas */
    }
}