/* === FONT IMPORT === */
@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&display=swap');

/* === ROOT COLORS === */
:root {
    --blue-brand: #6ec4e5;
    --purple-brand: #8f87b9;
    --text-black: #000000;
    --text-darkgray: #333333;
    --bg-white: #ffffff;
}

/* === GLOBAL STYLES === */
body {
    font-family: 'Atkinson Hyperlegible', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-darkgray);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1 {
    font-size: 50px;
    font-weight: 700;
    color: var(--text-black);
}

h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--purple-brand);
}

p {
    font-size: 26px;
    font-weight: 400;
}

/* Texto resaltado */
.highlight-text {
    font-size: 32px;
    font-weight: 400;
}

/* === HEADER === */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background-color: var(--bg-white);
    border-bottom: 3px solid var(--blue-brand);
}

header img {
    width: 150px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    text-decoration: none;
    font-size: 20px;
    color: var(--text-darkgray);
    font-weight: 700;
}

nav ul li a:hover {
    color: var(--blue-brand);
}

/* === SECTIONS === */
section {
    padding: 30px 20px;
    max-width: 1100px;
    margin: auto;
}

.section-title {
    border-left: 10px solid var(--blue-brand);
    padding-left: 15px;
    margin-bottom: 25px;
}

/* === FEATURE BOXES === */
.feature-box {
    background-color: #f7f7f7;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 8px solid var(--purple-brand);
}

/* === BUTTONS === */
.button {
    display: inline-block;
    background-color: var(--blue-brand);
    color: white;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 10px;
}

.button:hover {
    background-color: var(--purple-brand);
}

/* === FOOTER === */
footer {
    background-color: #f0f0f0;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    border-top: 3px solid var(--purple-brand);
}

.footer-col {
    flex: 1;
    padding: 10px;
    min-width: 260px;
}

footer img {
    width: 130px;
}

footer a {
    color: var(--text-darkgray);
    font-weight: 400;
    text-decoration: none;
}

footer a:hover {
    color: var(--blue-brand);
}

/* === RESPONSIVE === */

/* Tablets */
@media (max-width: 900px) {
    h1 {
        font-size: 42px;
    }

    h2 {
        font-size: 30px;
    }

    nav ul {
        gap: 15px;
    }
}

/* Celulares */
@media (max-width: 600px) {

    header {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
    }

    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 26px;
    }

    p, .highlight-text {
        font-size: 22px;
    }

    .feature-box {
        padding: 20px;
    }
}
/* Botón flotante Volver Arriba */
#btnVolverArriba {
    display: none; /* Oculto inicialmente */
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    background-color: var(--blue-brand);
    border: none;
    border-radius: 50%;
    
    /* Tamaño responsive */
    width: clamp(45px, 6vw, 65px);
    height: clamp(45px, 6vw, 65px);

    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0px 4px 10px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

#btnVolverArriba img {
    width: 55%;
    height: auto;
}

#btnVolverArriba:hover {
    transform: scale(1.08);
    background-color: var(--purple-brand);
}

/* Ajustes adicionales para pantallas muy pequeñas */
@media (max-width: 480px) {
    #btnVolverArriba {
        bottom: 18px;
        right: 18px;
    }
}
/* === ACCORDION === */
.accordion {
    width: 100%;
    background-color: var(--blue-brand);
    color: white;
    border: none;
    padding: 20px;
    text-align: left;
    font-size: 26px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 10px;
}

.accordion:hover {
    background-color: var(--purple-brand);
}

.accordion-content {
    padding: 0 10px;
    animation: accordion-open 0.3s ease-out;
}

@keyframes accordion-open {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}


