/* ============================================================
    ARCHIVO: soporte.css
    Página de Soporte | UrgencLink
    Estilos para Centro de Ayuda, Categorías, Horarios,
    Soporte Crítico, FAQ y componentes responsivos
    ============================================================ */

/* ============================================================
    SECCIÓN 1: CENTRO DE AYUDA
    ============================================================ */

.centro-ayuda {
    padding: 110px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

/* ===== Decoración de fondo (círculo superior izquierdo) ===== */
.centro-ayuda::before {
    content: "";
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: rgba(22, 194, 245, .05);
    top: -180px;
    left: -180px;
}

/* ============================================================
    SECCIÓN 2: BUSCADOR
    ============================================================ */

.buscador {
    max-width: 900px;
    margin: 60px auto 0;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #E7EDF5;
    box-shadow: 0 20px 45px rgba(15, 23, 42, .08);
    overflow: hidden;
}

.buscador i {
    padding: 0 25px;
    font-size: 22px;
    color: #0B5ED7;
}

.buscador input {
    flex: 1;
    border: none;
    outline: none;
    padding: 22px 10px;
    font-size: 17px;
    font-family: inherit;
    background: transparent;
}

.buscador button {
    border: none;
    background: linear-gradient(135deg, #16C2F5, #0B5ED7);
    color: #ffffff;
    padding: 22px 36px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: .35s;
}

.buscador button:hover {
    filter: brightness(1.08);
}

/* ============================================================
    SECCIÓN 3: CATEGORÍAS DE SOPORTE
    ============================================================ */

.categorias {
    padding: 110px 0;
    background: #F7FAFD;
}

.categorias-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.categoria-card {
    background: #ffffff;
    padding: 35px 28px;
    border-radius: 22px;
    text-align: center;
    border: 1px solid #E9EEF5;
    box-shadow: 0 15px 35px rgba(15, 23, 42, .05);
    transition: .35s;
    position: relative;
    overflow: hidden;
}

/* ===== Decoración de fondo en tarjeta (círculo superior derecho) ===== */
.categoria-card::before {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: rgba(22, 194, 245, .08);
    right: -90px;
    top: -90px;
    transition: .35s;
}

.categoria-card:hover {
    transform: translateY(-10px);
    border-color: #16C2F5;
    box-shadow: 0 28px 55px rgba(11, 94, 215, .15);
}

.categoria-card:hover::before {
    transform: scale(1.3);
}

.categoria-card i {
    font-size: 34px;
    color: #0B5ED7;
    margin-bottom: 22px;
}

.categoria-card h3 {
    color: #061224;
    margin-bottom: 15px;
    font-size: 22px;
}

.categoria-card p {
    color: #6C757D;
    line-height: 1.8;
}

/* ============================================================
    SECCIÓN 4: HORARIOS DE ATENCIÓN
    ============================================================ */

.horarios {
    padding: 110px 0;
    background: #ffffff;
}

.horarios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.horario-card {
    text-align: center;
    background: #F8FBFE;
    border-radius: 24px;
    padding: 45px 30px;
    border: 1px solid #E7EDF5;
    transition: .35s;
}

.horario-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 22px 45px rgba(11, 94, 215, .12);
}

.horario-card i {
    font-size: 42px;
    color: #16C2F5;
    margin-bottom: 20px;
}

.horario-card h3 {
    color: #061224;
    margin-bottom: 14px;
    font-size: 24px;
}

.horario-card p {
    color: #6C757D;
    line-height: 1.8;
}

/* ============================================================
    SECCIÓN 5: SOPORTE CRÍTICO - EMERGENCIAS
    ============================================================ */

.emergencia {
    padding: 110px 0;
    background: linear-gradient(135deg, #061224, #0B5ED7);
    position: relative;
    overflow: hidden;
}

/* ===== Decoración de fondo (círculo superior derecho) ===== */
.emergencia::before {
    content: "";
    position: absolute;
    width: 550px;
    height: 550px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
    top: -250px;
    right: -200px;
}

.emergencia-box {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 40px;
    align-items: center;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 28px;
    padding: 55px;
}

.emergencia-icono {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: linear-gradient(135deg, #16C2F5, #0B5ED7);
    color: #ffffff;
    font-size: 40px;
}

.emergencia-info span {
    color: #16C2F5;
    font-weight: 600;
}

.emergencia-info h2 {
    color: #ffffff;
    font-size: 38px;
    margin: 12px 0 18px;
}

.emergencia-info p {
    color: rgba(255, 255, 255, .85);
    line-height: 1.9;
}

.emergencia-botones {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.emergencia-botones a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: 14px;
    text-decoration: none;
    background: #ffffff;
    color: #0B5ED7;
    font-weight: 600;
    transition: .35s;
}

.emergencia-botones a:hover {
    transform: translateY(-4px);
    background: #16C2F5;
    color: #ffffff;
}

/* ============================================================
    SECCIÓN 6: ANIMACIONES DE ENTRADA
    ============================================================ */

.categoria-card,
.horario-card,
.emergencia-box {
    animation: fadeSupport .8s ease both;
}

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

/* ============================================================
    SECCIÓN 7: FAQ - PREGUNTAS FRECUENTES
    ============================================================ */

.faq {
    padding: 120px 0;
    background: #F7FAFD;
}

.faq-container {
    max-width: 900px;
    margin: 60px auto 0;
}

.faq-item {
    margin-bottom: 22px;
    background: #ffffff;
    border-radius: 22px;
    border: 1px solid #E7EDF5;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(15, 23, 42, .05);
    transition: .35s;
}

.faq-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(11, 94, 215, .12);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 32px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #061224;
}

.faq-question i {
    color: #0B5ED7;
    transition: .35s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .45s ease;
}

.faq-answer p {
    padding: 0 32px 28px;
    color: #6C757D;
    line-height: 1.9;
}

.faq-item.active .faq-answer {
    max-height: 250px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* ============================================================
    SECCIÓN 8: SCROLLBAR PERSONALIZADA
    ============================================================ */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #EDF4F8;
}

::-webkit-scrollbar-thumb {
    background: #0B5ED7;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0849A6;
}

/* ============================================================
    SECCIÓN 9: SELECCIÓN DE TEXTO
    ============================================================ */

::selection {
    background: #16C2F5;
    color: #ffffff;
}

/* ============================================================
    SECCIÓN 10: RESPONSIVE
    ============================================================ */

/* ===== Tablet (768px) ===== */
@media (max-width: 768px) {
    .buscador {
        flex-direction: column;
        border-radius: 16px;
        overflow: hidden;
    }

    .buscador i {
        padding: 15px 0 0;
        font-size: 20px;
    }

    .buscador input {
        padding: 16px 20px;
        width: 100%;
        text-align: center;
    }

    .buscador button {
        width: 100%;
        padding: 16px;
        border-radius: 0;
    }

    .categorias-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .horarios-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .emergencia-box {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 35px 25px;
        gap: 25px;
    }

    .emergencia-icono {
        margin: 0 auto;
        width: 80px;
        height: 80px;
        font-size: 32px;
    }

    .emergencia-botones {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .emergencia-botones a {
        padding: 14px 24px;
        font-size: 14px;
    }
}

/* ===== Móvil grande (480px) ===== */
@media (max-width: 480px) {
    .categorias-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin: 0 auto;
    }

    .buscador input {
        font-size: 15px;
        padding: 14px 16px;
    }

    .buscador button {
        font-size: 14px;
        padding: 14px;
    }

    .emergencia-box {
        padding: 25px 18px;
    }

    .emergencia-info h2 {
        font-size: 28px;
    }

    .emergencia-botones {
        flex-direction: column;
        width: 100%;
    }

    .emergencia-botones a {
        width: 100%;
        justify-content: center;
    }
}