/* ========================================
   NORI SUSHI - Digital Menu Styles
   Mobile-First Design
   ======================================== */

/* CSS Variables */
:root {
    --bg-primary: #000000;
    --color-institutional: #FECC11;
    --text-primary: #FFFFFF;
    --color-secondary: #1a1a1a;
    --color-card: #1a1a1a;
    --color-border: #333333;
    --shadow-card: 0 4px 15px rgba(254, 204, 17, 0.1);
    --shadow-hover: 0 8px 25px rgba(254, 204, 17, 0.2);
    --transition-smooth: all 0.3s ease;
    --border-radius: 12px;
    --border-radius-lg: 20px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    padding-bottom: 140px;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: 2px;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.1rem;
}

/* ========================================
   HEADER
   ======================================== */
.header {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--color-secondary) 100%);
    padding: 30px 20px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center top, rgba(254, 204, 17, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.logo-container {
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-institutional);
    box-shadow: 0 0 30px rgba(254, 204, 17, 0.3);
    transition: var(--transition-smooth);
}

.logo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(254, 204, 17, 0.5);
}

.restaurant-name {
    font-size: 2.8rem;
    color: var(--color-institutional);
    margin: 10px 0 5px;
    text-shadow: 0 0 20px rgba(254, 204, 17, 0.3);
    letter-spacing: 4px;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.tagline {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.header-cta {
    position: relative;
    z-index: 1;
}

.btn-whatsapp-header {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-institutional);
    color: var(--bg-primary);
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(254, 204, 17, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-whatsapp-header:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(254, 204, 17, 0.6);
}

.btn-whatsapp-header:active {
    transform: translateY(0);
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.main-content {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* ========================================
   SECTION STYLES
   ======================================== */
.menu-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-institutional);
}

.section-icon {
    font-size: 1.5rem;
}

.section-title {
    color: var(--color-institutional);
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   PRODUCT GRID
   ======================================== */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 500px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 700px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* ========================================
   PRODUCT CARD
   ======================================== */
.product-card {
    background: var(--color-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(254, 204, 17, 0.3);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--color-institutional);
    color: var(--bg-primary);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-primary);
    line-height: 1.3;
}

.product-description {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-institutional);
}

.btn-add {
    background: var(--color-institutional);
    color: var(--bg-primary);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-add:hover {
    background: #ffda4d;
    transform: scale(1.05);
}

.btn-add:active {
    transform: scale(0.95);
}

.btn-add.added {
    background: #4CAF50;
    animation: pulse 0.3s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ========================================
   PROMO CARDS (Larger)
   ======================================== */
.promo-card {
    grid-column: 1 / -1;
}

.promo-card .product-image-container {
    height: 200px;
}

@media (min-width: 500px) {
    .promo-card {
        grid-column: span 1;
    }
    
    .promo-card .product-image-container {
        height: 180px;
    }
}

/* ========================================
   CART / ORDER SECTION
   ======================================== */
.cart-section {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--color-secondary) 0%, var(--bg-primary) 100%);
    border-top: 2px solid var(--color-institutional);
    padding: 12px 16px 16px;
    z-index: 1000;

    /* Altura más compacta */
    max-height: 28vh;

    /* scroll independiente */
    overflow-y: auto;

    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cart-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-institutional);
    font-size: 1.1rem;
    font-weight: 700;
}

