/* ===================================
   SECCIÓN BOXWELL - ESTILO GRUMEX
   Split-screen con slider lateral
   =================================== */

/* Contenedor Principal - Split Screen */
.boxwell-distribuidor {
    display: block;
    position: relative;
    background-color: #000000;
    scroll-behavior: auto;
}

@media (min-width: 960px) {
    .boxwell-distribuidor {
        display: grid;
        grid-template-columns: 70% 30%;
        position: relative;
    }
}

@media (min-width: 1024px) {
    .boxwell-distribuidor {
        grid-template-columns: 78% 22%;
    }
}

/* ===================================
   SLIDER DE PRODUCTOS (LADO IZQUIERDO)
   =================================== */

.boxwell-slider {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.boxwell-list {
    width: 100%;
    height: 100%;
    position: relative;
}

.boxwell-item {
    position: absolute;
    inset: 0 0 0 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    z-index: 0;
}

.boxwell-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.boxwell-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gradiente oscuro en la parte inferior */
.boxwell-item::after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    bottom: 0;
    opacity: 1;
    transition: opacity 0.8s ease;
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 40%, transparent 100%);
}

.boxwell-item:hover::after {
    opacity: 0.7;
}

/* Contenido de cada slide */
.boxwell-content {
    position: absolute;
    z-index: 25;
    color: white;
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-left: 2rem;
    padding-bottom: 4rem;
    justify-content: center;
    gap: 0.5rem;
}

@media (min-width: 960px) {
    .boxwell-content {
        padding-left: 20rem;
        padding-bottom: 23rem;
    }
}

@media (min-width: 1024px) {
    .boxwell-content {
        padding-left: 36rem;
        padding-bottom: 23rem;
    }
}

/* Overtitle - "DISTRIBUIDOR AUTORIZADO" */
.boxwell-overtitle {
    font-family: "Bebas Neue", sans-serif;
    font-size: 0.9rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #FFD700;
    margin: 0;
    font-weight: 400;
}

@media (min-width: 960px) {
    .boxwell-overtitle {
        font-size: 1.1rem;
        letter-spacing: 6px;
    }
}

/* H2 - Título principal "Soluciones Boxwell" */
.boxwell-content h2 {
    margin: 0;
    font-size: 3.5rem;
    font-family: "Bebas Neue", sans-serif;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 1;
    transition: opacity 0.5s ease;
    line-height: 1;
}

@media (min-width: 960px) {
    .boxwell-content h2 {
        font-size: 4.5rem;
        letter-spacing: 6px;
    }
}

@media (min-width: 1024px) {
    .boxwell-content h2 {
        font-size: 5rem;
        letter-spacing: 7px;
    }
}

.boxwell-item:hover .boxwell-content h2 {
    opacity: 0;
}

/* H3 - Subtítulo del producto específico */
.boxwell-content h3 {
    font-size: 1.8rem;
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    letter-spacing: 2px;
    color: #FFFFFF;
}

@media (min-width: 960px) {
    .boxwell-content h3 {
        font-size: 2rem;
        letter-spacing: 3px;
    }
}

@media (min-width: 1024px) {
    .boxwell-content h3 {
        font-size: 2.2rem;
    }
}

/* Item activo */
.boxwell-item.active {
    opacity: 1;
    z-index: 10;
}

@keyframes showContent {
    to {
        transform: translateY(0);
        filter: blur(0);
        opacity: 1;
    }
}

.boxwell-item.active .boxwell-overtitle,
.boxwell-item.active h2,
.boxwell-item.active h3 {
    transform: translateY(30px);
    filter: blur(20px);
    opacity: 0;
    animation: showContent 0.5s 0.7s ease-in-out 1 forwards;
}

.boxwell-item.active .boxwell-overtitle {
    animation-delay: 0.8s;
}

.boxwell-item.active h2 {
    animation-delay: 1s;
}

.boxwell-item.active h3 {
    animation-delay: 1.2s;
    animation-duration: 1.3s;
}

/* ===================================
   THUMBNAILS (MINIATURAS)
   =================================== */

