/* --- RESET & VARIABLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6a9e3f;
    --primary-hover: #588533;
    --blue-brand: #15459e;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: rgba(255, 255, 255, 0.15);
    --radius-lg: 16px;
    --radius-md: 10px;
}

#maintenance-page {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    background-color: #ffffff;
    overflow-x: hidden;
}

#maintenance-page .dm-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
    height: 80px;
    border-bottom: 1px solid #e2e8f0;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

#maintenance-page .dm-navbar-logo img {
    height: 70px;
    display: block;
}

#maintenance-page .dm-navbar-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 30px;
    transition: all 0.3s ease;
}

#maintenance-page .dm-navbar-menu a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

#maintenance-page .dm-navbar-menu .dm-btn-cases {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(106, 158, 63, 0.2);
}

#maintenance-page .dm-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-main);
    cursor: pointer;
}

/* --- CONTENEDOR DASHBOARD AZUL --- */
#maintenance-page .dm-dashboard-container {
    flex: 1;
    background:
        linear-gradient(
            rgba(0, 86, 179, 0.9),
            rgba(0, 86, 179, 0.9)
        ),
        url('../assets/FONDO.png');

    background-size: cover;
    background-position: center;
    padding: 30px;
    height: calc(100vh - 80px);
    display: flex;
}

/* Div envoltorio interno para alinear los componentes flotantes */
.dm-dashboard-wrapper {
    display: flex;
    width: 100%;
    max-width: 1470px;
    margin: 0 auto;
    gap: 30px;
}

