/* Recuerdos Impresos - menú del sitio + modal de "Pedir cotización"
   Aditivo: reutiliza las variables definidas en app.css (colores, radios,
   sombras, tipografía) sin modificar ninguna regla existente allí. */

/* Botón hamburguesa */
.site-menu-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: auto;
}
.site-menu-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-menu-btn:hover { border-color: var(--accent); }
.site-menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Overlay compartido por el panel de menú y el modal */
.site-menu-overlay,
.quote-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(30, 26, 14, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 90;
}
.site-menu-overlay.visible,
.quote-modal-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Panel deslizable del menú */
.site-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    height: 100dvh;
    width: min(320px, 86vw);
    background: var(--surface);
    box-shadow: -8px 0 28px rgba(30, 26, 14, 0.15);
    z-index: 95;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
}
.site-menu-panel.open { transform: translateX(0); }

.site-menu-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
}

.site-menu-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface-alt);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.site-menu-close:hover { color: var(--danger); border-color: var(--danger); }

.site-menu-list {
    list-style: none;
    margin: 0;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.site-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 12px;
    border-radius: var(--radius-md);
    border: none;
    background: none;
    color: var(--text);
    font-size: 0.98rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
}
.site-menu-item:hover { background: var(--surface-alt); color: var(--text); text-decoration: none; }
.site-menu-item-icon { font-size: 1.15rem; width: 26px; text-align: center; flex-shrink: 0; }

/* Modal de "Pedir cotización" */
.quote-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -46%);
    width: min(480px, 92vw);
    max-height: 88vh;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    z-index: 96;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.quote-modal.open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%);
}

.quote-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    border-bottom: 1px solid var(--border);
}
.quote-modal-header h2 { font-family: var(--font-serif); }

.quote-modal-body {
    padding: 20px 22px 24px;
    overflow-y: auto;
}

.quote-field-error {
    color: var(--danger);
    display: none;
}
.quote-field-error.visible { display: block; }

@media (max-width: 560px) {
    .quote-modal { width: 94vw; max-height: 90vh; }
    .site-menu-panel { width: 100vw; }
}
