.tecnologia-hero {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    background-image: url("/static/img/tecnologia/Tecnologia_Portada.3f6d86e88076.jpg");
    background-size: cover;
    background-position: center center;
}

.tecnologia-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.tecnologia-hero-content {
    position: absolute;
    top: var(--hero-contenido-top);
    left: 50%;
    transform: translateX(-50%);
    width: min(var(--hero-contenido-ancho), 100%);
    padding: 0 var(--hero-contenido-left);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tecnologia-hero-title {
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 58px;
    line-height: 1.02;
    font-weight: 100;

    color: #FFFFFF;
}
.tecnologia-hero-title span {
    font-weight: 100;
    color: #FFFFFF;
}

.tecnologia-hero-title strong {
    font-weight: 600;
    color: #90BF3E;
}

.tecnologia-hero-description {
    margin-top: 26px;
    max-width: 850px;
    color: #FFFFFF;
     font-family: "Montserrat", Arial, sans-serif;
    font-size: 20PX;
    line-height: 1.6;
    font-weight: 400;        /* Regular */
    text-align: justify;
}
/* BOTONES DEL HERO DE TECNOLOGÍA */

.tecnologia-hero-botones {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.tecnologia-hero-boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 42px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease,
                color 0.3s ease,
                transform 0.3s ease;
}

.tecnologia-hero-boton:hover {
    transform: translateY(-2px);
}

.tecnologia-hero-boton--verde {
    background-color: #90BF3E;
    border-color: #90BF3E; 
    color: #FFFFFF;
}

.tecnologia-hero-boton--verde:hover {
    background-color: #7EAA32;
    border-color: #7EAA32;
}

.tecnologia-hero-boton--contorno {
    background-color: transparent;
    border-color: #FFFFFF;
    color: #FFFFFF;
}

.tecnologia-hero-boton--contorno:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.tecnologia-hero-boton-flecha {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.16);
}

.tecnologia-hero-boton-flecha svg {
    display: block;
    width: 16px;
    height: 16px;
}

/* =========================================
   DATOS ALUX
========================================= */
.alux-datos {
    background: #fff;
    padding: 70px clamp(24px, 6vw, 90px);
}

.alux-datos-grid {
    max-width: 1230px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.alux-datos-texto h2 {
    font-family: "Montserrat", Arial, sans-serif;
    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: 500;
    line-height: 1.3;
    color: #111;
}
.alux-datos-texto strong { color: var(--verde-oscuro); font-weight: 700; }
.alux-datos-texto .verde { color: var(--verde-medio); font-weight: 700; }

.alux-dato {
    padding-left: 30px;
    border-left: 1px solid var(--gris-linea);
}
.alux-dato:first-of-type {
    border-left: none;
    padding-left: 0;
}

.alux-num {
    font-family: "Montserrat", Arial, sans-serif;
    font-size: clamp(34px, 3.4vw, 44px);
    font-weight: 800;
    line-height: 1;
    color: var(--verde-oscuro);
    letter-spacing: -1px;
}
.alux-suffix {
    color: var(--verde-medio);
}
.alux-label {
    margin-top: 10px;
    font-size: 16px;
    color: #555;
}

/* =========================================
   SECCIÓN ALUX (bloque verde)
========================================= */

.alux-plataforma {
    padding: 0 clamp(16px, 4vw, 40px) 60px;
}

.alux-plataforma-wrap {
    max-width: 1300px;
    margin: 0 auto;
    padding: clamp(34px, 5vw, 60px);
    border-radius: 28px;
    background: linear-gradient(135deg, #0a3d20 0%, #0c5a2e 55%, #17843f 100%);
    color: #fff;
    overflow: hidden;
}

/* ---- Zona superior: texto izq + logo der ---- */
.alux-plataforma-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.alux-plat-titulo {
    font-family: "Montserrat", Arial, sans-serif;
    font-size: clamp(28px, 3.2vw, 30px);
    font-weight: 500;
    line-height: 1.25;
    max-width: none;          /* antes 440px — ahora los saltos los dan los <br> */
}
.alux-plat-titulo .verde {
    color: #AEE318;           /* el verde lima de tu imagen */
    font-weight: 700;
}

.alux-plat-texto {
    margin-top: 20px;
    max-width: 490px;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
    text-align: justify;
}

/* Lista de features */
.alux-features-list {
    margin-top: 26px;
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 440px;
    text-align: justify;
}
.alux-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 16px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    text-align: justify;
}
.alux-features-list li::before {
    content: "✓";
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--verde-medio);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}
.alux-features-list strong { color: #fff; font-weight: 700; }

/* Logo ALUX arriba a la derecha */
.alux-plat-derecha {
    display: flex;
    flex-direction: column;
    align-self: stretch;
}

.alux-plat-logo {
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}
.alux-plat-logo img {
    width: clamp(180px, 20vw, 260px);
    height: auto;
}

/* ---- Imagen del dashboard ---- */
.alux-plat-dashboard {
    position: relative;
    width: 124%;
    margin-top: auto;
    margin-bottom: auto;
    align-self: center;
}
.alux-plat-dashboard > img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
}

