/* ============================================================================
   SAI WEB - MODULES STYLES (NUEVOS)
   Módulos de contenido adicionales (S5, S6, S7, S8)
   ============================================================================ */

/* ============================================================================
   PAGE CONTENT - Estructura Drupal-ready
   ============================================================================ */

.page-content {
    /* Wrapper general del contenido */
}

.page-content__header {
    padding-block: var(--spacing-3xl);
    background: #F3F4F6;
}

.page-content__header h1 {
    margin-bottom: var(--spacing-md);
    color: var(--color-primary-500);
}

.page-content__lead {
    font-size: 1.25rem;
    color: #6B7280;
    max-width: 800px;
}

.page-content__modules {
    /* Contenedor de todos los módulos/paragraphs */
}

/* ============================================================================
   MODULE BASE - Clase base para módulos nuevos
   ============================================================================ */

.module {
    padding-block: var(--spacing-3xl); /* 96px arriba/abajo */
}

.module--full-bg {
    width: 100%;
}

/* ============================================================================
   S1: HEADER AREA - Header de área o producto
   ============================================================================ */

.s1-header-area {
    background: 
        linear-gradient(-90deg, rgba(213, 0, 87, 0.85) 0%, rgba(0, 0, 0, 0.85) 100%),
        url('https://images.unsplash.com/photo-1461749280684-dccba630e2f6?w=1920&q=80') center/cover no-repeat;
    padding: 120px 0;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.header-area__content {
    max-width: 40%;
    color: white;
}

.header-area__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-lg);
    color: white;
}

.header-area__badge::after {
    content: '';
    width: 16px;
    height: 16px;
    background: #D50057;
    border-radius: 50%;
}

.header-area__title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-xl);
    color: white;
}

.header-area__subtitle {
    font-family: var(--font-primary);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: white;
}

.header-area__description {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: calc(var(--spacing-xl) / 2);
    padding-bottom: calc(var(--spacing-xl) / 2);
    color: white;
    opacity: 0.9;
    position: relative;
}

.header-area__description::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 1px;
    background: rgba(255, 255, 255, 1);
}

.header-area__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 1.12rem;
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    max-width: 460px;
    padding-top: 1.2rem;
}
.header-area__link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 220px;
    height: 1px;
    background-color: #fff;
}

.header-area__link:hover {
    opacity: 1;
}

.header-area__text-cta {
    width: calc(100% - 50px);
}
.header-area__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    font-size: 1.25rem;
    background-image: url(../img/icona_fletxa_avall_dreta.svg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 16px;
}
.header-area__arrow:hover {
    background-color: #fff5;
}

/* ============================================================================
   S3: MODULE VIDEO - Video full width con aspect ratio 16:9
   ============================================================================ */

.s3-video {
    /*background: #000000;*/
    padding: 0;
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ============================================================================
   S5: MODULE PROMO CARD - Card promocional con gradiente (NUEVO)
   ============================================================================ */

.module--promo-card {
    background: #F3F4F6;
}

.promo-card {
    position: relative;
    border-radius: 16px;
    padding: 4rem var(--spacing-2xl);
    text-align: center;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-card);
}

.promo-card__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 1.25rem;
    font-weight: normal;
    text-transform: uppercase;
    margin-bottom: var(--spacing-md);
    width: 100%;
    justify-content: center;
}

