/* ==========================================================================
   styles.css - Menú Digital Antojitos Mexicanos (Estilo ID Virtual Mx / El Manito)
   Inspirado en el diseño tradicional de loncherías y torterías de Iguala, Gro.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Yellowtail&family=Montserrat:wght@400;600;700;800;900&display=swap');

:root {
    --bg-black: #0c0a09;
    --bg-dark: #1c1917;
    --bg-card: #18181b;
    --primary-red: #dc2626;
    --primary-red-hover: #b91c1c;
    --strip-red: #c81e1e;
    --accent-yellow: #facc15;
    --accent-gold: #a29160;
    --text-white: #ffffff;
    --text-muted: #d4d4d8;
    --text-subtle: #a1a1aa;
    --border-dark: #27272a;
    --whatsapp-green: #25d366;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-full: 9999px;
    --transition: all 0.2s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 58px;
}

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.45;
    padding-bottom: 95px;
    overflow-x: hidden;
}

/* Contenedor centralizado para emular la vista de ID Virtual Mx */
.menu-wrapper {
    max-width: 650px;
    margin: 0 auto;
    background: #111111;
    min-height: 100vh;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
    position: relative;
    border-left: 1px solid #222;
    border-right: 1px solid #222;
}

/* ==========================================================================
   Header & Encabezado ID Virtual Style
   ========================================================================== */
.site-header {
    background: #000000;
    text-align: center;
    padding: 2rem 1.2rem 1.4rem;
    border-bottom: 3px solid var(--primary-red);
    position: relative;
}

.location-tag {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-yellow);
    margin-bottom: 0.5rem;
    display: inline-block;
}

.brand-main-title {
    font-family: 'Bangers', cursive;
    font-size: 3.2rem;
    letter-spacing: 0.05em;
    line-height: 1;
    color: #ffffff;
    text-shadow: 3px 3px 0px var(--primary-red), -1px -1px 0px #000;
    margin-bottom: 0.4rem;
}

.slogan-banner {
    font-style: italic;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fef08a;
    margin-bottom: 1.2rem;
    padding: 0 1rem;
}

/* Horario y Estado */
.schedule-badge-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-pill.open {
    background: rgba(34, 197, 94, 0.18);
    color: #4ade80;
    border: 1.5px solid #22c55e;
}

.status-pill.closed {
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
    border: 1.5px solid #ef4444;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.status-pill.open .status-dot {
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: blinkDot 1.5s infinite;
}

.status-pill.closed .status-dot {
    background: #ef4444;
}

@keyframes blinkDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.schedule-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* Botones de Cabecera (WhatsApp, Llamar, QR) */
.header-btn-row {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 0.8rem;
}

.head-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.head-btn-wa {
    background: var(--whatsapp-green);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.head-btn-wa:hover {
    background: #1eb855;
    transform: translateY(-2px);
}

.head-btn-phone {
    background: #27272a;
    color: white;
    border: 1px solid #3f3f46;
}

.head-btn-phone:hover {
    background: #3f3f46;
}

.head-btn-qr {
    background: var(--primary-red);
    color: white;
}

.head-btn-qr:hover {
    background: var(--primary-red-hover);
}

/* ==========================================================================
   Franjas de Sección (Section Banner Strips estilo ID Virtual Mx)
   ========================================================================== */
.section-strip {
    background: var(--strip-red);
    padding: 0.75rem 1rem;
    text-align: center;
    margin: 2rem 0 1.2rem;
    border-top: 2px solid #ef4444;
    border-bottom: 2px solid #991b1b;
    position: relative;
}

.section-strip-title {
    font-family: 'Bangers', cursive;
    font-size: 2.3rem;
    letter-spacing: 0.06em;
    color: #ffffff;
    text-shadow: 2px 2px 0px #000;
    text-transform: uppercase;
}

.section-strip-sub {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fef08a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: -0.2rem;
}

/* ==========================================================================
   Fotografías de Comida Grandes entre Secciones
   ========================================================================== */
.section-photo-banner {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.section-photo-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.92);
}

.photo-caption {
    position: absolute;
    bottom: 0.6rem;
    right: 0.8rem;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    color: #fde047;
}

