/* Reset general */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: 'Arial', sans-serif;
}

/* SecciÃ³n de Servicios */
.servicios-remodelacion {
    padding: 80px 15px;
    background-color: #222;
    background-image: url('../img/pattern-dark.png');
    background-size: 200px;
    color: white;
    text-align: center;
    position: relative;
}

.servicios-remodelacion:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: #ff0000;
    opacity: 0.8;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(34, 34, 34, 0.85);
    z-index: 1;
}

.servicios-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.servicios-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.servicios-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 50px;
}

.servicio {
    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);
    flex: 1 1 100%;
}

.servicio:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 0, 0, 0.3);
}

.servicio: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;
}

.servicio:hover:before {
    transform: scaleX(1);
}

.servicio-icon {
    margin-bottom: 25px;
    background-color: rgba(255, 0, 0, 0.1);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 25px;
    transition: all 0.4s ease;
}

.servicio:hover .servicio-icon {
    background-color: rgba(255, 0, 0, 0.2);
    transform: scale(1.1);
}

.servicio i {
    color: #ff0000;
    font-size: 2.5rem;
    transition: all 0.4s ease;
}

.servicio:hover i {
    color: #ff3333;
}

.servicio h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: white;
    transition: color 0.3s ease;
}

.servicio:hover h3 {
    color: #ff9999;
}

.servicio p {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.6;
}

/* Proyecto Destacado */
.proyecto-destacado {
    padding: 60px 15px;
    background-color: #f9f9f9;
}

.proyecto-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0 15px;
}

.proyecto-content h2 {
    font-size: 2.3rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.proyecto-content h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #ff0000;
}

.proyecto-subtitulo {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 40px;
    font-style: italic;
}

.proyecto-info {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.proyecto-texto,
.proyecto-imagen {
    flex: 1 1 100%;
    width: 100%;
}

.proyecto-texto h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #222;
    position: relative;
    padding-bottom: 10px;
}

.proyecto-texto h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #ff0000;
}

.proyecto-texto p {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.proyecto-datos {
    list-style: none;
    padding: 0;
    margin: 0;
}

.proyecto-datos li {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #555;
    display: flex;
    align-items: flex-start;
}

.proyecto-datos i {
    color: #ff0000;
    margin-right: 10px;
    margin-top: 3px;
    font-size: 1.2rem;
}

.proyecto-datos strong {
    color: #222;
    margin-right: 5px;
}

.proyecto-imagen img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.proyecto-imagen:hover img {
    transform: scale(1.02);
}

.proyecto-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #ff0000;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* CTA */
.cta-remodelacion {
    padding: 60px 15px;
    background-color: #222;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-remodelacion:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #222;
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.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 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 1s ease-in;
}

/* Responsive Design */
@media (max-width: 768px) {
    .servicios-list {
        flex-direction: column;
        align-items: center;
    }

    .servicio {
        width: 100%;
        max-width: 100%;
    }

    .proyecto-info {
        flex-direction: column;
    }

    .proyecto-content h2 {
        font-size: 1.8rem;
    }

    .cta-content h2 {
        font-size: 1.9rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .cta-button {
        font-size: 1rem;
        padding: 12px 20px;
    }
}


/* Fix para pantallas muy pequeÃ±as (menores a 360px) */
@media (max-width: 360px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    .servicio {
        width: 100%;
        padding: 30px 10px; /* Reduce padding lateral */
    }

    .servicios-list {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
        width: 100%;
    }

    .proyecto-info {
        padding: 20px;
    }

    .cta-content {
        padding: 0 10px;
    }

    .cta-button {
        width: 100%;
        padding: 12px 10px;
        font-size: 1rem;
    }
}