/* Tarjetas flotantes */
.alux-float {
    position: absolute;
    background: #fff;
    color: #1a1a1a;
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
}
.alux-float .ttl {
    font-size: 11px;
    color: #888;
    font-weight: 600;
}
.alux-float .big {
    font-size: 20px;
    font-weight: 800;
    color: var(--verde-oscuro);
    margin-top: 2px;
}
.alux-float .sub {
    font-size: 10px;
    color: #999;
    margin-top: 2px;
}
.alux-float--consumo { top: 36%; left: -10px; }
.alux-float--generacion { bottom: 8%; right: 4%; }



/* =========================================
   MÓDULOS DE LA PLATAFORMA
========================================= */

.modulos {
    background: #fff;
    padding: 70px clamp(24px, 6vw, 90px) 90px;
}

/* ---- Cabecera ---- */
.modulos-head {
    max-width: 720px;
    margin: 0 auto 60px;
    text-align: center;
}
.modulos-tag {
    color: var(--verde-oscuro);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.modulos-titulo {
    margin-top: 14px;
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.12;
    color: #111;
}
.modulos-titulo .hl {
    display: inline-block;
    margin-top: 8px;
    background: var(--verde-medio);
    color: #fff;
    padding: 2px 20px;
    border-radius: 10px;
}
.modulos-sub {
    margin-top: 18px;
    color: #555;
    font-size: 16px;
    line-height: 1.6;
}

/* ---- Fila de 3 tarjetas ---- */
.modulos-grid {
    max-width: 1230px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    align-items: start;
    text-align: justify;
}

.modulo {
    position: relative;
    padding: 32px 30px;
    border-radius: 18px;
    overflow: hidden;

    /* CERRADO: tarjeta blanca con sombra */
    background: #fff;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

/* Radial verde detrás — entra PRIMERO */
.modulo::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    top: 10%; 
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(144, 191, 62, 0.35) 0%,
        rgba(144, 191, 62, 0) 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
    transition-delay: 0s;          /* ← el radial entra primero */
    z-index: 0;
    pointer-events: none;
}
.modulo > * { position: relative; z-index: 1; }

.modulo h3 {
    font-family: "Montserrat", Arial, sans-serif;
    font-size: clamp(19px, 2vw, 24px);
    font-weight: 700;
    color: #111;
    margin-bottom: 12px;
}
.modulo p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
}

/* Imagen — entra DESPUÉS (con delay) */
.modulo-img {
    margin-top: 22px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(14px);
    transition: max-height 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.5s ease, transform 0.5s ease;
    transition-delay: 0.35s;       /* ← la imagen entra después del radial */
    border-radius: 12px;
}
.modulo-img img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

/* ====== ABIERTO: se quita blanco + sombra, entra radial y luego imagen ====== */
.modulo.abierto {
    background: transparent;
    box-shadow: none;
}
.modulo.abierto::before {
    opacity: 1;
}
.modulo.abierto .modulo-img {
    max-height: 420px;
    opacity: 1;
    transform: translateY(0);
    margin-bottom: 22px;      /* espacio entre imagen y dato */
}

/* Al cerrar: sin delay (vuelven juntos, se ve limpio) */
.modulo:not(.abierto)::before,
.modulo:not(.abierto) .modulo-img {
    transition-delay: 0s;
}


/* ---- Modelo de Mercado (full width, abajo) ---- */
.modulo-mercado {
    max-width: 1230px;
    margin: 70px auto 0;
    display: grid;
    grid-template-columns: 1.3fr 1fr;   /* texto más ancho, imagen más chica */
    gap: 50px;
    align-items: center;
}

.mercado-texto {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.modulo-mercado.visible .mercado-texto {
    opacity: 1;
    transform: translateX(0);
}
.mercado-texto h3 {
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 700;
    color: #111;
    margin-bottom: 14px;
}
.mercado-texto p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    max-width: 560px;
}

/* Imagen derecha — radial PRIMERO, imagen DESPUÉS */
.mercado-media {
    position: relative;
}
.mercado-media::before {
    content: "";
    position: absolute;
    width: 440px;
    height: 440px;
    top: 50%;
    right: -50px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(144, 191, 62, 0.35) 0%,
        rgba(144, 191, 62, 0) 70%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
    transition-delay: 0s;          /* ← radial primero */
}
.mercado-media img {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    margin-left: auto;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: 0.35s;       /* ← imagen después */
}
.modulo-mercado.visible .mercado-media::before { opacity: 1; }
.modulo-mercado.visible .mercado-media img {
    opacity: 1;
    transform: translateX(0);
}