/* ==========================================================================
   Items del Menú (Estilo Texto Dotted Leader de ID Virtual)
   ========================================================================== */
.menu-items-group {
    padding: 0 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.menu-dish-item {
    background: rgba(24, 24, 27, 0.75);
    border: 1px solid #27272a;
    border-radius: var(--radius-md);
    padding: 1.1rem;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.menu-dish-item:hover {
    border-color: #52525b;
    background: #202024;
    transform: translateY(-2px);
}

.dish-header-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.dish-title {
    font-family: 'Bangers', cursive;
    font-size: 1.55rem;
    letter-spacing: 0.04em;
    color: #ffffff;
    line-height: 1.1;
}

.dish-dots {
    flex-grow: 1;
    border-bottom: 2px dotted #52525b;
    margin: 0 0.6rem;
    opacity: 0.5;
}

.dish-price {
    font-family: 'Bangers', cursive;
    font-size: 1.65rem;
    letter-spacing: 0.03em;
    color: var(--accent-yellow);
    white-space: nowrap;
}

.dish-ingredients {
    font-size: 0.85rem;
    font-weight: 700;
    color: #e4e4e7;
    text-transform: uppercase;
    line-height: 1.35;
    margin-bottom: 0.45rem;
}

.dish-desc {
    font-size: 0.82rem;
    color: var(--text-subtle);
    line-height: 1.4;
    margin-bottom: 0.85rem;
}

.dish-footer-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.6rem;
    border-top: 1px dashed #333;
}

.extra-notice {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-yellow);
    font-style: italic;
}

.btn-order-dish {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--primary-red);
    color: white;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-order-dish:hover {
    background: var(--primary-red-hover);
    transform: scale(1.04);
}

/* ==========================================================================
   Separador con Puntos estilo "..........................................."
   ========================================================================== */
.dotted-divider-block {
    text-align: center;
    color: #71717a;
    font-size: 1.5rem;
    letter-spacing: 0.15em;
    padding: 1.5rem 1rem 0.5rem;
    user-select: none;
}

/* ==========================================================================
   Footer Estilo ID Virtual Mx (Yellowtail + Powered By)
   ========================================================================== */
.site-footer {
    text-align: center;
    padding: 2.5rem 1.2rem 3rem;
    background: #000000;
    border-top: 1px solid #222;
}

