

/* Estilos generales compartidos */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Estilos para la secciÃ³n de IntroducciÃ³n */
.introduccion-interventoria {
    padding: 80px 0;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.introduccion-interventoria:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, transparent, #ff0000, transparent);
    opacity: 0.8;
}

.intro-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.intro-content h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    color: #222;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.intro-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #ff0000;
}

.intro-content p {
    font-size: 1.25rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 40px;
}

/* Estilos para la secciÃ³n de Servicios */
.servicios-interventoria {
    padding: 90px 0;
    background-color: #222;
    color: #fff;
    position: relative;
}

.servicios-content {
    text-align: center;
}

.servicios-content h2 {
    font-size: 2.8rem;
    margin-bottom: 60px;
    color: white;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.servicios-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #ff0000;
}

.servicios-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 20px;
}

.servicio {
    background: linear-gradient(145deg, #2a2a2a, #1f1f1f);
    border-radius: 12px;
    padding: 40px 30px;
    width: 300px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.servicio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background-color: #ff0000;
    transition: height 0.4s ease;
}

.servicio:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.servicio:hover::before {
    height: 100%;
}

.servicio-icon {
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.servicio i {
    color: #ff0000;
    font-size: 3rem;
    transition: all 0.4s ease;
}

.servicio:hover i {
    transform: scale(1.15);
    color: #ff6666;
}

.servicio-info {
    position: relative;
    z-index: 1;
}

.servicio h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: white;
    font-weight: 600;
    transition: color 0.3s ease;
}

.servicio:hover h3 {
    color: #ff0000;
}

.servicio p {
    font-size: 1.05rem;
    color: #e0e0e0;
    line-height: 1.7;
}

/* Estilos para el CTA */
.cta-interventoria {
    padding: 90px 0;
    background-color: #f8f9fa;
    position: relative;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.6rem;
    margin-bottom: 25px;
    color: #222;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 40px;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    background-color: #ff0000;
    color: white;
    padding: 15px 25px;
    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 para el fade-in */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Estilos responsive */
@media (max-width: 992px) {
    .servicios-list {
        gap: 20px;
    }
    .servicio {
        width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .intro-content h2,
    .servicios-content h2,
    .cta-content h2 {
        font-size: 2.2rem;
    }
    .intro-content p,
    .cta-content p {
        font-size: 1.1rem;
    }
    .servicio {
        width: 100%;
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    .intro-content h2,
    .servicios-content h2,
    .cta-content h2 {
        font-size: 2rem;
    }
    .intro-content p,
    .cta-content p {
        font-size: 1rem;
    }
    .cta-button {
        padding: 14px 28px;
        font-size: 1.05rem;
    }
}

@media (max-width: 1024px) {
    .hero-content {
        padding-inline: 80px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding-inline: 40px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: auto;
        padding: 60px 0;
    }

    .hero-content {
        position: relative;
        padding-inline: 20px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .imagen {
        position: relative;
        height: 300px;
        object-fit: cover;
    }
}