/* VARIABLES DE DISEÑO PREMIUM (FERIA Y MODERNIDAD) */
:root {
    --primary: #0f5132;          /* Verde Feria profundo */
    --primary-light: #1c7c4e;    /* Verde claro vibrante */
    --primary-dark: #072a1a;     /* Verde muy oscuro para headers */
    --accent: #d4af37;           /* Dorado de albero / oro */
    --accent-hover: #ba962b;
    --bg-alb: #fdfbf7;           /* Blanco roto / marfil de caseta */
    --bg-page: #f2efe9;          /* Albero muy suave de fondo */
    --text-color: #2b3a32;
    --text-muted: #5a6b61;  /* Oscurecido para mejor contraste (manual de estilo) */
    --bg-card: #ffffff;
    
    --success: #198754;
    --danger: #dc3545;
    --warning: #ffc107;
    
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --border-radius-m: 16px;
    --border-radius-s: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 10px 25px rgba(15, 42, 26, 0.08);
}

/* RESET E INSTALACIÓN BÁSICA */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-page);
    color: var(--text-color);
    line-height: 1.5;
    overflow-x: hidden;
}

/* CONTENEDOR DEL SIMULADOR EN ESCRITORIO */
.simulator-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* Panel de información de la izquierda (solo visible en pantallas medianas/grandes) */
.simulator-info-panel {
    flex: 1;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.info-badge {
    background-color: var(--primary);
    color: white;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    width: fit-content;
    letter-spacing: 0.5px;
}

.simulator-info-panel h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--primary-dark);
    font-weight: 800;
    line-height: 1.2;
}

.simulator-info-panel p {
    color: var(--text-muted);
    font-size: 1rem;
}

.simulation-instructions {
    background-color: var(--bg-card);
    border-radius: var(--border-radius-m);
    padding: 1.5rem;
    box-shadow: var(--shadow-premium);
    border-left: 5px solid var(--accent);
}

.simulation-instructions h3 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.simulation-instructions ol {
    margin-left: 1.25rem;
    font-size: 0.9rem;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-note {
    font-size: 0.85rem !important;
    background-color: #e3ede7;
    color: var(--primary-dark) !important;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
}

/* EL DISPOSITIVO MÓVIL SIMULADO */
.phone-device {
    /* Medidas reales de un iPhone 16 Pro Max: 440 x 956 puntos.
       Se escala para que quepa en el escritorio, pero por dentro
       la app trabaja con el tamaño exacto del teléfono. */
    width: 464px;   /* 440 de pantalla + 12 de marco a cada lado */
    height: 1046px; /* 24 de marco + 38 de barra de estado + 28 de barra del simulador + 956 de pantalla */
    transform: scale(var(--escala-telefono, 0.82));
    transform-origin: top center;
    margin-bottom: calc(-1046px * (1 - var(--escala-telefono, 0.82)));
    background-color: #000000;
    border-radius: 44px;
    padding: 12px; /* Borde del teléfono */
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 0 2px #333333;
    position: relative;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

/* Elementos físicos del móvil (Notch, altavoz, etc) */
.phone-notch {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background-color: #000000;
    border-radius: 0 0 16px 16px;
    z-index: 1000;
}

.phone-speaker {
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background-color: #222222;
    border-radius: 2px;
    z-index: 1001;
}

.pantalla-real {
    width: 440px;
    height: 956px;
    flex: none;
    border: 0;
    display: block;
    background-color: var(--bg-page);
}

/* Pantalla del móvil */
.phone-screen {
    width: 100%;
    height: 100%;
    background-color: var(--bg-page);
    border-radius: 36px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    border: none;
}

/* Status Bar de la simulación móvil */
.phone-status-bar {
    height: 38px;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    background-color: var(--primary-dark);
    z-index: 999;
}

.status-icons {
    display: flex;
    gap: 0.5rem;
}

/* Variante sobria para las pantallas operativas de la presentación. */
.interfaz-profesional .app-logo-emoji,
.interfaz-profesional .pulse-icon,
.interfaz-profesional .btn-icon,
.interfaz-profesional .toast-icon {
    display: none;
}

.interfaz-profesional .menu-item-img {
    width: 66px;
    padding: 0.4rem;
    color: var(--primary-dark);
    font-family: var(--font-heading);
    /* !important: más abajo, la regla para móviles agranda .menu-item-img a
       2.2rem con !important para los iconos antiguos. Sin esta prioridad, en
       el teléfono la palabra COMIDA/BEBIDA se dibujaba a 39 px dentro de una
       caja de 66 y se salía por encima del nombre del producto. */
    font-size: 0.62rem !important;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.15;
    text-align: center;
    overflow: hidden;
}

/* App Header (Dentro del Móvil) */
.mobile-app-header {
    background-color: var(--primary-dark);
    color: white;
    padding: 1rem 1.25rem 0.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--accent);
}

.app-header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.app-logo-emoji {
    font-size: 1.5rem;
}

.mobile-app-header h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.1;
}

