/* ========================================
   SAKURA SUSHI - ESTILOS PRINCIPALES
   Tema: Japonés Premium Mobile-First
   ======================================== */

/* Variables CSS - Paleta Japonesa */
:root {
    --primary-red: #c41e3a;
    --primary-red-light: #e63950;
    --primary-red-dark: #9a1830;
    --accent-gold: #d4af37;
    --accent-gold-light: #f0d77c;
    --bg-black: #0a0a0a;
    --bg-dark: #111111;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222222;
    --text-white: #ffffff;
    --text-gray: #b8b8b8;
    --text-light-gray: #888888;
    --success-green: #25d366;
    --shadow-red: rgba(196, 30, 58, 0.3);
    --shadow-gold: rgba(212, 175, 55, 0.2);
    --gradient-red: linear-gradient(135deg, #c41e3a 0%, #e63950 50%, #c41e3a 100%);
    --gradient-dark: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f0d77c 50%, #d4af37 100%);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-black);
    color: var(--text-white);
    min-height: 100vh;
    padding-bottom: 100px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ========================================
   PANTALLA DE BIENVENIDA
   ======================================== */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a0a 50%, #0a0a0a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    transition: opacity 0.6s ease;
}

.welcome-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(196, 30, 58, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 L35 25 L55 30 L35 35 L30 55 L25 35 L5 30 L25 25 Z' fill='none' stroke='rgba(196,30,58,0.05)' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 100% 100%, 100% 100%, 60px 60px;
    opacity: 0.5;
}

.welcome-content {
    text-align: center;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.welcome-logo {
    margin-bottom: 40px;
}

.sakura-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.welcome-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 6rem;
    font-weight: 700;
    color: var(--primary-red);
    text-shadow: 0 0 40px rgba(196, 30, 58, 0.5);
    margin-bottom: 10px;
    letter-spacing: 0.1em;
}

.welcome-subtitle-jp {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-white);
    letter-spacing: 0.5em;
    margin-bottom: 10px;
}

.welcome-tagline {
    font-size: 0.95rem;
    color: var(--text-gray);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.welcome-ornament {
    margin: 35px 0;
}

.ornament-bamboo {
    font-size: 1.5rem;
    color: var(--accent-gold);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.enter-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--gradient-red);
    color: var(--text-white);
    border: none;
    padding: 18px 45px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 10px 40px var(--shadow-red);
    position: relative;
    overflow: hidden;
}

.enter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.enter-btn:hover::before {
    left: 100%;
}

.enter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px var(--shadow-red);
}

.btn-icon {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.4rem;
    opacity: 0.9;
}

.btn-text {
    font-family: 'Montserrat', sans-serif;
}

/* ========================================
   HEADER
   ======================================== */
.header {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.98) 0%, rgba(10, 10, 10, 0.95) 100%);
    backdrop-filter: blur(20px);
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(196, 30, 58, 0.2);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.header-logo {
    width: 50px;
    height: 50px;
    background: var(--gradient-red);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px var(--shadow-red);
}

.logo-kanji {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.8rem;
    color: var(--text-white);
}

.header-text {
    text-align: left;
}

.restaurant-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 0.15em;
}

.restaurant-subtitle {
    font-size: 0.7rem;
    color: var(--accent-gold);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* ========================================
   CONTENEDOR DEL MENÚ
   ======================================== */
.menu-container {
    padding: 20px 15px;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   SECCIONES DEL MENÚ
   ======================================== */
.menu-section {
    margin-bottom: 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px 0;
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--gradient-red);
    border-radius: 2px;
}

.section-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 0.2em;
    margin-bottom: 5px;
}

.section-subtitle {
    font-family: 'Noto Serif JP', serif;
    font-size: 0.85rem;
    color: var(--primary-red);
    letter-spacing: 0.1em;
}

/* ========================================
   ITEMS DEL MENÚ
   ======================================== */