.cart-count {
    background: var(--color-institutional);
    color: var(--bg-primary);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.cart-empty {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.cart-items {
    max-height: 120px;
    overflow-y: auto;
    margin-bottom: 10px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.cart-item-price {
    font-size: 0.8rem;
    color: var(--color-institutional);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-qty {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--color-border);
    color: var(--text-primary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-qty:hover {
    background: var(--color-institutional);
    color: var(--bg-primary);
}

.btn-qty:active {
    transform: scale(0.9);
}

.btn-remove {
    background: transparent;
    border: none;
    color: #ff6b6b;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    transition: var(--transition-smooth);
}

.btn-remove:hover {
    transform: scale(1.2);
}

.cart-item-qty {
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid var(--color-border);
    margin-bottom: 15px;
}

.total-label {
    font-size: 1rem;
    font-weight: 600;
}

.total-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-institutional);
}

.btn-send-order {
    width: 100%;
    background: var(--color-institutional);
    color: var(--bg-primary);
    border: none;
    padding: 10px 14px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
}

.btn-send-order:hover {
    background: #ffda4d;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(254, 204, 17, 0.4);
}

.btn-send-order:active {
    transform: translateY(0);
}

.btn-send-order:disabled {
    background: var(--color-border);
    cursor: not-allowed;
    transform: none;
}

/* ========================================
   LOCATION & HOURS SECTION
   ======================================== */
.info-section {
    background: var(--color-card);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    margin: 20px;
    border: 1px solid var(--color-border);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

@media (min-width: 500px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.info-block h3 {
    color: var(--color-institutional);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.info-block p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.8;
}

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

.hours-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
}

.hours-row:last-child {
    border-bottom: none;
}

.hours-days {
    color: var(--text-primary);
    font-weight: 500;
}

.hours-time {
    color: var(--color-institutional);
    font-weight: 600;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    text-align: center;
    padding: 30px 20px 40px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

.footer-brand {
    color: var(--color-institutional);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 5px;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.5s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.15s; }
.product-card:nth-child(3) { animation-delay: 0.2s; }
.product-card:nth-child(4) { animation-delay: 0.25s; }
.product-card:nth-child(5) { animation-delay: 0.3s; }
.product-card:nth-child(6) { animation-delay: 0.35s; }

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cart-section {
    animation: slideUp 0.3s ease;
}

/* ========================================
   SCROLLBAR STYLING
   ======================================== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-institutional);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ffda4d;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.hidden {
    display: none !important;
}

.text-yellow {
    color: var(--color-institutional);
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-institutional);
    color: var(--bg-primary);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 2000;
    animation: toastIn 0.3s ease, toastOut 0.3s ease 1.7s forwards;
    box-shadow: 0 4px 20px rgba(254, 204, 17, 0.4);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
}

/* Price range display */
.price-range {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

@media (min-width: 768px) {

    .cart-section{
        max-height: 40vh;
        padding: 18px 24px;
    }

    .cart-items{
        max-height: 200px;
    }

}

/* ========================================
   CARRUSEL DESTACADOS (HERO SECTION)
   ======================================== */
.carousel-section {
    padding: 20px 0 10px 15px; /* Espaciado ajustado para móviles */
    overflow: hidden;
}

.carousel-heading {
    color: var(--color-institutional);
    font-size: 1.4rem;
    margin-bottom: 15px;
    padding-right: 15px;
}

.carousel-container {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-right: 15px; /* Para que la última tarjeta respire */
    padding-bottom: 15px;
    scroll-snap-type: x mandatory; /* Esto hace que la tarjeta se frene justo al medio */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Oculta la barra fea en Firefox */
}

.carousel-container::-webkit-scrollbar {
    display: none; /* Oculta la barra fea en Chrome/Safari */
}

.carousel-card {
    flex: 0 0 82%; /* Ancho de cada tarjeta. Deja ver un pedacito de la siguiente */
    scroll-snap-align: center;
    background: var(--color-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.carousel-image-container {
    position: relative;
    width: 100%;
    height: 180px; /* Foto grande y atractiva */
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--color-institutional);
    color: #000;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 800;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.carousel-info {
    padding: 15px;
}

.carousel-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #fff;
}

.carousel-desc {
    font-size: 0.85rem;
    color: #bbb;
    margin-bottom: 12px;
    line-height: 1.3;
}

.carousel-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.carousel-price {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--color-institutional);
}

.btn-carousel {
    padding: 8px 16px; /* Botón un poquito más grande para el carrusel */
}

.direct-contact {
    text-align: center;
    margin-top: 10px;
    padding: 10px;
    border-top: 1px solid #1a1a1a;
}

.direct-contact p {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 5px;
}

.whatsapp-link-text {
    color: #25d366; /* Color verde WhatsApp */
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.3s;
}

.whatsapp-link-text:hover {
    opacity: 0.8;
    text-decoration: underline;
}