/* ---- DATOS (número verde oscuro, símbolo lima, texto regular) ---- */
.modulo-dato,
.mercado-dato {
    margin-top: 20px;
    font-size: clamp(24px, 2.8vw, 32px);
    font-weight: 800;
    color: var(--verde-oscuro);
    line-height: 1;
}
.modulo-dato .u,
.mercado-dato .u {
    color: #90BF3E;
    font-weight: 700;
}
.modulo-dato .lbl,
.mercado-dato .lbl {
    display: block;
    margin-top: 6px;
    font-size: 0.4em;
    font-weight: 400;        /* regular */
    color: #888;
    letter-spacing: 0.2px;
}


/* =========================================
   ESPACIOS PARA CLIENTES (sticky, 2 escenas)
========================================= */

/* Contenedor alto: da el "recorrido" de scroll */
.espacios {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    height: 250vh;
    background: #0c5a2e;
    color: #fff;
}

/* El panel que se queda FIJO en pantalla, a sangre */
.espacios-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

/* Círculo verde detrás del título, por debajo de las imágenes */
.espacios-sticky::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    top: var(--titulo-top, 50%);
    left: 50%;
    transform: translate(-50%, -50%) scale(var(--esc, 1));
    border-radius: 50%;
    background: radial-gradient(circle, rgba(144, 191, 62, 0.35) 0%, rgba(144, 191, 62, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

/* Título centrado. La escala la controla el JS con --esc */
.espacios-titulo {
    position: absolute;
    top: var(--titulo-top, 50%);
    left: 50%;
    z-index: 3;
    margin: 0;
    width: max-content;
    max-width: 90vw;
    text-align: center;
    font-family: "Montserrat", Arial, sans-serif;
    color: #fff;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(var(--esc, 1));
    transform-origin: center center;
    transition: transform 0.1s linear;
}
.espacios-titulo h2 {
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 400;
    line-height: 1.15;
    margin: 0;
    color: #fff;
}
.espacios-titulo strong {
    display: block;
    color: #AEE318;
    font-weight: 700;
}

/* Las escenas ocupan todo el viewport para poder pegar las imágenes al borde */
.espacios-escenas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}

/* ESCENA 1: collage pegado a los bordes */
.escena1 {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.col-img { position: absolute; }
.col-img img {
    width: 100%;
    display: block;
    border-radius: 14px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}
.col-img--facturas {
    top: 16%;
    left: 0;
    width: clamp(280px, 30vw, 440px);
}
.col-img--reportes {
    top: 28%;
    right: 0;
    width: clamp(270px, 28vw, 420px);
}
.col-img--home {
    bottom: -10%;
    left: 50%;
    width: clamp(480px, 46vw, 680px);
}

/* ESCENA 2: título arriba y 3 columnas debajo */
.escena2 {
    position: absolute;
    top: 24%;
    left: 0;
    right: 0;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(32px, 4vw, 64px);
    align-items: start;
    width: min(1120px, calc(100% - 96px));
    margin-inline: auto;
    text-align: justify;
}
.escena2 .col { opacity: 0; }
.escena2 h3 {
    margin: 0 0 16px;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: clamp(20px, 1.8vw, 26px);
    font-weight: 500;
    color: #fff;
}
.escena2 .col--centro h3 { margin: 18px 0 10px; }
.escena2 p {
    margin: 16px 0 0;
    max-width: 320px;
    font-size: 16px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
}
.escena2 img {
    width: 100%;
    display: block;
    border-radius: 12px;
   
}
.col--centro { margin-top: 108px; }


/* =========================================
   MERCADO ELÉCTRICO MAYORISTA
========================================= */

.mem-consulta {
    background: #fff;
    padding: 90px clamp(24px, 5vw, 80px) 100px;
}

.mem-consulta-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(28px, 4vw, 64px);
    align-items: center;
}

.mem-visual img {
    display: block;
    width: 100%;
    height: auto;
}

.mem-kicker {
    color: #2f9a45;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.mem-info h2 {
    margin-top: 12px;
    max-width: 460px;
    font-size: clamp(30px, 3.1vw, 42px);
    font-weight: 800;
    line-height: 1.12;
    color: #151515;
}

.mem-info h2 span {
    color: #8FBF3A;
}

.mem-lead {
    margin-top: 18px;
    max-width: 460px;
    color: #6b6b6b;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 400;
}

.mem-cards {
    list-style: none;
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mem-cards li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 22px;
    border: 1px solid #e7e7e7;
    border-radius: 16px;
    background: #fff;
}

.mem-cards h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

.mem-cards p {
    margin-top: 4px;
    max-width: 280px;
    font-size: 16px;
    line-height: 1.4;
    color: #9a9a9a;
}

.mem-valor {
    text-align: right;
    flex-shrink: 0;
}

.mem-valor strong {
    display: block;
    color: #0B6B34;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
}

.mem-valor small {
    display: block;
    margin-top: 4px;
    color: #9a9a9a;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.4px;
}


/* =========================================
   INGENIERÍA DE DATOS
========================================= */

.ing-datos {
    position: relative;
    background: #10281c url("/static/img/tecnologia/Fondo_Ingenieria_Datos.d331753589e3.jpg") center / cover no-repeat;
    color: #fff;
    overflow: hidden;
}

.ing-datos::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 24, 16, 0.45) 0%, rgba(6, 24, 16, 0.12) 58%, rgba(6, 24, 16, 0.2) 100%);
}

