/* ==========================================================================
   assets/css/mantenimiento.css
   DESIGN: PREMIUM CORPORATE / MAINTENANCE MODULE (WHITE MODERN)
   ========================================================================== */

:root {
    --maint-primary: #0ea5e9;
    --maint-primary-hover: #0284c7;
    --maint-accent: #f97316; /* Naranja de seguridad/precaución */
    --maint-dark: #0f172a;
    --maint-gray: #475569;
    --maint-light: #f8fafc;
    --maint-white: #ffffff;
    --maint-border: #e2e8f0;
}

.ww-maint-section {
    font-family: 'Poppins', sans-serif;
    width: 100%;
    background-color: var(--maint-light);
    padding-bottom: 80px;
}

/* --- 1. HERO DE PRESENTACIÓN --- */
.ww-maint-hero {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 500px;
    background-color: #ffffff; /* Fallback */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Overlay Blanco Gradiente Moderno (Incluso si hay foto, la hace ver premium y clara) */
.ww-maint-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 249, 255, 0.92) 100%);
    z-index: 1;
}

.ww-maint-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
    color: var(--maint-dark); /* Texto oscuro para contrastar con fondo blanco */
}

/* Badge con estilo limpio */
.ww-maint-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid rgba(14, 165, 233, 0.2);
    color: var(--maint-primary);
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.ww-maint-badge i {
    color: var(--maint-accent);
    font-size: 1.3rem;
}

.ww-maint-title {
    font-family: 'Raleway', sans-serif;
    font-size: 4.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 20px 0;
    color: var(--maint-dark);
    /* Sombreado elegante en la fuente */
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.08), 0 10px 20px rgba(14, 165, 233, 0.05);
}

.ww-maint-desc {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--maint-gray);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 1px 2px 5px rgba(255, 255, 255, 0.5); /* Ayuda a la legibilidad */
}

/* --- 2. CARDS DE LÍNEAS DE SERVICIO --- */
.ww-maint-cards-container {
    max-width: 1350px;
    margin: 0 auto; /* FIX: Removido el margen negativo para evitar superposición */
    padding: 60px 20px 0 20px; /* Separación natural debajo del Hero */
    position: relative;
    z-index: 5;
}

.ww-maint-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.ww-maint-card {
    background: var(--maint-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    border: 1px solid var(--maint-border);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.ww-maint-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(14, 165, 233, 0.12); /* Sombra corporativa al hacer hover */
}

.maint-card-img {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    border-bottom: 4px solid var(--maint-primary);
}

.maint-card-body {
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.maint-card-body h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--maint-dark);
    margin: 0 0 15px 0;
    /* Sombreado en subtítulos de tarjeta */
    text-shadow: 1px 2px 4px rgba(0,0,0,0.05);
}

.maint-card-body p {
    color: var(--maint-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 25px 0;
    flex-grow: 1;
}

/* Botón Outline Premium */
.ww-btn-outline {
    background: transparent;
    color: var(--maint-primary);
    border: 2px solid var(--maint-primary);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    width: 100%;
}
.ww-btn-outline:hover {
    background: var(--maint-primary);
    color: var(--maint-white);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

/* --- 3. MODAL DE PROCESO (LOS 4 PUNTOS) --- */
.ww-maint-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.ww-maint-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.ww-maint-modal-box {
    background: var(--maint-white);
    width: 100%;
    max-width: 800px;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    overflow-y: auto;
}

.ww-maint-modal-overlay.active .ww-maint-modal-box {
    transform: translateY(0) scale(1);
}

.maint-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 30px 40px;
    border-bottom: 1px solid var(--maint-border);
    background: var(--maint-light);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

.maint-modal-tag {
    display: inline-block;
    background: rgba(14, 165, 233, 0.1);
    color: var(--maint-primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.maint-modal-header h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--maint-dark);
    margin: 0;
}

.btn-close-maint {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--maint-gray);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.btn-close-maint:hover { color: #ef4444; }

.maint-modal-body {
    padding: 40px;
}

.maint-modal-intro {
    font-size: 1.1rem;
    color: var(--maint-gray);
    margin-bottom: 30px;
}

.maint-process-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

.maint-process-step {
    display: flex;
    gap: 15px;
    background: var(--maint-light);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--maint-border);
    transition: transform 0.2s;
}
.maint-process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.step-icon {
    width: 50px;
    height: 50px;
    background: var(--maint-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--maint-accent);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.step-text h4 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--maint-dark);
    margin: 0 0 5px 0;
}

.step-text p {
    font-size: 0.9rem;
    color: var(--maint-gray);
    margin: 0;
    line-height: 1.5;
}

.maint-modal-footer {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--maint-border);
}

.ww-btn-primary-maint {
    display: inline-block;
    background: var(--maint-primary);
    color: var(--maint-white);
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.2);
}
.ww-btn-primary-maint:hover {
    background: var(--maint-primary-hover);
    transform: translateY(-2px);
    color: white;
}

/* Utilidades JS */
.fade-up { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.fade-up.is-visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 992px) {
    .ww-maint-title { font-size: 3.2rem; }
}
@media (max-width: 768px) {
    .ww-maint-hero { height: 50vh; min-height: 400px; }
    .ww-maint-title { font-size: 2.2rem; }
    .maint-process-grid { grid-template-columns: 1fr; }
    .maint-modal-header { padding: 25px 20px; }
    .maint-modal-body { padding: 25px 20px; }
}