.menu-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.menu-item {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.menu-item:hover {
    transform: translateY(-3px);
    border-color: rgba(196, 30, 58, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.menu-item.selected {
    border-color: var(--primary-red);
    box-shadow: 0 0 30px var(--shadow-red);
}

.menu-item.added {
    animation: pulse 0.3s ease;
}

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

.item-image {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.menu-item:hover .item-image img {
    transform: scale(1.08);
}

.item-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.item-badge.premium {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.9), rgba(240, 215, 124, 0.9));
    color: #1a1a1a;
}

.item-badge.chef {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.9), rgba(230, 57, 80, 0.9));
    color: var(--text-white);
}

.item-badge.signature {
    background: linear-gradient(135deg, rgba(75, 0, 130, 0.9), rgba(138, 43, 226, 0.9));
    color: var(--text-white);
}

.item-badge.popular {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.9), rgba(255, 180, 50, 0.9));
    color: #1a1a1a;
}

.item-badge.bestseller {
    background: linear-gradient(135deg, rgba(50, 205, 50, 0.9), rgba(100, 255, 100, 0.9));
    color: #1a1a1a;
}

.item-badge.hot {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.9), rgba(255, 99, 71, 0.9));
    color: var(--text-white);
}

.item-content {
    padding: 18px;
}

.item-info {
    margin-bottom: 15px;
}

.item-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.item-description {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.5;
}

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

.item-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-red);
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 10px;
    border-radius: 30px;
}

.btn-decrease,
.btn-increase {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--bg-dark);
    color: var(--text-white);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-decrease:hover,
.btn-increase:hover {
    background: var(--primary-red);
    transform: scale(1.1);
}

.btn-increase {
    background: var(--primary-red);
}

.btn-increase:hover {
    background: var(--primary-red-light);
}

.item-quantity {
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 30px;
    text-align: center;
    color: var(--text-white);
}

/* ========================================
   BARRA DE REVISAR PEDIDO
   ======================================== */
.review-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.98) 0%, rgba(10, 10, 10, 1) 100%);
    backdrop-filter: blur(20px);
    padding: 15px 20px;
    padding-bottom: calc(15px + env(safe-area-inset-bottom));
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 200;
    border-top: 1px solid rgba(196, 30, 58, 0.3);
}

.review-bar.active {
    transform: translateY(0);
}

.review-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.review-info {
    display: flex;
    flex-direction: column;
}

.review-label {
    font-size: 0.7rem;
    color: var(--text-gray);
    letter-spacing: 0.1em;
}

.review-total {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
}

.review-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-red);
    color: var(--text-white);
    border: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 25px var(--shadow-red);
}

.review-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 35px var(--shadow-red);
}

.btn-kanji {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.2rem;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--bg-card);
    padding: 40px 20px;
    margin-top: 30px;
    border-top: 1px solid rgba(196, 30, 58, 0.2);
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-kanji {
    font-family: 'Noto Serif JP', serif;
    font-size: 2rem;
    color: var(--primary-red);
}

.footer-name {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-white);
}

.footer-handle {
    font-size: 0.9rem;
    color: var(--accent-gold);
    margin-bottom: 25px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.footer-contact-item i {
    color: var(--primary-red);
    width: 20px;
}

.footer-links {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light-gray);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.admin-link:hover {
    color: var(--primary-red);
}

/* ========================================
   BUSCADOR DE ÓRDENES (FOOTER)
   ======================================== */
.order-search-section {
    margin: 30px 0 25px;
    padding: 25px 20px;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.08) 0%, rgba(10, 10, 10, 0.9) 100%);
    border: 1px solid rgba(196, 30, 58, 0.2);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.order-search-section::before {
    content: '検索';
    position: absolute;
    top: -10px;
    right: -5px;
    font-family: 'Noto Serif JP', serif;
    font-size: 4rem;
    color: rgba(196, 30, 58, 0.05);
    font-weight: 700;
    pointer-events: none;
}

.order-search-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 6px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-gold);
    letter-spacing: 0.05em;
}

.order-search-header i {
    font-size: 0.9rem;
}

.order-search-hint {
    font-size: 0.78rem;
    color: var(--text-gray);
    margin-bottom: 16px;
    text-align: center;
}

.order-search-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 14px;
    color: var(--primary-red);
    font-size: 0.9rem;
    pointer-events: none;
}