.dm-sidebar {
    width: 310px;
    height: 200px;
    padding: 20px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    /* Borde suave brillante */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.dm-dm-sidebar-menu {
    list-style: none;
}

.dm-dm-sidebar-item {
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    /* Letras blancas suavizadas */
    cursor: pointer;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dm-dm-sidebar-item .dm-icon-wrapper {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
}

/* Hover en items */
.dm-dm-sidebar-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

/* Estado Activo (Resalta en blanco brillante con iconos verdes) */
.dm-dm-sidebar-item.dm-active {
    background: rgba(255, 255, 255, 0.70);
    backdrop-filter: blur(10px);
    color: var(--blue-brand);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.dm-dm-sidebar-item.dm-active .dm-icon-wrapper {
    background-color: rgba(106, 158, 63, 0.15);
    color: var(--primary-color);
}

/* --- CONTENIDO AL COSTADO --- */
.dm-content-display {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.dm-tab-content {
    display: none;
    width: 100%;
    height: 100%;
    animation: dmSmoothEntry 0.4s ease;
}

.dm-tab-content.dm-active {
    display: flex;
    align-items: center;
}

@keyframes dmSmoothEntry {
    from {
        opacity: 0;
        transform: translateX(15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/*-----------CONTENEDOR DE CONSULTAR MANTENIMIENTO ------------------------*/

.dm-tab-content-header-center h2 {
    font-size: 35px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.dm-tab-content-header-center p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.dm-content-center-premium {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    margin: 0 auto;
    width: 100%;
    max-width: 900px;
    /* Le damos más espacio horizontal para que luzca amplio */
    padding: 40px !important;
}

/* Formulario horizontal extendido */
.dm-search-dual-form-premium {
    width: 100%;
    margin-bottom: 40px;
}

.dm-search-inputs-container-premium {
    display: flex;
    gap: 15px;
    width: 100%;
    align-items: center;
}

/* Inputs considerablemente más altos y limpios */
.dm-input-relative-premium {
    position: relative;
    flex: 1;
}

.dm-input-relative-premium .dm-search-field-icon-premium {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 18px;
    /* Iconos un poco más grandes */
}

.dm-input-relative-premium input {
    width: 100%;
    height: 58px;
    /* Altura ampliada para sensación premium */
    padding: 0 20px 0 52px;
    border: 1px solid transparent;
    border-radius: 12px;
    /* Bordes más redondeados y modernos */
    outline: none;
    font-size: 16px;
    /* Letra más grande y legible */
    font-family: inherit;
    color: var(--text-main);
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease;
}

.dm-input-relative-premium input:focus {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

/* Marcador de posición (Placeholder) */
.dm-input-relative-premium input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

/* Botón llamativo e integrado estilo la imagen de Shalom */
.dm-btn-search-submit-premium {
    height: 58px;
    padding: 0 35px;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(106, 158, 63, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.dm-btn-search-submit-premium:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(106, 158, 63, 0.4);
}

/* --- SECCIÓN DE LA IMAGEN GUÍA INFERIOR --- */
.dm-guide-image-container {
    width: 100%;
    max-width: 750px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
}

/* Línea divisoria decorativa */
.dm-guide-divider {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    line-height: 0.1em;
    margin: 20px 0 30px;
}

.dm-guide-divider span {
    background: #1c4da5;
    /* Ajusta este color al fondo de tu panel para que se mezcle */
    padding: 0 15px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Imagen responsive con marcos redondeados */
.dm-ticket-guide-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
    object-fit: contain;
}

/* --- SECCIÓN SOLICITAR PRESUPUESTO --- */
.dm-quote-container-dashboard {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    gap: 40px;
    width: 100%;
}

.dm-quote-text-dashboard {
    flex: 1;
}

.dm-quote-text-dashboard h2 {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 20px;
    color: #ffffff;
}

.dm-quote-text-dashboard p {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 35px;
}

.dm-contact-quick-dashboard {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dm-contact-quick-dashboard p {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
}

.dm-contact-quick-dashboard i {
    font-size: 18px;
    color: var(--primary-color);
}

/* Tarjeta Blanca Formulario */
.dm-quote-form-wrapper-dashboard {
    flex: 1.1;
    background: #ffffff;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.dm-quote-form-dashboard .dm-form-group-dashboard {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dm-quote-form-dashboard label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.dm-quote-form-dashboard input,
.dm-quote-form-dashboard textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.dm-quote-form-dashboard input:focus,
.dm-quote-form-dashboard textarea:focus {
    border-color: var(--blue-brand);
    box-shadow: 0 0 0 3px rgba(21, 69, 158, 0.15);
}

.dm-btn-submit-dashboard {
    width: 100%;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.2s;
}

.dm-btn-submit-dashboard:hover {
    background-color: var(--primary-hover);
}

/* --- 📱 RESPONSIVIDAD TOTAL (HAMBURGUESA) --- */
@media (max-width: 992px) {
    .dm-menu-toggle {
        display: block;
    }

    .dm-navbar-menu {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid #e2e8f0;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
    }

    .dm-navbar-menu.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .dm-navbar-menu li,
    .dm-navbar-menu a {
        width: 100%;
        text-align: center;
    }

    .dm-dashboard-container {
        padding: 15px;
        height: auto;
        overflow-y: visible;
    }

    .dm-dashboard-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    /* Adaptación del menú lateral en móviles (pasa a ser barra superior interna) */
    .dm-sidebar {
        width: 100%;
        height: auto;
        padding: 12px;
        flex-direction: row;
    }

    .dm-dm-sidebar-menu {
        display: flex;
        gap: 10px;
        width: 100%;
    }

    .dm-dm-sidebar-item {
        flex: 1;
        margin-bottom: 0;
        justify-content: center;
        padding: 10px;
        font-size: 12px;
    }

    .dm-tab-content.dm-active {
        align-items: stretch;
    }

    .dm-quote-container-dashboard {
        flex-direction: column;
        gap: 30px;
    }

    .dm-quote-text-dashboard {
        text-align: center;
    }

    .dm-contact-quick-dashboard {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .dm-search-inputs-container-premium {
        flex-direction: column;
        gap: 15px;
    }

    .dm-input-relative-premium,
    .dm-btn-search-submit-premium {
        width: 100%;
    }

    .dm-btn-search-submit-premium {
        justify-content: center;
    }

    .dm-content-center-premium {
        padding: 20px !important;
    }
}

@media (max-width: 576px) {
    .dm-dm-sidebar-item span {
        display: none;
    }

    /* Solo iconos en pantallas diminutas */
    .dm-quote-text-dashboard h2 {
        font-size: 35px;
    }

    .dm-quote-form-wrapper-dashboard {
        padding: 20px;
    }

    .dm-content-glass-card {
        padding: 10px;
    }
}

/* ===== MODAL ===== */

.dm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.dm-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.dm-modal-card {
    width: 95%;
    max-width: 700px;
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    box-shadow:
        0 10px 25px rgba(0,0,0,.08),
        0 20px 60px rgba(0,0,0,.12);
    animation: dmModalEntry 0.4s ease forwards;
}

@keyframes dmModalEntry {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dm-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    border: none;
    background: #f1f5f9;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dm-modal-close:hover {
    background: #e2e8f0;
}

.dm-modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.dm-modal-header i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.dm-modal-header h2 {
    color: var(--text-main);
}

.dm-modal-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.dm-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    width: 100%;
}

.dm-info-row strong {
    text-align: right;
    max-width: 60%;
}

.dm-info-row span {
    color: #64748b;
}

/* =========================
   ESTADOS DE MANTENIMIENTO
========================= */

.dm-estado-badge {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    transition: all .3s ease;
}

/* Entregado */
.dm-estado-entregado {
    background: #dcfce7;
    color: #166534;
}

/* En proceso */
.dm-estado-proceso {
    background: #dbeafe;
    color: #1d4ed8;
}

/* Pendiente */
.dm-estado-pendiente {
    background: #fef3c7;
    color: #92400e;
}

/* Cancelado */
.dm-estado-cancelado {
    background: #fee2e2;
    color: #b91c1c;
}

/* Otros estados */
.dm-estado-default {
    background: #e2e8f0;
    color: #334155;
}