/* ==========================================================================
   MINI MARQUESAS - ESTILOS MÓVILES Y SISTEMA DE AUTENTICACIÓN CHOCO-GOLD
   ========================================================================== */

:root {
    --choco-deep: #140703;
    --choco-card: #1c0a04;
    --choco-input: #100401;
    --gold-accent: #fbc531;
    --gold-caramel: #e67e22;
    --red-strawberry: #e74c3c;
    --green-success: #2ecc71;
    --cream-light: #fffaf0;
    --border-glass: rgba(255, 255, 255, 0.14);
}

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

/* Regla global indispensable para controlar las etapas del modal y vistas */
.hidden {
    display: none !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--choco-deep);
    color: var(--cream-light);
    overflow-x: hidden;
    padding-bottom: 40px;
}

/* --------------------------------------------------------------------------
   HEADER Y BOTÓN DE SESIÓN
   -------------------------------------------------------------------------- */
.choco-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(20, 7, 3, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 900;
}

.brand-badge {
    display: flex;
    flex-direction: column;
    line-height: 0.9;
}

.logo-script {
    font-family: 'Brush Script MT', cursive, sans-serif;
    font-size: 2.1rem;
    color: #ffffff;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}

.logo-sub {
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #ffffff;
    text-transform: uppercase;
}

.slogan-badge {
    font-size: 0.65rem;
    font-style: italic;
    color: var(--gold-accent);
    margin-top: 2px;
}

.choco-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-auth-wrapper {
    position: relative;
}

.auth-choco-btn {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--cream-light);
    height: 42px;
    padding: 0 13px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.auth-choco-btn.logged-in {
    background: rgba(251, 197, 49, 0.14);
    border: 1.5px solid var(--gold-accent);
    box-shadow: 0 2px 12px rgba(251, 197, 49, 0.2);
}

.auth-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-accent);
}

.auth-guest-text {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.auth-user-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.15;
}

.auth-user-name {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--gold-accent);
    max-width: 90px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auth-user-phone {
    font-size: 0.65rem;
    color: #d1c4bc;
}

/* Dropdown de Usuario Logeado */
.auth-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 235px;
    background: #1d0b05;
    border: 1.5px solid var(--gold-accent);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.9);
    z-index: 1100;
    animation: fadeInDrop 0.18s ease-out;
}

