/* public/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --bg-color: #06090f; /* Deep Midnight Blue */
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --accent: #4fc3c8; /* Teal/Cyan from Logo */
    --accent-dark: #008b8b;
    --surface: rgba(15, 23, 42, 0.6); /* Translucent Blue */
    --surface-border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(6, 9, 15, 0.7);
    --glass-blur: blur(15px);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding-bottom: 80px; 
}

/* Layout & Sections */
section {
    padding: 100px 5%;
    scroll-margin-top: 80px;
}

/* Typography */
h1, h2, h3 {  font-weight: 700;  line-height: 1.1; }
h1 { font-size: 4rem; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; margin-bottom: 2rem; text-align: center; }

h1 span.accent { color: var(--accent); }

/* Sticky Header & Glassmorphism */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(6, 9, 15, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 2px solid var(--accent);
    padding: 0.8rem 5%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-user-link {
    color: var(--text-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.nav-user-link:hover {
    color: var(--accent);
}

.nav-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(0 0 10px rgba(79, 195, 200, 0.3));
}

.navbar.scrolled .nav-logo {
    height: 50px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    position: relative;
    padding-bottom: 5px;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: 0; left: 0;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--text-color);
    cursor: pointer;
    z-index: 110; /* Highest inside navbar */
    transition: var(--transition);
}

.menu-toggle:hover { color: var(--accent); }

/* Overlay Background */
.nav-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 50; /* Inside navbar stacking context */
    z-index: 50; /* Inside navbar stacking context */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: var(--transition);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@media (max-width: 900px) {
    .menu-toggle { display: block; }
    
    .nav-links {
        position: fixed;
        top: 0; right: -100%; /* Start outside right side */
        width: 300px; 
        max-width: 80%;
        height: 100vh;
        background: rgba(13, 15, 18, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        z-index: 100; /* Higher than overlay */
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid var(--surface-border);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a { 
        font-size: 1.5rem; 
        font-weight: 600;
        letter-spacing: 1px;
    }
}

/* Boton de carrito visible en menú */
.cart-btn-nav {
    background: var(--accent);
    color: #111;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}
.cart-btn-nav:hover { background: #eacb67; transform: translateY(-2px); }

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    overflow: hidden;
}

.hero .swiper-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
}

.hero .swiper-slide {
    width: 100%;
    height: 100%;
}
.hero .swiper-slide img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.hero-content {
    z-index: 10;
    max-width: 800px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.btn-primary {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--accent);
    color: #06090f;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: var(--transition);
    border: 2px solid var(--accent);
    box-shadow: 0 10px 20px rgba(79, 195, 200, 0.2);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(79, 195, 200, 0.4);
}

/* Buscador Moderno */
.search-container {
    max-width: 700px;
    margin: 0 20px 3rem;
    position: relative;
    display: flex;
    align-items: center;
}

@media (min-width: 740px) {
    .search-container { margin: 0 auto 3rem; }
}

.search-container i {
    position: absolute;
    left: 20px;
    color: var(--accent);
    font-size: 1.2rem;
}

.search-container input {
    width: 100%;
    padding: 1.2rem 1.2rem 1.2rem 3.5rem;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 50px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    backdrop-filter: var(--glass-blur);
}

.search-container input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 25px rgba(79, 195, 200, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

/* Category Nav Sticky & Scroll */
.category-nav-wrapper {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 70px !important;
    z-index: 950 !important;
    margin: 0 !important;
    padding: 0; /* Remove padding to allow buttons and bar to align */
    background: #06090f !important;
    border-top: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.category-scroll-container {
    position: relative;
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
}

.category-nav {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 20px 60px; /* Leave space for buttons */
    scrollbar-width: none;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    align-items: center; /* Center icons and text */
}

.category-nav::-webkit-scrollbar { display: none; }

.category-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(79, 195, 200, 0.2);
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.category-scroll-btn:hover {
    background: var(--accent);
    color: #000;
}

.category-scroll-btn.left { left: 10px; }
.category-scroll-btn.right { right: 10px; }

@media (max-width: 1024px) {
    .category-scroll-btn { display: none; }
    .category-nav { padding: 20px; }
}

.category-btn {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.8rem;
    background: rgba(255,255,255,0.05);
    border: 2px solid transparent;
    border-radius: 40px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    white-space: nowrap;
}

.category-btn i { color: var(--accent) !important; font-size: 1.2rem; display: inline-block !important; }

.category-btn:hover, .category-btn.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    transform: translateY(-3px);
}
.category-btn:hover i, .category-btn.active i { color: #000 !important; }

/* Category Titles */
.category-title {
    margin-top: 5rem;
    font-size: 2.2rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 15px;
    scroll-margin-top: 180px;
    margin-bottom: 2rem;
    position: relative;
    padding: 0 20px 15px; /* Side padding added */
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 60px; height: 3px;
    background: var(--accent);
}

.category-title i { font-size: 1.5rem; opacity: 0.8; }

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 20px; /* Side padding added to grid */
}

.menu-card {
    background: var(--surface);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.menu-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.menu-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.menu-card:hover .menu-img { transform: scale(1.05); }

/* Placeholder Premium */
.menu-img-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--accent);
    position: relative;
    overflow: hidden;
}

.menu-img-placeholder i { font-size: 4rem; opacity: 0.2; transform: rotate(-15deg); }
.menu-img-placeholder span {
    position: absolute;
    bottom: 15px;
    letter-spacing: 5px;
    font-size: 0.7rem;
    font-weight: 700;
    opacity: 0.5;
}

.menu-info { padding: 1.5rem; }
.menu-info h3 { font-size: 1.2rem; margin-bottom: 0.8rem; letter-spacing: 0.5px; }
.menu-info p.desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    min-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.menu-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-price { font-size: 1.4rem; font-weight: 700; color: var(--accent); }

.btn-add-cart-icon {
    width: 45px; height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--surface-border);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-add-cart-icon:hover {
    background: var(--accent);
    color: #000;
    transform: rotate(90deg);
}

/* Modal de Carrito / Checkout */
.cart-modal {
    position: fixed;
    top: 0; right: -400px;
    width: 400px; height: 100vh;
    background: rgba(13, 15, 18, 0.95);
    backdrop-filter: var(--glass-blur);
    border-left: 1px solid var(--surface-border);
    z-index: 2000;
    transition: right 0.4s ease;
    padding: 2rem;
    overflow-y: auto; /* Permite scroll de todo el modal */
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

.cart-modal.active { right: 0; }

.cart-header {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--surface-border);
    padding-bottom: 1rem; margin-bottom: 1rem;
}
.close-cart { background: none; border: none; font-size: 2rem; color: #fff; cursor: pointer; }

.cart-items { margin-bottom: 2rem; }

.cart-item {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cart-item-title { font-weight: 600; font-size: 0.9rem;}
.cart-item-price { color: var(--accent); font-size: 1rem; }

.cart-total {
    font-size: 1.5rem; font-weight: 700; display: flex; justify-content: space-between;
    margin-bottom: 1.5rem;
}

.checkout-form label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--text-muted); }
.checkout-form input, .checkout-form select {
    width: 100%; border-radius: 4px; padding: 0.8rem; border: 1px solid var(--surface-border);
    background: rgba(255,255,255,0.05); color: #fff; margin-bottom: 1rem; font-family: 'Outfit';
}
.checkout-form select option {
    background-color: #111; /* Color negro/oscuro para q se lean bien */
    color: #fff;
}
.checkout-form select option:checked {
    font-weight: bold;
    color: var(--accent);
}
.btn-checkout {
    width: 100%; background: var(--accent); color: #000; padding: 1rem;
    border: none; border-radius: 4px; font-weight: 700; cursor: pointer; transition: var(--transition);
}
.btn-checkout:hover { opacity: 0.9; }

/* Barra inferior de redes sociales */
.social-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(13, 15, 18, 0.95);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--surface-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 0;
    z-index: 1000;
}

.social-icons-wrapper {
    display: flex;
    gap: 2rem;
}

.copyright-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin: 0;
    padding: 0 10px;
}

.social-icon {
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    transform: translateY(-3px);
}

.social-icon.whatsapp:hover { 
    background-color: #25d366; 
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.6); 
    color: #fff;
}
.social-icon.instagram:hover { 
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); 
    box-shadow: 0 0 15px rgba(220, 39, 67, 0.6); 
    color: #fff;
}
.social-icon.tiktok:hover { 
    background-color: #111; 
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4); 
    text-shadow: 1px 1px 0 #ea284e, -1px -1px 0 #42f9eb;
    color: #fff;
}
.social-icon.website:hover { 
    background-color: var(--accent); 
    box-shadow: 0 0 15px rgba(79, 195, 200, 0.6); 
    color: #000;
}