.header-sub {
    font-size: 1.05rem;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.mobile-select-socio {
    background-color: rgba(255,255,255,0.12);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-weight: 600;
    max-width: 140px;
    outline: none;
    cursor: pointer;
}

.mobile-select-socio option {
    background-color: var(--primary-dark);
    color: white;
}

/* ÁREA DE CONTENIDO SCROLLABLE DEL MÓVIL */
.phone-content-scrollable {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 75px; /* Altura para no pisar bottom nav */
    scrollbar-width: none; /* Ocultar scrollbar en Firefox */
}

.phone-content-scrollable::-webkit-scrollbar {
    display: none; /* Ocultar scrollbar en Chrome/Safari */
}

/* Tabs Mobile */
.mobile-tab-content {
    display: none;
    animation: fadeMobile 0.3s ease;
}

.mobile-tab-content.active {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Tarjetas e Items Mobile */
.mobile-balance-card {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: var(--border-radius-m);
    padding: 1.25rem;
    position: relative;
    box-shadow: var(--shadow-premium);
    overflow: hidden;
}

.mobile-balance-card::after {
    content: "";
    position: absolute;
    bottom: -15px;
    right: -10px;
    font-size: 5rem;
    opacity: 0.08;
    transform: rotate(-15deg);
}

.mb-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.status-tag {
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.status-tag.inside, .status-tag.Dentro {
    background-color: #d1e7dd;
    color: var(--success);
}

.status-tag.outside, .status-tag.Fuera {
    background-color: #f8d7da;
    color: var(--danger);
}

.mb-amount-row {
    margin: 0.5rem 0;
    display: flex;
    align-items: baseline;
}

.mb-currency {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    margin-right: 0.2rem;
}

.mb-amount {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.mb-progress-bar {
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin: 0.5rem 0 1rem 0;
}

.mb-progress-fill {
    height: 100%;
    background: var(--accent);
    transition: width 0.4s ease;
}

.mb-stats {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 0.5rem;
}

.stat-lbl {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    display: block;
    text-transform: uppercase;
}

.stat-num {
    font-size: 0.85rem;
    font-weight: 700;
}

/* Tarjeta estándar de sección móvil */
.mobile-section-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius-m);
    padding: 1.25rem;
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(15, 42, 26, 0.03);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 0.75rem;
    border-left: 3px solid var(--accent);
    padding-left: 0.5rem;
}

/* QR Sección Móvil */
.mobile-qr-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0.5rem auto 1rem auto;
    background-color: white;
    padding: 0.5rem;
    border-radius: 12px;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.mobile-qr-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-qr-placeholder svg {
    width: 100%;
    height: 100%;
}

.mobile-qr-laser {
    position: absolute;
    left: 8px;
    right: 8px;
    height: 2px;
    background-color: var(--primary);
    box-shadow: 0 0 5px var(--primary);
    animation: qr-scan-mobile 2.5s ease-in-out infinite;
}

.mobile-card-subtext {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 0.75rem;
}

.socio-card-id {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    background-color: #f7f6f2;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

/* Alertas */
.mobile-alert-info {
    background-color: #fef8e8;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

/* Invitados */
.mobile-guests-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.guest-item {
    background-color: #fcfcfc;
    border: 1px solid #ededed;
    border-radius: var(--border-radius-s);
    padding: 1rem 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.guest-meta h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.guest-meta p {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Menú Comida/Bebida en Móvil */
.menu-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mobile-menu-tabs {
    display: flex;
    gap: 0.25rem;
}

.mobile-menu-tab-btn {
    border: none;
    background-color: #f0efe9;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-color);
    transition: var(--transition);
}

.mobile-menu-tab-btn.active {
    background-color: var(--primary);
    color: white;
}

.mobile-menu-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.menu-item {
    display: flex;
    border: 1px solid #ededed;
    border-radius: 12px;
    overflow: hidden;
    /* Alto mínimo, no fijo: la ficha crece con el texto que tenga cada plato.
       Con 70 px fijos, las descripciones largas se salían por arriba y por
       abajo y se comían el nombre y el precio. */
    min-height: 70px;
    background-color: #ffffff;
    align-items: stretch;
    transition: var(--transition);
}

.menu-item-img {
    width: 60px;
    flex: 0 0 60px;
    /* La miniatura se queda cuadrada arriba aunque la ficha crezca */
    align-self: flex-start;
    aspect-ratio: 1 / 1;
    background-color: #f9f8f4;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    position: relative;
    border-right: 1px solid #f2efe9;
}

.interfaz-profesional .menu-item-img.has-product-image {
    width: 70px;
    flex: 0 0 70px;
    padding: 0;
    background-color: #ffffff;
}

.menu-item-img.has-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-item-type {
    position: absolute;
    top: 2px;
    left: 2px;
    font-size: 0.8rem;
    padding: 0.1rem 0.25rem;
}

.menu-item-details {
    flex: 1;
    padding: 0.5rem 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.menu-item-details h4 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.menu-item-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    /* La descripción se ajusta en las líneas que haga falta y la ficha crece
       con ella. Antes se recortaba con puntos suspensivos a una sola línea de
       190 px, y en los platos de nombre largo se perdía media descripción.
       La tipografía es la misma en todas: lo que cambia es el alto de la caja. */
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
    max-width: none;
    line-height: 1.35;
}

.menu-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.1rem;
}

.menu-item-price {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary);
}

.btn-add {
    background-color: var(--primary-light);
    color: white;
    border: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Caja de Carrito en Móvil */
.mobile-cart-box {
    margin-top: 1rem;
    background-color: #faf9f6;
    border: 1px dashed var(--accent);
    border-radius: 12px;
    padding: 0.75rem;
    animation: slide-up 0.3s ease;
}

.m-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 0.25rem;
    margin-bottom: 0.5rem;
}

.m-cart-header h4 {
    font-size: 0.85rem;
    font-weight: 700;
}

.m-btn-clear {
    border: none;
    background: none;
    color: var(--danger);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

.m-cart-items {
    max-height: 120px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.cart-item-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.cart-item-qty {
    font-weight: 800;
    color: var(--primary);
}

.m-cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 700;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.m-btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
    width: 100%;
    padding: 0.6rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    text-align: center;
}

.m-btn-primary:active {
    background-color: var(--primary-dark);
}

/* Comandas Activas (Timeline) */
.mobile-orders-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.order-group {
    background-color: #faf9f6;
    border: 1px solid #eceae1;
    border-radius: var(--border-radius-s);
    padding: 0.75rem;
}

.order-group-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-bottom: 1px dashed #d1ceb8;
    padding-bottom: 0.25rem;
    margin-bottom: 0.5rem;
}

.order-subitem {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    margin-bottom: 0.25rem;
    border-left: 3px solid var(--secondary);
}

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

.order-subitem.comida { border-left-color: #e67e22; }
.order-subitem.bebida { border-left-color: #3498db; }

.subitem-status {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

.subitem-status.pendiente {
    background-color: #fff3cd;
    color: #856404;
}

.subitem-status.listo {
    background-color: #d1e7dd;
    color: #0f5132;
    animation: blink-green 2s infinite;
}

/* Historial de consumos en móvil */
.mobile-tx-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-tx-list tr {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    align-items: center;
}

.mobile-tx-list tr:last-child {
    border-bottom: none;
}

.card-badge {
    font-size: 0.8rem;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
}

.bg-red { background-color: #fce8e6; color: var(--danger); }
.bg-green { background-color: #e6f4ea; color: var(--success); }

/* TAB 2: PORTERO VIEW STYLES */
.mobile-title-block {
    text-align: center;
    margin-bottom: 0.5rem;
}

.mobile-title-block h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--primary-dark);
}

.mobile-title-block p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Visor de Cámara */
.mobile-viewfinder {
    aspect-ratio: 4/3;
    background-color: #0a0e0c;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: rgba(255,255,255,0.4);
}

.v-corner {
    position: absolute;
    width: 15px;
    height: 15px;
    border: 3px solid var(--accent);
}

.v-corner.tl { top: 12px; left: 12px; border-right: none; border-bottom: none; }
.v-corner.tr { top: 12px; right: 12px; border-left: none; border-bottom: none; }
.v-corner.bl { bottom: 12px; left: 12px; border-right: none; border-top: none; }
.v-corner.br { bottom: 12px; right: 12px; border-left: none; border-top: none; }

.v-laser {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 2px;
    background-color: #ef4444;
    box-shadow: 0 0 5px #ef4444;
    animation: scanner-move-mobile 2.5s ease-in-out infinite;
}

.v-text {
    text-align: center;
}

.v-text span {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.25rem;
}

.v-text p {
    font-size: 0.85rem;
}

.mobile-scanner-controls {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.m-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.m-select-full {
    width: 100%;
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid #ced4da;
    font-family: var(--font-body);
    font-size: 0.85rem;
}

.m-btn-success {
    background-color: var(--success);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
}

/* Resultados Acceso */
.m-result-empty {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.pulse-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.25rem;
    animation: pulse-icon 1.5s infinite;
}

.access-result-header {
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.access-allowed {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.access-denied {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

.result-details {
    background-color: #fcfcf9;
    border-radius: 8px;
    padding: 0.75rem;
    border-left: 3px solid var(--secondary);
}

.result-details.allowed { border-left-color: var(--success); }
.result-details.denied { border-left-color: var(--danger); }

#scanner-result-panel.alerta-acceso-bloqueado {
    border: 3px solid #a61b1b;
    box-shadow: 0 0 0 4px rgba(166, 27, 27, 0.12), 0 12px 30px rgba(86, 10, 10, 0.22);
}

.access-denied-critical {
    overflow: hidden;
    border: 2px solid #7f1010;
    border-radius: 10px;
    background: #a61b1b;
    color: #ffffff;
    text-align: center;
}

.access-denied-critical .denied-critical-kicker {
    padding: 0.55rem 0.75rem;
    background: #710d0d;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.access-denied-critical .denied-critical-body {
    padding: 1rem 0.9rem;
}

.access-denied-critical h4 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1.15;
}

.access-denied-critical p {
    margin: 0.65rem 0 0;
    font-size: 0.88rem;
    line-height: 1.4;
}

.access-denied-critical .denied-critical-action {
    margin-top: 0.9rem;
    padding: 0.65rem;
    border-radius: 7px;
    background: #ffffff;
    color: #7f1010;
    font-family: var(--font-heading);
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.result-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

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

.result-label {
    color: var(--text-muted);
    font-weight: 600;
}

.result-value {
    font-weight: 700;
}

/* Presencia y Aforo */
.aforo-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.aforo-badge {
    background-color: #e6f4ea;
    color: var(--success);
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-weight: 600;
}

.presence-block h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.presence-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    background-color: #fcfbf8;
    padding: 0.5rem;
    border-radius: 8px;
    min-height: 40px;
    border: 1px solid #f2efe9;
}

.presence-tag {
    background-color: white;
    border: 1px solid #d1ceb8;
    border-radius: 12px;
    padding: 0.15rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-dark);
}

/* TAB 3: COCINA/BAR SERVICE STYLES */
.bg-bar-card {
    border-top: 4px solid #3498db;
}

.bg-kitchen-card {
    border-top: 4px solid #e67e22;
}

.col-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.col-header h3 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.m-count-badge {
    background-color: var(--primary-dark);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comandas-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.kitchen-card {
    background-color: #faf9f6;
    border: 1px solid #eceae1;
    border-radius: var(--border-radius-s);
    padding: 0.75rem;
}

.kitchen-card-head {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 0.25rem;
    margin-bottom: 0.5rem;
}

.k-socio-name {
    font-weight: 700;
    color: var(--primary-dark);
}

.k-time {
    color: var(--text-muted);
}

.kitchen-card-body {
    margin-bottom: 0.5rem;
}

.k-item-row {
    font-size: 0.8rem;
    font-weight: 600;
}

.k-item-qty {
    color: var(--primary);
    font-weight: 800;
}

.btn-kitchen-action {
    width: 100%;
    border: none;
    padding: 0.4rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    font-family: var(--font-heading);
    text-align: center;
}

.bg-bar-card .btn-kitchen-action {
    background-color: #ebf5fb;
    color: #2980b9;
    border: 1px solid #aed6f1;
}

.bg-bar-card .btn-kitchen-action:active {
    background-color: #2980b9;
    color: white;
}

.bg-kitchen-card .btn-kitchen-action {
    background-color: #fef5e7;
    color: #d35400;
    border: 1px solid #f5cba7;
}

.bg-kitchen-card .btn-kitchen-action:active {
    background-color: #d35400;
    color: white;
}

/* BARRA DE NAVEGACIÓN INFERIOR SIMULADA */
.mobile-bottom-nav {
    position: absolute;
    bottom: 20px; /* Sobre la barra de Home */
    left: 0;
    right: 0;
    height: 54px;
    background-color: #ffffff;
    border-top: 1px solid #ededed;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 999;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.03);
}

.m-nav-item {
    background: none;
    border: none;
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.m-nav-icon {
    font-size: 1.15rem;
    line-height: 1;
    margin-bottom: 0.15rem;
}

.m-nav-label {
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-heading);
}

.m-nav-item.active {
    color: var(--primary);
}

.m-nav-item.active .m-nav-icon {
    transform: scale(1.1);
}

.m-nav-badge {
    position: absolute;
    top: 5px;
    right: 32%;
    background-color: var(--danger);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Indicador de barra home física de iOS */
.phone-home-indicator {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 4px;
    background-color: #222222;
    border-radius: 2px;
    z-index: 1000;
}

/* TOASTS GLOBAL NOTIFICATIONS */
.toast-container {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background-color: white;
    box-shadow: 0 10px 25px rgba(15, 42, 26, 0.12);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-left: 4px solid var(--primary);
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 250px;
    max-width: 320px;
}

.toast.show {
    transform: translateX(0);
}

.toast.success { border-left-color: var(--success); }
.toast.danger { border-left-color: var(--danger); }
.toast.info { border-left-color: #3498db; }

/* ANIMACIONES */
@keyframes qr-scan-mobile {
    0% { top: 8px; }
    50% { top: calc(100% - 10px); }
    100% { top: 8px; }
}

@keyframes scanner-move-mobile {
    0% { top: 12px; }
    50% { top: calc(100% - 14px); }
    100% { top: 12px; }
}

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

@keyframes slide-up {
    from { transform: translateY(15px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

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

@keyframes blink-green {
    0% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.4); }
    70% { box-shadow: 0 0 0 5px rgba(25, 135, 84, 0); }
    100% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0); }
}

/* COMPORTAMIENTO DE ADAPTACIÓN (RESPONSIVE) */

/* Si abrimos desde un móvil o tablet REAL, o instalada como app (PWA):
   solo se ve el diseño de la app, sin la literatura de alrededor */
@media (max-width: 820px), (display-mode: standalone) {
    .sim-nav-bar {
        display: none !important; /* Ocultar barra de simulación (Ir al Lobby) */
    }

    html, body {
        background-color: var(--bg-page);
        touch-action: manipulation;   /* Sin zoom por doble toque */
        overscroll-behavior: none;    /* Sin rebote elástico al hacer scroll */
        overflow-x: hidden;           /* Sin desplazamiento lateral */
    }

    /* Letra un poco más grande en móvil (todas las medidas en rem escalan con esto) */
    html {
        font-size: 18px;
    }

    /* Iconos del menú de comida/bebida más grandes */
    .menu-item-img {
        font-size: 2.2rem !important;
    }

    /* iOS hace zoom automático al tocar campos con letra menor de 16px: lo evitamos */
    input, select, textarea {
        font-size: 16px !important;
    }
    
    .simulator-wrapper {
        padding: 0;
        min-height: 100vh;
    }
    
    .simulator-info-panel {
        display: none; /* Ocultar el panel de info exterior */
    }
    
    .phone-device {
        width: 100vw;
        height: 100vh;
        height: 100dvh; /* Altura real visible en móvil (descuenta las barras del navegador) */
        border-radius: 0;
        padding: 0;
        box-shadow: none;
        /* En el teléfono no se reduce nada: la reducción es solo del simulador */
        transform: none;
        margin-bottom: 0;
    }
    
    .phone-screen {
        border-radius: 0;
        border: none;
    }
    
    .phone-notch, .phone-speaker, .phone-home-indicator {
        display: none; /* Ocultar partes de hardware en movil real */
    }
    
    .phone-status-bar {
        display: none; /* Dejar que la barra del SO real lo cubra */
    }
    
    .mobile-bottom-nav {
        bottom: 0;
        padding-bottom: env(safe-area-inset-bottom);
        height: calc(56px + env(safe-area-inset-bottom));
    }
}

/* SEVILLA CASETA DE FERIA DECORATION STYLES */
.caseta-stripes-decor {
    height: 10px;
    background: repeating-linear-gradient(90deg, 
        #0f5132 0px, 
        #0f5132 10px, 
        #ffffff 10px, 
        #ffffff 20px
    );
    border-bottom: 2px solid var(--accent);
    width: 100%;
}

.mobile-app-header {
    border-bottom: none !important; /* Managed by the stripes banner */
}

.back-link {
    font-family: var(--font-heading);
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 1rem;
    display: inline-block;
    transition: var(--transition);
}
.back-link:hover {
    color: var(--accent);
}

/* --- ESTILOS DE LOS MODALES DE PAGO (CHECKOUT) --- */
.mobile-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    animation: fadeIn 0.25s ease-out;
}

.mobile-modal-sheet {
    background-color: #ffffff;
    width: 100%;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: slideUp 0.3s cubic-bezier(0.1, 0.76, 0.55, 0.94);
    box-sizing: border-box;
}

.modal-sheet-handle {
    width: 40px;
    height: 4px;
    background-color: #e0e0e0;
    border-radius: 2px;
    align-self: center;
    margin-bottom: 0.25rem;
}

.modal-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-sheet-header h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

.modal-sheet-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    max-height: 380px;
    padding-bottom: 1rem;
}

/* Caja del Resumen de Pedido */
.checkout-summary-box {
    background-color: #fcfbfa;
    border: 1px solid #eae7e2;
    border-radius: 12px;
    padding: 1rem;
}

.checkout-summary-box h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    border-bottom: 1px dashed #eae7e2;
    padding-bottom: 0.25rem;
}

.checkout-items-scroll {
    max-height: 120px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-right: 0.25rem;
}

.checkout-item-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #444;
}

.checkout-summary-total {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eae7e2;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-dark);
}

/* Caja de Saldo */
.checkout-balance-box {
    background-color: #eef7f2;
    border: 1px solid #d4ecd5;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    color: #1b5e20;
}

.checkout-balance-box strong {
    font-size: 1.05rem;
    color: #2e7d32;
}

/* Botones de acción del checkout */
.checkout-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkout-pay-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background-color: #ffffff;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
    width: 100%;
}

.checkout-pay-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.checkout-pay-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f7f6f2;
}

.checkout-pay-btn.saldo-btn {
    border-color: #d4ecd5;
    background-color: #f9fdfa;
}
.checkout-pay-btn.saldo-btn:hover:not(:disabled) {
    border-color: #81c784;
}

.checkout-pay-btn.tarjeta-btn {
    border-color: #bbdefb;
    background-color: #f5fafd;
}
.checkout-pay-btn.tarjeta-btn:hover:not(:disabled) {
    border-color: #64b5f6;
}

.checkout-pay-btn.recarga-btn {
    border-color: #ffe082;
    background-color: #fffdf5;
}
.checkout-pay-btn.recarga-btn:hover:not(:disabled) {
    border-color: #ffd54f;
}

.checkout-pay-btn .btn-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.checkout-pay-btn .btn-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.checkout-pay-btn .btn-text strong {
    font-size: 0.88rem;
    color: var(--primary-dark);
}

.checkout-pay-btn .btn-text span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Simulador de Tarjeta */
.credit-card-preview {
    background: linear-gradient(135deg, #1b3a4b 0%, #061c27 100%);
    color: white;
    padding: 1.25rem;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(6,28,39,0.25);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-family: 'Courier New', Courier, monospace;
    box-sizing: border-box;
}

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

.card-logo-chip .chip {
    font-size: 1.5rem;
}

.card-logo-chip .visa {
    font-weight: 900;
    font-style: italic;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.card-number {
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-align: center;
    word-spacing: 4px;
}

.card-footer-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.card-footer-info .lbl {
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.15rem;
}

.card-footer-info .val {
    font-size: 0.85rem;
    font-weight: bold;
}

.card-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
}

/* Opciones de Recarga */
.topup-options-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.topup-opt-btn {
    background-color: #f7f6f2;
    border: 1px solid #e0e0e0;
    padding: 0.75rem 0.25rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary-dark);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.topup-opt-btn.selected {
    background-color: var(--accent);
    color: var(--primary-dark);
    border-color: var(--accent-hover);
    box-shadow: 0 4px 8px rgba(212,175,55,0.25);
}

/* Keyframes de animación */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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


/* ==========================================================
   Secciones plegables de la pantalla del socio.
   Usan <details>/<summary> nativos: sin JavaScript, no se
   pueden romper y funcionan en cualquier navegador.
   ========================================================== */
.plegable {
    background-color: var(--bg-card);
    border-radius: var(--border-radius-m);
    box-shadow: var(--shadow-premium);
    overflow: hidden;
}
.plegable > summary {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.1rem;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    -webkit-tap-highlight-color: transparent;
}
.plegable > summary::-webkit-details-marker { display: none; }
.plegable > summary::marker { content: ""; }
.plegable > summary:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }

.plegable .cuenta {
    background-color: var(--primary-light);
    color: #ffffff;
    border-radius: 12px;
    padding: 2px 9px;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.5;
}
.plegable .cuenta:empty { display: none; }

.plegable .flecha {
    margin-left: auto;
    color: var(--text-muted);
    flex: none;
    transition: transform 0.2s ease;
}
.plegable[open] .flecha { transform: rotate(180deg); }

/* La tarjeta que va dentro pierde su marco: ya lo pone el plegable */
.plegable .mobile-section-card {
    box-shadow: none;
    border-radius: 0;
    margin-bottom: 0;
    padding-top: 0;
}
.plegable .mobile-section-card .section-title { display: none; }

@media (prefers-reduced-motion: reduce) {
    .plegable .flecha { transition: none; }
}


/* El contenido de cada plato, con su margen interior, ahora que la ficha crece */
.menu-item > div:not(.menu-item-img) {
    padding: 0.55rem 0.7rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
}
.interfaz-profesional .menu-item-img.has-product-image {
    align-self: flex-start;
    aspect-ratio: 1 / 1;
}


/* Sello de versión: discreto al pie, y bien visible si hay desfase */
.sello-version {
    margin: 1.2rem 0 0.6rem;
    text-align: center;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    opacity: 0.75;
}
.sello-version.desfasada {
    color: #ffffff;
    background-color: var(--danger);
    opacity: 1;
    font-weight: 700;
    padding: 0.5rem;
    border-radius: 6px;
}

/* ==========================================================
   VERSION 2.03 — Pantalla del socio por botones y paneles
   El inicio solo enseña accesos; cada seccion se abre encima,
   a pantalla completa, con su aspa para salir.
   ========================================================== */
.acceso-btn {
    width: 100%;
    /* Trama de codigo QR muy diluida, para distinguirlo del resto de botones */
    background-color: #14683e;
    background-image: linear-gradient(90deg, rgba(20,104,62,0.85) 40%, rgba(20,104,62,0.79) 100%), url("imagenes/trama-qr.svg");
    background-repeat: no-repeat, no-repeat;
    background-position: center, right -18px center;
    background-size: cover, auto 150%;
    background-blend-mode: normal, soft-light;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.42);
    border-radius: 22px;
    padding: 2.4rem 1rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.7rem;
    cursor: pointer;
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.28), 0 12px 24px rgba(7, 42, 26, 0.42);
    transition: var(--transition);
}

.acceso-btn:active { transform: scale(0.985); }

.boton-seccion {
    width: 100%;
    background-color: var(--primary-dark);
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 22px;
    padding: 2.4rem 1.3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    cursor: pointer;
    font-family: var(--font-body);
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.22), 0 12px 24px rgba(7, 42, 26, 0.38);
    transition: var(--transition);
}

