/* ===================================
   RESET Y BASE
=================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

/* ===================================
   HEADER / HERO
=================================== */
.faq-hero {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    text-align: center;
    padding: 80px 20px 60px;
    position: relative;
    overflow: hidden;
}

/* Decoración de fondo */
.faq-hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(27, 168, 62, 0.08);
    pointer-events: none;
}

.faq-hero::after {
    content: "";
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 123, 0, 0.06);
    pointer-events: none;
}

.faq-hero .logo {
    max-width: 120px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.faq-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    position: relative;
    z-index: 1;
}

.faq-hero h1 span {
    background: linear-gradient(90deg, #ff7b00, #1ba83e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-hero p {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-top: 12px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

/* ===================================
   CONTENEDOR FAQ
=================================== */
.faq-container {
    max-width: 820px;
    margin: -30px auto 60px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* ===================================
   TARJETA DE PREGUNTA
=================================== */
.faq-item {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 16px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    border: 1px solid #eef2f6;
}

.faq-item:hover {
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* ===================================
   PREGUNTA (clickeable)
=================================== */
.faq-question {
    padding: 22px 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    user-select: none;
    transition: background 0.2s;
}

.faq-question:hover {
    background: #fafbfc;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
    flex: 1;
}

.faq-question .icon {
    font-size: 1.5rem;
    color: #1ba83e;
    transition: transform 0.35s ease;
    flex-shrink: 0;
}

/* Icono girado cuando está abierto */
.faq-item.open .faq-question .icon {
    transform: rotate(180deg);
}

/* ===================================
   RESPUESTA (colapsable)
=================================== */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.33, 1, 0.68, 1),
                padding 0.3s ease;
    padding: 0 28px;
    color: #334155;
}

.faq-item.open .faq-answer {
    max-height: 1200px;
    padding: 0 28px 28px;
}

.faq-answer p {
    margin-bottom: 12px;
    font-size: 1rem;
    line-height: 1.8;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer strong {
    color: #0f172a;
}

/* ===================================
   LISTAS DENTRO DE RESPUESTAS
=================================== */
.faq-answer ul {
    list-style: none;
    padding: 0;
    margin: 8px 0 16px;
}

.faq-answer ul li {
    padding: 6px 0 6px 32px;
    position: relative;
    font-size: 0.95rem;
}

.faq-answer ul li::before {
    content: "✓";
    color: #1ba83e;
    font-weight: 700;
    position: absolute;
    left: 0;
    font-size: 1.1rem;
}

/* ===================================
   BADGE / ETIQUETA
=================================== */
.badge {
    display: inline-block;
    background: linear-gradient(90deg, #ff7b00, #1ba83e);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-left: 10px;
    vertical-align: middle;
}

/* ===================================
   RESPONSIVE
=================================== */

/* Tablets */
@media (max-width: 768px) {
    .faq-hero {
        padding: 60px 20px 50px;
    }

    .faq-hero h1 {
        font-size: 2.2rem;
    }

    .faq-hero p {
        font-size: 1rem;
    }

    .faq-question {
        padding: 18px 20px;
    }

    .faq-question h3 {
        font-size: 1rem;
    }

    .faq-answer {
        padding: 0 20px;
    }

    .faq-item.open .faq-answer {
        padding: 0 20px 20px;
    }

    .faq-container {
        margin: -20px auto 40px;
        padding: 0 16px;
    }
}

/* Móviles */
@media (max-width: 480px) {
    .faq-hero {
        padding: 50px 16px 40px;
    }

    .faq-hero h1 {
        font-size: 1.8rem;
    }

    .faq-hero .logo {
        max-width: 90px;
    }

    .faq-question {
        padding: 16px 16px;
        gap: 12px;
    }

    .faq-question h3 {
        font-size: 0.95rem;
    }

    .faq-question .icon {
        font-size: 1.2rem;
    }

    .faq-answer {
        padding: 0 16px;
    }

    .faq-item.open .faq-answer {
        padding: 0 16px 18px;
    }

    .faq-answer p {
        font-size: 0.9rem;
    }

    .faq-answer ul li {
        font-size: 0.85rem;
        padding: 4px 0 4px 28px;
    }

    .badge {
        font-size: 0.55rem;
        padding: 1px 10px;
        margin-left: 6px;
    }

    .faq-container {
        margin: -15px auto 30px;
        padding: 0 12px;
    }
}

/* ===================================
   ✅ BOTÓN DE REGRESO
=================================== */
.back-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    padding: 0 20px 20px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-back i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn-back:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.35);
    background: linear-gradient(135deg, #1e293b, #0f172a);
}

.btn-back:hover i {
    transform: translateX(-4px);
}

.btn-back:active {
    transform: translateY(0px);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.2);
}

/* ===================================
   RESPONSIVE - Botón de regreso
=================================== */
@media (max-width: 768px) {
    .btn-back {
        padding: 12px 24px;
        font-size: 0.9rem;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .back-container {
        margin-top: 30px;
        padding: 0 16px 16px;
    }

    .btn-back {
        padding: 10px 20px;
        font-size: 0.85rem;
        gap: 8px;
        width: 100%;
        justify-content: center;
    }

    .btn-back i {
        font-size: 0.95rem;
    }
}