/* 1. Reset para que no haya espacios raros */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica', Arial, sans-serif;
}

/* 2. El Header finito */
/* --- HEADER INTEGRADO --- */
/* --- HEADER INTEGRADO (DESAPARECE AL BAJAR) --- */
/* ===========================================
   HEADER Y HERO: IMPACTO TOTAL (CORREGIDO)
   =========================================== */

/* --- HEADER MINIMALISTA (SIN FRANJA BLANCA) --- */
.main-header {
    position: absolute; /* Flota sobre el Hero */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: transparent; /* Eliminamos el fondo blanco o blur fuerte */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.logo img {
    height: 60px;
    /* Sombra al logo para que se vea sobre fondos claros */
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.5));
}

.btn-llamada-rapida {
    background: linear-gradient(135deg, #ff8c00 0%, #e65c2e 100%);
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 900;
    text-decoration: none;
    font-size: 0.9rem;
    box-shadow: 0 8px 20px rgba(230, 92, 46, 0.4);
    transition: 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-llamada-rapida:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(230, 92, 46, 0.6);
}

/* --- HERO CON PARALLAX Y LEGIBILIDAD EXTREMA --- */
.hero-parallax {
    position: relative;
    height: 100vh;
    min-height: 750px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('img/hero.jpg'); 
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    color: white;
    overflow: hidden;
}

/* OVERLAY: Gradado estratégico para que el texto sea el rey */
.parallax-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Gradiente: más oscuro arriba (para el logo) y abajo (para el botón) */
    background: linear-gradient(
        to bottom, 
        rgba(0,0,0,0.8) 0%, 
        rgba(0,0,0,0.4) 40%, 
        rgba(0,0,0,0.4) 60%, 
        rgba(0,0,0,0.8) 100%
    );
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    width: 100%;
}

/* TÍTULO: FUERTE Y LEGIBLE */
.hero-title {
    font-size: 4.5rem; /* Tamaño masivo */
    font-weight: 900;
    line-height: 0.95;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: -3px;
    /* Sombra de texto para contraste total */
    text-shadow: 0 5px 25px rgba(0,0,0,0.9);
}