.promo-card__badge::after {
    content: '';
    width: 22px;
    height: 22px;
    background-image: url(../img/icona_warning_vermell.svg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100%;
}

.promo-card__subtitle {
    font-size: 1.25rem;
    font-family: var(--font-secondary);
    font-weight: bold;
    margin-bottom: var(--spacing-sm);
}

.promo-card__title {
    font-family: var(--font-secondary);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    max-width: 800px;
}

.promo-card__description {
    font-size: 1.5rem;
    max-width: 680px;
    line-height: 2rem;
}

.promo-card__icon {
    width: 48px;
    height: 48px;
    display: block;
    border: 1px solid #fff8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--spacing-lg);
    background-image: url(../img/icona_fletxa_avall_dreta.svg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 16px;
}
.promo-card__icon:hover {
    background-color: #fff5;
}

/* Gradientes para promo-card */
.promo-card[data-gradient="01"] { background: var(--gradient-01); }
.promo-card[data-gradient="02"] { background: var(--gradient-02); }
.promo-card[data-gradient="03"] { background: var(--gradient-03); }
.promo-card[data-gradient="04"] { background: var(--gradient-04); }
.promo-card[data-gradient="05"] { background: var(--gradient-05); }
.promo-card[data-gradient="06"] { background: var(--gradient-06); }
.promo-card[data-gradient="07"] { background: var(--gradient-07); }
.promo-card[data-gradient="08"] { background: var(--gradient-08); }
.promo-card[data-gradient="09"] { background: var(--gradient-09); }
.promo-card[data-gradient="10"] { background: var(--gradient-10); }
.promo-card[data-gradient="11"] { background: var(--gradient-11); }
.promo-card[data-gradient="12"] { background: var(--gradient-12); }
.promo-card[data-gradient="corporate"] { background: var(--gradient-corporate); }

/* ============================================================================
   S2: PRODUCTS LIST
   S2: SECCIONES LIST
   ============================================================================ */

.s2-indice-productos .stats__badge,
.s2-indice-de-soluciones .stats__badge {
    font-size: 1.25rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
}
.s2-indice-productos .products_list,
.s2-indice-de-soluciones .products_list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}
.s2-indice-productos .product__name,
.s2-indice-de-soluciones .product__name {
    font-weight: bold;
}

@media (max-width: 800px) {
    .s2-indice-productos .products_list,
    .s2-indice-de-soluciones .products_list {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* ============================================================================
   S3: VIDEO
   ============================================================================ */

@media (max-width: 800px) {
    .module.S3-video {
        padding-block: 2rem;
    }
}

/* ============================================================================
   S4: MODULE STATS
   ============================================================================ */

.s4-datos .stats__header {
    margin-bottom: var(--spacing-xl);
}

.s4-datos .stats__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 1.25rem;
    font-weight: normal;
    text-transform: uppercase;
    margin-bottom: var(--spacing-md);
}

.s4-datos .stats__badge::after {
    content: '';
    width: 22px;
    height: 22px;
    background-image: url(../img/icona_warning_vermell.svg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100%;
}

.s4-datos .stats__title {
    font-size: clamp(1.75rem, 2.8vw, 2.9rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.s4-datos .stats__description {
    font-size: 1.25rem;
    max-width: 700px;
}

.s4-datos .stats__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    direction: ltr;
    text-align: left;
}

.s4-datos .stats__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.4rem;
}
.s4-datos.col-big-der .stats__grid {
    direction: rtl;
}
.s4-datos .stats__grid .stats__grid-grup4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.4rem;    
}
.s4-datos .stats__grid .stats__grid-big > article {
    height: 100%;
}
.s4-datos .stats__grid .stats__grid-big > article .stat-card__label {
    max-width: 60%;
}

.s4-datos .stat-card {
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 180px;
    box-shadow: var(--shadow-card);
    direction: ltr;
}

.s4-datos .stat-card__number {
    font-size: clamp(2rem, 2.3vw, 2.5rem);
    font-weight: 600;
    line-height: 1;
    margin-bottom: var(--spacing-sm);
}

.s4-datos .stats__grid-big .stat-card__number {
    font-size: clamp(2.8rem, 3.4vw, 3.6rem);
}

.s4-datos .stat-card__label {
    font-size: 1rem;
    line-height: 1.2rem;
}
.s4-datos .stats__grid-big .stat-card__label {
    font-size: 1.3rem;
    line-height: 1.5rem;
}

@media (max-width: 800px) {
    .s4-datos .stats__grid {
        grid-template-columns: repeat(1, 1fr);
    }
}
@media (max-width: 500px) {
    .s4-datos .stats__grid .stats__grid-grup4 {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* ============================================================================
   S6: IMAGEN ANCHO COLUMNA
   ============================================================================ */

.s6-imagen-ancho-col {
    margin-bottom: 2rem;
}
.s6-imagen-ancho-col .container {
    padding: 0 8rem;
}
.s6-imagen-ancho-col img {
    width: 100%;
}
.s6-imagen-ancho-col .texto_caption {
    font-style: italic;
    text-align: right;
    border-right: 10px solid #888;
    padding: 1rem 1rem 0rem;
    color: #777;
}

/* ============================================================================
   S7: MODULE TEXT COLUMNS - Texto en 3 columnas (NUEVO)
   ============================================================================ */

.s7-texto-columnas .text-cols__header {
    margin-bottom: 0;
}

.s7-texto-columnas .text-cols__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: normal;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.s7-texto-columnas .text-cols__badge::after {
    content: '';
    width: 22px;
    height: 22px;
    background-image: url(../img/icona_warning_vermell.svg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100%;
}

.s7-texto-columnas .text-cols__title {
    font-size: clamp(1.75rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-xl);
}

.s7-texto-columnas .text-cols__description {
    font-size: 1.25rem;
    max-width: 700px;
    margin-bottom: var(--spacing-md);
}

.s7-texto-columnas .text-cols__content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.s7-texto-columnas .text-col p {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.s7-texto-columnas .text-col p:last-child {
    margin-bottom: 0;
}

.s7-texto-columnas .text-cols__content--una_col {
    grid-template-columns: 1fr;
}
.s7-texto-columnas .text-cols__content--dos_cols {
    grid-template-columns: repeat(2, 1fr);
}
.s7-texto-columnas .text-cols__content--tres_cols {
    grid-template-columns: repeat(3, 1fr);
}
.s7-texto-columnas .text-cols__content--col_estrecha_ancha {
    grid-template-columns: 1fr 2fr;
}

/* Responsive: reducir a 2 columnas en tablet, 1 en móvil */
@media (max-width: 1024px) {
    .s7-texto-columnas .text-cols__content--tres_cols {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .s7-texto-columnas .text-cols__content--col_estrecha_ancha {
        grid-template-columns: 1fr 1.5fr;
    }
}

@media (max-width: 768px) {
    .s7-texto-columnas .text-cols__content--dos_cols,
    .s7-texto-columnas .text-cols__content--tres_cols,
    .s7-texto-columnas .text-cols__content--col_estrecha_ancha {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   S7-BLANC: MODULE TEXT COLUMNS - Texto en 3 columnas con fondo degradado
   ============================================================================ */

.s7-texto-columnas-blanc {
    background: linear-gradient(45deg, #D40957 0%, #1E194D 100%);
}

.s7-texto-columnas-blanc .text-cols__header {
    margin-bottom: var(--spacing-xl);
}

.s7-texto-columnas-blanc .text-cols__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-md);
    color: #FFFFFF;
}

.s7-texto-columnas-blanc .text-cols__badge::after {
    content: '';
    width: 16px;
    height: 16px;
    background: #FFFFFF;
    border-radius: 50%;
}

.s7-texto-columnas-blanc .text-cols__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 400;
    margin-bottom: var(--spacing-md);
    color: #FFFFFF;
}

.s7-texto-columnas-blanc .text-cols__description {
    font-size: 1.125rem;
    color: #FFFFFF;
    max-width: 700px;
    margin-bottom: var(--spacing-2xl);
}

.s7-texto-columnas-blanc .text-cols__content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.s7-texto-columnas-blanc .text-col p {
    font-size: 1rem;
    line-height: 1.7;
    color: #FFFFFF;
    margin-bottom: var(--spacing-md);
}

.s7-texto-columnas-blanc .text-col p:last-child {
    margin-bottom: 0;
}

/* ============================================================================
   S8: TEXT SIMPLE
   ============================================================================ */

.s8-text-simple .texto_normal {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.s8-text-simple h3 {
    font-size: clamp(0.9rem, 1.2vw, 1.2rem);
    margin-bottom: 0.5rem;
}

.s8-text-simple-destacat .texto_normal {
    margin-bottom: 2rem;
    font-size: 1.3rem;
}

body.node-type-article .s8-text-simple .container {
    padding: 0 8rem;
    font-size: 1.4rem;
}

.texto_normal a {
    color: var(--color-accent-blue);
    text-decoration: underline;
}
.texto_normal a:hover {
    color: var(--color-corporate-blue);
}

@media (max-width: 800px) {
    body.node-type-article .s8-text-simple .container {
        padding: 0 calc(0.25rem * 6);
    }
}

/* ============================================================================
   S8: MODULE CTA - Call to action con imagen (NUEVO)
   ============================================================================ */

.module--cta {
    /* Sin fondo especial */
}

.cta__wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

/* Collage de imágenes - columna izquierda */
.cta__images {
    position: relative;
    min-height: 450px;
}

.cta__image-small {
    position: relative;
    width: 300px;
    height: 240px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    z-index: 2;
}

.cta__image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cta__image-large {
    position: absolute;
    left: 150px;
    top: 50px;
    width: 600px;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    z-index: 1;
}

.cta__image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Contenido - columna derecha */
.cta__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 1.25rem;
    font-weight: normal;
    text-transform: uppercase;
    margin-bottom: var(--spacing-lg);
}

.cta__badge::after {
    content: '';
    width: 22px;
    height: 22px;
    background-image: url(../img/icona_warning_vermell.svg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100%;
}

.cta__title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.cta__description {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: var(--spacing-lg);
}

.cta__button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 6px 16px;
    background: transparent;
    border: 2px solid #0007;
    border-radius: 22px;
    font-weight: bold;
    color: #000;
    transition: all 0.2s ease;
    cursor: pointer;
    background-image: url(../img/icona_fletxa_amunt_dreta_negre.svg);
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10%;
}

.cta__button:hover {
    background-color: #0002;
}

/* ============================================================================
   S9: TEXT LLARG AMB MENU LATERAL
   ============================================================================ */

.s9-text-llarg-menu-lateral .container {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 2rem;
    font-size: 1.1rem;
}

.s9-text-llarg-menu-lateral #menu-lateral {
    position: sticky;
    top: 120px; /* Ajusta según la altura de tu header */
    align-self: start;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.s9-text-llarg-menu-lateral #menu-lateral ul {
    margin-left: 0;
}

.s9-text-llarg-menu-lateral #menu-lateral li {
    display: inline-block;
    width: 100%;
}

.s9-text-llarg-menu-lateral #menu-lateral li a {
    display: block;
    color: #ccc;
    border-bottom: 1px solid #ccc;
    padding: 0.5rem 0;
}
.s9-text-llarg-menu-lateral #menu-lateral li a.active {
    color: #222;
}
.s9-text-llarg-menu-lateral #menu-lateral li:last-child a {
    border-bottom: 0;
}

.s9-text-llarg-menu-lateral #content-area h3[id^="titulo-"] {
    scroll-margin-top: 120px;
}

@media (max-width: 800px) {
    .s9-text-llarg-menu-lateral .container {
        grid-template-columns: 1fr;
    }
    .s9-text-llarg-menu-lateral #menu-lateral {
        position: relative;
        top: 0;
        align-self: start;
        max-height: 100%;
        overflow-y: auto;
    }
}

