/* ============================================================
   InformativeBandSection.css — Estilos propios del widget InformativeBandSection
   Bticino Mx · Sitefinity Renderer
   ============================================================

   Widget GENERAL: se identificó por primera vez en Corporativo (nodo "SEC · banda informativa",
   1535:30306 PC, 1535:29871 + 1535:29880 tablet, 1535:30079 + 1535:30088 mobile del Figma), pero no
   es exclusivo de esa vertiente.

   NO se declara font-family: la resuelve site.css reasignando --bs-body-font-family en :root.

   La proporción 699/566 entre la mitad de la cita y la de los drivers (PC) se resuelve con
   flex-grow -- así se reparten igual sin importar el ancho real del monitor.

   Breakpoints propios: mobile hasta 500px, tablet hasta 1024px, laptop hasta 1200px (hereda
   desktop), desktop de 1201px en adelante.
   ============================================================ */

.InformativeBandSection {
    display: flex;
    gap: 16px;
    width: 100%;
    max-width: var(--container-max-width, 1600px);
    margin: 0 auto;
    padding-right: 27px;
    box-sizing: border-box;
    /* 651/1280 = 50.86vw, del nodo real de PC. Reemplaza el aspect-ratio que tenía la cita: un
       hijo flex con flex-grow y aspect-ratio a la vez rompe el reparto de ancho entre las dos
       mitades (Chrome le da casi todo el ancho a la cita y deja los drivers en 0). */
    min-height: clamp(651px, 50.86vw, 720px);
    background-color: #ffffff;
}

/* --- Mitad izquierda: cita institucional sobre foto. --- */
.InformativeBandSection-quote {
    position: relative;
    flex: 699 1 0;
    min-width: 0;
    overflow: hidden;
}

.InformativeBandSection-quote-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    pointer-events: none;
    transform: scale(1); /* Punto de partida del acercamiento. */
    transition: transform 0.35s ease-out;
}

/* Degradado que sube desde abajo para que el texto blanco siga siendo legible. */
.InformativeBandSection-quote-gradient {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 62.7%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(15, 15, 18, 0.92));
    pointer-events: none;
}

.InformativeBandSection-quote-box {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 81.26%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 28px 28px 34px;
}

.InformativeBandSection-quote-text {
    margin: 0;
    font-size: 20px;
    font-weight: 700; /* Archivo Bold del diseño. */
    line-height: 28px;
    color: #ffffff;
}

.InformativeBandSection-quote-rule {
    width: 52px;
    height: 3px;
    background-color: #ff5a1f; /* Naranja fijo del nodo, no configurable. */
    flex: none;
}

.InformativeBandSection-quote-signature {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.InformativeBandSection-quote-author {
    margin: 0;
    font-size: 12.5px;
    font-weight: 700; /* Archivo Bold del diseño. */
    color: #ffffff;
}

.InformativeBandSection-quote-role {
    margin: 0;
    font-size: 12px;
    font-weight: 400; /* Archivo Regular del diseño. */
    color: rgba(255, 255, 255, 0.75);
}

/* --- Mitad derecha: los tres drivers apilados. --- */
/* El flex-grow va en el GRUPO, que es el hijo directo de la fila -- .InformativeBandSection-drivers
   quedó un nivel más adentro cuando se le agregó el wrapper para las flechas del carrusel
   (tablet/mobile), y dejarle el flex-grow a él no hace nada porque no es hijo de la fila. */
.InformativeBandSection-drivers-group {
    flex: 566 1 0;
    min-width: 0;
}

.InformativeBandSection-drivers {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 25px;
}

.InformativeBandSection-driver {
    position: relative;
    flex: 1 1 0;
    overflow: hidden;
}

.InformativeBandSection-driver-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    pointer-events: none;
    transform: scale(1); /* Punto de partida del acercamiento. */
    transition: transform 0.35s ease-out;
}

.InformativeBandSection-driver-gradient {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(15, 15, 18, 0.9));
    pointer-events: none;
}

.InformativeBandSection-driver-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px 16px;
    box-sizing: border-box;
}

/* El recuadro del ícono se reserva siempre, tenga o no imagen adentro -- así el texto arranca en
   el mismo lugar en los tres drivers, con ícono o sin él. */
.InformativeBandSection-driver-icon {
    display: block;
    width: 26px;
    height: 26px;
    flex: none;
}

.InformativeBandSection-driver-icon-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
}

.InformativeBandSection-driver-text {
    margin: 0;
    flex: 1 1 0;
    font-size: 13px;
    font-weight: 500; /* Archivo Medium del diseño. */
    line-height: 18px;
    color: #ffffff;
}

/* Acercamiento sutil de las fotos al pasar el mouse -- del prototipo de Figma (nodo 1724:34016).
   Solo en dispositivos con puntero real: en touch no hay hover sostenido y el gesto no aplica. */