.ing-datos-inner {
    position: relative;
    z-index: 1;
    max-width: 1140px;
    margin: 0 auto;
    padding: 78px clamp(24px, 4vw, 48px);
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: clamp(28px, 4vw, 56px);
    align-items: end;
}

.ing-copy {
    opacity: 0;
    transform: translateX(-90px);
}

.ing-grafica,
.ing-logos {
    opacity: 0;
    transform: translateY(80px);
}

.ing-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.ing-pill::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #8FBF3A;
}

.ing-copy h2 {
    margin-top: 18px;
    font-size: clamp(40px, 4.6vw, 62px);
    font-weight: 500;
    line-height: 1.02;
    color: #fff;
}

.ing-lead {
    margin-top: 18px;
    max-width: 430px;
    font-size: 15px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
    text-align: justify;
}

.ing-copy ul {
    list-style: none;
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 11px;
    text-align: justify;
}

.ing-copy li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 430px;
    font-size: 16px;
    line-height: 1.4;
}

.ing-copy li::before {
    content: "✓";
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #7CB342;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.ing-logos {
    display: block;
    width: min(360px, 72%);
    height: auto;
    margin: 6px 0 0 auto;
}

.ing-lado {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ing-grafica {
    width: 100%;
    background-image: url("/static/img/tecnologia/graficas.5fbb8f44d03e.png");
    background-repeat: no-repeat;
}

.ing-grafica--arriba {
    aspect-ratio: 1120 / 344;
    background-size: 100% 182.56%;
    background-position: top center;
}

.ing-grafica--abajo {
    aspect-ratio: 1120 / 254;
    background-size: 100% 247.24%;
    background-position: bottom center;
}


/* =========================================
   DATA SCIENCE
========================================= */

.data-science {
    background: #fff;
    padding: 90px clamp(24px, 6vw, 90px);
}

.ds-head {
    max-width: 760px;
    margin: 0 auto 56px;
    text-align: center;
}

.ds-tag {
    color: var(--verde-oscuro);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ds-head h2 {
    margin-top: 14px;
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.12;
    color: #111;
}

.ds-head h2 .hl {
    display: inline-block;
    margin-top: 8px;
    background: var(--verde-medio);
    color: #fff;
    padding: 4px 22px 8px;
    border-radius: 12px;
}

.ds-head p {
    margin: 18px auto 0;
    max-width: 620px;
    color: #555;
    font-size: 16px;
    line-height: 1.6;
}

.ds-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    align-items: stretch;
}

.ds-card {
    display: flex;
    flex-direction: column;
    padding: 42px 32px 24px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    text-align: center;
    opacity: 0;
    transform: translateY(48px);
}

.ds-card h3 {
    margin: 0;
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 400;
    line-height: 1.15;
    color: #111;
}

.ds-card h3 strong {
    display: block;
    font-weight: 700;
}

.ds-card p {
    margin: 16px auto 0;
    max-width: 280px;
    font-size: 16px;
    line-height: 1.55;
    color: #666;
}

.ds-card-img {
    margin-top: auto;
    padding-top: 28px;
}

.ds-card-img img {
    display: block;
    width: 100%;
    height: auto;
}


/* =========================================
   DEMO EN VIVO
========================================= */

.demo-vivo-hero {
    scroll-margin-top: 110px;
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: center;
    background-image: url("/static/img/tecnologia/DemoAlux.ea2947279959.jpg");
    background-size: cover;
    background-position: center center;
}

.demo-vivo-inner {
    width: 100%;
    max-width: 1230px;
    margin: 0 auto;
    padding: 72px clamp(24px, 6vw, 90px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 620px);
    gap: 50px;
    align-items: center;
}

.demo-vivo-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border: 1px solid #fff;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.demo-vivo-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
}

