* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    }
    
    html {
        font-size: 62.5%;
    }
    
    body {  
        margin: 0; /* Asegúrate de no tener margen en el body */
        padding: 0; /* Asegúrate de no tener padding en el body */
        overflow-x: hidden; /* Para evitar cualquier desplazamiento horizontal */
    }
    
    a {
        text-decoration: none;
        color: black;
    }
    
    /* empieza el estilo del encabezado */
    .header {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
    }
    
    .header .header-section-redes {
        width: 100%;
        height: 30px;
        display: grid;
        background-color: #E0F2F1;
    }
    
    .header .header-section-redes .redes {
        width: 100px;
        height: auto;
        display: flex;
        justify-items:flex-end;
        align-items: center;
        justify-content: space-between;
        justify-self: end;
        background-color: #E0F2F1;
        margin-right: 20px;
    }
    
    
    .header-section-redes .redes img {
        width: 20px;
        height: 20px;
    }
    
    /* EFECTOS HOVER */
    /* Efectos para los íconos de redes sociales */
    .header-section-redes .redes img:hover {
        transform: scale(1.2); /* Aumenta el tamaño del icono */
        transition: transform 0.3s ease-in-out; /* Añade una transición suave */
        filter: brightness(1.2); /* Aumenta el brillo del icono */
    }
    
    /* Estilo barra de navegación */
    .header-nav {
        width: 100%;
        height: 30px;
        background: linear-gradient(to bottom, #eeeeee, #ffffff); /* Gradiente de gris a blanco */
        text-align: center;
    }
    
    /* Contenedor de los elementos de navegación */
    .header-nav-items {
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        height: 80%;
    }
    
    /* Estilo de los enlaces */
    .header-nav-items a {
        padding: 0 15px;
        text-decoration: none;
        color: black;
        font-size: 1rem;
    }
    
    /* Estilo del logo */
    .header-nav-items .home {
        width: 15px;
        height: 15px;
    }
    
    /* HOVER ESTILO BARRA DE NAVEGACION */
    /* Efectos para el nav */
    .header-nav:hover {
        border: 0.1px solid #96231e;
        box-shadow: 2px 2px 2px #8cb0ae;
        transform: scale(1.01); /* Aumenta ligeramente el tamaño del nav */
        transition: transform 0.3s ease-in-out; /* Añade una transición suave */
    }
    
    /* Efectos adicionales para los enlaces de la lista de navegación */
    .header-nav .header-nav-items a:hover {
        color: rgb(93, 187, 93);
        transition: transform 0.3s ease-in-out; /* Añade una transición suave */
        filter: brightness(1); /* Aumenta el brillo del icono */
    }
    
    .header-nav-items a .home:hover {
        transform: scale(1.2); /* Aumenta el tamaño del icono */
        transition: transform 0.3s ease-in-out; /* Añade una transición suave */
        filter: brightness(1.2); /* Aumenta el brillo del icono */
    }
    
    
    /* HOVER ESTILO */
    
    .banner {
        text-align: center;
        width: 100%;
        height: auto;
    }
    
    .banner img {
        width: 80vw;
        height: auto;
    }
    
/* empieza el estilo del main */
main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    justify-items: center;
    align-items: center;
    padding: 20px;
    gap: 20px;  
}

main section {
    border-radius: 15px;
    background: linear-gradient(to bottom, #f2fbfbd3, #dcdcdc94); 
    width: 90%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    justify-items: center;
    text-align:center;
    padding:20px;
}

main section h2{
    font-size: 1.4rem;
    background-color: rgb(230, 248, 242);
}

main section div{
    padding:10px;   
    width: 100%;
    height: auto;
}

main section div img{
    border-radius: 15px;
    width: 100%;
    height: auto;
}

.container-button {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
}

.styled-button {
    width: 100%;
    height: auto;
    background-color: #4CAF50; /* Verde */
    border: none;
    color: white;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    padding: 8px 12px;
    font-size: 14px;
    transition-duration: 0.4s;
    cursor: pointer;
    border-radius: 12px ; /* Bordes redondeados */
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); /* Sombra */
}

