/* ============================================================================
   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 */
}

/* ============================================
   SCROLL SNAPPING
   ============================================ */

.page-content__modules {
    scroll-snap-type: y mandatory;
}

.snap-section {
    min-height: 100vh !important;
    scroll-snap-align: center;
    display: flex;
    align-items: center;
}

/* ============================================================================
   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 {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.9375rem;
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

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

.header-area__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    font-size: 1.25rem;
}

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

.s3-video {
    background: #000000;
    padding: 0; /* Sin padding para que el video ocupe todo */
}

.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: var(--spacing-3xl) 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-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary-500);
    width: 100%;
    justify-content: center;
}

.promo-card__badge::after {
    content: '';
    width: 16px;
    height: 16px;
    background: var(--color-gradient-pink);
    border-radius: 50%;
}

.promo-card__subtitle {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: var(--spacing-sm);
}

.promo-card__title {
    font-family: var(--font-primary);
    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.125rem;
    opacity: 0.9;
    max-width: 600px;
    line-height: 1.6;
}

.promo-card__icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-top: var(--spacing-lg);
}

/* 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-indice-productos .stats__badge {
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 1.7rem;
}
.s2-indice-productos .products_list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem 3rem;
}
.s2-indice-productos .product__name {
    font-weight: bold;
}

/* ============================================================================
   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-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-md);
}

.s4-datos .stats__badge::after {
    content: '';
    width: 16px;
    height: 16px;
    background: var(--color-gradient-pink);
    border-radius: 50%;
}

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

.s4-datos .stats__description {
    font-size: 1.125rem;
    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 .stat-card {
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 180px;
    color: white;
    box-shadow: var(--shadow-card);
}

/* Degradados originales para cards de S4 */
.s4-datos .stats__grid-left .stat-card:nth-child(1) {
    background: linear-gradient(45deg, #C028B9 0%, #1E194D 100%);
}

.s4-datos .stats__grid-left .stat-card:nth-child(2) {
    background: linear-gradient(45deg, #DC2597 0%, #1E194D 100%);
}

.s4-datos .stats__grid-left .stat-card:nth-child(3) {
    background: linear-gradient(45deg, #3BBFAD 0%, #1E194D 100%);
}

.s4-datos .stats__grid-left .stat-card:nth-child(4) {
    background: linear-gradient(45deg, #A73439 0%, #1E194D 100%);
}

.s4-datos .stat-card--large {
    width: 100%;
    height: 100%;
    min-height: 100%;
    background: linear-gradient(45deg, #D50057 0%, #1E194D 100%);
}

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

/* Números más pequeños en las cards del grid 2x2 */

.s4-datos .stats__grid-left .stat-card__number {
    font-size: clamp(1.25rem, 2.5vw, 2rem);
}

.s4-datos .stat-card__label {
    font-size: 0.875rem;
    opacity: 0.8;
    line-height: 1.4;
}

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

.s6-imagen-ancho-col {
    margin-bottom: 2rem;
}
.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: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.8rem;
}

.s7-texto-columnas .text-cols__badge::after {
    content: '';
    width: 16px;
    height: 16px;
    background: var(--color-gradient-pink);
    border-radius: 50%;
}

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

.s7-texto-columnas .text-cols__description {
    font-size: 1rem;
    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: 1rem;
    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 {
    margin-bottom: 2rem;
}
.s8-text-simple .texto_normal ul {
    margin-left: 3rem;
}

/* ============================================================================
   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-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #000000;
    margin-bottom: var(--spacing-lg);
}

.cta__badge::after {
    content: '';
    width: 16px;
    height: 16px;
    background: var(--color-gradient-pink);
    border-radius: 50%;
}

.cta__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary-500);
}

.cta__description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #6B7280;
    margin-bottom: var(--spacing-lg);
}

.cta__description strong {
    color: var(--color-primary-500);
}

.cta__button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: calc(var(--space-base) * 1.5) var(--spacing-sm);
    background: transparent;
    border: 2px solid var(--color-primary-500);
    border-radius: 22px;
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--color-primary-500);
    transition: all 0.2s ease;
    cursor: pointer;
}

.cta__button:hover {
    background: var(--color-primary-500);
    color: white;
}


/* ============================================================================
   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;
    }
    
    .cta__button {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================================
   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;
}

.newsletter__grid {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: var(--spacing-3xl);
    align-items: center;
}

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

.newsletter__title {
    font-family: var(--font-primary);
    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: 0.875rem;
    color: white;
    opacity: 0.8;
    line-height: 1.6;
}

.newsletter__legal a {
    color: white;
    font-weight: 700;
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.newsletter__legal a:hover {
    opacity: 0.8;
}

/* Bloque B - Formulario derecha */
.newsletter__form {
    /* Contenedor del formulario */
}

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

.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-family: var(--font-secondary);
    font-size: 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__button {
    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__button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.newsletter__arrow {
    font-size: 1.25rem;
}

.newsletter__checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.newsletter__checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    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: 0.875rem;
    opacity: 0.9;
    cursor: pointer;
}

/* ============================================================================
   S10 RESPONSIVE
   ============================================================================ */

@media (max-width: 900px) {
    .newsletter__grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .newsletter__title {
        margin-bottom: var(--spacing-md);
    }
}

@media (max-width: 500px) {
    .s10-newsletter {
        padding-block: var(--spacing-2xl);
    }
    
    .newsletter__button {
        width: 100%;
        justify-content: center;
    }
}

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

.s12-titulo {
    margin-bottom: 2rem;
}

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

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

.region-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1600&h=900&fit=crop');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    mix-blend-mode: overlay;
}

.hero__inner {
    position: relative;
    z-index: 1;
    padding-block: var(--spacing-3xl);
    min-height: 600px;
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50% vacío + 50% contenido */
    align-items: center;
}

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

.hero__badge {
    display: inline-flex;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    margin-bottom: var(--spacing-lg);
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--spacing-lg);
}

.hero__description {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    line-height: 1.5;
    opacity: 0.95;
    margin-bottom: var(--spacing-xl);
}

.hero__cta {
    display: inline-flex;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-md);
    background: white;
    color: var(--color-primary-500);
    font-family: var(--font-primary);
    font-weight: 600;
    transition: transform 0.2s ease;
}

.hero__cta:hover {
    transform: translateY(-2px);
}

/* Pager del slider */
.hero__nav {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xl);
    justify-content: center;
    border: 1px solid white;
    width: 146px;
    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;
    border-radius: 6px;
}

/* ============================================================================
    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-family: var(--font-primary);
    font-weight: 600;
    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-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

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

.product-card__description {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.95;
}

.product-card__icon {
    position: absolute;
    right: var(--spacing-lg);
    bottom: var(--spacing-lg);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    z-index: 2;
    box-shadow: var(--shadow-card);
}

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

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

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

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

/* ============================================================================
    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);
    background: linear-gradient(45deg, var(--color-gradient-cyan) 0%, var(--color-primary-500) 100%);
}

.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-xs);
    padding: var(--spacing-sm) 6rem 0 0;
    background: transparent;
    color: white;
    border-top: 1px solid white;
    transition: all 0.3s ease;
    width: 70%;
}

.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;
}

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

.s31-listado-blog {
    margin: 4rem 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: 1px solid #ccc;
    padding: 1rem;
    border-radius: 6px;
}
.blog-list .featured-card__tags {
    text-transform: uppercase;
}

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


/* ============================================================================
   S33: BLOG TOC
   ============================================================================ */

.toc_area {
    margin: 3rem 0;
    border-left: 5px solid var(--color-accent-blue);
    padding-left: 2rem;
}
.toc_area h2 {
    font-size: 1.6rem;
    line-height: 1rem;
    padding: 0.5rem 0 0;
}
.toc_area ul {
    margin-left: 2rem;
}