.boton-seccion:active { transform: scale(0.985); }

.boton-seccion .bs-izq,
.boton-seccion .bs-der { display: flex; align-items: center; gap: 0.65rem; }

.boton-seccion .bs-ico { font-size: 1.15rem; }

.boton-seccion b {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    color: #fff;
    letter-spacing: 0.01em;
}

.boton-seccion .cuenta {
    background-color: var(--accent);
    color: var(--primary-dark);
    border-radius: 999px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    padding: 0.22rem 0.75rem;
}

.boton-seccion .cuenta:empty { display: none; }

/* El aviso de recogida se pone por encima de todo, tenga el socio la
   pantalla que tenga abierta: es lo único que no puede pasar inadvertido. */
#aviso-listo {
    position: fixed;
    top: 0.6rem;
    left: 0.6rem;
    right: 0.6rem;
    z-index: 3000;
}


/* Escala de verdes: del verde de "Acceder a la caseta" al verde oscuro
   de "Mi cuenta y consumos", pasando por dos tonos intermedios. */
.boton-seccion:nth-of-type(2) {
    background-color: #0c4429;
    background-image: linear-gradient(90deg, rgba(12,68,41,0.85) 40%, rgba(12,68,41,0.79) 100%), url("imagenes/trama-invitados.svg");
    background-repeat: no-repeat, no-repeat;
    background-position: center, right -18px center;
    background-size: cover, auto 150%;
    background-blend-mode: normal, soft-light;
}
.boton-seccion:nth-of-type(3) {
    background-color: #0a3722;
    background-image: linear-gradient(90deg, rgba(10,55,34,0.85) 40%, rgba(10,55,34,0.79) 100%), url("imagenes/trama-carta.svg");
    background-repeat: no-repeat, no-repeat;
    background-position: center, right -18px center;
    background-size: cover, auto 150%;
    background-blend-mode: normal, soft-light;
}
/* Notificaciones: campana de fondo, en verde y en rojo */
.boton-seccion:nth-of-type(5) {
    background-image: linear-gradient(90deg, rgba(7,42,26,0.85) 40%, rgba(7,42,26,0.79) 100%), url("imagenes/trama-avisos.svg");
    background-repeat: no-repeat, no-repeat;
    background-position: center, right 10px center;
    background-size: cover, auto 92%;
    background-blend-mode: normal, soft-light;
}