.thanks-text {
    font-family: 'Yellowtail', cursive;
    font-size: 2.8rem;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.footer-contact-info {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.footer-contact-info a {
    color: var(--accent-yellow);
    font-weight: 700;
    text-decoration: none;
}

.powered-by-brand {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-gold);
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.copyright-text {
    font-size: 0.8rem;
    color: #71717a;
}

/* ==========================================================================
   Barra Flotante de Carrito
   ========================================================================== */
.floating-order-bar {
    position: fixed;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    width: calc(100% - 2.4rem);
    max-width: 580px;
    background: linear-gradient(135deg, #15803d, #166534);
    color: white;
    padding: 0.85rem 1.2rem;
    border-radius: var(--radius-full);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 90;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid #22c55e;
}

.floating-order-bar.active {
    transform: translateX(-50%) translateY(0);
}

.order-bar-counter {
    background: white;
    color: #15803d;
    font-weight: 900;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.order-bar-total {
    font-family: 'Bangers', cursive;
    font-size: 1.4rem;
    letter-spacing: 0.03em;
    color: var(--accent-yellow);
}

.order-bar-btn-pill {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* ==========================================================================
   Modales (Personalización, Carrito, QR)
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

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

.modal-box {
    background: #18181b;
    border: 1px solid #3f3f46;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 1.5rem;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

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

.modal-drag-bar {
    width: 40px;
    height: 4px;
    background: #52525b;
    border-radius: var(--radius-full);
    margin: 0 auto 1.2rem;
}

.modal-close-icon {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    width: 32px;
    height: 32px;
    background: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.option-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--accent-yellow);
    margin: 1rem 0 0.4rem;
    text-transform: uppercase;
}

.option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.8rem;
    background: #27272a;
    border: 1px solid #3f3f46;
    border-radius: var(--radius-sm);
    margin-bottom: 0.4rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
}

.option-row input {
    margin-right: 0.6rem;
    accent-color: var(--primary-red);
    width: 18px;
    height: 18px;
}

.custom-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #27272a;
    border: 1px solid #3f3f46;
    border-radius: var(--radius-sm);
    color: white;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    margin-top: 0.35rem;
}

.custom-input:focus {
    border-color: var(--primary-red);
}

.qty-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin: 1.2rem 0;
}

.stepper-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #27272a;
    border: 1px solid #52525b;
    color: white;
    font-size: 1.3rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stepper-num {
    font-family: 'Bangers', cursive;
    font-size: 1.8rem;
    color: var(--accent-yellow);
    min-width: 25px;
    text-align: center;
}

.btn-modal-add {
    width: 100%;
    background: var(--whatsapp-green);
    color: white;
    font-size: 1rem;
    font-weight: 800;
    padding: 0.95rem;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
}

.btn-modal-add:hover {
    background: #1eb855;
}

/* Toast */
.menu-toast {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%) translateY(-40px);
    background: #ffffff;
    color: #000000;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 0.65rem 1.2rem;
    border-radius: var(--radius-full);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 2000;
    opacity: 0;
    transition: all 0.25s ease;
}

.menu-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Nuevos Estilos: Branding Sarita, Navegación de Categorías y Notas de Servicio
   ========================================================================== */
.brand-subname {
    color: var(--accent-yellow);
    text-shadow: 3px 3px 0px var(--primary-red), -1px -1px 0px #000;
}

/* Barra de Navegación de Categorías Sticky */
.category-nav-bar {
    position: sticky;
    top: 0;
    z-index: 85;
    background: rgba(12, 10, 9, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-red);
    display: flex;
    overflow-x: auto;
    padding: 0.65rem 0.8rem;
    gap: 0.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

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

.cat-nav-pill {
    white-space: nowrap;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
    color: #e4e4e7;
    background: #27272a;
    border: 1px solid #3f3f46;
    transition: var(--transition);
}

.cat-nav-pill:hover,
.cat-nav-pill.active {
    background: var(--primary-red);
    color: #ffffff;
    border-color: #ef4444;
    transform: translateY(-1px);
}

/* Franja Dorada para Notas de Servicio */
.section-strip-gold {
    background: linear-gradient(135deg, #a16207, #78350f) !important;
    border-top: 2px solid #eab308 !important;
    border-bottom: 2px solid #713f12 !important;
}

/* Badge Informativo de Categoría */
.category-info-badge {
    background: rgba(250, 204, 21, 0.08);
    border: 1px dashed rgba(250, 204, 21, 0.6);
    border-radius: var(--radius-md);
    padding: 0.65rem 0.9rem;
    margin: 0.9rem 1.2rem 1.2rem;
    font-size: 0.82rem;
    color: #fef08a;
    text-align: center;
    line-height: 1.45;
}

.category-info-badge strong {
    color: var(--accent-yellow);
}

/* Tarjetas de Notas de Servicio */
.service-notes-container {
    padding: 0 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.2rem;
    margin-bottom: 1.5rem;
}

.service-note-card {
    background: #18181b;
    border: 1px solid #3f3f46;
    border-radius: var(--radius-md);
    padding: 1.1rem 1.2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: var(--transition);
}

.service-note-card:hover {
    border-color: #71717a;
    transform: translateY(-2px);
}

.service-note-card.highlight-card {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.08);
}

.service-note-card.info-card {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
}

.service-note-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.service-note-title {
    font-weight: 800;
    font-size: 0.95rem;
    color: #ffffff;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.service-note-desc {
    font-size: 0.85rem;
    color: #e4e4e7;
    line-height: 1.45;
}

.note-subtext {
    font-size: 0.78rem;
    color: #a1a1aa;
    display: inline-block;
    margin-top: 0.2rem;
}

/* Modal Extra Options */
.extra-toggle-box {
    background: #27272a;
    border: 1px dashed var(--accent-yellow);
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.9rem;
    margin-top: 0.8rem;
}

.extra-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
}

.extra-toggle-row input {
    accent-color: var(--accent-yellow);
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
}

