/* Base comÃºn para todas las secciones */
section {
    transition: all 0.3s ease;
}

/* Mejoras para Imagen-Texto */
#imagen-texto {
    background-color: white;
    padding: 60px 10%; /* AumentÃ© el padding para mÃ¡s espacio */
}

.imagen-texto-container {
    display: flex;
    align-items: center;
    gap: 60px; /* MÃ¡s espacio entre elementos */
    max-width: 1400px;
    margin: 0 auto;
}

.imagen-texto-imagen img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.imagen-texto-imagen img:hover {
    transform: scale(1.02);
}

.imagen-texto-texto h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    position: relative;
    color: #222;
    font-weight: 700;
}

.imagen-texto-texto h2:after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background-color: #ff0000;
    margin-top: 15px;
}

.imagen-texto-texto p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #444;
}

/* Mejoras para Texto-Video */
#texto-video {
    background-color: #222;
    padding: 60px 10%;
}

.texto-video-container {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.texto-video-texto h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    position: relative;
    font-weight: 700;
    color: white
}

.texto-video-texto h2:after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background-color: #ff0000;
    margin-top: 15px;
}

.texto-video-texto p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #e0e0e0;
}

.texto-video-video video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.texto-video-video video:hover {
    transform: scale(1.02);
}

/* Mejoras para Texto-Imagen */
#texto-imagen {
    background-color: white;
    padding: 60px 10%;
}

.texto-imagen-container {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.texto-imagen-texto h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    position: relative;
    color: #222;
    font-weight: 700;
}

.texto-imagen-texto h2:after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background-color: #ff0000;
    margin-top: 15px;
}

.texto-imagen-texto p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #444;
}

.texto-imagen-imagen img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.texto-imagen-imagen img:hover {
    transform: scale(1.02);
}

/* Mejoras para Casos de Estudio */
.casos-estudio {
    padding: 80px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.casos-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #222;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.casos-content h2:after {
    content: "";
    display: block;
    width: 100px;
    height: 4px;
    background-color: #ff0000;
    margin: 15px auto 0;
}

.casos-content p {
    font-size: 1.3rem;
    color: #555;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* Mejoras para Proyectos */
.proyecto-detalle {
    padding: 80px 20px;
    text-align: left;
    margin-bottom: 0; /* Eliminar espacio inferior para crear continuidad */
    position: relative;
    overflow: hidden;
}

.proyecto-oscuro {
    background-color: #222;
    color: white;
}

.proyecto-claro {
    background-color: white;
    color: #222;
}

.proyecto-contenido {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.proyecto-detalle h3 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.proyecto-detalle h3:after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background-color: #ff0000;
    margin: 15px auto 0;
}

.proyecto-imagenes {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.imagen-antes, .imagen-despues {
    flex: 1;
    max-width: 45%;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.imagen-antes:hover, .imagen-despues:hover {
    transform: translateY(-5px);
}

.imagen-antes img, .imagen-despues img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.imagen-antes p, .imagen-despues p {
    font-size: 1.1rem;
    margin-top: 15px;
    font-weight: 600;
    position: relative;
}

.imagen-antes p:after, .imagen-despues p:after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background-color: #ff0000;
    margin: 8px auto 0;
}

.proyecto-descripcion {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    padding: 0 20px;
}

.proyecto-descripcion p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.proyecto-descripcion ul {
    list-style: none;
    margin-left: 0;
    font-size: 1.1rem;
}

.proyecto-descripcion li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px;
}

.proyecto-descripcion li:before {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    background-color: #ff0000;
    position: absolute;
    left: 0;
    top: 8px;
    border-radius: 50%;
}

/* Mejoras para CTA */
.cta-proyectos {
    background-color: #222;
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-proyectos:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color:#222;
    z-index: 1;
}

.cta-proyectos h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: white;
    font-weight: 700;
}

.cta-proyectos p {
    font-size: 1.3rem;
    color: #f0f0f0;
    margin-bottom: 40px;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    background-color: #ff0000;
    color: white;
    padding: 15px 15px;
    font-size: 1.1rem;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-weight: 500;
    letter-spacing: 1px;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

.cta-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    z-index: -1;
}