.boxwell-thumbnail {
    display: flex;
    gap: 1rem;
    width: 100%;
    height: 10rem;
    padding: 0 1rem;
    box-sizing: border-box;
    overflow-x: auto;
    justify-content: flex-start;
    margin-top: 1rem;
    -webkit-overflow-scrolling: touch;
    position: absolute;
    bottom: 1.5rem;
    z-index: 20;
}

@media (min-width: 960px) {
    .boxwell-thumbnail {
        bottom: 2rem;
        gap: 1.5rem;
        height: 18rem;
        padding: 0 2rem;
    }
}

.boxwell-thumbnail::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.boxwell-thumb-item {
    width: 15rem;
    height: 100%;
    filter: brightness(0.7);
    transition: all 0.4s ease;
    flex-shrink: 0;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@media (min-width: 960px) {
    .boxwell-thumb-item {
        width: 45.25rem;
    }
}

.boxwell-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.boxwell-thumb-item:hover {
    filter: brightness(1);
    transform: scale(1.02);
}

.boxwell-thumb-item.active {
    filter: brightness(1.2);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* ===================================
   PANEL LATERAL INFORMACIÓN (DERECHA)
   =================================== */

.boxwell-info {
    background-color: #000000;
    color: #FFFFFF;
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 100vh;
}

@media (max-width: 959px) {
    .boxwell-info {
        min-height: auto;
        padding: 4rem 2rem;
    }
}

.boxwell-info__content {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

/* Badge Distribuidor */
.boxwell-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid #FFD700;
    border-radius: 50px;
    margin-bottom: 2rem;
}

.boxwell-badge i {
    color: #FFD700;
    font-size: 1.5rem;
}

.boxwell-badge span {
    font-family: "Bebas Neue", sans-serif;
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: #FFD700;
}

/* Logo */
.boxwell-logo {
    max-width: 180px;
    height: auto;
    margin: 1rem auto 1.5rem;
    display: block;
    filter: brightness(1.2);
}

/* Título - usando clase bold_header de GRUMEX */
.boxwell-title {
    font-family: "Bebas Neue", sans-serif;
    font-size: 2.5rem;
    letter-spacing: 5px;
    color: #FFFFFF;
    margin-bottom: 1rem;
    text-transform: uppercase;
    line-height: 1.2;
}

@media (min-width: 960px) {
    .boxwell-title {
        font-size: 3rem;
        letter-spacing: 6px;
    }
}

/* Descripción - usando clase texto_informativo */
.boxwell-description {
    font-family: "Montserrat", sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #CCCCCC;
    margin-bottom: 3rem;
    font-weight: 400;
}

@media (min-width: 960px) {
    .boxwell-description {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 4rem;
    }
}

/* Colaboraciones */
.boxwell-colaborations {
    margin-bottom: 1.5rem;
    padding: 1rem 0;
}

.boxwell-subtitle {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    letter-spacing: 2px;
    color: #FFD700;
    text-align: center;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

@media (min-width: 960px) {
    .boxwell-subtitle {
        font-size: 1.2rem;
    }
}

.boxwell-client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.boxwell-client {
    background: #FFFFFF;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.1);
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 960px) {
    .boxwell-client {
        padding: 1rem 1.5rem;
        min-width: 120px;
    }
}

.boxwell-client:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.3);
}

.boxwell-client img {
    max-width: 100%;
    height: auto;
    max-height: 40px;
    object-fit: contain;
}

@media (min-width: 960px) {
    .boxwell-client img {
        max-height: 50px;
    }
}

.boxwell-client-description {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem;
    border-radius: 8px;
    border-left: 3px solid #FFD700;
}

@media (min-width: 960px) {
    .boxwell-client-description {
        padding: 1rem;
    }
}

.boxwell-client-description p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    line-height: 1.5;
    color: #CCCCCC;
    margin: 0;
    text-align: justify;
}

@media (min-width: 960px) {
    .boxwell-client-description p {
        font-size: 0.75rem;
        line-height: 1.6;
    }
}

