* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;

    font-family: Arial, Helvetica, sans-serif;

    background: #ffffff;

    color: #222222;

    display: flex;
    justify-content: center;
}

.garantias-page {
    width: 100%;
    max-width: 780px;

    min-height: 100vh;

    display: flex;
    flex-direction: column;

    padding: 0 25px;
}

.header {
    width: 100%;

    text-align: center;

    padding-top: 20px;
    padding-bottom: 25px;
}

.logo {
    display: block;

    width: 190px;
    height: auto;

    margin: 0 auto 30px;
}

.header h1 {
    margin: 0;

    font-size: 52px;
    line-height: 1.1;

    font-weight: 700;

    color: #000000;
}

.subtitle {
    margin-top: 28px;

    font-size: 20px;

    line-height: 1.4;

    color: #64748b;
}

.countries {
    width: 100%;

    max-width: 600px;

    margin: 5px auto 0;

    flex: 1;
}

.country-box {
    width: 100%;

    margin-bottom: 15px;
}

.country-box input[type="checkbox"] {
    display: none;
}

.country-title {
    width: 100%;

    min-height: 64px;

    display: flex;

    align-items: center;

    padding: 0 20px;

    background: #f5f5f5;

    border-radius: 5px;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}


.country-title:hover {
    background: #f1f1f1;
}

.flag {
    width: 34px;
    height: 24px;

    min-width: 34px;

    margin-right: 14px;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 5px;

    background: #ffffff;

    border: 1px solid #e2e2e2;

    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.12);
}

.flag img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.flag:not(:has(img)) {
    font-size: 19px;

    background: transparent;

    border: none;

    box-shadow: none;
}

.country-name {
    flex: 1;

    font-size: 18px;

    font-weight: 400;

    color: #263f55;
}

.arrow {
    font-size: 24px;

    font-weight: 300;

    color: #607080;

    line-height: 1;

    transition:
        transform 0.25s ease;
}

.country-box input[type="checkbox"]:checked
+ .country-title
.arrow {
    transform: rotate(45deg);
}

.country-menu {
    max-height: 0;

    overflow: hidden;

    display: flex;

    flex-direction: column;

    padding: 0 20px;

    background: #ffffff;

    transition:
        max-height 0.3s ease,
        padding 0.3s ease;
}

.country-box input[type="checkbox"]:checked
~ .country-menu {
    max-height: 200px;

    padding-top: 10px;
    padding-bottom: 10px;
}

.country-menu a {
    display: block;

    padding: 8px 10px;

    font-size: 14px;

    color: #4f6475;

    text-decoration: none;

    border-bottom: 1px solid #eeeeee;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}


.country-menu a:last-child {
    border-bottom: none;
}


.country-menu a:hover {
    color: #000000;

    background: #fafafa;
}

.language-links {
    width: 100%;

    display: flex;

    justify-content: center;
    align-items: center;

    gap: 5px;

    margin-top: 12px;
    margin-bottom: 15px;

    font-size: 13px;
}


.language-links a {
    color: #0000ee;

    text-decoration: underline;

    cursor: pointer;

    transition:
        color 0.2s ease;
}


.language-links a:hover {
    color: #5555cc;
}


.language-links span {
    color: #777777;
}

.footer {
    width: 100%;

    padding: 20px 0 28px;

    text-align: center;

    font-size: 13px;

    color: #718096;
}

@media (max-width: 700px) {

    .garantias-page {
        max-width: 100%;

        padding: 0 20px;
    }


    .header {
        padding-top: 15px;
        padding-bottom: 20px;
    }


    .logo {
        width: 170px;

        margin-bottom: 25px;
    }


    .header h1 {
        font-size: 42px;
    }


    .subtitle {
        font-size: 18px;

        margin-top: 22px;
    }


    .countries {
        max-width: 100%;
    }

}

@media (max-width: 500px) {

    .garantias-page {
        padding: 0 16px;
    }

    .header {
        padding-top: 12px;

        padding-bottom: 18px;
    }


    .logo {
        width: 145px;

        margin-bottom: 22px;
    }


    .header h1 {
        font-size: 34px;

        line-height: 1.15;
    }


    .subtitle {
        margin-top: 18px;

        font-size: 16px;

        line-height: 1.4;
    }

    .country-box {
        margin-bottom: 12px;
    }


    .country-title {
        min-height: 58px;

        padding: 0 16px;
    }

    .flag {
        width: 30px;
        height: 21px;

        min-width: 30px;

        margin-right: 12px;

        border-radius: 5px;
    }


    .flag:not(:has(img)) {
        font-size: 18px;
    }

    .country-name {
        font-size: 16px;
    }

    /* + */

    .arrow {
        font-size: 22px;
    }

    /* Menú */

    .country-menu {
        padding-left: 15px;

        padding-right: 15px;
    }


    .country-box input[type="checkbox"]:checked
    ~ .country-menu {
        padding-top: 8px;

        padding-bottom: 8px;
    }


    .country-menu a {
        font-size: 13px;

        padding: 8px;
    }

    /* Idiomas */

    .language-links {
        margin-top: 10px;

        font-size: 12px;

        gap: 4px;
    }


    /* Footer */

    .footer {
        padding-top: 18px;

        padding-bottom: 22px;

        font-size: 12px;
    }

}


@media (max-width: 360px) {

    .header h1 {
        font-size: 29px;
    }


    .subtitle {
        font-size: 14px;
    }


    .country-name {
        font-size: 15px;
    }


    .country-title {
        min-height: 55px;
    }

}