/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html,
body {
    height: 100%;
}

body {
    background: #f5f5f5;
    color: #333;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ================= HEADER ================= */

.header {
    background: #222428;
    min-height: 70px;
    max-height: 71px;
    display: flex;
    align-items: center;
}

.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO */
.logo img {
    height: 60px;
    object-fit: contain;
}

/* IDIOMA */
.lang {
    position: relative;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* FLECHA */
.arrow {
    margin-left: 5px;
    font-size: 10px;
}

/* DROPDOWN */
.lang-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    background: #fff;
    color: #000;
    border-radius: 6px;
    min-width: 140px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);

    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: 0.2s;
    z-index: 100;
}

/* ACTIVO */
.lang.open .lang-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* OPCIONES */
.lang-option {
    padding: 10px;
    cursor: pointer;
}

.lang-option:hover {
    background: #f0f0f0;
    border-radius: 6px;

}

/* ================= HERO ================= */

.hero-right {
    width: 100%;
    margin-bottom: 20px;
}

.hero-right img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

/* ================= CONTENIDO ================= */

.container {
    max-width: 1000px;
    margin: auto;
    padding: 20px;
}

.container,
.faq-container {
    flex: 1;
}

.welcome h2 {
    color: #1A1A1A;
    margin-bottom: 10px;
    font-family: Inter, sans-serif;
}

.welcome h3 {
    color: #1A1A1A;
    font-family: Inter, sans-serif;
    margin-bottom: 10px;
}

.welcome p {
    line-height: 1.5;
    color: #6D7078;
    font-family: Inter, sans-serif;

}

/* ================= CARDS ================= */

.access {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.card {
    background-color: rgb(26 26 26 / 10%);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 200px;
    cursor: pointer;
    transition: 0.3s;
}

.card:hover {
    background-color: rgb(26 26 26 / 30%);
    transform: translateY(-3px);
}

.card span {
    font-size: 30px;
    display: block;
    margin-bottom: 10px;
}

/* ================= BOTONES ================= */

.links {
    text-align: center;
    margin-bottom: 30px;
}

.btn {
    padding: 10px 20px;
    border-radius: 50px;
    border: none;
    margin: 5px;
    cursor: pointer;
    font-weight: medium;
    font-size: 16px;
}

.red {
    background: #007A87;
    color: #FFFFFF;
    font-family: Inter, sans-serif;

}

.red.outline {
    background: transparent;
    border: 2px solid #007A87;
    color: #007A87;
}

/* ================= CONTACTO ================= */

.contact {
    margin-top: 20px;
}

.contact h4 {
    margin-bottom: 10px;
}

/* ================= FOOTER ================= */

.footer {
    background: #222428;
    color: #fff;
    padding: 15px;
    text-align: center;
    margin-top: 40px;
}

.footer-links span {
    margin: 0 10px;
    font-size: 14px;
}


/* ================= FAQ ================= */

.faq-container {
    max-width: 1000px;
    margin: auto;
    padding: 40px 20px;
}

.faq-container h1 {
    font-family: Inter, sans-serif;
    font-size: 36px;
    color: #1A1A1A;
    text-align: center;
    margin-bottom: 10px;
}

.faq-subtitle {
    text-align: center;
    color: #6D7078;
    font-family: Inter, sans-serif;
    margin-bottom: 40px;
    line-height: 1.6;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.faq-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .08);
    transition: .25s;
}

.faq-item:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, .12);
}

.faq-question {
    width: 100%;
    border: none;
    background: #fff;
    padding: 22px 25px;
    cursor: pointer;

    display: flex;
    justify-content: space-between;
    align-items: center;

    text-align: left;

    font-size: 18px;
    font-weight: 600;

    color: #1A1A1A;
    font-family: Inter, sans-serif;

    transition: background .25s;
}

.faq-question:hover {
    background: #f8f8f8;
}

.faq-question span:first-child {
    flex: 1;
    margin-right: 20px;
}

.faq-question .icon {
    color: #007A87;
    font-size: 28px;
    font-weight: 300;
    transition: transform .3s;
}

.faq-item.active .icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    background: #fafafa;
    transition: max-height .35s ease;
}

.faq-answer p {
    line-height: 1.7;
    color: #6D7078;
    font-family: Inter, sans-serif;
}

.faq-item.active .faq-answer {
    max-height: max-content;
}

.faq-answer ul,
.faq-answer ol {
    margin: 10px 0 10px 22px;
}

.faq-answer li {
    margin-bottom: 10px;
    line-height: 1.6;
}



.faq-answer strong {
    color: #1A1A1A;
}

/* ================= CAPÍTULOS FAQ ================= */

.faq-section {
    margin-bottom: 45px;
}

.faq-section-title {
    font-family: Inter, sans-serif;
    font-size: 24px;
    color: #007A87;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #007A87;
}

.faq-section-title::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 26px;
    background: #007A87;
    margin-right: 12px;
    border-radius: 4px;
    vertical-align: middle;
}

/* ================= MODAL DOCUMENTOS ================= */

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    visibility: hidden;

    transition: .25s;

    z-index: 9999;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {

    width: 90%;
    max-width: 600px;

    background: #fff;

    border-radius: 14px;

    overflow: hidden;

    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);

    transform: translateY(-20px);

    transition: .25s;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {

    background: #007A87;
    color: white;

    padding: 18px 25px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 22px;
    font-family: Inter, sans-serif;
}

.close {

    font-size: 30px;
    cursor: pointer;
    transition: .2s;
}

.close:hover {
    transform: scale(1.2);
}

.modal-body {

    padding: 20px;

    display: flex;
    flex-direction: column;
    gap: 12px;
}

.doc-item {

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 15px 18px;

    text-decoration: none;

    color: #222;

    border-radius: 8px;

    background: #f5f5f5;

    transition: .2s;
}

.doc-item:hover {

    background: #007A87;

    color: white;

    transform: translateX(5px);
}

.modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.doc-category {
    margin-top: 25px;
    margin-bottom: 10px;
    color: #007A87;
    font-size: 20px;
    font-family: Inter, sans-serif;
    border-bottom: 2px solid #007A87;
    padding-bottom: 6px;
}

.doc-category:first-child {
    margin-top: 0;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
    .header {
        height: 60px;
    }

    .logo img {
        height: 30px;
    }

    .access {
        gap: 20px;
    }


    /* FAQ */

    .faq-container {
        padding: 25px 20px;
    }

    .faq-container h1 {
        font-size: 28px;
    }

    .faq-subtitle {
        margin-bottom: 30px;
    }

    .faq-question {
        padding: 18px 20px;
        font-size: 16px;
    }

    .faq-question .icon {
        font-size: 24px;
    }

    .faq-answer p {
        padding: 0 20px 20px;
    }
}