.cta-button:hover {
    background-color: #d30000;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4);
}

.cta-button:hover:before {
    left: 100%;
}

/* Animaciones */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.slide-in-right {
    transform: translateX(50px);
    animation: slideIn 1s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    to {
        transform: translateX(0);
    }
}

/* Media Queries mejorados */
@media (max-width: 992px) {
    .imagen-texto-container,
    .texto-video-container,
    .texto-imagen-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .imagen-texto-texto,
    .texto-video-texto,
    .texto-imagen-texto {
        order: 1;
        text-align: center;
    }
    
    .imagen-texto-imagen,
    .texto-video-video,
    .texto-imagen-imagen {
        order: 2;
    }
    
    .imagen-texto-texto h2:after,
    .texto-video-texto h2:after,
    .texto-imagen-texto h2:after {
        margin-left: auto;
        margin-right: auto;
    }
    
    .proyecto-imagenes {
        flex-direction: column;
        align-items: center;
    }
    
    .imagen-antes, .imagen-despues {
        max-width: 90%;
        margin-bottom: 30px;
    }
    
    .proyecto-descripcion {
        text-align: center;
    }
    
    .proyecto-descripcion li {
        padding-left: 0;
    }
    
    .proyecto-descripcion li:before {
        display: none;
    }
}

@media (max-width: 768px) {
    .imagen-texto-texto h2,
    .texto-video-texto h2,
    .texto-imagen-texto h2,
    .casos-content h2,
    .proyecto-detalle h3,
    .cta-proyectos h2 {
        font-size: 1.8rem;
    }
    
    .imagen-texto-texto p,
    .texto-video-texto p,
    .texto-imagen-texto p,
    .casos-content p,
    .proyecto-descripcion p,
    .cta-proyectos p {
        font-size: 1.1rem;
    }
    
    .cta-button {
        padding: 14px 28px;
        font-size: 1.1rem;
    }
}

/* Mejoras responsivas para la secciÃ³n hero */
@media (max-width: 768px) {
    .hero-content {
        padding-inline: 20px;
        margin-top: 40%;
        width: 100%;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .hero-content .hero-title span{
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-content {
        margin-top: 50%;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }

.hero-content .hero-title span{
    font-size: 2rem;
}
}

/* Mejoras para los proyectos en dispositivos pequeÃ±os */
@media (max-width: 576px) {
    .proyecto-detalle {
        padding: 50px 15px;
    }
    
    .proyecto-detalle h3 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .imagen-antes, .imagen-despues {
        max-width: 100%;
    }
    
    .proyecto-descripcion ul {
        padding-left: 0;
    }
    
    .proyecto-descripcion li {
        text-align: left;
        padding-left: 20px;
    }
    
    .proyecto-descripcion li:before {
        display: block;
        left: 5px;
        top: 8px;
    }
}

/* Mejoras para los contenedores de imagen y texto */
@media (max-width: 992px) {
    #imagen-texto,
    #texto-video,
    #texto-imagen {
        padding: 40px 5%;
    }
}

@media (max-width: 576px) {
    .imagen-texto-container,
    .texto-video-container,
    .texto-imagen-container {
        gap: 25px;
    }
    
    .imagen-texto-texto h2,
    .texto-video-texto h2,
    .texto-imagen-texto h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .imagen-texto-texto p,
    .texto-video-texto p,
    .texto-imagen-texto p {
        font-size: 1rem;
    }
}

/* Mejoras para CTA en dispositivos pequeÃ±os */
@media (max-width: 576px) {
    .cta-proyectos {
        padding: 50px 15px;
    }
    
    .cta-proyectos h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .cta-proyectos p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .cta-button {
        padding: 12px 24px;
        font-size: 1rem;
        width: 80%;
        max-width: 250px;
    }
}

/* Mejoras para casos de estudio en dispositivos pequeÃ±os */
@media (max-width: 576px) {
    .casos-estudio {
        padding: 50px 15px;
    }
    
    .casos-content h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .casos-content p {
        font-size: 1rem;
        margin-bottom: 30px;
    }
}