.order-search-input {
    width: 100%;
    padding: 14px 42px 14px 42px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(196, 30, 58, 0.25);
    border-radius: 12px;
    color: var(--text-white);
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.order-search-input::placeholder {
    color: rgba(184, 184, 184, 0.5);
    font-size: 0.85rem;
}

.order-search-input:focus {
    border-color: var(--primary-red);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(196, 30, 58, 0.15);
}

.search-clear-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px;
    transition: color 0.3s ease;
}

.search-clear-btn:hover {
    color: var(--primary-red);
}

.order-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--primary-red), #a01830);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.order-search-btn:hover {
    background: linear-gradient(135deg, #e63950, var(--primary-red));
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
}

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

/* Resultados de búsqueda */
.order-search-results {
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.order-search-results.active {
    margin-top: 16px;
    max-height: 600px;
    overflow-y: auto;
}

.search-results-title {
    font-size: 0.8rem;
    color: var(--accent-gold);
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-no-results {
    text-align: center;
    padding: 20px 10px;
}

.search-no-results i {
    font-size: 2.5rem;
    color: rgba(196, 30, 58, 0.3);
    margin-bottom: 10px;
    display: block;
}

.search-no-results p {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.search-no-results .no-results-hint {
    font-size: 0.75rem;
    color: rgba(184, 184, 184, 0.5);
}

.search-result-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(196, 30, 58, 0.15);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-result-card:hover {
    background: rgba(196, 30, 58, 0.1);
    border-color: rgba(196, 30, 58, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.15);
}

.search-result-card:last-child {
    margin-bottom: 0;
}

.result-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.result-order-number {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-red);
    letter-spacing: 0.03em;
}

.result-order-status {
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.result-order-status.enviado {
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent-gold);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.result-order-status.confirmado {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.result-order-status.preparando {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.result-order-status.entregado {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.result-card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-customer {
    font-size: 0.85rem;
    color: var(--text-white);
    font-weight: 500;
}

.result-total {
    font-size: 0.9rem;
    color: var(--accent-gold);
    font-weight: 700;
}

.result-date {
    font-size: 0.72rem;
    color: var(--text-gray);
    margin-top: 6px;
}

.result-tap-hint {
    font-size: 0.7rem;
    color: rgba(196, 30, 58, 0.5);
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

/* Modal de Detalle de Orden */
.order-detail-modal .modal-body {
    padding: 20px;
}

.order-detail-section {
    margin-bottom: 20px;
}

.order-detail-section:last-child {
    margin-bottom: 0;
}

.detail-section-title {
    font-size: 0.75rem;
    color: var(--accent-gold);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.detail-info-item {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 12px;
}

.detail-info-item.full-width {
    grid-column: 1 / -1;
}

.detail-info-label {
    font-size: 0.7rem;
    color: var(--text-gray);
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.detail-info-value {
    font-size: 0.95rem;
    color: var(--text-white);
    font-weight: 600;
}

.detail-info-value.order-num {
    color: var(--primary-red);
    font-size: 1.05rem;
}

.detail-info-value.total-val {
    color: var(--accent-gold);
    font-size: 1.1rem;
}

.detail-items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    border-left: 3px solid var(--primary-red);
}

.detail-item-name {
    font-size: 0.85rem;
    color: var(--text-white);
    font-weight: 500;
    flex: 1;
}

.detail-item-qty {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin: 0 12px;
    white-space: nowrap;
}

.detail-item-subtotal {
    font-size: 0.85rem;
    color: var(--accent-gold);
    font-weight: 600;
    white-space: nowrap;
}

.detail-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.15) 0%, rgba(196, 30, 58, 0.05) 100%);
    border: 1px solid rgba(196, 30, 58, 0.3);
    border-radius: 12px;
    margin-top: 10px;
}

.detail-total-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 0.1em;
}

.detail-total-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-gold);
}

/* Scrollbar personalizado para resultados */
.order-search-results::-webkit-scrollbar {
    width: 4px;
}

.order-search-results::-webkit-scrollbar-track {
    background: transparent;
}

.order-search-results::-webkit-scrollbar-thumb {
    background: rgba(196, 30, 58, 0.3);
    border-radius: 4px;
}

.order-search-results::-webkit-scrollbar-thumb:hover {
    background: rgba(196, 30, 58, 0.5);
}

/* Animación de aparición de resultados */
@keyframes slideInResult {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-result-card {
    animation: slideInResult 0.3s ease forwards;
}

.search-result-card:nth-child(2) { animation-delay: 0.05s; }
.search-result-card:nth-child(3) { animation-delay: 0.1s; }
.search-result-card:nth-child(4) { animation-delay: 0.15s; }
.search-result-card:nth-child(5) { animation-delay: 0.2s; }

/* ========================================
   MODAL
   ======================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal-content {
    background: var(--bg-card);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: 25px 25px 0 0;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(196, 30, 58, 0.1) 0%, transparent 100%);
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-kanji {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.5rem;
    color: var(--primary-red);
}

.modal-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.modal-close {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--primary-red);
}

.modal-body {
    flex: 1;
    padding: 20px 25px;
    overflow-y: auto;
}

.order-items {
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.order-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.order-item-price-unit {
    font-size: 0.8rem;
    color: var(--text-gray);
}

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

.order-qty-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.order-qty-btn:hover {
    background: var(--primary-red);
}

.order-qty-btn.increase {
    background: var(--primary-red);
}

.order-item-qty {
    min-width: 25px;
    text-align: center;
    font-weight: 700;
}

.order-item-subtotal {
    font-weight: 700;
    color: var(--primary-red);
    margin-left: 15px;
    min-width: 70px;
    text-align: right;
}

.empty-order {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-gray);
}

.empty-order i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.order-summary {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.summary-row.total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
}

.total-amount {
    color: var(--primary-red);
    font-size: 1.5rem;
}

.name-label {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 12px;
}

.name-input-container {
    position: relative;
}

.customer-name-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 18px;
    font-size: 1rem;
    color: var(--text-white);
    transition: all 0.3s ease;
}

.customer-name-input::placeholder {
    color: var(--text-light-gray);
}

.customer-name-input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 20px var(--shadow-red);
}

.modal-footer {
    padding: 20px 25px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.send-order-btn {
    width: 100%;
    background: var(--gradient-red);
    color: var(--text-white);
    border: none;
    padding: 18px;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 5px 25px var(--shadow-red);
}

.send-order-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.send-order-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 35px var(--shadow-red);
}

.send-order-btn i {
    font-size: 1.3rem;
}

/* ========================================
   MODAL DE ÉXITO
   ======================================== */
.success-modal {
    text-align: center;
    padding: 40px 30px;
    max-height: none;
    border-radius: 25px 25px 0 0;
}

.success-icon {
    margin-bottom: 25px;
}

.check-circle {
    font-size: 4rem;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.success-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 15px;
}

.success-message {
    font-size: 1.1rem;
    color: var(--text-white);
    margin-bottom: 10px;
}

.success-submessage {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 15px;
    line-height: 1.5;
}

.success-thanks {
    font-size: 1rem;
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 30px;
}

.success-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-number-display {
    background: rgba(196, 30, 58, 0.1);
    border: 1px solid rgba(196, 30, 58, 0.3);
    padding: 15px;
    border-radius: 12px;
    font-weight: 700;
    color: var(--primary-red);
    font-size: 1.1rem;
}

.success-btn {
    background: var(--gradient-red);
    color: var(--text-white);
    border: none;
    padding: 18px;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 25px var(--shadow-red);
}

.success-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 35px var(--shadow-red);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 380px) {
    .welcome-title {
        font-size: 4.5rem;
    }
    
    .welcome-subtitle-jp {
        font-size: 1.2rem;
        letter-spacing: 0.3em;
    }
    
    .item-image {
        height: 150px;
    }
    
    .item-price {
        font-size: 1.2rem;
    }
}

@media (min-width: 768px) {
    .menu-items {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .modal-content {
        max-width: 500px;
        border-radius: 25px;
        margin: auto;
    }
    
    .success-modal {
        border-radius: 25px;
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-red-light);
}

/* ========================================
   ANIMACIONES DE CARGA
   ======================================== */
.menu-item {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.menu-item:nth-child(1) { animation-delay: 0.1s; }
.menu-item:nth-child(2) { animation-delay: 0.2s; }
.menu-item:nth-child(3) { animation-delay: 0.3s; }
.menu-item:nth-child(4) { animation-delay: 0.4s; }

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