/* ==========================================================
   ESTILOS EXCLUSIVOS DE LA PORTADA PRINCIPAL (ESTILO HISSUMA)
   ========================================================== */

/* --- HERO SLIDER (CARRUSEL) --- */
.slider-container {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 480px;
    max-height: 650px;
    overflow: hidden;
    background: var(--oscuro);
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Degradado lateral para asegurar legibilidad del texto en la izquierda */
.slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(9, 10, 33, 0.9) 0%, rgba(9, 10, 33, 0.5) 60%, rgba(9, 10, 33, 0.1) 100%);
    z-index: 2;
    pointer-events: none;
}

.slide-content {
    position: absolute;
    left: 8%;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    max-width: 550px;
    color: var(--blanco);
    z-index: 3;
    text-align: left;
}

.slide-content h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    color: #e2e8f0;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 30px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.slide-btn {
    background-color: var(--naranja);
    color: var(--blanco);
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(34, 123, 104, 0.2);
}

.slide-btn:hover {
    background-color: var(--naranja-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 123, 104, 0.35);
}

/* Flechas de navegación */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--blanco);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.slider-arrow:hover {
    background: var(--naranja);
    border-color: var(--naranja);
}

.slider-arrow.prev { left: 2%; }
.slider-arrow.next { right: 2%; }

.slider-arrow svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Indicadores de diapositivas */
.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 8%;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 25px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--naranja);
    width: 40px;
}

/* --- BANNER DE SERVICIOS / BENEFICIOS --- */
.section-informative-banners {
    background-color: var(--oscuro);
    padding: 35px 5%;
}

.informative-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--blanco);
}

.info-icon-wrapper {
    background: rgba(34, 123, 104, 0.12);
    border-radius: 50%;
    width: 55px;
    height: 55px;
    min-width: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--naranja);
}

.info-icon-wrapper svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.info-text h3 {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.info-text p {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
}

/* --- GRILLA DE CATEGORÍAS --- */
.section-categories {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.category-banner {
    position: relative;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--oscuro);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05);
}

.category-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-banner:hover .category-bg {
    transform: scale(1.06);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.4) 60%, transparent 100%);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    z-index: 2;
}

.category-overlay h3 {
    color: var(--blanco);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.category-overlay p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.category-link {
    background: var(--naranja);
    color: var(--blanco);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 18px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.category-banner:hover .category-link {
    background: var(--naranja-hover);
}

/* --- BANNER DE ESTADÍSTICAS / INSTITUCIONAL --- */
.section-institutional {
    background-color: #f8fafc;
    padding: 70px 5%;
    border-top: 1px solid var(--borde);
    border-bottom: 1px solid var(--borde);
}

.institutional-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.institutional-content h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 800;
    color: var(--oscuro);
    margin-bottom: 15px;
    line-height: 1.2;
}

.institutional-content p {
    font-size: 16px;
    color: var(--texto-suave);
    line-height: 1.6;
    margin-bottom: 30px;
}

/* --- SECCIONES DE PRODUCTOS (OFERTAS / DESTACADOS) --- */
.section-products {
    padding: 85px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    border-left: 4px solid var(--naranja);
    padding-left: 15px;
    margin-bottom: 45px;
    text-align: left;
}

.section-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--oscuro);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.grid-ofertas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

.card {
    background: var(--blanco);
    border: 1px solid var(--borde);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
}

.card:hover {
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transform: translateY(-5px);
    border-color: var(--naranja);
}

.badge {
    color: var(--blanco);
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    background: #dc2626;
}

.card-image-wrapper {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.card-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--oscuro);
    margin-bottom: 12px;
    min-height: 40px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price-old {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 13px;
    display: block;
    margin-bottom: 2px;
    min-height: 19px;
}

.price-new {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--naranja);
    margin-bottom: 20px;
    display: block;
}

.btn-card {
    margin-top: auto;
    background: var(--oscuro);
    color: var(--blanco);
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    transition: all 0.2s ease;
}

.card:hover .btn-card {
    background: var(--naranja);
}

/* --- TESTIMONIOS (FONDO OSCURO) --- */
.section-testimonials {
    background-color: var(--oscuro);
    padding: 85px 5%;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    color: var(--blanco);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 2px solid var(--naranja);
}

.testimonial-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--blanco);
}

.testimonial-card p {
    font-size: 13.5px;
    color: #cbd5e1;
    line-height: 1.6;
    font-style: italic;
}

/* --- CANAL PROFESIONALES (FORMULARIO) --- */
.profesionales {
    background: var(--oscuro-secundario);
    color: var(--blanco);
    padding: 70px 5%;
    border-radius: 16px;
    margin: 40px auto;
    max-width: 1200px;
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: center;
}

.prof-info {
    flex: 1;
    min-width: 320px;
}

.prof-info h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.prof-info p {
    font-size: 15px;
    color: #cbd5e1;
    line-height: 1.7;
}

.prof-info p strong {
    color: var(--naranja);
}

.form-box {
    flex: 1;
    min-width: 320px;
    background: var(--blanco);
    padding: 40px;
    border-radius: 12px;
    color: var(--oscuro);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--borde);
    border-radius: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    color: var(--oscuro);
    background-color: #f8fafc;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--naranja);
    background-color: var(--blanco);
    box-shadow: 0 0 0 3px rgba(34, 123, 104, 0.1);
}

.form-btn {
    width: 100%;
    background: var(--naranja);
    color: var(--blanco);
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(34, 123, 104, 0.2);
}

.form-btn:hover {
    background: var(--naranja-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(34, 123, 104, 0.3);
}

/* ==========================================================
   RESPONSIVO EXCLUSIVO DE LA PORTADA
   ========================================================== */
@media (max-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .slide-content {
        width: 60%;
        left: 6%;
    }
}

@media (max-width: 768px) {
    .slider-container {
        height: 60vh;
        min-height: 400px;
    }
    .slide-content {
        width: 85%;
        left: 8%;
    }
    .slider-arrow {
        display: none; /* Ocultar flechas en móvil */
    }
    .slider-dots {
        left: 8%;
        bottom: 20px;
    }
    .section-products {
        padding: 50px 6%;
    }
    .section-categories {
        padding: 50px 6%;
    }
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .category-banner {
        height: 240px;
    }
    .profesionales {
        padding: 40px 25px;
        margin: 20px 6%;
        border-radius: 12px;
        gap: 30px;
    }
    .form-box {
        padding: 30px 20px;
    }
}