.boton-seccion.con-avisos {
    background-image: linear-gradient(90deg, rgba(166,27,27,0.85) 40%, rgba(166,27,27,0.79) 100%), url("imagenes/trama-avisos.svg") !important;
    background-repeat: no-repeat, no-repeat;
    background-position: center, right 10px center;
    background-size: cover, auto 92%;
    background-blend-mode: normal, soft-light;
}

.boton-seccion:nth-of-type(4) {
    background-color: var(--primary-dark);
    background-image: linear-gradient(90deg, rgba(7,42,26,0.85) 40%, rgba(7,42,26,0.79) 100%), url("imagenes/trama-cuenta.svg");
    background-repeat: no-repeat, no-repeat;
    background-position: center, right 6px center;
    background-size: cover, auto 92%;
    background-blend-mode: normal, soft-light;
}

/* Notificaciones: en rojo solo cuando hay algo esperando */
.boton-seccion.con-avisos {
    background-color: #a61b1b;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.28), 0 12px 24px rgba(166, 27, 27, 0.45);
}

.boton-seccion.con-avisos .cuenta {
    background-color: #fff;
    color: #a61b1b;
}

.boton-seccion .bs-flecha { color: rgba(255,255,255,.55); font-size: 1.3rem; line-height: 1; }

/* --- Panel a pantalla completa --- */
.panel-pantalla {
    position: absolute;
    inset: 0;
    background-color: var(--bg-page);
    display: none;
    flex-direction: column;
    z-index: 60;
}

.panel-pantalla.abierto { display: flex; }

.panel-barra {
    background-color: #fff;
    border-bottom: 1px solid #e3ded4;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: none;
}

.panel-barra b {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.45rem;
    color: var(--primary-dark);
}

.panel-cerrar {
    width: 36px; height: 36px;
    border: none;
    border-radius: 10px;
    background-color: #eef0ec;
    color: #4b5a51;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    display: grid; place-items: center;
}

.panel-cerrar:active { background-color: #e0e4df; }

.panel-cuerpo {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.9rem;
}

.panel-cuerpo .mobile-section-card { margin-bottom: 0.9rem; }

body.con-panel { overflow: hidden; }
