/* =========================
   ESTILOS GENERALES
========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.7;
    overflow-x: hidden;
}

/* TITULOS */
h2, h3, h4, h5 {
    color: #1d3557;
    font-weight: 600;
}

h2 {
    font-size: 2.8rem;
    text-align: center;
    margin: 40px 20px 20px;
}

h3 {
    font-size: 2rem;
    margin-top: 30px;
    margin-bottom: 20px;
}

h4 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 15px;
}

h5 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* =========================
   BANNER DE REFORMAS
========================= */
.banner-reformas {
    background: linear-gradient(135deg, #1d3557 0%, #457b9d 100%);
    padding: 70px 20px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.banner-reformas::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none" opacity="0.05"><path d="M0,0 L100,0 L100,100 Z" fill="%23ffffff"/></svg>');
    background-size: cover;
}

.banner-contenido {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.banner-titulo {
    color: white;
    font-size: 3.2rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    line-height: 1.2;
}

.banner-subtitulo {
    max-width: 800px;
    margin: 0 auto;
}

.banner-subtitulo p {
    color: #f1faee;
    font-size: 1.4rem;
    margin: 0;
    opacity: 0.9;
}

/* =========================
   SECCIÓN COMPROMISO
========================= */
.compromiso-container {
    padding: 30px 45px;
    margin: 50px auto;
    max-width: 1000px;
    border-left: 4px solid #a8dadc;
}

.compromiso-contenido {
    display: block;
}

.compromiso-icono {
    display: none;
}

.compromiso-texto {
    flex: 1;
}

.compromiso-titulo {
    color: #1d3557;
    font-size: 1.6rem;
    margin-bottom: 8px;
    text-align: left;
}

.compromiso-descripcion {
    font-size: 1.15rem;
    color: #457b9d;
    margin: 10px 0;
    line-height: 1.6;
    font-style: italic;
}

.compromiso-compromiso {
    font-size: 1.05rem;
    color: #555;
    margin: 12px 0 0 0;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
}

/* =========================
   SELECTOR DE REFORMAS
========================= */
.selector-reformas {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.botones-reforma {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.boton-reforma {
    background: white;
    border: 2px solid #a8dadc;
    border-radius: 12px;
    padding: 20px 30px;
    font-size: 1.2rem;
    color: #1d3557;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.boton-reforma:hover {
    background-color: #f1faee;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.boton-reforma.active {
    background-color: #1d3557;
    color: white;
    border-color: #1d3557;
}

.boton-reforma i {
    font-size: 1.5rem;
}

/* =========================
   CONTENIDO DE REFORMA
========================= */
.contenido-reforma {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.descripcion-reforma {
    margin-bottom: 40px;
}

.descripcion-reforma p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #457b9d;
}

.servicios-incluidos {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-top: 25px;
    border-left: 4px solid #a8dadc;
}

.servicios-incluidos h4 {
    color: #1d3557;
    margin-bottom: 15px;
}

.servicios-incluidos ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.servicios-incluidos li {
    margin-bottom: 12px;
    font-size: 1.1rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #333;
}

.servicios-incluidos li i {
    color: #27ae60;
    margin-top: 3px;
}

/* =========================
   NIVELES DE CALIDAD
========================= */
.niveles-calidad {
    margin-top: 40px;
}

.niveles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.nivel-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    border-top: 4px solid;
}

.nivel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.nivel-card.economico {
    border-top-color: #27ae60;
}

.nivel-card.media {
    border-top-color: #3498db;
}

.nivel-card.premium {
    border-top-color: #e74c3c;
}

.nivel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.nivel-header h4 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.4rem;
}

.nivel-card.economico .nivel-header h4 i {
    color: #27ae60;
}

.nivel-card.media .nivel-header h4 i {
    color: #3498db;
}

.nivel-card.premium .nivel-header h4 i {
    color: #e74c3c;
}

.nivel-precio {
    background-color: #f8f9fa;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    color: #1d3557;
    font-size: 1.1rem;
}

.nivel-materiales h5 {
    color: #1d3557;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.nivel-materiales ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nivel-materiales li {
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
    font-size: 1rem;
    color: #333;
}

.nivel-materiales li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #a8dadc;
    font-size: 1.2rem;
}

.nivel-tiempo {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* =========================
   CTA FINAL
========================= */
.cta-final {
    background: linear-gradient(135deg, #1d3557 0%, #0c1c36 100%);
    color: white;
    padding: 60px 20px;
    margin: 60px 0;
    text-align: center;
}

.cta-contenido {
    max-width: 800px;
    margin: 0 auto;
}

.cta-contenido h3 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.cta-contenido p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.btn-cta {
    display: inline-block;
    background-color: #e63946;
    color: white;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-cta:hover {
    background-color: #c1121f;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.3);
}

/* =========================
   WHATSAPP BUTTON
========================= */
.whatsapp-fijo {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    padding: 18px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-fijo:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

/* =========================
   FOOTER
========================= */
.footer {
    width: 100%;
    background-color: #1a1a2e;
    color: #ffffff;
    padding: 40px 20px;
    box-sizing: border-box;
    margin-top: 100px;
}

.footer-contenido {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: space-between;
    gap: 30px;
}

.footer-columna {
    flex: 1;
    min-width: 150px;
}

.footer-titulo {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #00bcd4;
    border-bottom: 2px solid #00bcd4;
    padding-bottom: 5px;
    display: inline-block;
}

.footer-columna ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-columna ul li {
    margin-bottom: 10px;
}

.footer-columna ul li a {
    color: #cccccc;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-columna ul li a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-columna.contacto p {
    margin: 5px 0;
    color: #cccccc;
    font-size: 0.95rem;
}

.redes-sociales {
    display: flex;
    gap: 10px;
}

.redes-sociales a {
    color: #1a1a2e;
    background-color: #ffffff;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1em;
    transition: background-color 0.3s;
}

.redes-sociales a:hover {
    background-color: #00bcd4;
    color: #ffffff;
}

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    margin-top: 30px;
    border-top: 1px solid #333;
}

.footer-copyright p {
    margin: 0;
    font-size: 0.9em;
    color: #888888;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
    .niveles-grid {
        grid-template-columns: 1fr;
    }
    
    .botones-reforma {
        flex-direction: column;
        align-items: center;
    }
    
    .boton-reforma {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 2.3rem;
    }
    
    h3 {
        font-size: 1.8rem;
    }
    
    .banner-titulo {
        font-size: 2.5rem;
    }
    
    .compromiso-titulo {
        text-align: center;
    }
    
    .contenido-reforma {
        padding: 25px 20px;
    }
    
    .cta-contenido h3 {
        font-size: 1.8rem;
    }
    
    .btn-cta {
        padding: 15px 25px;
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    h2 {
        font-size: 2.1rem;
        margin: 30px 15px 15px;
    }

    .banner-servicios,
    .banner-reformas {
        padding: 45px 15px;
        margin: 25px 0;
    }

    .banner-titulo {
        font-size: 2.1rem;
    }

    .banner-subtitulo p {
        font-size: 1.1rem;
    }

    .compromiso-container {
        padding: 25px 15px;
        margin: 25px 10px;
    }

    .btn-cta {
        padding: 14px 24px;
        font-size: 1.05rem;
    }

    .cta-final {
        padding: 45px 15px;
        margin: 40px 0;
    }

    .whatsapp-fijo {
        bottom: 20px;
        right: 20px;
        padding: 15px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 1.9rem;
    }

    .banner-titulo {
        font-size: 1.8rem;
    }

    .banner-subtitulo p {
        font-size: 1rem;
    }

    .compromiso-container {
        padding: 22px 12px;
        margin: 20px 8px;
    }

    .nivel-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .boton-reforma {
        padding: 16px 20px;
        font-size: 1.05rem;
    }

    .contenido-reforma {
        padding: 20px 15px;
    }
}