﻿:root {
    --brand-red: #c92d2a;
    --brand-dark: #111;
    --muted: #6b6b6b;
    --container-width: 1150px;
    --max-banner-height: 420px;
    --page-bg: #ffffff;
}

/* Reset ligero */
* {
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
    height: auto;
    font-family: "Inter", Arial, Helvetica, sans-serif;
    background: var(--page-bg);
    color: var(--brand-dark);
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

/* --------- HEADER --------- */
.site-header {
    background: var(--page-bg);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 120;
    box-shadow: 0 2px 0 rgba(0,0,0,0.05);
}

.header-inner {
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    font-size: 14px;
}

.header-logo {
    max-width: 149px;
    height: 36px;
    display: block;
}

/*HEADERS LINKS*/
.header-links {
    display: flex;
    gap: 10px;
    margin-left: 25px;
}

    .header-links a {
        text-decoration: none;
        color: var(--brand-dark);
    }

#link-active {
    text-decoration: underline;
    color: var(--brand-red);
    font-weight: 700;
}

.img-links {
    display: flex;
    align-items: center;
}

/*INICIO SESION Y CREAR CUENTA*/
.header-sesion {
    display: flex;
    align-items: center;
}

.iniciar-sesion {
    display: flex;
    margin-right: 1rem;
    cursor: pointer;
    text-decoration: none;
    color: var(--brand-dark);
}

.icon-user {
    width: 18px;
    height: 18px;
    color: inherit;
}

.crear-cuenta {
    background: var(--brand-red);
    color: #fff;
    border: none;
    padding: 8px 16px;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.22);
    cursor: pointer;
    transition: transform .08s ease, box-shadow .12s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    font-size: 14px;
}

    /* HOVERS */
    .iniciar-sesion:hover, .crear-cuenta:hover, .header-links a:hover {
        transform: translateY(-1px);
    }

    .crear-cuenta:hover {
        box-shadow: 0 6px 18px rgba(0,0,0,0.12);
        background: #b61b18;
    }

.iniciar-sesion:hover {
    color: #b61b18;
    text-decoration: underline;
}

.user-email {
    margin-right: 1rem;
    color: var(--brand-dark);
}

    .user-email p {
        font-size: 13px;
        margin-top: 0;
        margin-bottom: 0;
    }

/* HEADER RESPONSIVE */

@media (max-width: 900px) {
    /*    .header-sesion {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align:center;
    }*/

    .header-inner {
        height: 64px;
    }

    .logo-header {
        height: 52px;
    }

    .user-email p:first-child {
        margin-right: 4px;
    }

    .iniciar-sesion, .crear-cuenta, .user-email {
        border-radius: 7px;
        padding: 7px 12px;
        font-size: 11px;
    }

    .iniciar-sesion, .user-email {
        margin-right: 0;
    }
}

@media (max-width: 520px) {
    .header-inner {
        height: auto;
        padding: 10px 12px;
        flex-direction: column;
        gap: 8px;
        justify-content: center;
    }

    .header-links {
        font-size: 12px;
        margin-left: 0;
        margin-top: 10px;
    }

    .img-links {
        display: flex;
        flex-direction: column;
    }

    .header-sesion {
        position: static;
        transform: none;
        right: auto;
        top: auto;
        width: 100%;
        display: flex;
        justify-content: center;
        padding-top: 4px;
        flex-direction: row;
    }

    .logo-header {
        height: 44px;
    }

    .user-email {
        display: block;
    }

    .iniciar-sesion, .crear-cuenta, .user-email {
        padding: 10px 16px;
    }

    .crear-cuenta {
        border-radius: 10px;
    }
}

/*Seccion de temas*/
.faq-title{
    text-align:left;
    margin: 0;
    margin-left: 20px; 
}

.q-themes {
    display: flex;
    justify-content: center;
    margin-top: 12px;
    font-size: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.82rem;
}

    .q-themes a {
        color: var(--brand-red);
        font-weight: bold;
        text-decoration: none;
        text-transform: uppercase;
    }

    .q-themes p {
        margin: 0;
    }

    .q-themes a:hover {
        text-decoration: underline;
    }

    .q-themes a:not(:last-child)::after {
        content: "|";
        margin-left: 1rem;
        font-weight: normal;
        color: black;
    }

@media(max-width: 900px) {
    .q-themes {
        gap: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

        .q-themes a:not(:last-child)::after {
            margin-left: 0.75rem;
        }
}

@media(max-width: 520px) {
    .q-themes {
        gap: 0.7rem;
        font-size: 0.7rem;
    }

        .q-themes a:not(:last-child)::after {
            content: none;
        }
}

.question-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 60px 20px;
}

.q-section {
    padding-inline: 20px;
    scroll-margin: 80px;
    margin-bottom: 30px;
}

@media(max-width: 900px) {
    .q-section {
        scroll-margin: 100px;
    }
}

@media(max-width: 520px) {
    .q-section {
        scroll-margin: 150px;
    }
}

/*Titulos, preguntas y respuestas*/
.q-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.question {
    font-weight: 600;
    color: var(--brand-red);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.answer, li {
    font-size: 0.8rem;
}

.answer {
    margin-top: 2px;
    margin-bottom: 10px;
}

ol, ul {
    padding: 0 1rem;
    margin-bottom: 0.8rem;
}

a {
    text-decoration: none;
    color: var(--brand-dark);
}

    a:hover {
        text-decoration: underline;
    }

@media(max-width:900px) {
    .q-title {
        font-size: 1rem;
    }

    .question {
        font-size: 0.8rem;
    }

    .answer li {
        font-size: 0.7rem;
    }
}