@media (hover: hover) and (pointer: fine) {
    .InformativeBandSection-quote:hover .InformativeBandSection-quote-image,
    .InformativeBandSection-driver:hover .InformativeBandSection-driver-image {
        transform: scale(1.04); /* Crece un 4 %, mismo valor que PortalPosterGrid. */
    }
}

/* --- Controles de la tira de drivers: mismo estilo de botón circular que FeaturedBrandsStrip,
   ocultos en PC porque ahí los tres drivers ya entran apilados sin necesidad de desplazar nada.
   Van ANTES de los @media de acá abajo para que estos los puedan sobrescribir en tablet/mobile. */
.InformativeBandSection-drivers-controls {
    display: none;
}

.InformativeBandSection-drivers-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 16px;
    border: 1px solid rgba(15, 15, 18, 0.2);
    background-color: transparent;
    font-size: 15px;
    font-weight: 700;
    color: rgba(15, 15, 18, 0.55);
    cursor: pointer;
    transition: opacity 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

    .InformativeBandSection-drivers-control:hover:not(:disabled) {
        background-color: rgba(15, 15, 18, 0.06);
    }

    /* Se apagan (no se ocultan) en los extremos de la tira: confirma que se llegó al final. */
    .InformativeBandSection-drivers-control:disabled {
        opacity: 0.35;
        cursor: default;
    }

    /* La pone el script cuando las tres tarjetas ya entran sin desbordar -- no hay nada que
       desplazar y los controles enteros sobran. */
    .InformativeBandSection-drivers-controls.is-hidden {
        display: none;
    }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------
   Tablet: la cita pasa a ancho completo arriba y los tres drivers bajan a una fila de 3 columnas
   debajo (nodos reales 1535:29871 y 1535:29880, no una suposición).
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
    .InformativeBandSection {
        flex-direction: column;
        gap: 25px;
        padding-right: 0;
        /* El min-height de la base es para repartir el ANCHO en la fila de PC -- acá el layout es
           en columna y el alto lo dan la cita (aspect-ratio) y los drivers (contenido), no un piso
           fijo. Sin este reset, el mismo min-height de PC se filtraba a tablet/mobile y rompía
           todo el layout apilado. */
        min-height: auto;
    }

    .InformativeBandSection-quote {
        flex: none;
        width: 90.31%; /* 699/774 del nodo real de tablet. */
        aspect-ratio: 699 / 651; /* Acá SÍ funciona: es un bloque en columna, no un hijo con
                                     flex-grow compitiendo por ancho en una fila. */
        margin: 0 auto;
    }

    .InformativeBandSection-drivers-group {
        flex: none; /* El flex-grow de la base es para la fila de PC; acá no aplica. */
        width: 100%;
    }

    /* Tira continua con scroll nativo -- pedido del usuario, no hay prototipo de Figma para el
       carrusel en sí. Ancho fijo por tarjeta (no flex:1) para que la tira tenga de dónde
       desbordar y el gesto/las flechas tengan sentido; si el viewport es ancho y las tres entran
       igual, el script esconde los controles solo. */
    .InformativeBandSection-drivers {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
    }

        /* La pone el script solo cuando las tres tarjetas entran sin desbordar. */
        .InformativeBandSection-drivers.is-centered {
            justify-content: center;
        }

        .InformativeBandSection-drivers::-webkit-scrollbar {
            display: none;
        }

    .InformativeBandSection-driver {
        flex: 0 0 280px;
        aspect-ratio: 1 / 1; /* El nodo real trae 200px de alto sobre columnas ~239px de ancho. */
        scroll-snap-align: start;
    }

    .InformativeBandSection-drivers-controls {
        display: flex;
        justify-content: flex-end;
        gap: 8px;
        margin-top: 12px;
    }

    /* El acercamiento se apaga entero en tablet/mobile, mismo criterio que PortalPosterGrid: es
       movimiento puro pensado para mouse, y acá conviven equipos con puntero fino y pantalla
       chica (ej. una tablet con mouse) donde el media query de arriba igual haría match. */
    .InformativeBandSection-quote:hover .InformativeBandSection-quote-image,
    .InformativeBandSection-driver:hover .InformativeBandSection-driver-image {
        transform: none;
    }
}

/* ------------------------------------------------------------
   Mobile: la cita queda a sangre completa (nodo real 1535:30079, sin margen lateral). Los tres
   drivers van en la misma tira continua que en tablet, con tarjetas más angostas.
   ------------------------------------------------------------ */
@media (max-width: 500px) {
    .InformativeBandSection {
        gap: 16px;
    }

    .InformativeBandSection-quote {
        width: 100%;
        aspect-ratio: 376 / 651;
    }

    .InformativeBandSection-quote-box {
        width: 98.67%; /* 371/376 del nodo real de mobile. */
    }

    .InformativeBandSection-driver {
        flex-basis: 240px;
        aspect-ratio: 240 / 200;
    }
}

/* El marcador de posición que este widget muestra en el editor cuando no tiene contenido NO se
   estiliza acá: usa las clases WidgetPlaceholder de site.css, comunes a todos los widgets. */
