body {
    margin: 0;
    font-family: sans-serif;
    background-color: #f0f0f0;
    overflow: hidden;
    /* Oculta las barras de desplazamiento */
}

.parent {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 8px;
    background-image: url('../IMG/7.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    width: 100vw;
    height: 100vh;
    color: #ffffff;
    text-align: center;
    border: 2px solid #cccccc;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.div1 {
    grid-column: span 8 / span 8;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    padding: 10px;
}

.div1 img {
    position: absolute;
    left: 10px;
    top: 10px;
    height: 50px;
}

.div1 h1 {
    text-align: center;
    margin: 0;
    flex-grow: 1;
    padding-top: 10px;
}

.div2 {
    grid-column: span 8 / span 8;
    grid-row-start: 2;
    background-color: rgba(4, 230, 162, 0.5);
    /* Corrección de la opacidad */
    padding: 10px 0;
    max-height: 25px;
    margin-top: -55px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.div2-nav {
    display: flex;
    gap: 20px;
    /* Espacio entre elementos */
    align-items: center;
}

.div2-nav button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    padding: 5px 10px;
    transition: color 0.3s ease;
    position: relative;
}

.div2-nav button::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: white;
    transition: all 0.3s ease;
}

.div2-nav button:hover {
    color: #00bfff;
    /* Cambio de color al pasar el ratón */
}

.div2-nav button:hover::after {
    width: 100%;
    left: 0;
}

.div3 {
    grid-column: span 2 / span 2;
    grid-row: span 3 / span 3;
    grid-row-start: 3;
    flex-direction: column;
    justify-content: center;
    padding: 10px;
}

.div4 {
    grid-column: span 4 / span 4;
    grid-row: span 3 / span 3;
    grid-column-start: 4;
    grid-row-start: 3;
    margin-top: -120px;
    padding: 20px;
    color: white;
    text-align: center;
    /* Centra todo el contenido */
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}


/* Mueve los títulos un poco a la derecha */

.div4 h1 {
    margin-left: 20px;
    text-align: center;
}


/* Centra los párrafos */

.div4 p {
    text-align: center;
    margin: 10px auto;
    max-width: 80%;
}


/* Centra la lista */

.div4 ul {
    text-align: left;
    list-style-position: inside;
    padding: 0;
}


/* Ajusta los elementos de la lista */

.div4 ul li {
    display: inline-block;
    text-align: left;
    width: 100%;
    margin: 5px 0;
    padding-left: 70px;
}

.div4::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    z-index: -1;
}

@media (max-width: 768px) {
    .div4 {
        font-size: 1.2rem;
        padding: 15px;
        margin-top: -80px;
    }
}