.demo-vivo-copy h2 {
    margin-top: 22px;
    font-size: clamp(32px, 3.2vw, 44px);
    font-weight: 700;
    line-height: 1.08;
    color: #fff;
}

.demo-vivo-copy h2 .linea {
    display: block;
    white-space: nowrap;
}

.demo-vivo-copy h2 .verde {
    color: #B6E23A;
}

.demo-vivo-copy p {
    margin-top: 18px;
    max-width: 430px;
    color: #fff;
    font-size: 15px;
    line-height: 1.55;
    text-align: justify;
}

.demo-vivo-acciones {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.demo-vivo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 42px;
    padding: 10px 18px;
    border: none;
    border-radius: 999px;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.demo-vivo-btn:hover {
    transform: translateY(-2px);
}

.demo-vivo-btn--verde {
    background: #8FBF3A;
    color: #fff;
}

.demo-vivo-btn--verde:hover {
    background: #7EAA32;
}

.demo-vivo-btn--blanco {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
}

.demo-vivo-btn--blanco:hover {
    background: rgba(255, 255, 255, 0.12);
}

.demo-vivo-flecha {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.demo-vivo-flecha svg {
    display: block;
    width: 14px;
    height: 14px;
}

.demo-vivo-card {
    box-sizing: border-box;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: clamp(12px, 2.5vw, 28px);
    padding: 36px clamp(40px, 4.5vw, 52px);
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0%,
            rgba(255, 255, 255, 0.55) 0%,
            transparent 45%),
        radial-gradient(circle at 0% 100%,
            rgba(255, 255, 255, 0.4) 0%,
            transparent 45%),
        rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.demo-vivo-card h3 {
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 700;
    color: #036635;
}

.demo-vivo-card > p {
    margin-top: 8px;
    color: #1a1a1a;
    font-size: 16px;
    line-height: 1.5;
}

.demo-vivo-campo {
    margin-top: 16px;
}

.demo-vivo-fila {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    margin-top: 16px;
}

.demo-vivo-fila .demo-vivo-campo {
    margin-top: 0;
    min-width: 0;
}

@media (max-width: 640px) {
    .demo-vivo-fila {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .demo-vivo-fila .demo-vivo-campo + .demo-vivo-campo {
        margin-top: 16px;
    }
}

.demo-vivo-campo label {
    display: block;
    margin-bottom: 8px;
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 500;
}

.demo-vivo-campo input,
.demo-vivo-campo textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid rgba(3, 102, 53, 0.14);
    border-radius: 20px;
    background: #ffffff;
    font-family: inherit;
    font-size: 16px;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.2s ease;
}

.demo-vivo-campo textarea {
    min-height: 96px;
    border-radius: 18px;
    resize: vertical;
}

.demo-vivo-campo input::placeholder,
.demo-vivo-campo textarea::placeholder {
    color: #A2A9B0;
    opacity: 1;
}

.demo-vivo-campo input:focus,
.demo-vivo-campo textarea:focus,
.demo-vivo-campo input:focus-visible,
.demo-vivo-campo textarea:focus-visible {
    border-color: var(--verde-claro);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(184, 234, 96, 0.45);
}

.demo-vivo-card .contacto-consent {
    margin-top: 16px;
}

.demo-vivo-card .contacto-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    color: #1a1a1a;
    font-size: 16px;
    line-height: 1.45;
}

.demo-vivo-card .contacto-consent-label input[type="checkbox"] {
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border: 1.5px solid rgba(3, 102, 53, 0.45);
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.demo-vivo-card .contacto-consent-label input[type="checkbox"]:focus-visible {
    outline: none;
    border-color: var(--verde-oscuro);
    box-shadow: 0 0 0 3px rgba(3, 102, 53, 0.18);
}

.demo-vivo-card .contacto-consent-label input[type="checkbox"]:checked {
    border-color: var(--verde-oscuro);
    background: transparent;
}

.demo-vivo-card .contacto-consent-label input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 45%;
    width: 5px;
    height: 9px;
    border-right: 2px solid var(--verde-oscuro);
    border-bottom: 2px solid var(--verde-oscuro);
    transform: translate(-50%, -50%) rotate(45deg);
}

.demo-vivo-card .contacto-consent-text {
    flex: 1;
    min-width: 0;
}

.demo-vivo-card .contacto-privacy-link {
    display: inline;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    color: var(--verde-oscuro);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.demo-vivo-card .contacto-privacy-link:hover {
    color: #024d28;
}

.demo-vivo-card .demo-vivo-btn {
    margin-top: 20px;
}

.demo-vivo-card .demo-vivo-btn--verde {
    background: #036635;
}

.demo-vivo-card .demo-vivo-btn--verde:hover {
    background: #024d28;
}

.demo-vivo-card .demo-vivo-flecha {
    background: rgba(255, 255, 255, 0.28);
}

.demo-vivo-clientes {
    background: #fff;
    padding: 42px clamp(24px, 5vw, 64px) 52px;
    text-align: center;
}

.demo-vivo-clientes p {
    color: #9a9a9a;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.demo-vivo-clientes img {
    display: block;
    width: min(920px, 100%);
    height: auto;
    margin: 28px auto 0;
}



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

/* Evitar que padding y bordes aumenten el ancho */
.tecnologia-hero,
.alux-datos,
.alux-plataforma,
.modulos,
.espacios,
.mem-consulta,
.ing-datos,
.data-science,
.demo-vivo-hero,
.demo-vivo-clientes {
    box-sizing: border-box;
}

.tecnologia-hero *,
.alux-datos *,
.alux-plataforma *,
.modulos *,
.espacios *,
.mem-consulta *,
.ing-datos *,
.data-science *,
.demo-vivo-hero *,
.demo-vivo-clientes * {
    box-sizing: border-box;
}

.tecnologia-hero img,
.alux-datos img,
.alux-plataforma img,
.modulos img,
.espacios img,
.mem-consulta img,
.ing-datos img,
.data-science img,
.demo-vivo-hero img,
.demo-vivo-clientes img {
    max-width: 100%;
}

/* =========================
   TABLET: 901px o menos
========================= */

@media (max-width: 900px) {

    /* Portada */
    .tecnologia-hero {
        min-height: 620px;
        background-position: center;
    }

    .tecnologia-hero-content {
        width: 100%;
        padding: 0 32px;
    }

    .tecnologia-hero-title {
        font-size: clamp(40px, 6vw, 54px);
    }

    .tecnologia-hero-description {
        max-width: 680px;
        font-size: 17px;
    }

    /* Datos de ALUX */
    .alux-datos {
        padding: 55px 28px;
    }

    .alux-datos-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }

    .alux-datos-texto {
        grid-column: 1 / -1;
    }

    .alux-dato {
        min-width: 0;
        padding-left: 18px;
    }

    .alux-num {
        font-size: clamp(28px, 4vw, 40px);
    }

    /* Plataforma ALUX */
    .alux-plataforma-wrap {
        padding: 36px;
        border-radius: 22px;
    }

    .alux-plataforma-top {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .alux-plat-derecha {
        min-width: 0;
    }

    .alux-plat-logo {
        justify-content: flex-start;
    }

    .alux-plat-dashboard {
        width: 100%;
        max-width: 100%;
        margin: 20px 0 0;
    }

    .alux-float {
        padding: 10px 12px;
    }

    /* Módulos */
    .modulos-grid,
    .ds-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .modulo {
        min-width: 0;
        padding: 28px 24px;
    }

    .modulo-mercado {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .mercado-media img {
        margin: 0 auto;
    }

    /* Espacios para clientes */
    .espacios {
        width: 100%;
        margin-left: 0;
        height: auto;
        padding: 52px 28px 60px;
    }

    .espacios-sticky {
        position: relative;
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .espacios-sticky::before {
        display: none;
    }

    .espacios-titulo {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        max-width: 100%;
        margin: 0 auto 34px;
        transform: none;
        transition: none;
    }

    .espacios-escenas {
        position: relative;
        height: auto;
    }

    .escena1 {
        display: none;
    }

    .escena2 {
        position: relative;
        inset: auto;
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .escena2 .col {
        opacity: 1;
        min-width: 0;
        transform: none;
    }

    .escena2 p {
        max-width: none;
    }

    .col--centro {
        margin-top: 0;
    }

    /* Mercado eléctrico */
    .mem-consulta {
        padding: 60px 28px 70px;
    }

    .mem-consulta-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .mem-info h2,
    .mem-lead {
        max-width: none;
    }

    /* Ingeniería de datos */
    .ing-datos-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
        padding: 60px 28px;
    }

    .ing-copy,
    .ing-grafica,
    .ing-logos {
        transform: none;
    }

    .ing-lead,
    .ing-copy li {
        max-width: none;
    }

    .ing-logos {
        margin-left: 0;
    }

    /* Data Science */
    .data-science {
        padding: 65px 28px;
    }

    .ds-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ds-card {
        min-width: 0;
        padding: 30px 22px 24px;
    }

    /* Demo */
    .demo-vivo-hero {
        min-height: 0;
    }

    .demo-vivo-inner {
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
        padding: 60px 28px;
    }

    .demo-vivo-card {
        justify-self: stretch;
        width: 100%;
        max-width: min(600px, 100%);
        margin-inline: auto;
        margin-right: 0;
    }

    .demo-vivo-copy h2 .linea {
        white-space: normal;
    }

    .demo-vivo-clientes img {
        width: min(100%, 920px);
        max-width: 100%;
        height: auto;
    }
}

/* =========================
   CELULAR: 600px o menos
========================= */

@media (max-width: 600px) {

    /* Portada */
    .tecnologia-hero {
        min-height: 0;
        padding: 110px 0 56px;
        background-position: 58% center;
    }

    .tecnologia-hero-content {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        padding: 0 22px;
    }

    .tecnologia-hero-title {
        font-size: clamp(34px, 9vw, 46px);
        line-height: 1.08;
        overflow-wrap: anywhere;
    }

    .tecnologia-hero-description {
        margin-top: 20px;
        font-size: 15px;
        line-height: 1.65;
        text-align: left;
    }

    .tecnologia-hero-botones {
        width: 100%;
        gap: 12px;
        margin-top: 24px;
    }

    .tecnologia-hero-boton {
        max-width: 100%;
        gap: 10px;
        padding: 11px 15px;
        font-size: 16px;
    }

    /* Datos ALUX */
    .alux-datos {
        padding: 44px 22px;
    }

    .alux-datos-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px 10px;
    }

    .alux-datos-texto {
        grid-column: 1 / -1;
        margin-bottom: 4px;
    }

    .alux-dato {
        min-width: 0;
        border-top: none;
        padding: 0 0 0 10px;
        border-left: 1px solid var(--gris-linea);
    }

    .alux-dato:first-of-type {
        border-left: none;
        padding-left: 0;
    }

    .alux-num {
        font-size: clamp(22px, 6.5vw, 34px);
        letter-spacing: -0.5px;
    }

    .alux-label {
        font-size: clamp(10px, 2.8vw, 16px);
        line-height: 1.35;
        margin-top: 8px;
    }

    /* Plataforma ALUX */
    .alux-plataforma {
        padding: 0 14px 44px;
    }

    .alux-plataforma-wrap {
        padding: 28px 20px;
        border-radius: 18px;
    }

    .alux-plat-titulo {
        font-size: 27px;
        line-height: 1.25;
    }

    .alux-plat-texto,
    .alux-features-list li {
        font-size: 16px;
        line-height: 1.65;
        text-align: left;
    }

    .alux-plat-logo img {
        width: min(190px, 75%);
    max-width: 100%;
    margin: 24px auto 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: none;
}

    .alux-float {
        padding: 8px 10px;
        border-radius: 9px;
    }

    .alux-float .big {
        font-size: 16px;
    }

    .alux-float--consumo {
        left: 0;
    }

    /* Módulos */
    .modulos {
        padding: 50px 20px 60px;
    }

    .modulos-head {
        margin-bottom: 36px;
    }

    .modulos-titulo,
    .ds-head h2 {
        font-size: clamp(27px, 8vw, 36px);
        line-height: 1.15;
        overflow-wrap: anywhere;
    }

    .modulos-titulo .hl,
    .ds-head h2 .hl {
        max-width: 100%;
        padding: 4px 12px 7px;
    }

    .modulos-sub,
    .ds-head p {
        font-size: 16px;
        line-height: 1.65;
    }

    .modulos-grid,
    .ds-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .modulo {
        padding: 26px 22px;
        border-radius: 16px;
    }

    .modulo h3 {
        font-size: 21px;
        line-height: 1.3;
    }

    .modulo p,
    .mercado-texto p {
        font-size: 16px;
        line-height: 1.7;
    }

    .modulo-mercado {
        margin-top: 44px;
        gap: 22px;
    }

    .mercado-media::before {
        display: none;
    }

    /* Espacios para clientes */
    .espacios {
        padding: 46px 20px 52px;
    }

    .espacios-titulo {
        margin-bottom: 28px;
    }

    .espacios-titulo h2 {
        font-size: clamp(30px, 8vw, 40px);
        line-height: 1.2;
    }

    .escena2 {
        gap: 30px;
    }

    .escena2 h3 {
        font-size: 21px;
        line-height: 1.3;
    }

    .escena2 p {
        font-size: 16px;
        line-height: 1.65;
        text-align: left;
    }

    .escena2 img {
        width: 100%;
        height: auto;
    }

    /* Mercado eléctrico */
    .mem-consulta {
        padding: 48px 20px 56px;
    }

    .mem-info h2 {
        font-size: clamp(28px, 8vw, 36px);
    }

    .mem-lead {
        font-size: 16px;
        line-height: 1.65;
    }

    .mem-cards {
        gap: 12px;
    }

    .mem-cards li {
        align-items: flex-start;
        gap: 12px;
        padding: 15px;
        border-radius: 13px;
    }

    .mem-cards h3 {
        font-size: 16px;
        line-height: 1.4;
    }

    .mem-cards p {
        font-size: 16px;
        line-height: 1.5;
    }

    .mem-valor strong {
        font-size: 18px;
    }

    .mem-valor small {
        font-size: 9px;
    }

    /* Ingeniería de datos */
    .ing-datos-inner {
        padding: 48px 22px;
        gap: 28px;
    }

    .ing-copy h2 {
        font-size: clamp(34px, 9vw, 46px);
        line-height: 1.08;
    }

    .ing-lead,
    .ing-copy li {
        font-size: 16px;
        line-height: 1.65;
        text-align: left;
    }

    .ing-pill {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .ing-grafica {
        max-width: 100%;
    }

    .ing-logos {
        width: min(280px, 90%);
     max-width: 100%;
    margin: 24px auto 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: none;
}

    }

    /* Data Science */
    .data-science {
        padding: 50px 20px 60px;
    }

    .ds-head {
        margin-bottom: 34px;
    }

    .ds-card {
        padding: 30px 22px 24px;
        border-radius: 18px;
    }

    .ds-card h3 {
        font-size: 24px;
    }

    .ds-card p {
        font-size: 16px;
        line-height: 1.65;
    }

    /* Demo en vivo */
    .demo-vivo-inner {
        padding: 48px 20px;
        gap: 30px;
    }

    .demo-vivo-copy h2 {
        font-size: clamp(30px, 8vw, 38px);
        line-height: 1.15;
    }

    .demo-vivo-copy p {
        font-size: 16px;
        line-height: 1.65;
        text-align: left;
    }

    .demo-vivo-acciones {
        gap: 10px;
    }

    .demo-vivo-btn {
        max-width: 100%;
        padding: 11px 14px;
        font-size: 16px;
    }

    .demo-vivo-card {
        padding: 28px clamp(22px, 6vw, 32px);
        border-radius: 18px;
        margin-right: 0;
    }

    .demo-vivo-campo input,
    .demo-vivo-campo textarea {
        font-size: 16px;
    }

    .demo-vivo-clientes {
        padding: 34px 20px 40px;
        overflow: visible;
    }

    .demo-vivo-clientes p {
        font-size: 10px;
        letter-spacing: 1.2px;
        line-height: 1.6;
    }

    .demo-vivo-clientes img {
        width: 100%;
        max-width: 100%;
        margin-top: 22px;
    }

/* =========================
   CELULAR PEQUEÑO: 400px
========================= */

@media (max-width: 400px) {

    .tecnologia-hero-content {
        padding-right: 18px;
        padding-left: 18px;
    }

    .tecnologia-hero-title {
        font-size: 33px;
    }

    .tecnologia-hero-botones {
        align-items: stretch;
        flex-direction: column;
    }

    .tecnologia-hero-boton {
        width: 100%;
    }

    .alux-plataforma-wrap {
        padding: 24px 16px;
    }

    .alux-plat-titulo {
        font-size: 24px;
    }

    .modulos,
    .data-science {
        padding-right: 16px;
        padding-left: 16px;
    }

    .modulo {
        padding: 23px 18px;
    }

    .mem-cards li {
        flex-direction: column;
        align-items: stretch;
    }

    .mem-valor {
        text-align: left;
    }

    .demo-vivo-inner {
        padding-right: 16px;
        padding-left: 16px;
    }

    .demo-vivo-card {
        padding: 26px 20px;
    }

    .demo-vivo-acciones {
        flex-direction: column;
        align-items: stretch;
    }

    .demo-vivo-acciones .demo-vivo-btn {
        width: 100%;
    }
}

/* Accesibilidad: respetar la preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .tecnologia-hero-boton,
    .modulo,
    .modulo::before,
    .modulo-img,
    .mercado-texto,
    .mercado-media img,
    .ing-copy,
    .ing-grafica,
    .ing-logos,
    .ds-card,
    .demo-vivo-btn {
        animation: none !important;
        transition: none !important;
    }

    .mercado-texto,
    .mercado-media img,
    .ing-copy,
    .ing-grafica,
    .ing-logos,
    .ds-card {
        opacity: 1;
        transform: none;
    }
}

/* Corrección de ancho únicamente en responsive */
@media (max-width: 600px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .tecnologia-hero,
    .alux-datos,
    .alux-plataforma,
    .modulos,
    .espacios,
    .mem-consulta,
    .ing-datos,
    .data-science,
    .demo-vivo-hero,
    .demo-vivo-clientes {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .tecnologia-hero *,
    .alux-datos *,
    .alux-plataforma *,
    .modulos *,
    .espacios *,
    .mem-consulta *,
    .ing-datos *,
    .data-science *,
    .demo-vivo-hero *,
    .demo-vivo-clientes * {
        box-sizing: border-box;
        min-width: 0;
    }

    img,
    video,
    iframe {
        max-width: 100%;
    }
}