.styled-button:hover {
    background-color: white;
    color: black;
    border: 2px solid #4CAF50; /* Bordes verdes al pasar el ratón */
}

    /*empieza el estilo del pie de pagina */
    footer {
        margin-top: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        background-image: url("../imagenes/footer-color-small.png");
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        position: relative;
        width: 100vw;
        height: 80px;
    }
    
    
    .footer-container {
        display: flex;
        margin: 0 auto;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    
    .footer-container .contact-image {
        width: 30px;
        height: 30px;
    }
    
    .footer-container .logo-footer {
        width: 120px;
        height: 25px;
    }
    .a-footer {
        font-size: 1rem;
        text-align: center;
    }
    
    /* HOVER ESTILO PARA PIE DE PAGINA  */
    .footer-container .a-footer:hover {
        color: rgb(249, 254, 249);
        border-bottom: 1px solid; /* Efecto dashed similar */
        transform: scale(1); /* Aumenta el tamaño del icono */
        transition: transform 0.3s ease-in-out; /* Añade una transición suave */
        filter: brightness(1); /* Aumenta el brillo del icono */
    }


/* Estilos específicos para Safari */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    
    html {
        font-size: 62.5%;
    }
    
    body {  
        margin: 0; /* Asegúrate de no tener margen en el body */
        padding: 0; /* Asegúrate de no tener padding en el body */
        overflow-x: hidden; /* Para evitar cualquier desplazamiento horizontal */
    }
    
    a {
        text-decoration: none;
        color: black;
    }
    
    /* empieza el estilo del encabezado */
    .header {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
    }
    
    .header .header-section-redes {
        width: 100%;
        height: 30px;
        display: grid;
        background-color: #E0F2F1;
    }
    
    .header .header-section-redes .redes {
        width: 100px;
        height: auto;
        display: flex;
        justify-items:flex-end;
        align-items: center;
        justify-content: space-between;
        justify-self: end;
        background-color: #E0F2F1;
        margin-right: 20px;
    }
    
    
    .header-section-redes .redes img {
        width: 20px;
        height: 20px;
    }
    
    /* EFECTOS HOVER */
    /* Efectos para los íconos de redes sociales */
    .header-section-redes .redes img:hover {
        transform: scale(1.2); /* Aumenta el tamaño del icono */
        transition: transform 0.3s ease-in-out; /* Añade una transición suave */
        filter: brightness(1.2); /* Aumenta el brillo del icono */
    }
    
    /* Estilo barra de navegación */
    .header-nav {
        width: 100%;
        height: 30px;
        background: linear-gradient(to bottom, #eeeeee, #ffffff); /* Gradiente de gris a blanco */
        text-align: center;
    }
    
    /* Contenedor de los elementos de navegación */
    .header-nav-items {
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        height: 80%;
    }
    
    /* Estilo de los enlaces */
    .header-nav-items a {
        padding: 0 15px;
        text-decoration: none;
        color: black;
        font-size: 1rem;
    }
    
    /* Estilo del logo */
    .header-nav-items .home {
        width: 15px;
        height: 15px;
    }
    
    /* HOVER ESTILO BARRA DE NAVEGACION */
    /* Efectos para el nav */
    .header-nav:hover {
        border: 0.1px solid #96231e;
        box-shadow: 2px 2px 2px #8cb0ae;
        transform: scale(1.01); /* Aumenta ligeramente el tamaño del nav */
        transition: transform 0.3s ease-in-out; /* Añade una transición suave */
    }
    
    /* Efectos adicionales para los enlaces de la lista de navegación */
    .header-nav .header-nav-items a:hover {
        color: rgb(93, 187, 93);
        transition: transform 0.3s ease-in-out; /* Añade una transición suave */
        filter: brightness(1); /* Aumenta el brillo del icono */
    }
    
    .header-nav-items a .home:hover {
        transform: scale(1.2); /* Aumenta el tamaño del icono */
        transition: transform 0.3s ease-in-out; /* Añade una transición suave */
        filter: brightness(1.2); /* Aumenta el brillo del icono */
    }
    
    
    /* HOVER ESTILO */
    
    .banner {
        text-align: center;
        width: 100%;
        height: auto;
    }
    
    .banner img {
        width: 80vw;
        height: auto;
    }
    
    /* empieza el estilo del main */
    main {
        display: flex;
        flex-direction: column;
        justify-content: center;
        justify-items: center;
        align-items: center;
        padding: 20px;
        gap: 20px;  
    }

    main section {
        border-radius: 15px;
        background: linear-gradient(to bottom, #f2fbfbd3, #dcdcdc94); 
        width: 90%;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        justify-items: center;
        text-align:center;
        padding:20px;
    }

    main section h2{
        font-size: 1.4rem;
        background-color: rgb(230, 248, 242);
    }

    main section div{
        padding:10px;   
        width: 90%;
        height: auto;
    }

    main section div img{
        border-radius: 15px;
        width: 100%;
        height: auto;
    }

    .container-button {
        margin-top: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: auto;
    }

    .styled-button {
        width: 100%;
        height: auto;
        background-color: #4CAF50; /* Verde */
        border: none;
        color: white;
        text-align: center;
        text-decoration: none;
        display: inline-block;
        padding: 8px 12px;
        font-size: 14px;
        transition-duration: 0.4s;
        cursor: pointer;
        border-radius: 12px ; /* Bordes redondeados */
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); /* Sombra */
    }

    .styled-button:hover {
        background-color: white;
        color: black;
        border: 2px solid #4CAF50; /* Bordes verdes al pasar el ratón */
    }

    /*empieza el estilo del pie de pagina */
    footer {
        margin-top: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        background-image: url("../imagenes/footer-color-small.png");
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        position: relative;
        width: 100vw;
        height: 80px;
    }
    
    
    .footer-container {
        display: flex;
        margin: 0 auto;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    
    .footer-container .contact-image {
        width: 30px;
        height: 30px;
    }
    
    .footer-container .logo-footer {
        width: 120px;
        height: 25px;
    }
    .a-footer {
        font-size: 1rem;
        text-align: center;
    }
    
    /* HOVER ESTILO PARA PIE DE PAGINA  */
    .footer-container .a-footer:hover {
        color: rgb(249, 254, 249);
        border-bottom: 1px solid; /* Efecto dashed similar */
        transform: scale(1); /* Aumenta el tamaño del icono */
        transition: transform 0.3s ease-in-out; /* Añade una transición suave */
        filter: brightness(1); /* Aumenta el brillo del icono */
    }
    }
    
    
    /* Media Queries */
@media (min-width: 420px) {
    .header .header-section-redes {
        width: 100%;
        height: 35px;
        display: grid;
        background-color: #E0F2F1;
    }
    
    .header .header-section-redes .redes {
        width: 150px;
        height: auto;
        display: flex;
        justify-items:flex-end;
        align-items: center;
        justify-content: space-between;
        justify-self: end;
        background-color: #E0F2F1;
        margin-right: 30px;
    }
    
    
    .header-section-redes .redes img {
        width: 20px;
        height: 20px;
    }
    
    /* Estilo barra de navegación */
    .header-nav {
        width: 100%;
        height: 40px;
        background: linear-gradient(to bottom, #eeeeee, #ffffff); /* Gradiente de gris a blanco */
        text-align: center;
    }

    /* Contenedor de los elementos de navegación */
    .header-nav-items {
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        height: 100%;
    }

    /* Estilo de los enlaces */
    .header-nav-items a {
        padding: 0 15px;
        text-decoration: none;
        color: black;
        font-size: 1.2rem;
    }

    /* Estilo del logo */
    .header-nav-items .home {
        width: 15px;
        height: 15px;
    }
    /* empieza el estilo del main */
    main {
        margin: 5px auto;
        padding: 10px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        gap: 10px; /* Espacio entre las secciones */
        width: 100%;
        height: auto;
    }
    
    main section {
        border-radius: 15px;
        background: linear-gradient(to bottom, #f2fbfbd3, #dcdcdc94); 
        width: 90%;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        justify-items: center;
        text-align:center;
        padding:20px;
    }
    
    main section h2{
        font-size: 1.4rem;
        background-color: rgb(230, 248, 242);
    }
    
    main section div{
        padding:10px;   
        width: 90%;
        height: auto;
    }
    
    main section div img{
        border-radius: 15px;
        width: 100%;
        height: auto;
    }

    .container-button {
        grid-column: 1 / 3; /* Abarca ambas columnas */
        display: flex;
        justify-content: center; /* Centra horizontalmente */
        align-items: center; /* Centra verticalmente */
        width: 100%;
        height: auto;
    }
    /*empieza el estilo del pie de pagina */
    
        footer {
            margin-top: auto;
            display: flex;
            justify-content: center;
            align-items: center;
            background-image: url("../imagenes/footer-color-small.png");
            background-repeat: repeat-x;
            background-size: contain;
            background-position: center;
            position: relative;
            width: 100vw;
            height: 100px;
        }
    
        .footer-container {
            display: flex;
            margin: 0 auto;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
        }
    
        .footer-container .contact-image {
            width: 25px;
            height: 25px;
        }
    
        .footer-container .logo-footer {
            width: 120px;
            height: 25px;
        }
        .a-footer {
            font-size: 1.2rem;
            text-align: center;
        }
    
     }
    
    
@media (min-width: 600px) {
    .header .header-section-redes {
        width: 100%;
        height: 35px;
        display: grid;
        background-color: #E0F2F1;
    }
    
    .header .header-section-redes .redes {
        width: 200px;
        height: auto;
        display: flex;
        justify-items:flex-end;
        align-items: center;
        justify-content: space-between;
        justify-self: end;
        background-color: #E0F2F1;
        margin-right: 30px;
    }
    
    
    .header-section-redes .redes img {
        width: 25px;
        height: 25px;
    }
    
    /* Estilo barra de navegación */
    .header-nav {
        width: 100%;
        height: 40px;
        background: linear-gradient(to bottom, #eeeeee, #ffffff); /* Gradiente de gris a blanco */
        text-align: center;
    }

    /* Contenedor de los elementos de navegación */
    .header-nav-items {
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        height: 100%;
    }

    /* Estilo de los enlaces */
    .header-nav-items a {
        padding: 0 20px;
        text-decoration: none;
        color: black;
        font-size: 1.4rem;
    }

    /* Estilo del logo */
    .header-nav-items .home {
        width: 20px;
        height: 20px;
    }
/* empieza el estilo del main */
    main {
        margin: 5px auto;
        padding: 10px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        gap: 10px; /* Espacio entre las secciones */
        width: 100%;
        height: auto;
    }

    main section {
        border-radius: 15px;
        background: linear-gradient(to bottom, #f2fbfbd3, #dcdcdc94); 
        width: 90%;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        justify-items: center;
        text-align:center;
        padding:20px;
    }

    main section h2{
        font-size: 1.4rem;
        background-color: rgb(230, 248, 242);
    }

    main section div{
        padding:10px;   
        width: 90%;
        height: auto;
    }

    main section div img{
        border-radius: 15px;
        width: 100%;
        height: auto;
    }

    .container-button {
        grid-column: 1 / 3; /* Abarca ambas columnas */
        display: flex;
        justify-content: center; /* Centra horizontalmente */
        align-items: center; /* Centra verticalmente */
        width: 100%;
        height: auto;
    }
/*empieza el estilo del pie de pagina */
    footer {
        margin-top: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        background-image: url("../imagenes/footer-color-small.png");
        background-repeat: repeat-x;
        background-size: contain;
        background-position: center;
        position: relative;
        width: 100vw;
        height: 100px;
    }

    .footer-container {
        display: flex;
        margin: 0 auto;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .footer-container .contact-image {
        width: 30px;
        height: 30px;
    }

    .footer-container .logo-footer {
        width: 150px;
        height: 30px;
    }
    .a-footer {
        font-size: 1.2rem;
        text-align: center;
    }
    }



@media (min-width: 720px) {
    .header .header-section-redes {
        width: 100%;
        height: 40px;
        display: grid;
        background-color: #E0F2F1;
    }
    
    .header .header-section-redes .redes {
        width: 200px;
        height: auto;
        display: flex;
        justify-items:flex-end;
        align-items: center;
        justify-content: space-between;
        justify-self: end;
        background-color: #E0F2F1;
        margin-right: 30px;
    }
    
    
    .header-section-redes .redes img {
        width: 30px;
        height: 30px;
    }
    
    /* Estilo barra de navegación */
    .header-nav {
        width: 100%;
        height: 40px;
        background: linear-gradient(to bottom, #eeeeee, #ffffff); /* Gradiente de gris a blanco */
        text-align: center;
    }

    /* Contenedor de los elementos de navegación */
    .header-nav-items {
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        height: 100%;
    }

    /* Estilo de los enlaces */
    .header-nav-items a {
        padding: 0 20px;
        text-decoration: none;
        color: black;
        font-size: 1.8rem;
    }

    /* Estilo del logo */
    .header-nav-items .home {
        width: 30px;
        height: 30px;
    }
    
    /* empieza el estilo del main */
    main {
        margin: 5px auto;
        padding: 10px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        gap: 10px; /* Espacio entre las secciones */
        width: 100%;
        height: auto;
    }

    main section {
        border-radius: 15px;
        background: linear-gradient(to bottom, #f2fbfbd3, #dcdcdc94); 
        width: 50%;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        justify-items: center;
        text-align:center;
        padding:20px;
    }

    main section h2{
        font-size: 1.6rem;
        background-color: rgb(230, 248, 242);
    }

    main section div{
        padding:10px;   
        width: 100%;
        height: auto;
    }

    main section div img{
        border-radius: 15px;
        width: 100%;
        height: auto;
    }

    .container-button {
        grid-column: 1 / 3; /* Abarca ambas columnas */
        display: flex;
        justify-content: center; /* Centra horizontalmente */
        align-items: center; /* Centra verticalmente */
        width: 100%;
        height: auto;
    }
/*empieza el estilo del pie de pagina */
    footer {
        margin-top: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        background-image: url("../imagenes/footer-color-small.png");
        background-repeat: repeat-x;
        background-size: contain;
        background-position: center;
        position: relative;
        width: 100vw;
        height: 100px;
    }

    .footer-container {
        display: flex;
        margin: 0 auto;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .footer-container .contact-image {
        width: 30px;
        height: 30px;
    }

    .footer-container .logo-footer {
        width: 150px;
        height: 30px;
    }
    .a-footer {
        font-size: 1.6rem;
        text-align: center;
    }

    }

    
@media (min-width: 1024px) {
    .header .header-section-redes {
        width: 100%;
        height: 50px;
        display: grid;
        background-color: #E0F2F1;
    }
    
    .header .header-section-redes .redes {
        width: 350px;
        height: auto;
        display: flex;
        justify-items:flex-end;
        align-items: center;
        justify-content: space-between;
        justify-self: end;
        background-color: #E0F2F1;
        margin-right: 50px;
    }
    
    
    .header-section-redes .redes img {
        width: 35px;
        height: 35px;
    }
    
    /* Estilo barra de navegación */
    .header-nav {
        width: 100%;
        height: 40px;
        background: linear-gradient(to bottom, #eeeeee, #ffffff); /* Gradiente de gris a blanco */
        text-align: center;
    }

    /* Contenedor de los elementos de navegación */
    .header-nav-items {
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        height: 100%;
    }

    /* Estilo de los enlaces */
    .header-nav-items a {
        padding: 0 15px;
        text-decoration: none;
        color: black;
        font-size: 1.8rem;
    }

    /* Estilo del logo */
    .header-nav-items .home {
        width: 30px;
        height: 30px;
    }
/* empieza el estilo del main */
    main {
        margin: 5px auto;
        padding: 10px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        gap: 10px; /* Espacio entre las secciones */
        width: 100%;
        height: auto;
    }

    main section {
        border-radius: 15px;
        background: linear-gradient(to bottom, #f2fbfbd3, #dcdcdc94); 
        width: 50%;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        justify-items: center;
        text-align:center;
        padding:20px;
    }

    main section h2{
        font-size: 1.8rem;
        background-color: rgb(230, 248, 242);
    }

    main section div{
        padding:10px;   
        width: 100%;
        height: auto;
    }

    main section div img{
        border-radius: 15px;
        width: 60%;
        height: auto;
    }

    .container-button {
        grid-column: 1 / 3; /* Abarca ambas columnas */
        display: flex;
        justify-content: center; /* Centra horizontalmente */
        align-items: center; /* Centra verticalmente */
        width: 100%;
        height: auto;
    }
/*empieza el estilo del pie de pagina */

    footer {
        margin-top: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        background-image: url("../imagenes/footer-color-small.png");
        background-repeat: repeat-x;
        background-size: contain;
        background-position: center;
        position: relative;
        width: 100vw;
        height: 100px;
    }

    .footer-container {
        display: flex;
        margin: 0 auto;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .footer-container .contact-image {
        width: 40px;
        height: 40px;
    }

    .footer-container .logo-footer {
        width: 150px;
        height: 30px;
    }
    .a-footer {
        font-size: 1.8rem;
        text-align: center;
    }      
    
     }
    