* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.imagenPrincipal img {
    width: 30%;
    height: auto;
    margin-top: 120px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 6px;
}

.seccionContenido {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(to bottom right, black 0%, #880000 70%, red 100%);
    margin-bottom: 10px;
}

.contenedor {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.contenedorImagen img {
    width: 80%;
    height: auto;
    max-width: 400px;
}

.contenedorTexto {
    margin-left: 40px;
    flex: 1;
}

.contenedorTexto h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #efefef;
    text-align: center;
}

.contenedorTexto p {
    font-size: 16px;
    line-height: 1.6;
    color: #f5f5f5;
}

.seccionContenido.invertido .contenedor {
    flex-direction: row-reverse;
}

.seccionContenido.invertido .contenedorTexto {
    margin: 0;
    margin-right: 20px;
}

footer {
    background-color: #333;
    color: #fff;
    padding: 10px;
    margin-top: 90px;
}

.footer-container {
    display: flex;
    justify-content: space-around;
}

.footer-section {
    width: 20%;
    padding: 10px;
}

.footer-section h2 {
    border-bottom: 1px solid #fff;
    padding-bottom: 10px;
    font-size: 20px;
}

.footer-section p, .footer-section a {
    color: #fff;
    text-decoration: none;
    line-height: 1.6;
}

.footer-section li {
    list-style: none;
}

.footer-section a:hover {
    color: #FF6464;
}

.footer-section i{
    font-size: 20px;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid #444;
    padding-top: 10px;
}

.footer-bottom p {
    margin: 0;
}

.footer-section a {
    margin-right: 10px;
    font-size: 16px;
}


@media (max-width: 768px) {
    .seccionContenido .contenedor, .seccionContenido.invertido .contenedor {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contenedorImagen img {
        width: 60%;
        max-width: 60%;
    }

    .contenedorTexto {
        margin-left: 0;
        margin-top: 20px;
        text-align: center;
    }

    .contenedorTexto h2 {
        font-size: 24px;
    }

    .contenedorTexto p {
        font-size: 14px;
    }

    footer {
        padding: 20px 10px;
    }

    /* Ajustes en el footer */
    .footer-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        width: 80%;
        padding: 10px;
        text-align: center;
    }

    .footer-section h2 {
        font-size: 18px;
    }

    .footer-section a {
        font-size: 14px;
    }

    .footer-bottom {
        padding-top: 10px;
    }

    .footer-bottom p {
        font-size: 14px;
    }
}

/* Dispositivos pequeños */
@media (max-width: 480px) {
    .contenedorTexto h2 {
        font-size: 20px;
    }

    .contenedorTexto p {
        font-size: 12px;
    }
}