.text-glow {
    color: #ff8c00;
    display: inline-block;
    /* Efecto de luz suave */
    text-shadow: 0 0 30px rgba(255, 140, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    max-width: 850px;
    margin: 0 auto 50px;
    color: #ffffff;
    line-height: 1.4;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* --- BOTÓN SOLICITAR PRESUPUESTO (EFECTO CRISTAL) --- */
.btn-presupuesto-main {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    
    /* EFECTO CRISTAL PROFESIONAL */
    background: rgba(255, 255, 255, 0.15); /* Fondo muy suave */
    backdrop-filter: blur(15px); /* Desenfoque de fondo */
    -webkit-backdrop-filter: blur(15px);
    
    /* Tamaño ajustado (menos masivo, más elegante) */
    padding: 18px 50px;
    border-radius: 20px;
    
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Borde brillante para que resalte en el cristal */
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    
    position: relative;
    z-index: 2;
}

/* Texto principal del botón */
.btn-presupuesto-main {
    font-size: 1.5rem; /* Bajamos de 2.2rem a 1.5rem */
    font-weight: 900;
    color: #ffffff; /* Texto blanco para que brille sobre el cristal */
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Subtexto del botón */
.btn-subtext {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ff8c00; /* Naranja Balbi para el llamado a la acción */
    text-transform: uppercase;
    margin-top: 5px;
    letter-spacing: 1px;
}

/* --- HOVER: CAMBIO DE ESTADO --- */
.btn-presupuesto-main:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
    border-color: #ff8c00; /* El borde se vuelve naranja al pasar el mouse */
    box-shadow: 0 20px 40px rgba(255, 140, 0, 0.2);
}

.btn-presupuesto-main:hover .btn-subtext {
    color: #ffffff; /* El subtexto cambia a blanco en hover */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* --- RESPONSIVO --- */
@media (max-width: 900px) {
    .hero-title { font-size: 3rem; letter-spacing: -1px; }
    .hero-subtitle { font-size: 1.2rem; }
    .btn-presupuesto-main { padding: 20px 40px; font-size: 1.5rem; }
    .header-container { padding: 0 20px; }
    .logo img { height: 45px; }
}

/* --- SECCIÓN SERVICIOS IMPACTO TOTAL --- */

.services {
    padding: 100px 0;
    background-color: #f9f9f9; /* Gris muy leve de fondo para resaltar las tarjetas */
    width: 100%;
}

.services-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- TEXTOS CABECERA --- */
.services-header {
    text-align: center;
    width: 100%;
    margin-bottom: 60px;
}

.section-title {
    font-size: 3.2rem;
    font-weight: 900; /* Extra negrita */
    color: #000000; /* Negro puro para máximo contraste */
    text-transform: uppercase;
    letter-spacing: -1px;
}

.section-title span { color: #ff8c00; }

.section-subtitle {
    font-size: 1.2rem;
    color: #222; /* Más oscuro */
    font-weight: 600; /* Más gruesito */
}

/* --- GRILLA --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
}

/* --- TARJETA PREMIUM (Estado Normal) --- */
.service-card {
    /* FONDO DEGRADADO CONSTANTE */
    background: linear-gradient(135deg, #ffffff 0%, #fff2e6 100%);
    
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    
    /* BORDE NARANJA SUTIL SIEMPRE VISIBLE */
    border: 2px solid rgba(255, 140, 0, 0.15);
    
    /* SOMBRA SUTIL CONSTANTE */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}

.img-container {
    height: 230px;
    overflow: hidden;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s ease;
}

.card-body {
    padding: 30px;
}

/* Títulos de tarjeta más oscuros y gruesos */
.card-body h3 {
    font-size: 1.3rem;
    font-weight: 900; 
    color: #000000;
    margin-bottom: 12px;
    line-height: 1.2;
}

/* Párrafos más legibles */
.card-body p {
    font-size: 1rem;
    color: #1a1a1a; /* Negro suave, mucho más legible */
    line-height: 1.6;
    font-weight: 600; /* Texto con cuerpo */
}

.arrow-icon {
    display: inline-block;
    margin-top: 15px;
    color: #ff8c00;
    font-size: 2rem;
    font-weight: bold;
    transition: 0.4s;
}

/* --- EFECTO HOVER POTENCIADO --- */
.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    
    /* FONDO MÁS CÁLIDO AL PASAR EL MOUSE */
    background: linear-gradient(135deg, #ffffff 0%, #ffdfbc 100%);
    
    /* BORDE MÁS NOTORIO */
    border-color: #ff8c00;
    
    /* SOMBRA BALBI GLOW */
    box-shadow: 0 25px 50px rgba(230, 92, 46, 0.3);
}

.service-card:hover img {
    transform: scale(1.1);
}

.service-card:hover .arrow-icon {
    transform: translateX(12px);
}

/* Animación de entrada */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.8s ease forwards; }

/* Responsivo */
@media (max-width: 1100px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }



/* ===========================================
   SECCIÓN: ¿POR QUÉ ELEGIRNOS? (CRISTAL + WHATSAPP)
   =========================================== */

.why-us {
    padding: 100px 0;
    /* Imagen de fondo con efecto parallax */
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), 
                url('img/remodelacion1.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    width: 100%;
}

.why-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- GRILLA DE BENEFICIOS --- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

/* --- TARJETAS EFECTO CRISTAL (GLASSMORPHISM) --- */
.why-card {
    /* Fondo translúcido con degradado sutil */
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 242, 230, 0.8) 100%);
    backdrop-filter: blur(10px); /* Desenfoque de fondo tipo cristal */
    -webkit-backdrop-filter: blur(10px);
    
    padding: 60px 30px;
    border-radius: 35px;
    text-align: center;
    
    /* Borde "neón" naranja suave siempre visible */
    border: 2px solid rgba(255, 140, 0, 0.3); 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- ICONOS (MANTIENEN SUS COLORES ORIGINALES) --- */
.icon-box {
    width: 110px;
    height: 110px;
    background: #ffffff; 
    margin: 0 auto 30px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.icon-box img {
    width: 70%;
    height: auto;
    filter: none !important; /* COLORES REALES */
}

/* --- TEXTOS OSCUROS Y EXTRA GRUESOS --- */
.why-card h3 {
    font-size: 1.5rem;
    font-weight: 900;
    color: #000000;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.why-card p {
    font-size: 1.1rem;
    color: #000000; /* Negro para máxima legibilidad */
    font-weight: 700; 
    line-height: 1.6;
}

/* HOVER TARJETA */
.why-card:hover {
    transform: translateY(-15px);
    border-color: #ff8c00;
    box-shadow: 0 25px 50px rgba(230, 92, 46, 0.3);
    background: rgba(255, 255, 255, 1);
}

/* --- BOTÓN WHATSAPP GIGANTE (ESTILO BOCETO) --- */
.cta-whatsapp {
    margin-top: 80px;
    width: 100%;
    max-width: 800px;
    text-align: center;
}

.btn-whatsapp {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(90deg, #ff8c00, #e65c2e);
    padding: 25px 60px;
    border-radius: 25px;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 15px 35px rgba(230, 92, 46, 0.4);
    transition: 0.4s;
}

.btn-whatsapp:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 45px rgba(230, 92, 46, 0.6);
}

.btn-whatsapp span { display: block; }
.btn-whatsapp .text-white { font-size: 1.2rem; font-weight: 400; text-transform: uppercase; }
.btn-whatsapp .text-bold { font-size: 2.8rem; font-weight: 900; margin-bottom: 10px; }

.wa-number {
    background: #25d366; 
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1.8rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 15px;
}

.wa-number img { width: 35px; filter: none !important; }

/* --- RESPONSIVO --- */
@media (max-width: 1024px) {
    .why-grid { grid-template-columns: 1fr; }
    .btn-whatsapp .text-bold { font-size: 1.8rem; }
}


/* --- SECCIÓN TESTIMONIOS PREMIUM --- */

.testimonials {
    padding: 100px 0;
    background-color: #ffffff;
    width: 100%;
}

.testimonials-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-header {
    margin-bottom: 60px;
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

/* Tarjeta con efecto cristal y degradado */
.testimonial-card {
    background: linear-gradient(145deg, #ffffff 0%, #fff9f2 100%);
    padding: 40px;
    border-radius: 30px;
    border: 2px solid rgba(255, 140, 0, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stars {
    color: #ff8c00;
    font-size: 1.2rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 1.05rem;
    color: #1a1a1a;
    font-weight: 600; /* Texto con cuerpo */
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Información del Cliente */
.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.client-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ff8c00;
}

.client-details h4 {
    font-size: 1.1rem;
    font-weight: 900;
    color: #000;
    margin: 0;
}

.client-details span {
    font-size: 0.85rem;
    color: #ff8c00;
    font-weight: 700;
    text-transform: uppercase;
}

/* Hover */
.testimonial-card:hover {
    transform: translateY(-10px);
    border-color: #ff8c00;
    box-shadow: 0 20px 40px rgba(230, 92, 46, 0.15);
}

/* Responsivo */
@media (max-width: 1024px) {
    .testimonials-grid { grid-template-columns: 1fr; }
}


/* --- FOOTER FINAL IMPACTO TOTAL --- */

.final-cta {
    position: relative;
    padding: 120px 0 40px;
    width: 100%;
    min-height: 80vh; /* Ocupa casi toda la pantalla */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* FONDO PARALLAX */
    background-image: url('img/remodelacion1.jpg'); 
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    overflow: hidden;
}

/* Capa oscura para que el texto resalte */
.parallax-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.cta-container {
    position: relative;
    z-index: 2;
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    max-width: 1000px;
}

/* CAJA DE CRISTAL (GLASSMORPHISM) */
.glass-cta {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 40px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.cta-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.cta-title span {
    color: #ff8c00; /* Naranja Balbi */
    display: block; /* Hace que "ES AHORA" salte de línea */
    font-size: 3.5rem;
}

.cta-subtitle {
    font-size: 1.8rem;
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

/* BOTÓN WHATSAPP FINAL */
.btn-final-wa {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: #25d366;
    color: white;
    padding: 20px 50px;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: 900;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.btn-final-wa img {
    width: 30px;
}

.btn-final-wa:hover {
    transform: scale(1.1) rotate(-1deg);
    background: #1eb954;
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.5);
}

/* COPYRIGHT PEQUEÑO ABAJO */
.footer-legal {
    margin-top: 60px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .cta-title { font-size: 1.8rem; }
    .cta-title span { font-size: 2.2rem; }
    .btn-final-wa { padding: 15px 30px; font-size: 1.1rem; }
}

/* ===========================================
   OPTIMIZACIÓN PARA MÓVIL (CORRECCIONES)
   =========================================== */

@media (max-width: 768px) {
    
    /* 1. Header: Reducimos espacio para ganar pantalla */
    .header-container {
        padding: 0 20px;
    }
    .logo img {
        height: 45px; /* Logo más discreto */
    }
    .btn-llamada-rapida {
        padding: 8px 18px;
        font-size: 0.8rem;
    }

    /* 2. Hero: Titulo y Subtitulo proporcionales */
    .hero-parallax {
        min-height: 600px; /* Un poco más corto en móvil */
    }
    .hero-title {
        font-size: 2.2rem; /* De 4.5 a 2.2: mucho más equilibrado */
        letter-spacing: -1px;
        line-height: 1.1;
    }
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
        padding: 0 10px;
    }

    /* 3. Botón CTA Presupuesto: Menos masivo */
    .btn-presupuesto-main {
        padding: 15px 30px; /* Reducimos el "ladrillo" */
        font-size: 1.2rem;
        width: 90%; /* Que ocupe casi todo el ancho pero con aire */
    }
    .btn-subtext {
        font-size: 0.75rem;
    }

    /* 4. Sección Servicios */
    .section-title {
        font-size: 2rem;
    }
    .services-grid {
        grid-template-columns: 1fr; /* Una sola columna */
    }

    /* 5. Sección ¿Por qué elegirnos? */
    .why-card {
        padding: 30px 20px;
    }
    .btn-whatsapp .text-bold {
        font-size: 1.6rem; /* WhatsApp más manejable */
    }
    .wa-number {
        font-size: 1.3rem;
        padding: 10px 20px;
    }

    /* 6. Testimonios */
    .testimonial-card {
        padding: 25px;
    }

    /* 7. CTA Final (Footer) */
    .glass-cta {
        padding: 40px 20px;
        border-radius: 25px;
        width: 95%;
    }
    .cta-title {
        font-size: 1.6rem;
    }
    .cta-title span {
        font-size: 2rem;
    }
    .cta-subtitle {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }
    .btn-final-wa {
        padding: 15px 30px;
        font-size: 1rem;
        width: 100%; /* Botón de ancho completo para el pulgar */
    }
}

/* Ajuste para celulares muy pequeños (iPhone SE, etc.) */
@media (max-width: 380px) {
    .hero-title {
        font-size: 1.8rem;
    }
    .btn-presupuesto-main {
        font-size: 1.1rem;
    }
}