/* ==========================================================================
   MÓDULO DE PREGUNTAS FRECUENTES (FAQ) Y GUÍA DE TRÁMITES (GHG)
   ========================================================================== */

/* --- GUÍA PASO A PASO PARA RECLAMAR MEDICAMENTOS --- */
.tramites-section {
    padding: 50px 20px;
    background: #ffffff;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 35px;
}

.step-card {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 28px 22px;
    text-align: center;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
}

.step-number {
    width: 38px;
    height: 38px;
    background: var(--primary);
    color: #ffffff;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(49, 130, 206, 0.3);
}

.step-icon {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.step-card h3 {
    font-size: 1.15rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-weight: 700;
}

.step-card p {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.5;
    margin: 0;
}

/* --- ACCORDEÓN INTERACTIVO DE FAQ --- */
.faq-section {
    padding: 60px 20px;
    background: var(--light-bg);
}

.faq-wrapper {
    max-width: 850px;
    margin: 35px auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-header {
    width: 100%;
    padding: 18px 22px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.faq-header:hover {
    background-color: var(--primary-light);
}

.faq-header i {
    color: var(--primary);
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

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

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 22px;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.6;
}

.faq-content.open {
    padding: 0 22px 20px 22px;
    max-height: 350px;
}