/* RESET DE ESTILOS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #111;
    color: #fff;
}

/* CONTENEDOR PRINCIPAL (HERO) */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    /* Reemplaza 'tu-imagen-de-fondo.jpg' con la ruta de tu imagen de la casa/piso */
    background: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem 4rem;
    z-index: 1;
}

/* Filtro oscuro para asegurar legibilidad */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 30%, rgba(0, 0, 0, 0.2) 100%);
    z-index: -1;
}

/* ENCABEZADO / LOGO Y BOTÓN */
.hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 0.9;
}

.logo-num {
    font-size: 2.5rem;
    font-weight: 900;
    position: relative;
}

.logo-num .degree {
    font-size: 1.2rem;
    position: absolute;
    top: 2px;
}

.logo-text {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Botón de Cotizar */
.btn-whatsapp {
    background-color: #e51a24; /* Rojo vibrante del diseño */
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-whatsapp i {
    font-size: 1.2rem;
}

.btn-whatsapp:hover {
    background-color: #b81018;
    transform: scale(1.05);
}

/* CONTENIDO TEXTO PRINCIPAL */
.hero-content {
    margin-top: auto;
    margin-bottom: auto;
    max-width: 600px;
}

h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.highlight {
    color: #e51a24;
}

.subtitle {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.4;
    color: #ccc;
    position: relative;
    padding-top: 1rem;
    margin-bottom: 3rem;
}

/* Línea roja divisoria */
.subtitle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #e51a24;
}

/* SECCIÓN DE ICONOS / CARACTERÍSTICAS */
.features-container {
    display: flex;
    gap: 2.5rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.icon-wrapper {
    font-size: 1.8rem;
    color: #e51a24;
    border: 2px solid rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.feature-item p {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ddd;
}

/* RESPONSIVE DESIGN (Celulares y Tablets) */
@media (max-width: 768px) {
    .hero-section {
        padding: 1.5rem;
        background-position: 35% center; /* Ajusta el fondo para móviles */
    }

    .overlay {
        background: rgba(0, 0, 0, 0.75); /* Más oscuro en móvil para leer mejor */
    }

    h1 {
        font-size: 2.3rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .features-container {
        gap: 1rem;
        justify-content: space-between;
    }

    .icon-wrapper {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }

    .feature-item p {
        font-size: 0.65rem;
    }
}

/* SECCIÓN SISTEMA SPRAY DECK 360 */
.sistema-section {
    background-color: #ffffff; /* Fondo blanco como en el flyer original */
    color: #111111;
    padding: 5rem 4rem;
    width: 100%;
}

.sistema-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

/* Info Izquierda */
.sistema-info {
    flex: 1;
    max-width: 350px;
}

.sistema-info h2 {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.highlight-dark {
    color: #e51a24; /* Color rojo de énfasis */
}

.sistema-description {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.5;
}

/* Contenedor de Productos (Flex horizontal) */
.productos-wrapper {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Tarjetas individuales de producto */
.producto-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.producto-card:hover {
    transform: translateY(-8px); /* Efecto sutil al pasar el mouse */
}

/* Contenedores de las imágenes */
.producto-img-container {
    height: 220px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.producto-img-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    /* Sombra suave para dar volumen a los envases */
    filter: drop-shadow(0px 10px 15px rgba(0,0,0,0.15)); 
}

/* Badges / Etiquetas de los productos */
.badge {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    padding: 0.4rem 1.2rem;
    border-radius: 3px;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    display: inline-block;
    width: fit-content;
}

.badge-rojo {
    background-color: #e51a24;
}

.badge-gris {
    background-color: #333333;
}

/* Detalle inferior */
.producto-detalle {
    font-size: 0.85rem;
    font-weight: 500;
    color: #444;
    line-height: 1.3;
    max-width: 160px;
}

/* Signo Más (+) entre productos */
.operador-mas {
    font-size: 1.8rem;
    font-weight: 700;
    color: #111;
    padding: 0 0.5rem;
    margin-bottom: 4rem; /* Alínea el símbolo más arriba hacia el centro de los botes */
}

/* RESPONSIVE DESIGN (Móviles y Tablets) */
@media (max-width: 992px) {
    .sistema-container {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .sistema-info {
        max-width: 100%;
    }

    .productos-wrapper {
        flex-direction: column;
        gap: 3rem;
        width: 100%;
    }

    .operador-mas {
        margin-bottom: 0;
        transform: rotate(0deg); /* Se queda como más, apuntando hacia abajo en la lista vertical */
        font-size: 2rem;
    }

    .producto-img-container {
        height: 180px;
    }
}


/* SECCIÓN COMPARATIVA ANTES Y DESPUÉS */
.comparativa-section {
    background-color: #111111; /* Volvemos al fondo oscuro elegante */
    padding: 5rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.comparativa-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.comparativa-title h2 {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #ffffff;
}

.comparativa-title p {
    font-size: 0.9.5rem;
    color: #888;
    margin-top: 0.5rem;
}

/* Contenedor del Slider */
.slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 500px; /* Altura ideal en escritorio */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    user-select: none; /* Evita que se seleccione el texto al arrastrar */
}

/* Contenedor genérico para las imágenes */
.img-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.img-container img {
    position: absolute;
    width: 1000px; /* Debe coincidir exactamente con el max-width del slider-wrapper */
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Configuración específica de la capa 'Antes' (Capa superior recortada) */
.antes-img {
    width: 50%; /* Inicia exactamente a la mitad */
    overflow: hidden;
    z-index: 2;
}

.despues-img {
    z-index: 1;
}

/* Etiquetas flotantes 'ANTES' y 'DESPUÉS' */
.label-tag {
    position: absolute;
    bottom: 20px;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 1px;
    padding: 0.5rem 1.2rem;
    border-radius: 3px;
    z-index: 10;
}

.tag-antes {
    left: 20px;
    background-color: #000000;
    color: #ffffff;
}

.tag-despues {
    right: 20px;
    background-color: #e51a24;
    color: #ffffff;
}

/* Barra central deslizable */
.slider-handle {
    position: absolute;
    top: 0;
    left: 50%; /* Alineada al mismo 50% inicial */
    width: 4px;
    height: 100%;
    background-color: #e51a24;
    cursor: ew-resize; /* Cursor de flechas laterales */
    z-index: 5;
}

/* Botón circular en el centro de la barra */
.handle-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    background-color: #e51a24;
    border: 3px solid #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    /* Ajuste para que las imágenes se adapten al ancho dinámico de la tablet/móvil */
    .img-container img {
        width: 100vw; 
    }
}

@media (max-width: 768px) {
    .comparativa-section {
        padding: 3rem 1.5rem;
    }
    
    .slider-wrapper {
        height: 350px; /* Más bajo en dispositivos móviles */
    }

    .comparativa-title h2 {
        font-size: 1.8rem;
    }
}


/* SECCIÓN 5: FOOTER Y BENEFICIOS FINALES */
.footer-section {
    width: 100%;
    background-color: #0b0b0b; /* Fondo negro profundo */
    display: flex;
    flex-direction: column;
}

/* --- BLOQUE SUPERIOR DE BENEFICIOS --- */
.footer-benefits {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem 4rem;
}

.benefits-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Columnas perfectas */
    gap: 2rem;
}

.benefit-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.benefit-icon {
    font-size: 1.8rem;
    color: #e51a24; /* Rojo corporativo */
    margin-top: 3px;
}

.benefit-text h3 {
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: #ffffff;
    margin-bottom: 0.4rem;
}

.benefit-text p {
    font-size: 0.8rem;
    color: #aaaaaa;
    line-height: 1.4;
}

/* --- BLOQUE INFERIOR ROJO DE LLAMADO A LA ACCIÓN (CTA) --- */
.footer-cta-bar {
    background-color: #e51a24; /* Fondo rojo del folleto */
    padding: 2rem 4rem;
}

.cta-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Enlace/Estructura clicable de WhatsApp */
.cta-whatsapp-link {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.cta-whatsapp-link:hover {
    transform: scale(1.02); /* Efecto sutil de crecimiento al pasar el cursor */
}

.cta-icon-phone {
    font-size: 2.8rem; /* Icono grande de WhatsApp */
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-call-text h2 {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1.1;
}

.cta-call-text p {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
    margin-top: 0.2rem;
}

/* Estilos de Logo en el Footer */
.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: #ffffff;
    line-height: 0.9;
}

.f-logo-num {
    font-size: 2.5rem;
    font-weight: 900;
    position: relative;
}

.f-logo-num .f-degree {
    font-size: 1.1rem;
    position: absolute;
    top: 2px;
}

.f-logo-text {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
}

/* --- RESPONSIVE DESIGN (MÓVILES Y TABLETS) --- */
@media (max-width: 1024px) {
    .benefits-container {
        grid-template-columns: repeat(2, 1fr); /* Pasa a 2 columnas en tablets */
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .footer-benefits {
        padding: 3rem 1.5rem;
    }

    .benefits-container {
        grid-template-columns: 1fr; /* 1 Sola columna en celulares */
        gap: 2rem;
    }

    .footer-cta-bar {
        padding: 2.5rem 1.5rem;
    }

    .cta-bar-container {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem; /* Separa el texto del logo */
    }

    .cta-whatsapp-link {
        flex-direction: column;
        gap: 0.8rem;
    }

    .cta-call-text h2 {
        font-size: 1.3rem;
    }

    .footer-logo {
        align-items: center; /* Centra el logo en móviles */
    }
}