@keyframes fadeInDrop {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-header {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dropdown-greeting {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #a8948a;
}

.dropdown-name {
    font-size: 0.98rem;
    font-weight: 800;
    color: #ffffff;
}

.dropdown-phone {
    font-size: 0.78rem;
    color: var(--gold-accent);
    font-weight: 600;
}

.dropdown-gps-badge {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin: 10px 0;
}

.dropdown-item-btn {
    width: 100%;
    text-align: left;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid transparent;
    color: var(--cream-light);
    padding: 9px 10px;
    border-radius: 9px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 5px;
    transition: background 0.2s, border-color 0.2s;
}

.dropdown-item-btn:last-child {
    margin-bottom: 0;
}

.dropdown-item-btn:hover,
.dropdown-item-btn:active {
    background: rgba(251, 197, 49, 0.12);
    border-color: rgba(251, 197, 49, 0.35);
    color: var(--gold-accent);
}

.dropdown-item-btn.text-danger {
    color: #ff7675;
}

.dropdown-item-btn.text-danger:hover {
    background: rgba(231, 76, 60, 0.15);
    border-color: rgba(231, 76, 60, 0.4);
}

/* Botón Carrito */
.cart-trigger {
    background: var(--gold-accent);
    color: #120704;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(251, 197, 49, 0.4);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-trigger:active {
    transform: scale(0.92);
}

.cart-bubble {
    position: absolute;
    top: -3px;
    right: -3px;
    background: var(--red-strawberry);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 7px;
    border-radius: 12px;
    border: 2px solid var(--choco-deep);
}

.status-ribbon {
    margin-top: 70px;
    background: #c0392b;
    color: #fff;
    text-align: center;
    padding: 8px;
    font-size: 0.85rem;
    font-weight: bold;
}

/* --------------------------------------------------------------------------
   FRANJAS DIAGONALES DEL CATÁLOGO
   -------------------------------------------------------------------------- */
.ribbon-stream {
    margin-top: 70px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.flavor-ribbon {
    position: relative;
    width: 100%;
    min-height: 270px;
    padding: 45px 18px;
    margin: -35px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    clip-path: polygon(0 15%, 100% 0%, 100% 85%, 0% 100%);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.7);
    overflow: visible;
}

.flavor-ribbon:nth-child(even) {
    clip-path: polygon(0 0%, 100% 15%, 100% 100%, 0% 85%);
    flex-direction: row-reverse;
}

.theme-nutela { background: linear-gradient(145deg, #442013 0%, #170804 100%); }
.theme-pasteladochips { background: linear-gradient(145deg, #a7825b 0%, #301e14 100%); }
.theme-fresa { background: linear-gradient(145deg, #d31b2c 0%, #52060f 100%); }
.theme-chocobrownie { background: linear-gradient(145deg, #30170d 0%, #0d0503 100%); }
.theme-arequipe { background: linear-gradient(145deg, #db8813 0%, #542f02 100%); }
.theme-brownie { background: linear-gradient(145deg, #3d1c0f 0%, #140703 100%); }
.theme-caramelo { background: linear-gradient(145deg, #e66c0d 0%, #541d00 100%); }
.theme-chocolate { background: linear-gradient(145deg, #4c2214 0%, #170703 100%); }

.ribbon-info {
    position: relative;
    z-index: 25;
    flex: 1;
    padding: 0 10px;
    pointer-events: none;
}

.ribbon-info * {
    pointer-events: auto;
}

.ribbon-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
    margin-bottom: 5px;
}

.ribbon-desc {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.35;
    margin-bottom: 12px;
    max-width: 200px;
}

.ribbon-pricing {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
}

.price-usd {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--gold-accent);
}

.ribbon-media {
    flex: 0 0 175px;
    height: 230px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    cursor: pointer;
    perspective: 800px;
}

.ribbon-decor-back {
    position: absolute;
    width: 225px;
    max-width: none;
    height: auto;
    object-fit: contain;
    pointer-events: none;
    z-index: 1;
    filter: blur(2.5px) brightness(0.92) contrast(1.05);
    opacity: 0.85;
    transform-origin: center center;
    will-change: transform;
    animation: decorBackFloat 5s ease-in-out infinite alternate;
}

.tarrito-img {
    position: relative;
    width: 140px;
    height: auto;
    max-height: 185px;
    object-fit: contain;
    z-index: 5;
    filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.8));
    transition: transform 0.25s ease;
    cursor: pointer;
    will-change: transform;
    user-select: none;
}

.ribbon-decor-front {
    position: absolute;
    width: 100px;
    max-width: none;
    height: auto;
    object-fit: contain;
    pointer-events: none;
    z-index: 10;
    filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.55));
    transform-origin: center center;
    will-change: transform;
    animation: decorFrontFloatOdd 5s ease-in-out infinite alternate;
}

.flavor-ribbon:nth-child(even) .ribbon-decor-front {
    animation-name: decorFrontFloatEven;
}

@keyframes decorFrontFloatOdd {
    0% { transform: translate(-80px, -8px) rotate(-3deg) scale(0.95); }
    100% { transform: translate(-70px, -18px) rotate(2deg) scale(1); }
}

@keyframes decorFrontFloatEven {
    0% { transform: translate(80px, -8px) rotate(3deg) scale(0.95); }
    100% { transform: translate(70px, -18px) rotate(-2deg) scale(1); }
}

@keyframes decorBackFloat {
    0% { transform: translate(5px, -5px) rotate(2deg) scale(1.06); }
    100% { transform: translate(-6px, 8px) rotate(-3deg) scale(1.12); }
}

@keyframes jarJumpAnim {
    0%   { transform: translateY(0) scale(1); }
    30%  { transform: translateY(-34px) scale(1.15) rotate(-6deg); }
    55%  { transform: translateY(-10px) scale(0.95) rotate(3deg); }
    75%  { transform: translateY(-18px) scale(1.04) rotate(-2deg); }
    100% { transform: translateY(0) scale(1) rotate(0deg); }
}

.jar-jump {
    animation: jarJumpAnim 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
}

/* --------------------------------------------------------------------------
   BOTTOM SHEET: CHECKOUT
   -------------------------------------------------------------------------- */
.bottom-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
}

.bottom-sheet-modal {
    width: 100%;
    max-height: 90vh;
    background: #1b0a05;
    border-top: 2px solid var(--gold-accent);
    border-radius: 24px 24px 0 0;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--cream-light);
}

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

.sheet-handle {
    width: 45px;
    height: 5px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
    margin: 10px auto 4px auto;
}

.sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sheet-header h3 { font-size: 1.15rem; font-weight: 800; }
.sheet-close { background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; }

.sheet-body {
    padding: 16px 20px;
    overflow-y: auto;
    flex: 1;
}

.checkout-cart-box {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 14px;
}

.section-subtitle {
    font-size: 0.82rem;
    color: var(--gold-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.cart-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.cart-item-row:last-child { border-bottom: none; }
.cart-item-meta h4 { font-size: 0.95rem; color: #fff; }
.cart-item-meta span { font-size: 0.8rem; color: var(--gold-accent); }

.cart-qty-ctrl {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 3px 8px;
    gap: 12px;
}

.btn-qty {
    background: none;
    border: none;
    color: var(--gold-accent);
    font-size: 1.15rem;
    font-weight: bold;
    cursor: pointer;
    width: 22px;
    height: 22px;
}

/* Banner de sesión dentro del Checkout */
.checkout-auth-banner {
    background: rgba(251, 197, 49, 0.1);
    border: 1px dashed rgba(251, 197, 49, 0.4);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 14px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.checkout-auth-banner button {
    background: var(--gold-accent);
    color: #140703;
    border: none;
    padding: 6px 11px;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

/* Formularios generales y del Modal */
.marquesas-form .field-row,
.auth-form-body .field-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 11px;
}

.marquesas-form label,
.auth-form-body label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #dfd5cd;
    margin-bottom: 5px;
}

.marquesas-form input,
.auth-form-body input[type="text"],
.auth-form-body input[type="tel"],
.auth-form-body input[type="email"],
.auth-form-body input[type="password"] {
    background: var(--choco-input);
    border: 1px solid rgba(251, 197, 49, 0.25);
    padding: 11px 13px;
    border-radius: 9px;
    color: var(--cream-light);
    font-size: 0.92rem;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.marquesas-form input:focus,
.auth-form-body input:focus {
    outline: none;
    border-color: var(--gold-accent);
    box-shadow: 0 0 10px rgba(251, 197, 49, 0.3);
}

.marquesas-form input::placeholder,
.auth-form-body input::placeholder {
    color: rgba(255, 250, 240, 0.35);
    font-size: 0.84rem;
}

/* Evita que el autocompletado del teléfono ponga los inputs blancos */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--cream-light) !important;
    -webkit-box-shadow: 0 0 0px 1000px #120502 inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

.gps-box { margin: 14px 0; }

.btn-gps-pulse {
    width: 100%;
    padding: 11px;
    background: linear-gradient(135deg, #1e824c, #27ae60);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.25);
}

.gps-hint {
    font-size: 0.74rem;
    color: #bbb;
    margin-top: 6px;
    text-align: center;
}

.payment-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px;
    margin-top: 15px;
}

.payment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--gold-accent);
}

.bank-details {
    background: #110502;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 14px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.qr-pago-movil {
    max-width: 160px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0 auto 10px auto;
    display: block;
    border: 1px solid var(--gold-accent);
}

.bank-specs {
    text-align: left;
    font-size: 0.85rem;
    line-height: 2;
    color: #e1e1e1;
}

.btn-copy {
    background: #333;
    color: var(--gold-accent);
    border: none;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    margin-left: 8px;
}

.breakdown-box {
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
    padding-top: 10px;
    font-size: 0.85rem;
}

.breakdown-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.total-highlight {
    font-size: 1.15rem;
    color: var(--gold-accent);
    margin-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 6px;
}

.receipt-preview-container {
    margin-top: 12px;
    text-align: center;
}

.preview-title {
    font-size: 0.8rem;
    color: #aaa;
    display: block;
    margin-bottom: 6px;
}

#receipt-preview {
    max-width: 100%;
    max-height: 220px;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--gold-accent);
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.ocr-label {
    display: block;
    font-size: 0.8rem;
    font-weight: bold;
    margin-top: 6px;
    color: var(--gold-accent);
}

.btn-order-finish {
    width: 100%;
    margin-top: 15px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #fff;
    padding: 13px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
}

.btn-order-finish:disabled { background: #555; cursor: not-allowed; }

/* --------------------------------------------------------------------------
   MODAL DE AUTENTICACIÓN: LOGIN, REGISTRO Y MODIFICAR DATOS
   -------------------------------------------------------------------------- */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.86);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.auth-modal-card {
    background: var(--choco-card);
    border: 1.5px solid var(--gold-accent);
    border-radius: 20px;
    width: 100%;
    max-width: 390px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 22px 20px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95);
    animation: modalPop 0.22s ease-out;
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.auth-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cabecera en Modo Edición */
.auth-edit-header {
    margin-bottom: 14px;
    padding-right: 30px;
}

.auth-badge-step {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #140703;
    background: var(--gold-accent);
    padding: 2px 8px;
    border-radius: 6px;
    margin-bottom: 6px;
}

.auth-edit-header h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.auth-edit-header p {
    font-size: 0.78rem;
    color: #c7b9b0;
    line-height: 1.35;
}

/* Pestañas Login / Registro */
.auth-tabs {
    display: flex;
    border-bottom: 1px solid rgba(251, 197, 49, 0.2);
    margin-bottom: 14px;
    padding-right: 28px;
}

.auth-tab-btn {
    flex: 1;
    padding: 10px 6px;
    background: none;
    border: none;
    border-bottom: 2.5px solid transparent;
    color: #9e8c82;
    font-weight: 800;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-tab-btn.active {
    color: var(--gold-accent);
    border-bottom-color: var(--gold-accent);
}

.auth-step-desc {
    font-size: 0.8rem;
    color: #cfc2b9;
    line-height: 1.4;
    margin-bottom: 14px;
}

.auth-section-divider {
    display: flex;
    align-items: center;
    margin: 14px 0 10px 0;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--gold-accent);
}

.auth-section-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(251, 197, 49, 0.25);
    margin-left: 8px;
}

.auth-gps-card {
    background: rgba(0, 0, 0, 0.35);
    border: 1px dashed rgba(251, 197, 49, 0.3);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 12px;
}

.auth-gps-status {
    display: block;
    font-size: 0.74rem;
    color: #bbb;
    margin-top: 6px;
    text-align: center;
}

.auth-actions-row {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.btn-auth-submit {
    flex: 1;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #fbc531, #e1a613);
    color: #140703;
    font-size: 0.94rem;
    font-weight: 900;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(251, 197, 49, 0.3);
}

.btn-auth-submit:disabled {
    opacity: 0.6;
    cursor: wait;
}

.btn-auth-cancel {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    color: #ddd;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
}

.auth-switch-footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 0.8rem;
    color: #bbb;
}

.btn-link-gold {
    background: none;
    border: none;
    color: var(--gold-accent);
    font-weight: 800;
    font-size: 0.82rem;
    cursor: pointer;
    margin-left: 4px;
    text-decoration: underline;
}

.auth-feedback-msg {
    margin: 10px 0;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 9px 12px;
    border-radius: 8px;
    text-align: center;
}

.auth-feedback-msg.error {
    background: rgba(231, 76, 60, 0.18);
    color: #ff7675;
    border: 1px solid #e74c3c;
}

.auth-feedback-msg.success {
    background: rgba(46, 204, 113, 0.18);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

/* --------------------------------------------------------------------------
   TOAST Y MODAL INFORMATIVO
   -------------------------------------------------------------------------- */
.copy-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    background: rgba(20, 7, 3, 0.96);
    color: var(--gold-accent);
    border: 1px solid var(--gold-accent);
    padding: 9px 18px;
    border-radius: 20px;
    font-size: 0.84rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
    z-index: 3000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    white-space: nowrap;
}

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

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2600;
    padding: 20px;
}

.modal-card {
    background: #200d07;
    border: 1px solid var(--gold-accent);
    border-radius: 18px;
    padding: 22px;
    max-width: 320px;
    width: 100%;
    text-align: center;
}

.modal-ico { font-size: 2.2rem; margin-bottom: 10px; }

.btn-modal-close {
    background: var(--gold-accent);
    color: #140703;
    border: none;
    padding: 9px 24px;
    border-radius: 20px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 12px;
}
/* ==========================================================================
   CARTAS DE MINI MARQUESAS INTEGRADAS EN MENU-GRID (020-QPASTA)
   ========================================================================== */

.marquesas-section-anchor {
    grid-column: 1 / -1;
    width: 100%;
    margin: 30px 0 12px 0;
}

.marquesas-category-header {
    background: linear-gradient(135deg, #1b0a05 0%, #38160b 100%);
    border: 1.5px solid var(--gold-accent, #fbc531);
    border-radius: 16px;
    padding: 18px 20px;
    text-align: center;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65);
}

.marquesas-badge-tag {
    display: inline-block;
    background: var(--gold-accent, #fbc531);
    color: #140703;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: 20px;
    letter-spacing: 0.6px;
    margin-bottom: 6px;
}

.marquesas-category-title {
    font-family: 'Brush Script MT', cursive, sans-serif;
    font-size: 2.3rem;
    color: #ffffff;
    margin: 0;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.marquesas-category-subtitle {
    font-size: 0.82rem;
    color: #e2d9d0;
    margin-top: 6px;
    line-height: 1.4;
}

/* Tarjeta personalizada con los fondos .theme-* */
.dish-card.marquesa-card {
    border: 1px solid rgba(251, 197, 49, 0.28) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.65) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.dish-card.marquesa-card.theme-nutela { background: linear-gradient(145deg, #442013 0%, #170804 100%) !important; }
.dish-card.marquesa-card.theme-pasteladochips { background: linear-gradient(145deg, #a7825b 0%, #301e14 100%) !important; }
.dish-card.marquesa-card.theme-fresa { background: linear-gradient(145deg, #d31b2c 0%, #52060f 100%) !important; }
.dish-card.marquesa-card.theme-chocobrownie { background: linear-gradient(145deg, #30170d 0%, #0d0503 100%) !important; }
.dish-card.marquesa-card.theme-arequipe { background: linear-gradient(145deg, #db8813 0%, #542f02 100%) !important; }
.dish-card.marquesa-card.theme-brownie { background: linear-gradient(145deg, #3d1c0f 0%, #140703 100%) !important; }
.dish-card.marquesa-card.theme-caramelo { background: linear-gradient(145deg, #e66c0d 0%, #541d00 100%) !important; }
.dish-card.marquesa-card.theme-chocolate { background: linear-gradient(145deg, #4c2214 0%, #170703 100%) !important; }

/* Escenario 3D del Tarrito dentro de la Carta */
.marquesa-media-box {
    position: relative !important;
    width: 100% !important;
    height: 190px !important;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.08) 0%, transparent 70%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    overflow: hidden !important;
    user-select: none !important;
    border-color: transparent;
}

.marquesa-decor-back {
    position: absolute !important;
    width: 185px !important;
    height: auto !important;
    object-fit: contain !important;
    filter: blur(2.5px) brightness(0.9) !important;
    opacity: 0.82 !important;
    pointer-events: none !important;
    z-index: 1 !important;
    animation: marquesaCardBackFloat 5s ease-in-out infinite alternate !important;
}

.marquesa-jar-img {
    position: relative !important;
    width: 115px !important;
    height: auto !important;
    max-height: 150px !important;
    object-fit: contain !important;
    z-index: 4 !important;
    pointer-events: none !important;
    filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.85)) !important;
    will-change: transform !important;
}

.marquesa-decor-front {
    position: absolute !important;
    width: 78px !important;
    height: auto !important;
    object-fit: contain !important;
    z-index: 6 !important;
    pointer-events: none !important;
    filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.55)) !important;
    animation: marquesaCardFrontFloat 5s ease-in-out infinite alternate !important;
}

.marquesa-tap-hint {
    position: absolute !important;
    bottom: 8px !important;
    right: 10px !important;
    background: rgba(20, 7, 3, 0.78) !important;
    border: 1px solid rgba(251, 197, 49, 0.4) !important;
    color: var(--gold-accent, #fbc531) !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    padding: 3px 9px !important;
    border-radius: 12px !important;
    pointer-events: none !important;
    z-index: 8 !important;
}

@keyframes marquesaCardBackFloat {
    0%   { transform: translate(5px, -4px) rotate(2deg) scale(1.04); }
    100% { transform: translate(-5px, 6px) rotate(-3deg) scale(1.1); }
}

@keyframes marquesaCardFrontFloat {
    0%   { transform: translate(-52px, -6px) rotate(-3deg) scale(0.95); }
    100% { transform: translate(-44px, -14px) rotate(2deg) scale(1); }
}

.dish-card.marquesa-card .marquesa-info h3 {
    color: #ffffff !important;
    font-weight: 900 !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7) !important;
}

.dish-card.marquesa-card .marquesa-info p {
    color: rgba(255, 250, 240, 0.88) !important;
}

.dish-card.marquesa-card .marquesa-action .price {
    color: var(--gold-accent, #fbc531) !important;
    font-weight: 900 !important;
    font-size: 1.2rem !important;
}

.dish-card.marquesa-card .marquesa-btn-add {
    background: var(--gold-accent, #fbc531) !important;
    color: #140703 !important;
    font-weight: 900 !important;
    box-shadow: 0 4px 12px rgba(251, 197, 49, 0.35) !important;
}