:root {
    --background-color: #fff;
    --Acent-color: #730202;
    --Text-color: #fff;
    --main-font: 'Poppins', sans-serif;
    --header-height: 5rem;
    /* Altura fija para el encabezado */
    --padding-sides: 1.5rem;
    --max-content-width: 1200px;
}

/* Reset básico para mejor consistencia */
body {
    margin: 0;
    padding-top: var(--header-height);
    /* Espacio para el header fijo */
    font-family: var(--main-font);
    background-color: var(--background-color);
}

/* HEADER */
#PageHeader {
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--Acent-color);
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#PageHeader nav {
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: 0 var(--padding-sides);
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: space-between;
    /* Distribuye los enlaces */
    gap: 1rem;
}


#PageHeader nav .nav-link {
    font-size: 1.1rem;
    /* Tamaño de fuente más estándar */
    font-family: var(--main-font);
    color: var(--Text-color);
    text-decoration: none;
    transition: color 0.3s;
    white-space: nowrap;
    /* Evita que los enlaces se rompan */
}

#PageHeader nav .nav-link:hover {
    color: #ffdada;
    /* Color de hover */
}

/* Main content wrapper para centrar contenido */
main.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Secciones */
.full-screen-section {
    width: 100%;
    min-height: calc(100vh - var(--header-height));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.content-section {
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--Acent-color);
    width: 90%;
    /* Ancho en escritorio, se ajustará con media query */
    max-width: 1000px;
    /* Ancho máximo para legibilidad */
    border-radius: 1.5rem;
    margin-bottom: 3rem;
}

.content-section h2,
.antecedentes-info h2,
#PresentationInfoDiv h1 {
    margin-left: 0.5rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    color: var(--Text-color);
}

.content-section p,
.antecedentes-info p {
    margin-left: 0.5rem;
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--Text-color);
}


/* PRESENTACION */

#PresentationDivImage {
    background-image: url(./images/presentationImage.jpg);
    justify-content: flex-start;
}

#PresentationInfoDiv {
    display: flex;
    flex-direction: column;
    background-color: var(--Acent-color);
    margin-left: 10%;
    padding: 2rem;
    width: clamp(20rem, 40vw, 35rem);
    /* Ancho más adaptable */
    min-height: 20rem;
    /* Altura mínima adaptable */
    border-radius: 1.5rem;
    align-self: center;
}


#PresentationInfoDiv h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    text-align: left;
}


#PresentationInfoDiv p {
    margin-top: 0.5rem;
    font-size: 2rem;
    text-align: left;
    color: var(--Text-color);
}

/* ANTECEDENTES */
.antecedentes-section {
    background-image: url(./images/antecentes.jpg);
    justify-content: flex-end;
    /* Mueve el contenido a la derecha */
}

.antecedentes-info {
    margin-top: 10%;
    margin-bottom: 10%;
    margin-right: 5%;
    padding: 2rem;
    background-color: var(--Acent-color);
    width: 30%;
    /* Ancho de 30% en desktop */
    min-width: 300px;
    min-height: auto;
    /* Altura mínima adaptable */
    border-radius: 1.5rem;
    align-self: center;
}

.antecedentes-info p {
    font-size: 1.1rem;
}

/* CONTACTO */
.contact-section {
    min-height: 20vh;
}


/* MEDIA QUERIES para responsividad */

/* Tablets y pequeños escritorios (max-width: 992px) */
@media (max-width: 992px) {
    #PageHeader nav {
        justify-content: space-around;
        padding: 0 1rem;
    }

    #PageHeader nav .nav-link {
        font-size: 1rem;
    }

    .content-section {
        width: 95%;
        padding: 1.5rem;
    }

    .content-section h2,
    .antecedentes-info h2,
    #PresentationInfoDiv h1 {
        font-size: 2rem;
    }

    .content-section p,
    .antecedentes-info p {
        font-size: 1.1rem;
    }

    #PresentationInfoDiv {
        margin-left: 5%;
        padding: 1.5rem;
        width: clamp(20rem, 50vw, 30rem);
    }

    #PresentationInfoDiv h1 {
        font-size: 3rem;
    }

    /* Ajuste para antecedentes en tablet */
    .antecedentes-section {
        justify-content: center;
        /* Centra el contenido */
    }

    .antecedentes-info {
        width: 80%;
        /* Más ancho en tablet */
        margin: 5% auto;
    }
}

/* Móviles (max-width: 600px) */
@media (max-width: 600px) {
    :root {
        --header-height: 4rem;
    }

    /* HEADER */
    #PageHeader nav {
        flex-direction: column;
        /* Apila los enlaces */
        height: auto;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
    }

    #PageHeader {
        height: auto;
    }

    body {
        padding-top: 15rem;
        /* Ajusta el padding superior para el menú colapsado */
    }

    #PageHeader nav .nav-link {
        font-size: 0.9rem;
    }

    .full-screen-section {
        min-height: 60vh;
    }

    /* PRESENTACION en móvil */
    #PresentationDivImage {
        justify-content: center;
        align-items: flex-end;
        /* Mueve la info a la parte inferior */
    }

    #PresentationInfoDiv {
        margin: 0 0 10% 0;
        /* Centra y baja */
        width: 90%;
        padding: 1rem;
        text-align: center;
    }

    #PresentationInfoDiv h1 {
        font-size: 2rem;
        text-align: center;
    }

    #PresentationInfoDiv p {
        font-size: 1.5rem;
        text-align: center;
    }

    /* SECCIONES de Contenido */
    .content-section {
        margin-top: 1.5rem;
        padding: 1rem;
        border-radius: 1rem;
    }

    .content-section h2,
    .antecedentes-info h2 {
        font-size: 1.8rem;
    }

    .content-section p,
    .antecedentes-info p {
        font-size: 1rem;
    }

    /* ANTECEDENTES en móvil */
    .antecedentes-section {
        min-height: 80vh;
    }

    .antecedentes-info {
        width: 90%;
        margin: 5% auto;
        min-height: auto;
    }
}