/* Instagram Carousel */
.ig-section { text-align: center; }
.ig-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; justify-items: center;
}

.ig-embed-container {
    width: 100%;
    max-width: 350px;
    height: 450px; /* Altura fija para que todas se vean iguales */
    background: #000;
    border-radius: 12px;
    overflow: hidden; /* Corta el excedente (texto o pie del post) para mantener la simetría */
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border: 1px solid var(--surface-border);
    display: flex;
    justify-content: center;
}

/* Ayuda a que el iframe de IG se adapte al contenedor */
.ig-embed-container iframe.instagram-media {
    margin: 0 !important;
    min-width: 100% !important;
}
.ig-card {
    height: 250px; background: #222; border-radius: 8px; overflow: hidden; position: relative;
    cursor: pointer;
}
.ig-card img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.ig-card:hover img { transform: scale(1.05); filter: brightness(0.7); }
.ig-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: 0; color: #fff; font-size: 2rem; transition: var(--transition); }
.ig-card:hover .ig-icon { opacity: 1; }

/* Sección Contacto */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.contact-form-container {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--surface-border);
}

.contact-form-container h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255,255,255,0.1);
}

/* Success Modal Styles */
.success-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-modal.active {
    opacity: 1;
    visibility: visible;
}

.success-content {
    background: var(--surface);
    border: 1px solid var(--accent);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5), 0 0 40px rgba(79, 195, 200, 0.2);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: translateY(30px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-modal.active .success-content {
    transform: translateY(0) scale(1);
}

.success-icon {
    width: 80px; height: 80px;
    background: rgba(79, 195, 200, 0.15);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--accent);
    font-size: 2.5rem;
    box-shadow: 0 0 25px rgba(79, 195, 200, 0.3);
}

.success-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #fff;
}

.success-content p {
    font-size: 1.1rem;
    color: #f1f5f9;
    margin-bottom: 0.5rem;
}

/* History Cards */
.history-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.history-card {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--surface-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: var(--transition);
    background: var(--surface);
}

.history-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 15px 40px rgba(79, 195, 200, 0.2);
}

.history-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.history-card:hover img {
    transform: scale(1.05);
    filter: brightness(0.85);
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    /* .nav-links { display: none; } - Removido para habilitar el drawer móvil */
    .cart-modal { width: 100%; right: -100%; }
    .contact-grid { grid-template-columns: 1fr; }
    .history-card { height: 350px; }
}
