/* Estilos base */
body, html {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}



/* Estilos para la secciÃ³n de IntroducciÃ³n - Optimizada */
.introduccion-presupuestos {
    padding: 60px 20px;
    background-color: #f9f9f9;
    text-align: center;
    position: relative;
    width: 100%;
}

.introduccion-presupuestos:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, transparent, #ff0000, transparent);
    opacity: 0.8;
}

.intro-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.intro-content h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: #222;
    position: relative;
    display: inline-block;
    line-height: 1.3;
}

.intro-content h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #ff0000;
}

.intro-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* Estilos para la secciÃ³n de Proceso - Optimizada */
.proceso-presupuestos {
    padding: 60px 20px;
    background-color: #222;
    background-image: url('../img/pattern-dark.png');
    background-size: 200px;
    color: white;
    text-align: center;
    position: relative;
    width: 100%;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(34, 34, 34, 0.85);
    z-index: 1;
}

.proceso-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.proceso-content h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    line-height: 1.3;
}

.proceso-content h2:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #ff0000;
}

.proceso-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.step {
    background-color: #222;
    border-radius: 8px;
    padding: 30px 20px;
    width: 100%;
    max-width: 350px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 0, 0, 0.3);
}

.step:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, transparent, #ff0000, transparent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.step:hover:before {
    transform: scaleX(1);
}

.servicio-icon {
    margin-bottom: 20px;
    background-color: rgba(255, 0, 0, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
    transition: all 0.4s ease;
}

.step:hover .servicio-icon {
    background-color: rgba(255, 0, 0, 0.2);
    transform: scale(1.1);
}

.step i {
    color: #ff0000;
    font-size: 2rem;
    transition: all 0.4s ease;
}

.step:hover i {
    color: #ff3333;
}

.step h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: white;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.step:hover h3 {
    color: #ff9999;
}

.step p {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.6;
}

/* Estilos para la secciÃ³n de Beneficios - Optimizada */
.beneficios-presupuestos {
    padding: 60px 20px;
    background-color: #f9f9f9;
    text-align: center;
    position: relative;
    width: 100%;
}

.beneficios-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.beneficios-content h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #222;
    position: relative;
    display: inline-block;
    line-height: 1.3;
}

.beneficios-content h2:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #ff0000;
}

.beneficios-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.beneficio {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px 20px;
    width: 100%;
    max-width: 350px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.beneficio:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 0, 0, 0.3);
}

.beneficio:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, transparent, #ff0000, transparent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.beneficio:hover:before {
    transform: scaleX(1);
}

.beneficio .servicio-icon {
    margin-bottom: 20px;
    background-color: rgba(255, 0, 0, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
    transition: all 0.4s ease;
}

.beneficio:hover .servicio-icon {
    background-color: rgba(255, 0, 0, 0.2);
    transform: scale(1.1);
}

.beneficio i {
    color: #ff0000;
    font-size: 2rem;
    transition: all 0.4s ease;
}

.beneficio:hover i {
    color: #ff3333;
}

.beneficio h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #222;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.beneficio:hover h3 {
    color: #ff0000;
}

.beneficio p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* Estilos para el CTA - Optimizado */
.cta-presupuestos {
    padding: 60px 20px;
    background-color: #222;
    color: white;
    text-align: center;
    position: relative;
    background-image: linear-gradient(to right, rgba(34,34,34,0.97), rgba(34,34,34,0.9)), url('../img/bg-cta.jpg');
    background-size: cover;
    background-position: center;
    width: 100%;
}

.cta-content {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: white;
    position: relative;
    display: inline-block;
    line-height: 1.3;
}

.cta-content h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #ff0000;
}

.cta-content p {
    font-size: 1.1rem;
    color: #f0f0f0;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background-color: #ff0000;
    color: white;
    padding: 12px 25px;
    font-size: 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);
    border: none;
    cursor: pointer;
}

.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%;
}

/* AnimaciÃ³n de Fade-in */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries para ajustes especÃ­ficos */
@media (max-width: 768px) {
    .hero {
        min-height: 400px;
        padding: 60px 20px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .intro-content h2,
    .proceso-content h2,
    .beneficios-content h2,
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .step, .beneficio {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 350px;
        padding: 50px 15px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .intro-content h2,
    .proceso-content h2,
    .beneficios-content h2,
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .intro-content p,
    .step p,
    .beneficio p,
    .cta-content p {
        font-size: 1rem;
    }
    
    .servicio-icon {
        width: 60px;
        height: 60px;
    }
    
    .step i,
    .beneficio i {
        font-size: 1.8rem;
    }
    
    .step h3,
    .beneficio h3 {
        font-size: 1.3rem;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}