/* ============================================================================
   S11: ITEMS EN REJILLA
   ============================================================================ */

.s11-listado-en-rejilla .header {
    margin-bottom: 4rem;
}

.s11-listado-en-rejilla .description {
    max-width: 800px;
    font-size: 1.25rem;
}

.s11-listado-en-rejilla .items_list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem 10rem;
    text-align: center;
    align-items: center;
}

.s11-listado-en-rejilla .items_list .item-card.imagen img {
    border: 1px solid #fff;
    margin-bottom: 1.4rem;
}

.s11-listado-en-rejilla .items_list h4 {
    margin-bottom: 1rem;
}

@media (max-width: 800px) {
    .s11-listado-en-rejilla .items_list {
        grid-template-columns: repeat(1, 1fr);
        gap: 4rem;
    }
}

/* ============================================================================
   RESPONSIVE - Módulos nuevos
   ============================================================================ */

@media (max-width: 1172px) {
    .stats__grid {
        gap: var(--spacing-md);
    }
    
    .stats__grid-left {
        gap: var(--spacing-xs);
    }
    
    .stat-card {
        padding: var(--spacing-sm);
        min-height: 160px;
    }
}

@media (max-width: 900px) {
    .header-area__content {
        max-width: 60%;
    }
    
    .promo-card {
        padding: var(--spacing-2xl) var(--spacing-xl);
        min-height: 250px;
    }
    
    .stats__grid {
        grid-template-columns: 1fr;
    }
    
    .stats__grid-left {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .stat-card {
        min-height: 140px;
    }
    
    .text-cols__content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
    
    .cta__wrapper {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .cta__images {
        min-height: 350px;
    }
    
    .cta__image-small {
        width: 250px;
        height: 200px;
    }
    
    .cta__image-large {
        width: 500px;
        height: 333px;
        left: 100px;
        top: 40px;
    }
}

@media (max-width: 500px) {
    .s1-header-area {
        padding: 60px 0;
        min-height: 500px;
    }
    
    .header-area__content {
        max-width: 100%;
    }
    
    .header-area__title {
        margin-bottom: var(--spacing-lg);
    }
    
    .module {
        padding-block: var(--spacing-2xl);
    }
    
    .promo-card {
        padding: var(--spacing-xl) var(--spacing-lg);
        min-height: 220px;
    }
    
    .promo-card__icon {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
        bottom: var(--spacing-lg);
        right: var(--spacing-lg);
    }
    
    .stat-card {
        padding: var(--spacing-md);
        min-height: 120px;
    }
    
    .stat-card__number {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .text-cols__content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .cta__wrapper {
        gap: var(--spacing-lg);
    }
    
    .cta__images {
        min-height: 280px;
    }
    
    .cta__image-small {
        width: 180px;
        height: 144px;
    }
    
    .cta__image-large {
        width: 360px;
        height: 240px;
        left: 60px;
        top: 30px;
    }
}

/* ============================================================================
   S10: NEWSLETTER - Prefooter de suscripción
   ============================================================================ */

.module.s10-newsletter {
    background: linear-gradient(45deg, #000000 0%, #2D82B7 100%);
    padding-block: var(--spacing-3xl);
    /*border-bottom: 1px solid #2D82B7;*/
}

.s10-newsletter .webform-submission-form {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 0 var(--spacing-3xl);
    align-items: end;
}

/* Bloque A - Contenido izquierda */
.newsletter__label {
    font-size: 1.25rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
    margin-bottom: var(--spacing-md);
}

.newsletter__title {
    font-family: var(--font-secondary);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: white;
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
}

.newsletter__legal {
    font-size: 1rem;
    color: white;
    line-height: 1.6;
}

.newsletter__input-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.s10-newsletter .form-item-email label {
    color: #fff;
    display: block;
}

.newsletter__input {
    width: 100%;
    padding: var(--spacing-sm) 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    font-size: 1.1rem;
    transition: border-color 0.3s ease;
}

.newsletter__input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter__input:focus {
    outline: none;
    border-bottom-color: rgba(255, 255, 255, 0.8);
}

.newsletter-form .webform-button--submit {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 8px 18px;
    background: transparent;
    border: 1px solid white;
    border-radius: 26px;
    font-family: var(--font-primary);
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.newsletter-form .webform-button--submit:hover {
    background: rgba(255, 255, 255, 0.1);
}

.newsletter__checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin: 1.5rem 0;
}

.newsletter__checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    margin-top: 0.22rem;
    background: transparent;
    border: 1px solid white;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
}

.newsletter__checkbox:checked {
    background: transparent;
}

.newsletter__checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.newsletter__checkbox-label {
    color: white;
    font-size: 1rem;
}

@media (max-width: 800px) {
    .module.s10-newsletter {
        padding: 3rem 0 2rem;
    }
    .s10-newsletter .webform-submission-form {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .s10-newsletter .newsletter__title {
        margin-bottom: var(--spacing-md);
    }
}

/* ============================================================================
   S12: TITULO
   ============================================================================ */

.node.type-article .s12-titulo h2 {
    margin-bottom: 2rem;
    font-size: clamp(1.25rem, 1.7vw, 1.7rem);
    padding: 0 6.1rem;
}

@media (max-width: 800px) {
    .node.type-article .s12-titulo h2 {
        padding: 0;
    }
}

/* ============================================================================
   S14: ACORDEON
   ============================================================================ */

.s14-acordeon .stats__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 1.25rem;
    font-weight: normal;
    text-transform: uppercase;
    margin-bottom: var(--spacing-md);
}
.s14-acordeon .stats__badge::after {
    content: '';
    width: 22px;
    height: 22px;
    background-image: url(../img/icona_warning_vermell.svg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100%;
}
.s14-acordeon .decription {
    font-size: 1.25rem;
    max-width: 84%;
}
.s14-acordeon .items_list {
    padding-top: 2rem;   
}
.s14-acordeon .acordeon-grupo {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 4rem;
    margin-bottom: 2rem;
}
.s14-acordeon .acordeon-grupo h3 {
    font-size: 1.6rem;
    padding-top: 0.5rem;
    font-family: var(--font-secondary);
}
.s14-acordeon .acordeon-grupo h3 .cifra-color {
    color: var(--color-gradient-pink);
}
.s14-acordeon .grupo-items {
    background-color: #fff;
    padding: 2rem;
    border-radius: 14px;
    box-shadow: 0 0 14px #0006;
}
.s14-acordeon .item-acordeon {
    margin-bottom: 1.2rem;
    padding-bottom: 1.3rem;
    border-bottom: 1px solid #ccc;
}
.s14-acordeon .item-acordeon:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
}
.s14-acordeon .item-acordeon h4 {
    margin-bottom: 0;
    padding: 1rem 0;
    font-family: var(--font-secondary);
    font-size: 1.4rem;
    padding-top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.s14-acordeon .item-acordeon .titulo::after {
  content: '';
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background-image: url('../img/fletxa-avall-vermell.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.35s ease;
}
.s14-acordeon .item-acordeon.activo .titulo::after {
  transform: rotate(180deg);
}
.s14-acordeon .item-acordeon .entradilla {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

/* antiguo CSS del modulo S14 FAQ */

.s14-faqs .items_list {
    padding-top: 2rem;
    padding-left: 6rem;
}
.s14-faqs .s12-titulo h2 {
    font-size: 1.6rem;
    margin: 2rem 0 2rem -5rem;
    border-bottom: 1px solid #ccc;
    padding-bottom: 0.5rem;
}
.s14-faqs .item-faq h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-secondary);
    font-weight: normal;
}

@media (max-width: 800px) {
    .s14-acordeon .acordeon-grupo {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ============================================================================
    S21 - HOME SLIDER
    ============================================================================ */

.region-hero {
    background: var(--gradient-corporate);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero__wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: calc(100vh - 80px);
}

.hero__slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease-in-out;
}

.hero__slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: calc(100vh - 80px);
    z-index: 1;
    padding-block: var(--spacing-3xl);
    align-items: center;
    background-blend-mode: multiply;
}

.hero__inner {
    position: relative;
    z-index: 1;
    padding-block: var(--spacing-3xl);
    min-height: 600px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    width: 100%;
    max-width: var(--container-total);
    margin: 0 auto;
    padding-inline: var(--container-padding);
}

.hero__content {
    text-align: left;
    grid-column: 2;
}

.hero__badge {
    display: inline-flex;
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.hero__title {
    font-size: clamp(1.8rem, 3vw, 3rem);
    margin-bottom: 0.5rem;
}

.hero__description {
    font-size: clamp(1rem, 1.3vw, 1.3rem);
    line-height: 1.5;
    opacity: 0.95;
    margin-bottom: 1rem;
}

.hero__cta {
    display: inline-flex;
    padding: 7px 68px 7px 21px;
    border-radius: 28px;
    font-family: var(--font-secondary);
    font-weight: bold;
    transition: padding 0.4s ease;
    border: 1px solid #fff;
    background-image: url(../img/icona_fletxa.svg);
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
}

.hero__cta:hover {
    background-color: #fff4;
    padding: 7px 94px 7px 21px;
}

/* Navegación del slider */
.hero__nav {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    border: 1px solid white;
    padding: 8px 12px;
    border-radius: 16px;
}

.hero__nav-dot {
    width: 32px;
    height: 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero__nav-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.hero__nav-dot[data-active="true"] {
    background: white;
}

.hero__nav-dot:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Focus visible para accesibilidad */
.region-hero:focus {
    outline: 2px solid white;
    outline-offset: -4px;
}

@media (max-width: 800px) {
    .hero__inner {
        display: block;
    }
}

/* ============================================================================
    S22 HOME PRODUCTS
    ============================================================================ */

.s22-region-subnav {
    background: var(--color-gradient-cyan);
    color: white;
    position: sticky;
    top: var(--header-height);
    z-index: 90;
    box-shadow: var(--shadow-sm);
}

.s22-region-subnav .container {
    display: flex;
    gap: var(--spacing-xl);
    min-height: var(--subnav-height);
    align-items: center;
    justify-content: space-between;
}

.s22-region-subnav h3 {
    margin: 0;
    font-size: 1.25rem;
}

.s22-region-subnav .subnav__link {
    font-weight: bold;
    margin-left: 2rem;
    padding-block: var(--spacing-sm);
    border-bottom: 5px solid transparent;
    transition: border-color 0.2s ease;
}

.s22-region-subnav .subnav__link:hover {
    border-bottom-color: white;
}

.s22-home-productos.module {
    padding-block: 0;
}

.products-grid .row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin: 100px 0;
}
.products-grid .row:nth-child(even) {
    flex-direction: row-reverse;
}

.product-card {
    position: relative;
    border-radius: var(--radius-md);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 40%;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Imagen de fondo opcional */
.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    mix-blend-mode: overlay;
}

.product-card__content {
    position: relative;
    z-index: 2;
    padding: var(--card-padding-block) var(--card-padding-inline);
}

.product-card__badge {
    font-size: 1.25rem;
    font-weight: normal;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.product-card__title {
    font-size: clamp(1.25rem, 2vw, 3.5rem);
    margin-bottom: var(--spacing-sm);
    line-height: 3rem;
}

.product-card__description {
    font-size: 1.25rem;
    line-height: 2rem;
}

.product-card__icon {
    position: absolute;
    right: var(--card-padding-inline);
    bottom: var(--card-padding-inline);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    z-index: 2;
}

.product-card__icon > a {
    width: 48px;
    height: 48px;
    border: 1px solid #fff;
    border-radius: 60%;
    display: block;
    background-image: url(../img/icona_fletxa.svg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 16px;
}
.product-card__icon > a:hover {
    background-color: #fff5;
}

.product-card--white {
    color: #333;
    width: 50%;
}

.product-card--white::before {
    display: none;
}

.product-card--white .product-card__icon {
    background: rgba(0, 0, 0, 0.05);
}

.product-card--large {
    min-height: 430px;
}

@media (max-width: 800px) {
    .s22-region-subnav {
        position: relative;
        top: 0;
    }
    .s22-region-subnav nav {
        display: none;
    }
    .s22-home-productos .products-grid .row {
        margin: 40px 0;
        display: block;
    }
    .s22-home-productos .product-card--white,
    .s22-home-productos .product-card {
        width: 100%;
    }
}

/* ============================================================================
    S23 - Home - Text + Video lateral
    ============================================================================ */

section.module.s23-home-text-video {
    padding: 0;
}

.region-media-text {
    background: var(--color-primary-500);
    color: white;
}

.media-text {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50% + 50% exacto */
    align-items: stretch; /* Misma altura */
    min-height: 600px;
}

.media-text__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--spacing-3xl) 6rem var(--spacing-3xl);
    align-items: flex-end;
}

.media-text__content > .text_wrapper {
    width: calc(var(--container-total) / 2.55);
}

.media-text__badge {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.media-text__title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: var(--spacing-md);
}

.media-text__description {
    font-size: 1.125rem;
    line-height: 1.7;
    opacity: 0.95;
    margin-bottom: var(--spacing-lg);
}

.media-text__cta {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: 2rem 4rem 0 0;
    color: white;
    position: relative;
}
.media-text__cta::before {
    content: '';
    display: block;
    width: 240px;
    height: 1px;
    background-color: #fff;
    position: absolute;
    top: 0;
    left: 0;
}
.media-text__cta-text {
    width: 90%;
}
.media-text__cta-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    font-size: 1.25rem;
    background-image: url(../img/icona_fletxa.svg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 16px;
}
.media-text__cta:hover .media-text__cta-arrow {
    background-color: #fff5;
}

.media-text__media {
    position: relative;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-text__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Play button overlay para videos */
.media-text__play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.media-text__play-button:hover {
    background: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.media-text__play-button::after {
    content: '▶';
    color: var(--color-primary-500);
    font-size: 1.5rem;
    margin-left: 4px;
}

@media (max-width: 800px) {
    .s23-home-text-video .media-text {
        display: block;
    }
    .s23-home-text-video .media-text__content {
        display: block;
        padding: 2rem;
    }
    .s23-home-text-video .media-text__content > .text_wrapper {
        width: 100%;
    }
    .s23-home-text-video .media-text__media {
        height: 500px;
    }
}

/* ============================================================================
   S30: FORMULARIOS
   ============================================================================ */

.s30-formularios .container {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 3rem;
}
.s30-formularios .col-izq {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.s30-formularios h3 {
    text-transform: uppercase;
    font-family: var(--font-secondary);
    font-size: 1.4rem;
    padding-top: 0.5rem;
}
.s30-formularios form {
    font-size: 1.2rem;
}
.s30-formularios .form-item {
    margin-bottom: 2rem;
}
.s30-formularios label {
    display: block;
}
.s30-formularios input[type="text"],
.s30-formularios input[type="email"] {
    width: 100%;
    font-size: 1.1rem;
    letter-spacing: 0.7rem 0;
    padding: 0.5rem;
    border: 0;
    border-bottom: 1px solid var(--color-accent-blue);
    font-family: var(--font-secondary);
}
.s30-formularios .js-form-type-checkbox {
    display: flex;
    gap: 1rem;
}
.s30-formularios input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin-top: 6px;
    border: 1px solid #007acc;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}
.s30-formularios input[type="checkbox"]::after {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    width: 12px;
    height: 8px;
    border-left: 3px solid white;
    border-bottom: 3px solid white;
    transform: rotate(-45deg);
    opacity: 0;
    margin: auto;
    top: -4px;
}
.s30-formularios input[type="checkbox"]:checked {
    background-color: #007acc;
    border-color: #007acc;
}
.s30-formularios input[type="checkbox"]:checked::after {
    opacity: 1;
}

.s30-formularios textarea {
    width: 100%;
    height: 10rem;
    border: 1px solid  var(--color-accent-blue);
    border-radius: 12px;
    padding: 0.25rem;
    font-size: 1.1rem;
    font-family: var(--font-secondary);
    font-weight: bold;
    letter-spacing: 0.04rem;
}
.s30-formularios #edit-grupo-1 .webform-section-wrapper {
    display: flex;
    gap: 4rem;
    margin-bottom: -2rem;
}
.s30-formularios .webform-button--submit {
    display: inline-flex;
    gap: var(--spacing-xs);
    padding: 10px 18px;
    border: 0;
    border-radius: 26px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    opacity: 0.7;
    width: 100%;
    background-color: var(--color-accent-blue);
    background-image: url(../img/fletxa-dreta-blanc.svg);
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 2%;
}
.s30-formularios .webform-button--submit:hover {
    opacity: 1;
}

/* ============================================================================
   S31: LISTADO BLOG
   ============================================================================ */

.s31-listado-blog {
    margin: 4rem 0;
}
.blog-list article h3 {
    font-family: var(--font-secondary);
    font-size: clamp(1rem, 1.4vw, 1.4rem);
    margin: 1.2rem 0;
}
.s31-listado-blog .views-exposed-form {
    text-align: center;
}
.s31-listado-blog .bef-links ul {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 6rem;
}
.s31-listado-blog .bef-links li {
    display: inline-block;
}
.s31-listado-blog .bef-links li:first-child {
    display: none;
}
.s31-listado-blog .bef-links li a {
    border: 1px solid #aaa;
    border-radius: 6px;
    padding: 1rem 2rem;
    font-size: 1.5rem;
    margin: 0 1rem;
    background: var(--gradient-soft-up);
    transition: all ease 0.5s;
}
.s31-listado-blog .bef-links li a:hover {
    background: var(--gradient-soft-down);
}
.blog-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.blog-list article {
    border-radius: 6px;
    box-shadow: 0 0 15px #777;
    overflow: hidden;
}
.blog-list article .text-content {
    padding: 0.5rem 2rem 2rem;
}
.blog-list .featured-card__tags {
    text-transform: uppercase;
}

@media (max-width: 800px) {
    .s31-listado-blog .bef-links ul {
        display: block;
        margin: 0 0 4rem;
    }
    .s31-listado-blog .bef-links li {
        margin: 2rem 0;
    }
    .blog-list {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* ============================================================================
   S32: BLOGS RELACIONADOS MANUAL
   ============================================================================ */


/* ============================================================================
   S33: BLOG TOC
   ============================================================================ */
   
.s33-toc .container {
    padding: 0 8rem;
}
.toc_area {
    margin: 3rem 0;
    border-left: 5px solid var(--color-accent-blue);
    padding-left: 2rem;
    font-size: 1.2rem;
}
.toc_area h2 {
    font-size: 1.6rem;
    line-height: 1rem;
    padding: 0.5rem 0 0;
}
.toc_area ul {
    margin-left: 2rem;
}

@media (max-width: 800px) {
    .s33-toc .container {
        padding: 0 calc(0.25rem * 6);
    }
}