/* Flechas de navegación */
.boxwell-arrows {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.boxwell-arrows button {
    background-color: rgba(255, 215, 0, 0.1);
    border: 2px solid #FFD700;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.1rem;
    color: #FFD700;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.boxwell-arrows button:hover {
    background-color: #FFD700;
    color: #000000;
    border-color: #FFD700;
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

/* Botón CTA WhatsApp */
.boxwell-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #FFFFFF;
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.boxwell-cta:hover {
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.boxwell-cta i {
    font-size: 1.3rem;
}

/* Contacto */
.boxwell-contact {
    font-family: "Montserrat", sans-serif;
    font-size: 0.8rem;
    color: #999999;
    line-height: 1.6;
    font-weight: 300;
}

.boxwell-contact i {
    color: #FFD700;
    margin-right: 0.5rem;
}

/* ===================================
   RESPONSIVE - TABLET Y MÓVIL
   =================================== */

@media (max-width: 959px) {
    .boxwell-distribuidor {
        display: block;
    }
    .boxwell-slider {
        height: 50rem;
    }

    .boxwell-content {
        padding-left: 1.5rem;
        padding-bottom: 12rem;
        gap: 0.3rem;
    }

    .boxwell-overtitle {
        font-size: 0.75rem;
        letter-spacing: 3px;
    }

    .boxwell-content h2 {
        font-size: 2.8rem;
        letter-spacing: 3px;
    }

    .boxwell-content h3 {
        font-size: 1.4rem;
        letter-spacing: 1.5px;
    }

    .boxwell-thumbnail {
        height: 10rem;
        bottom: 1rem;
    }

    .boxwell-thumb-item {
        width: 12rem;
    }

    .boxwell-info {
        min-height: auto;
        padding: 3rem 1.5rem;
    }

    .boxwell-badge {
        padding: 0.6rem 1.2rem;
    }

    .boxwell-badge span {
        font-size: 0.65rem;
        letter-spacing: 2px;
    }

    .boxwell-logo {
        max-width: 140px;
    }

    .boxwell-title {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }

    .boxwell-description {
        font-size: 0.85rem;
        margin-bottom: 2rem;
    }

    .boxwell-arrows {
        margin-bottom: 1.5rem;
    }

    .boxwell-arrows button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .boxwell-cta {
        font-size: 1rem;
        padding: 0.9rem 1.8rem;
    }

    .boxwell-contact {
        font-size: 0.75rem;
    }
}
/* Móvil pequeño */
@media (max-width: 480px) {
    .boxwell-slider {
        height: 50vh;
    }

    .boxwell-content {
        padding-left: 1rem;
        padding-bottom: 10rem;
    }

    .boxwell-overtitle {
        font-size: 0.6rem;
        letter-spacing: 2px;
    }

    .boxwell-content h2 {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .boxwell-content h3 {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .boxwell-thumbnail {
        height: 8rem;
        bottom: 0.5rem;
    }

    .boxwell-thumb-item {
        width: 10rem;
    }

    .boxwell-info {
        padding: 2rem 1rem;
    }

    .boxwell-badge {
        padding: 0.5rem 1rem;
        margin-bottom: 1rem;
    }

    .boxwell-badge i {
        font-size: 0.8rem;
    }

    .boxwell-badge span {
        font-size: 0.55rem;
        letter-spacing: 1.5px;
    }

    .boxwell-logo {
        max-width: 120px;
        margin: 0.8rem auto 1rem;
    }

    .boxwell-title {
        font-size: 2rem;
        letter-spacing: 3px;
        margin-bottom: 0.8rem;
    }

    .boxwell-description {
        font-size: 0.8rem;
        line-height: 1.5;
        margin-bottom: 2.5rem;
    }

    .boxwell-arrows {
        gap: 0.8rem;
        margin-bottom: 1.2rem;
    }

    .boxwell-arrows button {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .boxwell-cta {
        font-size: 0.95rem;
        padding: 0.85rem 1.5rem;
        gap: 0.6rem;
        letter-spacing: 1.5px;
    }

    .boxwell-cta i {
        font-size: 1.1rem;
    }

    .boxwell-contact {
        font-size: 0.7rem;
    }
}
