.index5 {
    position: relative;
    height: 50vh; 
    overflow: hidden; 
    width: 100%; 
    display: flex; 
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0; 
    padding-top: 80px; 
}

.index5 .background-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("/static/images/index/index_2.jpg") no-repeat center center;
    background-size: cover;
    filter: blur(3px); 
    z-index: -1; 
}

.index5 h1 {
    z-index: 1; 
    text-align: center;
    font-size: 4.5em; 
    margin: 0;
    color: darkgrey;
    text-shadow: 2px 2px 5px #333, -1px -1px 2px #333, 1px -1px 2px #333, -1px 1px 2px #333, 1px 1px 2px #333; /* Borde oscuro (gris) alrededor del texto */
}

.index5 p {
    text-align: center;
    font-size: 1.9em;
    color: white; 
    font-weight: bold; 
    z-index: 1;
}

.index6 {
    background: linear-gradient(135deg, #f0f4f8, #d9e6f2);
    padding: 20px;
    text-align: center;
    font-family: "Poppins", sans-serif;
    position: relative;
}

.index6 h2 {
    color: #0d6efd;
    font-size: 2.4em;
    padding: 2% 20% 2% 20%;
    font-weight: 800;
    margin-bottom: 30px;
    background: linear-gradient(to right, #0d6efd, #69b3f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.index6 p {
    color: #222;
    font-size: 1.5em;
    max-width: 900px;
    margin: 0 auto 50px auto;
    line-height: 1.7;
    padding: 0 15px;
}


/* Responsive */
@media (max-width: 768px) {
    .index6 h2 {
        font-size: 1.8em;
    }
    .index6 p {
        font-size: 1em;
    }

}

.index6-form {
    background: linear-gradient(135deg, #ffffff, #f5f7fa); 
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding: 40px 60px;
    max-width: 600px;
    margin: auto;
    transition: all 0.3s ease;
    font-family: "Poppins", sans-serif;
}

/* Estilos para los campos de entrada */
.index6-form form input,
.index6-form form textarea {
    padding: 14px 16px;
    margin: 12px 0;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    font-family: "Poppins", sans-serif;
    box-sizing: border-box;
    width: 100%;
    font-size: 1rem;
    background-color: #fff;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

.index6-form form input:focus,
.index6-form form textarea:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
    outline: none;
}

@media (max-width: 760px) {
    .index6-form {
        padding: 20px;
    }

    .index6-form form input,
    .index6-form form textarea {
        font-size: 0.9rem;
        padding: 12px 14px;
    }
}

/* Estilos para el título de la sección */
.section-title h2 {
    font-size: 26px;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

/* Estilos del modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    width: 80%;
}

/* Estilo para el icono de cerrar */
.close {
    color: #aaa;
    font-size: 30px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

/* Hacer el diseño responsive */
@media (max-width: 768px) {
    .index6-form {
        padding: 20px;
    }

    .section-title h2 {
        font-size: 22px;
    }

    input,
    textarea,
    button {
        font-size: 14px;
    }
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    font-size: 2rem;
    color: white;
    text-decoration: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

/* Colores de fondo por red social */
.social-icon.facebook {
    background-color: #3b5998;
}

.social-icon.instagram {
    background-color: #E1306C;
}

.social-icon.tiktok {
    background-color: #000000;
}

.social-icon:hover {
    transform: scale(1.1);
}

@media (max-width: 760px) {
    .social-icons {
        gap: 16px;
        flex-wrap: wrap;
    }

    .social-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}


/* Estilos responsivos */
@media (max-width: 768px) {
    .index5 .background-image {
        filter: blur(2px); /* Desenfoque de la imagen */
    }
    .index5 {
        height: 30vh; 
        padding-top: 40px; 
    }

    .index5 h1 {
        font-size: 3em; /* Tamaño más pequeño para pantallas muy pequeñas */
    }

    .index5 p {
        font-size: 1.1em; /* Tamaño de fuente más pequeño para pantallas pequeñas */
        margin-top: 5px; /* Añade margen superior para mover el texto más abajo */
    }
}

/* Estilos para pantallas de televisión o monitores amplios */
@media (min-width: 1920px) {
    .index5 h1 {
        font-size: 8.5em; /* Tamaño más pequeño para pantallas muy pequeñas */
    }

    .index5 p {
        font-size: 2.5em; /* Tamaño de fuente más pequeño para pantallas pequeñas */
        margin-top: 5px; /* Añade margen superior para mover el texto más abajo */
    }

    .index6 h1 {
        font-size: 3.5em;
    }

    .index6 p {
        font-size: 2.5em;
    }

    /* Estilos para los campos de entrada */
    .index6-form form input,
    .index6-form form textarea {
        font-size: 2rem;
    }

    .index2 a {
        font-size: 6em;
    }
}
