/* styles.css
   Design System Tokens (CSS Variables)
   - Colores
   - Tipograf�a
   - Controles / UI
   - Tokens EVA + Loader
*/

:root {
    /* =========================
     Colores base
  ========================== */
    --ds-c-1: #5B5F97;
    --ds-c-2: #6F73B6;
    --ds-c-3: #EEF0FA;
    --ds-c-4: #E4E6EB;
    --ds-c-5: #FFFFFF;
    --ds-n-1: #2A2F51;
    --ds-n-2: #6A6F80;
    --ds-n-3: #9AA0B2;
    /* =========================
     Tipograf�a
  ========================== */
    --ds-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    /* Escala tipogr�fica */
    --ds-fs-8: 8px;
    --ds-fs-10: 10px;
    --ds-fs-12: 12px;
    --ds-fs-14: 14px;
    --ds-fs-16: 16px;
    --ds-fs-18: 18px;
    --ds-fs-20: 20px;
    /* Pesos */
    --ds-fw-300: 300;
    --ds-fw-400: 400;
    --ds-fw-500: 500;
    /* =========================
     UI general
  ========================== */
    --ds-radius-lg: 28px;
    --ds-radius-pill: 999px;
    --ds-surface: var(--ds-c-3);
    --ds-text: var(--ds-n-1);
    --ds-border: rgba(111, 115, 182, 0.85);
    /* =========================
     Botones
  ========================== */
    --ds-btn-h-md: 48px;
    --ds-btn-h-lg: 60px;
    --ds-btn-focus: rgba(111, 115, 182, 0.25);
    --ds-primary: var(--ds-c-1);
    --ds-primary-2: var(--ds-c-2);
    /* =========================
     Controles (inputs, selects)
  ========================== */
    --ds-control-bg: var(--ds-c-5);
    --ds-control-border: rgba(42, 47, 81, 0.18);
    --ds-control-placeholder: var(--ds-n-3);
    --ds-control-text: var(--ds-n-1);
    /* =========================
     EVA (mascota)
  ========================== */
    --ds-eva-bg: var(--ds-c-3);
    --ds-eva-visor: var(--ds-c-5);
    --ds-eva-eye: var(--ds-n-1);
    --ds-eva-border: rgba(42, 47, 81, 0.10);
    --ds-eva-red: #D7263D;
    --ds-eva-blue: #2A2F51;
    --ds-eva-gray: #8A90A0;
    /* =========================
     EVA Loader (dots + layout)
  ========================== */
    --ds-dot-red: #D7263D;
    --ds-dot-blue: #2A2F51;
    --ds-dot-gray: #8A90A0;
    --ds-dot-size: 12px;
    --ds-slot-tri: 15px;
    --ds-slot-line: 25px;
    --ds-tri-y: 35px;
    --ds-tri-mid: 20px;
    --ds-wave-a: 10px;
    --ds-wave-dur: 5s;
}

* {
    padding: 0;
    margin: 0;
}

/* login.css
   Login layout (EVA)
*/
.ds-body {
    font-family: var(--ds-font-family);
    color: var(--ds-text);
    background: var(--ds-c-5);
}

/* ===========================================================================
   LOGIN
=========================================================================== */

.ds-login__container {
    margin: 0;
    padding: 0;
}

.ds-login__row{
    min-height: 100vh;
}

.ds-login__visual,
.ds-login__panel {
    position: relative;
}

/* =========================
   Columna visual (izquierda)
========================= */
.ds-login__visual {
    overflow: hidden;
    padding: 36px 42px;
}

    /* Formas suaves del fondo */
    .ds-login__visual::before {
        content: "";
        position: absolute;
        top: -40%;
        left: 50%;
        width: 734px;
        height: 582px;
        background: rgba(238, 240, 250, 0.9);
        border-radius: 50%;
    }

.ds-login__brand {
    position: relative;
    z-index: 2;
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
}

.ds-login__brand-logo {
    width: 210px;
    height: auto;
}

.ds-login__brand-sub {
    margin: 0;
    font-size: 12px;
    color: var(--ds-n-2);
}

/* EVA grande */
.ds-login__eva {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 400px;
    z-index: 2;
}

/* Bloque EVA (cara) */
.ds-eva--xl {
    position: absolute;
    inset: 0;
    background: var(--ds-eva-bg);
    border-top-left-radius: 120px;
    border-top-right-radius: 120px;
    border-bottom-right-radius: 200px;
}

/* Visor */
.ds-eva__visor {
    position: absolute;
    left: 56px;
    right: 56px;
    top: 92px;
    height: 200px;
    background: var(--ds-eva-visor);
    border-radius: 90px;
    border: 1px solid var(--ds-eva-border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 180px;
}

/* Ojos */
.ds-eva__eye {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(42, 47, 81, 0.8);
    display: inline-block;
}

/* Punto rojo inferior */
.ds-login__eva-dot {
    position: absolute;
    right: 20%;
    bottom: 10%;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ds-eva-red);
}

/* =========================
   Columna formulario (derecha)
========================= */
.ds-login__panel {
    display: grid;
    place-items: center;
    padding: 36px 20px;
}

.ds-login__card {
    width: 100%;
    max-width: 600px;
}

.ds-login__company-logo {
    display: block;
    width: 200px;
    height: auto;
    margin: 0 auto 30px;
}

.ds-login__title {
    font-weight: var(--ds-fw-500);
    margin: 0 0 6px;
    color: var(--ds-n-1);
    font-style: Semi Bold;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
}

.ds-login__desc {
    color: var(--ds-n-2);
    font-family: Inter;
    font-weight: 400;
    font-style: Regular;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
}

.ds-login__form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.eva-input-container {
    width: 420px;
    margin: 0 auto;
}

.ds-label {
    font-size: 10px;
    color: var(--ds-n-2);
    margin-bottom: 6px;
    display: inline-block;
}

/* Input base */
.ds-control {
    height: 34px;
    border-radius: 6px;
    border: 1px solid var(--ds-control-border);
    background: var(--ds-control-bg);
    font-size: 12px;
    color: var(--ds-control-text);
    padding: 0 12px;
}

    .ds-control::placeholder {
        color: var(--ds-control-placeholder);
    }

    .ds-control:focus {
        border-color: rgba(111, 115, 182, 0.45);
        box-shadow: 0 0 0 0.2rem var(--ds-btn-focus);
    }

/* Password con bot�n */
.ds-password {
    position: relative;
}

.ds-password__input {
    padding-right: 40px;
}

.ds-password__toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    display: grid;
    place-items: center;
    cursor: pointer;
    border-radius: 6px;
}

    .ds-password__toggle:focus-visible {
        outline: 2px solid rgba(111, 115, 182, 0.55);
        outline-offset: 2px;
    }

.ds-password__icon {
    width: 18px;
    height: 18px;
    fill: rgba(42, 47, 81, 0.55);
}

/* Link */
.ds-login__link {
    font-size: 10px;
    color: var(--ds-n-2);
    text-decoration: underline;
}

    .ds-login__link:hover {
        text-decoration: underline;
    }

/* Bot�n */

.eva-form-button {
    width: 275px;
    height: 50px;
}

.ds-btn {
    border-radius: 999px;
    font-size: 12px;
    font-weight: var(--ds-fw-500);
    border: 1px solid transparent;
}

.ds-btn--primary {
    background: var(--ds-c-1);
    color: #fff;
}

    .ds-btn--primary:hover {
        background: var(--ds-c-2);
        color: var(--ds-c-5);
    }


/* ===========================================================================
   CHAT
=========================================================================== */

/* =========================
   Topbar (CONTAINER)
========================= */
.ds-topbar {
    position: sticky;
    height: 64px;
    border-bottom: 1px solid rgba(42, 47, 81, 0.08);
    background: var(--ds-c-5);
    top: 0;
    z-index: 1030;
}

.ds-topbar__container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
}

.ds-topbar__left {
    display: flex;
    align-items: center;
    gap: 45px;
    min-width: 240px;
}

.ds-topbar__logo {
    height: 40px;
    width: auto;
    display: block;
}

.ds-topbar__divider {
    width: 1px;
    height: 24px;
    background: rgba(42, 47, 81, 0.10);
}

/* =========================
   Topbar (perfil)
========================= */
.ds-navbar__profileBtn {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 0;
    background: transparent;
    padding: 0;
    gap: 10px;
    cursor: pointer;
    text-align: left;
}


/* Contenedor del dropdown desktop */
.ds-topbar__dropdownWrap {
    position: absolute;
    top: 100%;
    right: 16px;
    z-index: 1040;
}

/* Variante desktop (cajita flotante) */
.ds-topbar__dropdown--desktop {
    min-width: 220px;
    background: var(--ds-c-5);
    border: 1px solid rgba(42, 47, 81, 0.12);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
}


.ds-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: var(--ds-c-1);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.ds-avatar__text {
    font-family: var(--ds-font-family);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.ds-navbar__meta {
    min-width: 0;
    line-height: 1.1;
}

.ds-navbar__name {
    color: var(--ds-n-1);
}

.ds-navbar__sub {
    margin-top: 6px;
    color: var(--ds-n-2);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* =========================
   TOPBAR
========================= */
.ds-topbar {
    background: #fff;
}

.ds-topbar__toggler {
    border: 0;
    padding: .35rem .5rem;
}

.ds-topbar .navbar-toggler-icon {
    filter: invert(0);
}

.ds-topbar__dropdown {
    background: #fff;
    border-top: 1px solid rgba(0,0,0,.08);
}


/* =========================
   Layout principal
========================= */
.ds-home {
    min-height: calc(100vh - 64px);
    display: grid;
    place-items: center;
    padding: 36px 0 64px;
}

.ds-home__container {
    max-width: 980px;
}

/* =========================
   EVA STATIC
========================= */

.ds-eva {
    /* Defaults (se sobreescriben por size variants) */
    --eva-w: 70px;
    --eva-h: 60px;
    --eva-r: 15px;
    --visor-w: 70%;
    --visor-h: 25%;
    --visor-y: 20%;
    --visor-r: 999px;
    --eye-size: 5px;
    --eye-gap: 15px;
    --light-size: 4px;
    --light-x: 65%;
    --light-y: 65%;
    position: relative;
    width: var(--eva-w);
    height: var(--eva-h);
    border-top-left-radius: var(--eva-r);
    border-top-right-radius: var(--eva-r);
    background: var(--ds-eva-bg);
    border: 2px solid rgba(42, 47, 81, 0.06);
    box-shadow: 0 0 0 1px rgba(42, 47, 81, 0.04) inset;
    overflow: hidden;
    display: inline-block;
}

/* Visor */
.ds-eva-static__visor {
    position: absolute;
    left: 50%;
    top: var(--visor-y);
    width: var(--visor-w);
    height: var(--visor-h);
    transform: translateX(-50%);
    background: var(--ds-eva-visor);
    border: 2px solid rgba(42, 47, 81, 0.10);
    border-radius: var(--visor-r);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--eye-gap);
}

/* Ojos */
.ds-eva-static__eye {
    width: var(--eye-size);
    height: var(--eye-size);
    border-radius: 999px;
    background: rgba(42, 47, 81, 0.88);
    display: inline-block;
}

/* Luces (3 puntos) */
.ds-eva-static__lights {
    position: absolute;
    left: var(--light-x);
    top: var(--light-y);
    width: calc(var(--light-size) * 3.4);
    height: calc(var(--light-size) * 3.4);
}

.ds-eva-static__light {
    position: absolute;
    width: var(--light-size);
    height: var(--light-size);
    border-radius: 999px;
    display: inline-block;
}

.ds-eva-static__light--red {
    background: var(--ds-eva-red);
    left: 0;
    top: 0;
}

.ds-eva-static__light--blue {
    background: var(--ds-eva-blue);
    right: 0;
    top: calc(var(--light-size) * 0.65);
}

.ds-eva-static__light--gray {
    background: var(--ds-eva-gray);
    left: calc(var(--light-size) * 0.25);
    bottom: 0;
}


/* =========================
   Hero
========================= */
.ds-hero {
    text-align: center;
    margin-top: 24px;
}

.ds-hero__row {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 22px;
}

.ds-hero__texts {
    text-align: center;
    max-width: 680px;
}

.ds-hero__title {
    margin: 0;
    font-weight: var(--ds-fw-500);
    color: var(--ds-n-1);
    font-size: 22px;
    text-align: center;
    vertical-align: middle;
}

.ds-hero__subtitle {
    margin: 6px 0 0;
    font-weight: var(--ds-fw-300);
    font-style: Light;
    font-size: 16px;
    text-align: center;
    color: var(--ds-n-2);
}

/* =========================
   Chatbar
========================= */
.ds-chatbar {
    width: min(900px, 100%);
    height: 52px;
    margin: 0 auto;
    border-radius: 14px;
    background: var(--ds-c-5);
    border: 1px solid var(--ds-c-4);
    display: grid;
    grid-template-columns: 52px 1fr;
    align-items: center;
    padding: 0 8px;
}

.ds-chatbar__add,
.ds-chatbar__send {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 0;
    display: grid;
    place-items: center;
    background: transparent;
    cursor: pointer;
}

.ds-chatbar__input {
    width: 100%;
    height: 40px;
    border: 0;
    outline: none;
    font-size: 13px;
    color: var(--ds-n-1);
    padding: 0 8px;
}

    .ds-chatbar__input::placeholder {
        color: var(--ds-n-3);
    }

/* Send button (morado) */
.ds-chatbar__send {
    background: rgba(91, 95, 151, 0.95);
}

    .ds-chatbar__send:hover {
        background: rgba(91, 95, 151, 1);
    }

/* Iconos */
.ds-icon {
    width: 18px;
    height: 18px;
    fill: var(--ds-c-1);
}

.ds-chatbar__send .ds-icon {
    fill: #fff;
}

/* Focus accesible */
.ds-chatbar:focus-within {
    box-shadow: 0 0 0 0.2rem var(--ds-btn-focus);
    border-color: rgba(111, 115, 182, 0.45);
}

/* =========================
   Chatbar Fijo Abajo
========================= */
.ds-chat-screen {
    height: calc(100vh - var(--ds-topbar-h, 72px)); /* si tu header es fixed */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.ds-chat-screen__thread {
    flex: 1 1 auto;
    padding-bottom: 120px; /* espacio para que no lo tape el composer */
}

/* Composer �pegado abajo� */
.ds-chat-screen__composer {
    position: sticky;
    bottom: 0;
    z-index: 1020;
    padding-bottom: 2rem;
     background: #fff;         
}




/* =========================
   FAQ
========================= */
.ds-faq {
    margin: 5rem 5rem 0;
    text-align: left;
}

.ds-faq__title {
    font-size: 12px;
    color: var(--ds-n-2);
    font-weight: var(--ds-fw-400);
    margin: 0 0 14px;
}

.ds-faq__card-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ds-faq__card {
    width: 100%;
    max-width: 340px;
    min-height: 70px;
    border-radius: 14px;
    border: 0;
    background: rgba(238, 240, 250, 0.95);
    color: var(--ds-n-1);
    font-weight: var(--ds-fw-500);
    padding: 14px 25px;
    text-align: center;
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease;
    font-size: 14px;
}

    .ds-faq__card:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 22px rgba(42, 47, 81, 0.08);
        border: 1px solid var(--ds-n-1);
    }

    .ds-faq__card:focus-visible {
        outline: 2px solid rgba(111, 115, 182, 0.55);
        outline-offset: 2px;
    }

/* ===========================================================================
   CONVERSATION CHAT
=========================================================================== */
/* =========================
   CONTENEDOR CHAT
========================= */
.container-eva {
    max-width: 1200px;
}

/* =========================
   CHAT USER
========================= */
/*
  CONTENEDOR CHATs
*/
.ds-userThread__row,
.ds-evaThread__row {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* El bloque de respuesta  dentro del flex */
.ds-evaThread__row {
  align-items: flex-start; 
}

.ds-evaThread__row .ds-msg {
  flex: 1 1 auto;
  min-width: 0;           
  max-width: 75%;     
  overflow-wrap: anywhere; 
  word-break: break-word;    
}

/* Asegura que el contenido no fuerce el ancho */
.ds-msg__content,
.ds-rich {
  min-width: 0;
}

/* Romper texto largo (URLs) dentro de los párrafos CTA */
.ds-evaReply__cta {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere; 
  word-break: break-word;  
}

/*
 MARGEN CONTENEDOR CHAT USER
*/
.ds-thread__row--user {
    margin-right: 5rem;
    margin-bottom: 1rem;
}

/*
 MARGEN CONTENEDOR CHAT EVA
*/
.ds-thread__row--eva {
}

/*
  CONTENEDOR CHAT USER
*/
.ds-bubble--user {
    border-radius: 20px;
    background: #EEF0FA;
    display: inline-flex;
    padding: 11px 25px;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    max-width: 75%;
}

/* =========================
   LOADER EVA
========================= */

.ds-eva--loader {
    --ds-cycle-dur: var(--ds-wave-dur, 3.2s);
    --ds-bounce-a: 8px;
    --ds-bounce-scale: 1.08;
}

    .ds-eva--loader .ds-eva-static__light {
        animation-duration: var(--ds-cycle-dur);
        animation-timing-function: ease-in-out;
        animation-iteration-count: infinite;
        transform-origin: center;
        will-change: transform, opacity;
    }

    /* Base para animacion */
    .ds-eva--loader .ds-eva-static__light {
        animation-duration: var(--ds-cycle-dur);
        animation-timing-function: ease-in-out;
        animation-iteration-count: infinite;
        transform-origin: center;
        will-change: transform, opacity;
    }

    /* Cada punto con su propio �pulso� dentro del ciclo */
    .ds-eva--loader .ds-eva-static__light--red {
        animation-name: ds-eva-cycle-red;
    }

    .ds-eva--loader .ds-eva-static__light--blue {
        animation-name: ds-eva-cycle-blue;
    }

    .ds-eva--loader .ds-eva-static__light--gray {
        animation-name: ds-eva-cycle-gray;
    }

/* Ciclo:
   0-18%   tri�ngulo quieto
   18-70%  onda (cada punto tiene su pico en distinto %)
   70-100% tri�ngulo quieto
*/
@keyframes ds-eva-cycle-red {
    0%, 18%, 70%, 100% {
        transform: translateY(0) scale(1);
        opacity: .9;
    }

    30% {
        transform: translateY(calc(-1 * var(--ds-bounce-a))) scale(var(--ds-bounce-scale));
        opacity: 1;
    }
}

@keyframes ds-eva-cycle-blue {
    0%, 18%, 70%, 100% {
        transform: translateY(0) scale(1);
        opacity: .9;
    }

    40% {
        transform: translateY(calc(-1 * var(--ds-bounce-a))) scale(var(--ds-bounce-scale));
        opacity: 1;
    }
}

@keyframes ds-eva-cycle-gray {
    0%, 18%, 70%, 100% {
        transform: translateY(0) scale(1);
        opacity: .9;
    }

    50% {
        transform: translateY(calc(-1 * var(--ds-bounce-a))) scale(var(--ds-bounce-scale));
        opacity: 1;
    }
}


/* Ojos: parpadeo suave (opcional) */
.ds-eva--loader .ds-eva-static__eye {
    animation: ds-eva-eye-blink 2s infinite;
    transform-origin: center;
}

@keyframes ds-eva-eye-blink {
    0%, 93%, 100% {
        transform: scaleY(1);
    }

    95% {
        transform: scaleY(.18);
    }
}


/* =========================================================
   TriWave:  TRI�NGULO -> ONDA -> TRI�NGULO
========================================================= */

.ds-triwave {
    /* Tama�o del dot (usa tu token) */
    --dot: var(--ds-dot-size, 12px);
    /* Separaciones */
    --tri: var(--ds-slot-tri, 16px); /* �pegado� en tri�ngulo */
    --line: var(--ds-slot-line, 40px); /* �separado� en l�nea */
    /* Alturas */
    --tri-y: var(--ds-tri-y, 20px); /* dot gris abajo en tri�ngulo */
    --tri-mid: var(--ds-tri-mid, 10px); /* dot azul un poco abajo */
    --wave-a: var(--ds-wave-a, 10px); /* amplitud ola */

    --dur: var(--ds-wave-dur, 3.2s);
    --pad-top: 10px;
    position: relative;
    width: calc((var(--line) * 2) + var(--dot));
    height: calc(var(--dot) + var(--tri-y) + var(--pad-top));
}

/* Dot base */
.ds-triwave__dot {
    position: absolute;
    left: 0;
    top: var(--pad-top);
    width: var(--dot);
    height: var(--dot);
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.10);
    will-change: transform;
    animation-duration: var(--dur);
    animation-timing-function: cubic-bezier(.16,1,.3,1);
    animation-iteration-count: infinite;
}

/* Colores */
.ds-triwave__dot--red {
    background: var(--ds-dot-red, #D7263D);
}

.ds-triwave__dot--blue {
    background: var(--ds-dot-blue, #2A2F51);
}

.ds-triwave__dot--gray {
    background: var(--ds-dot-gray, #8A90A0);
}

/* Asignaci�n de animaci�n */
.ds-triwave__dot--red {
    animation-name: ds-wave-red;
}

.ds-triwave__dot--blue {
    animation-name: ds-wave-blue;
}

.ds-triwave__dot--gray {
    animation-name: ds-wave-gray;
}

/*
  0�15%   Tri�ngulo (pegado)
  15�25%  Abre y baja a l�nea (separado)
  25�85%  Ola x2 (separado)
  85�100% Sube y cierra a tri�ngulo (pegado)
*/

/* ROJO: tri�ngulo arriba-izq, luego centro de la l�nea */
@keyframes ds-wave-red {
    0%,15% {
        transform: translate(0, 0) scale(1);
    }
    /* pasa a l�nea (centro) */
    25% {
        transform: translate(calc(var(--line) * 1), 0) scale(1);
    }
    /* ola x2 */
    36% {
        transform: translate(calc(var(--line) * 1), calc(var(--wave-a) * -1)) scale(1.03);
    }

    44% {
        transform: translate(calc(var(--line) * 1), var(--wave-a)) scale(0.98);
    }

    52% {
        transform: translate(calc(var(--line) * 1), 0) scale(1);
    }

    66% {
        transform: translate(calc(var(--line) * 1), calc(var(--wave-a) * -1)) scale(1.03);
    }

    74% {
        transform: translate(calc(var(--line) * 1), var(--wave-a)) scale(0.98);
    }

    82% {
        transform: translate(calc(var(--line) * 1), 0) scale(1);
    }
    /* regresa a tri�ngulo */
    85%,100% {
        transform: translate(0, 0) scale(1);
    }
}

/* AZUL: tri�ngulo arriba-der (un poco abajo), luego derecha en l�nea */
@keyframes ds-wave-blue {
    0%,15% {
        transform: translate(calc(var(--tri) * 2), var(--tri-mid)) scale(1);
    }
    /* derecha en l�nea */
    25% {
        transform: translate(calc(var(--line) * 2), 0) scale(1);
    }
    /* ola x2 */
    39% {
        transform: translate(calc(var(--line) * 2), calc(var(--wave-a) * -1)) scale(1.03);
    }

    47% {
        transform: translate(calc(var(--line) * 2), var(--wave-a)) scale(0.98);
    }

    55% {
        transform: translate(calc(var(--line) * 2), 0) scale(1);
    }

    69% {
        transform: translate(calc(var(--line) * 2), calc(var(--wave-a) * -1)) scale(1.03);
    }

    77% {
        transform: translate(calc(var(--line) * 2), var(--wave-a)) scale(0.98);
    }

    85% {
        transform: translate(calc(var(--line) * 2), 0) scale(1);
    }
    /* regresa a tri�ngulo */
    88%,100% {
        transform: translate(calc(var(--tri) * 2), var(--tri-mid)) scale(1);
    }
}

/* GRIS: tri�ngulo abajo-izq, luego izquierda en l�nea */
@keyframes ds-wave-gray {
    0%,15% {
        transform: translate(0, var(--tri-y)) scale(1);
    }
    /* izquierda en l�nea */
    25% {
        transform: translate(0, 0) scale(1);
    }
    /* ola x2 */
    33% {
        transform: translate(0, calc(var(--wave-a) * -1)) scale(1.03);
    }

    41% {
        transform: translate(0, var(--wave-a)) scale(0.98);
    }

    49% {
        transform: translate(0, 0) scale(1);
    }

    63% {
        transform: translate(0, calc(var(--wave-a) * -1)) scale(1.03);
    }

    71% {
        transform: translate(0, var(--wave-a)) scale(0.98);
    }

    79% {
        transform: translate(0, 0) scale(1);
    }
    /* regresa a tri�ngulo */
    85%,100% {
        transform: translate(0, var(--tri-y)) scale(1);
    }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .ds-triwave__dot {
        animation: none !important;
    }
}

/* =========================
   CONTENEDOR (rail + contenido)
========================= */
.ds-msg {
  --ds-accent: #5B5F97;        
  --ds-text: #2A2F51;           
  --ds-strong: #2A2F51;        
  --ds-rail: rgba(42, 47, 81, 0.14);
  --ds-codeBg: rgba(42, 47, 81, 0.06);

  display: grid;
  column-gap: 18px;
  align-items: start;

  max-width: 760px;          
  width: 100%;
}



.ds-msg__content {
  min-width: 0; 
}

/* =========================
   TIPOGRAFÍA RICH TEXT
========================= */
.ds-rich {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ds-text);
}

/* Espaciado vertical uniforme (evita margins locos) */
.ds-rich > * {
  margin: 0;
}

.ds-rich > * + * {
  margin-top: 14px;
}

/* Títulos */
.ds-rich h2 {
  line-height: 1.25;
  color: var(--ds-accent);
  margin-top: 0;
  margin-bottom: 1rem;
  font-family: Inter;
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

.ds-rich h3 {
  font-size: 16px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--ds-accent);
  margin-top: 18px;
  margin-bottom: 1rem;
}

/* Estilos inline */
.ds-rich strong {
  font-weight: 500;
  color: var(--ds-strong);
}

.ds-rich em {
  font-style: italic;
}

.ds-rich del {
  opacity: 0.8;
  color: var(--ds-strong);
  font-size: 16px;
  font-weight: 300;
  text-decoration-line: line-through;
}

/* Links */
.ds-rich a {
  color: var(--ds-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-style: italic;
  font-weight: 500;
  line-height: normal;
  text-decoration-style: solid;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
}

  /* Quote (cita) */
  .ds-rich blockquote {
    margin-top: 10px;
    padding: 0px 0 0px 18px;
    border-left: 3px solid var(--ds-rail);
    color: var(--ds-text);
  }

  /* Listas con “rail” */
  .ds-rich ul,
  .ds-rich ol {
    padding-left: 40px;
    margin-top: 10px;

    border-left: 3px solid var(--ds-rail);
    padding-top: 4px;
    padding-bottom: 4px;
    margin-left: 2px;          
  }

  .ds-rich li {
    margin: 2px 0;
  }

  .ds-rich li::marker {
    color: rgba(42, 47, 81, 0.65);
    font-weight: 600;
  }
  
  /* Pregunta final (tipo link) */
  .ds-rich__question {
    font-weight: 500;
    color: #5B5F97;
    font-size: 16px;
    font-style: italic;
  }

/* =========================
   BY EUROMUNDO
========================= */ 


.ds-byEm{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  font-size: 12px;
  line-height: 1;
  color: rgba(42, 47, 81, 0.65);
  user-select: none;
}

.ds-byEm__text{
  font-weight: 500;
  letter-spacing: .02em;
}

.ds-byEm__logo{
  height: 21px;       
  width: auto;
  display: block;
  opacity: .95;
}

/* Esquina inferior derecha (desktop) */
.ds-byEm--corner{
  position: absolute;
  right: 30px;
  bottom: 3rem;
  z-index: 5;
}

.eva-error{
    color: #EA4E51;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-top: .5rem;
}



/* ===========================================================================
   Responsive
=========================================================================== */
@media (min-width: 240px) and (max-width: 374px) {

    /* CONTENEDOR COLUMNA SUPERIOR  */
    .ds-login__row {
        min-height: 100%;
    }

    .ds-login__visual {
        min-height: 320px;
        padding: 24px;
    }

    /* CIRCULO ESQUINA SUPERIOR DERECHA  */
    .ds-login__visual::before{
        top: -400PX;
        left: 50%;
        width: 734px;
        height: 582px;
    }

    /* LOGO ESQUINA SUPERIOR IZQUIERDA  */
    .ds-login__brand-logo {
        width: 50%;
        margin-top: 20px;
    }

    /* EVA  */
    .ds-login__eva {
        left: 0px;
        bottom: 0px;
        height: 160px;
        width: min(420px, 100%);
    }

    /* Bloque EVA (cara) */
    .ds-eva--xl {
        background: var(--ds-eva-bg);
        border-top-left-radius: 180px;
        border-top-right-radius: 180px;
        border-bottom-right-radius: 200%;
    }

    /* Bloque EVA (VISOR) */
    .ds-eva--xl .ds-eva__visor {
        left: 30px;
        right: 30px;
        top: 30px;
        height: 70px;
        gap: 70px;
    }

    /* Bloque EVA (OJOS) */
    .ds-eva--xl .ds-eva__eye {
        width: 23px;
        height: 23px;
    }

    /* Bloque EVA (LOADER) */
    .ds-login__eva-dot {
        display: none;
    }

    /* COLUMNA INFERIOR */
    .ds-login__panel {
        padding: 3rem 1rem;
    }

    /* CONTENEDOR FORMULARIO */
    .ds-login__card {
        width: 100%;
        margin-bottom: 6rem;
    }

    /* LOGO EUROMUNDO */
    .ds-login__company-logo {
        display: block;
        width: 50%;
        margin: 0 auto 1rem;
    }

    /* TITULO */
    .ds-login__title {
        font-size: 16px;
    }

    /* TEXTO DESCRIPCION */
    .ds-login__desc {
        font-size: 10px;
    }

    /* LOGIN EVA */
    .ds-login__form {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    /* CONTENEDOR INPUT FORM EVA */
    .eva-input-container {
        width: 230px;
        margin: 0 auto;
    }

    /* INPUT FORM EVA */
    .ds-control {
        height: 30px;
        font-size: 10px;
    }

    /* BUTTON FORM EVA */
    .eva-form-button {
        width: 200px;
        height: 40px;
    }

    /* EVA CHAT INICIAL */

    .ds-home__container {
        max-width: 980px;
        margin-bottom: 3rem;
    }
    
    /* CONTENEDOR NAVBAR */
    .ds-topbar__container {
        justify-content: space-around;
        padding: 0 22px;
    }
    
    /* CONTENEDOR LOGOS */
    .ds-topbar__left {
        gap: 10px;
    }

    /* LOGOS */
    .ds-topbar__logo {
        height: 20px;
    }
    
    /* CONTENEDOR ICONO NOMBRE */
    .ds-topbar__toggler {
        border: 0;
        padding: 0;
    }

    /* ICONO NOMBRE */
    .ds-avatar {
        width: 30px;
        height: 30px;
        border-radius: 999px;
        background: var(--ds-c-1);
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
    }

    /* CONTENEDOR EVA/TEXTO */
    .ds-hero__row {
        display: flex;
        flex-direction: column;
    }

    /* EVA TEXTO INICIAL */
    .ds-hero__title {
        margin-bottom: 1rem;
        font-size: 18px;
    }

    /* EVA TEXTO SECUNDARIO */
    .ds-hero__subtitle {
        font-size: 14px;
    }

    /* CONTENEDOR INPUT/BUSCADOR CHAT EVA */
    .ds-chatbar {
        height: 50px;
    }

    /* BOTONES + Y ENVIAR INPUT/BUSCADOR CHAT EVA */
    .ds-chatbar__add, .ds-chatbar__send {
        width: 30px;
        height: 30px;
        border-radius: 999px;
        border: 0;
        display: grid;
        place-items: center;
        cursor: pointer;
    }

    .ds-chatbar__send > svg {
        width: 15px;
    }

    /* INPUT/BUSCADOR CHAT EVA */
    .ds-chatbar__input {
        width: 100%;
        height: 30px;
        border: 0;
        outline: none;
        font-size: 10px;
        color: var(--ds-n-1);
        padding: 0 8px;
    }

    /* CONTENEDOR FAQS EVA */
    .ds-faq {
        margin: 1rem;
        text-align: left;
    }

    /* TITULO FAQS EVA */
    .ds-faq__title {
        font-size: 12px;
    }

    /* CARDS FAQS EVA */
    .ds-faq__card {
        max-width: 350px;
        min-height: 60px;
        font-size: 12px;
    }

    /* CHAT EVA */
    /* CONTENEDOR PREGUNTA/TEXTO USUARIO */
    .ds-thread__row--user {
        margin-right: 0rem;
        margin-bottom: 1rem;
    }

     /* BURBUJA PREGUNTA/TEXTO USUARIO */
    .ds-bubble--user {
        border-radius: 20px;
        padding: 11px 25px;
        max-width: 75%;
        font-size: 12px;
    }

    /* CONTENEDOR EVA RESPUESTA */
    .ds-userThread__row, .ds-evaThread__row {
        gap: 1rem;
    }

    /* EVA  */
    .ds-eva {
        position: relative;
        width: 80PX;
        height: 60PX;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }

    /* EVA CONTENEDOR VISOR  */
    .ds-eva-static__visor {
        left: 50%;
        top: 10px;
        width: 40px;
        height: 20px;
        border-radius: 30px;
        gap: 10px;
    }

    /* EVA OJOS */
    .ds-eva-static__eye {
        width: 5px;
        height: 5px;
    }

    /* EVA CONTENEDOR PUNTOS DOT  */
    .ds-eva-static__lights {
        left: 65%;
        top: 65%;
        width: 15px;
        height: 15px;
    }

    /* EVA PUNTOS DOT */
    .ds-eva-static__light {
        width: 5px;
        height: 5px;
    }

    .ds-chat-screen__composer {
        padding-bottom: 0rem;
    }

    /* BY EUROMUNNNDO CENTRADO */
    .ds-byEm--corner{
      position: static;
      display: flex;
      justify-content: center;
      padding: 0 12px;
      margin-bottom: 3rem;
    }

    /* BY EUROMUNNNDO CENTRADO BUSCADOR */
     .ds-chat-screen__composer .container{
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .ds-composer__surface{ order: 1; }
    .ds-composer__by{ order: 2; }

    .ds-composer__by{
        margin-top: 10px;
        margin-bottom: 0;
        justify-content: center; /* centrado en móvil */
    }
}

@media (min-width: 375px) and (max-width: 424px) {
      /* CONTENEDOR COLUMNA SUPERIOR  */
    .ds-login__row {
        min-height: 100%;
    }

    .ds-login__visual {
        min-height: 340px;
        padding: 24px;
    }

    /* CIRCULO ESQUINA SUPERIOR DERECHA  */
    .ds-login__visual::before{
        top: -410PX;
        left: 50%;
        width: 734px;
        height: 582px;
    }

    /* LOGO ESQUINA SUPERIOR IZQUIERDA  */
    .ds-login__brand-logo {
        width: 50%;
        margin-top: 20px;
    }

    /* EVA  */
    .ds-login__eva {
        left: 0px;
        bottom: 0px;
        height: 160px;
        width: min(420px, 100%);
    }

    /* Bloque EVA (cara) */
    .ds-eva--xl {
        background: var(--ds-eva-bg);
        border-top-left-radius: 180px;
        border-top-right-radius: 180px;
        border-bottom-right-radius: 200%;
    }

    /* Bloque EVA (VISOR) */
    .ds-eva--xl .ds-eva__visor {
        left: 30px;
        right: 30px;
        top: 30px;
        height: 70px;
        gap: 70px;
    }

    /* Bloque EVA (OJOS) */
    .ds-eva--xl .ds-eva__eye {
        width: 23px;
        height: 23px;
    }

    /* Bloque EVA (LOADER) */
    .ds-login__eva-dot {
        display: none;
    }

    /* COLUMNA INFERIOR */
    .ds-login__panel {
        padding: 3rem 1rem;
    }

    /* CONTENEDOR FORMULARIO */
    .ds-login__card {
        width: 100%;
        margin-bottom: 6rem;
    }

    /* LOGO EUROMUNDO */
    .ds-login__company-logo {
        display: block;
        width: 50%;
        margin: 0 auto 2rem;
    }

    /* TITULO */
    .ds-login__title {
        font-size: 16px;
    }

    /* TEXTO DESCRIPCION */
    .ds-login__desc {
        font-size: 10px;
    }

    /* LOGIN EVA */
    .ds-login__form {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    /* CONTENEDOR INPUT FORM EVA */
    .eva-input-container {
        width: 230px;
        margin: 0 auto;
    }

    /* INPUT FORM EVA */
    .ds-control {
        height: 30px;
        font-size: 10px;
    }

    /* BUTTON FORM EVA */
    .eva-form-button {
        width: 200px;
        height: 40px;
    }

    /* EVA CHAT INICIAL */

    /*  Layout principal */
    .ds-home {
        min-height: calc(100vh - 64px);
        display: grid;
        place-items: center;
        padding: 0 0 5rem;
    }

    .ds-home__container {
        max-width: 980px;
        margin-bottom: 3rem;
    }

    /* CONTENEDOR NAVBAR */
    .ds-topbar__container {
        justify-content: space-around;
        padding: 0 22px;
    }
    
    /* CONTENEDOR LOGOS */
    .ds-topbar__left {
        gap: 10px;
    }

    /* LOGOS */
    .ds-topbar__logo {
        height: 20px;
    }
    
    /* CONTENEDOR ICONO NOMBRE */
    .ds-topbar__toggler {
        border: 0;
        padding: 0;
    }

    /* ICONO NOMBRE */
    .ds-avatar {
        width: 30px;
        height: 30px;
        border-radius: 999px;
        background: var(--ds-c-1);
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
    }

    /* CONTENEDOR EVA/TEXTO */
    .ds-hero__row {
        display: flex;
        flex-direction: column;
    }

    /* EVA TEXTO INICIAL */
    .ds-hero__title {
        margin-bottom: 1rem;
        font-size: 18px;
    }

    /* EVA TEXTO SECUNDARIO */
    .ds-hero__subtitle {
        font-size: 14px;
    }

    /* CONTENEDOR INPUT/BUSCADOR CHAT EVA */
    .ds-chatbar {
        height: 50px;
    }

    /* BOTONES + Y ENVIAR INPUT/BUSCADOR CHAT EVA */
    .ds-chatbar__add, .ds-chatbar__send {
        width: 30px;
        height: 30px;
        border-radius: 999px;
        border: 0;
        display: grid;
        place-items: center;
        cursor: pointer;
    }

    .ds-chatbar__send > svg {
        width: 15px;
    }

    /* INPUT/BUSCADOR CHAT EVA */
    .ds-chatbar__input {
        width: 100%;
        height: 30px;
        border: 0;
        outline: none;
        font-size: 10px;
        color: var(--ds-n-1);
        padding: 0 8px;
    }

    /* CONTENEDOR FAQS EVA */
    .ds-faq {
        margin: 1rem;
        text-align: left;
    }

    /* TITULO FAQS EVA */
    .ds-faq__title {
        font-size: 12px;
    }

    /* CARDS FAQS EVA */
    .ds-faq__card {
        max-width: 350px;
        min-height: 60px;
        font-size: 12px;
    }

    /* CHAT EVA */
    /* CONTENEDOR PREGUNTA/TEXTO USUARIO */
    .ds-thread__row--user {
        margin-right: 0rem;
        margin-bottom: 1rem;
    }

     /* BURBUJA PREGUNTA/TEXTO USUARIO */
    .ds-bubble--user {
        border-radius: 20px;
        padding: 11px 25px;
        max-width: 75%;
        font-size: 12px;
    }

    /* CONTENEDOR EVA RESPUESTA */
    .ds-userThread__row, .ds-evaThread__row {
        gap: 1rem;
    }

    /* EVA  */
    .ds-eva {
        position: relative;
        width: 80PX;
        height: 60PX;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }

    /* EVA CONTENEDOR VISOR  */
    .ds-eva-static__visor {
        left: 50%;
        top: 10px;
        width: 40px;
        height: 20px;
        border-radius: 30px;
        gap: 10px;
    }

    /* EVA OJOS */
    .ds-eva-static__eye {
        width: 5px;
        height: 5px;
    }

    /* EVA CONTENEDOR PUNTOS DOT  */
    .ds-eva-static__lights {
        left: 65%;
        top: 65%;
        width: 15px;
        height: 15px;
    }

    /* EVA PUNTOS DOT */
    .ds-eva-static__light {
        width: 5px;
        height: 5px;
    }

    .ds-chat-screen__composer {
        padding-bottom: 3rem;
    }

    /* BY EUROMUNNNDO CENTRADO */
    .ds-byEm--corner{
      position: static;
      display: flex;
      justify-content: center;
      padding: 0 12px;
      margin-bottom: 3rem;
    }

    /* BY EUROMUNNNDO CENTRADO BUSCADOR */
     .ds-chat-screen__composer .container{
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .ds-composer__surface{ order: 1; }
    .ds-composer__by{ order: 2; }

    .ds-composer__by{
        margin-top: 10px;
        margin-bottom: 0;
        justify-content: center; /* centrado en móvil */
    }
}

@media (min-width: 425px) and (max-width: 767px) {
     /* CONTENEDOR COLUMNA SUPERIOR  */
    .ds-login__row {
        min-height: 100%;
    }

    .ds-login__visual {
        min-height: 320px;
        padding: 24px;
    }

    /* CIRCULO ESQUINA SUPERIOR DERECHA  */
    .ds-login__visual::before{
        top: -420PX;
        left: 50%;
        width: 734px;
        height: 550px;
    }

    /* LOGO ESQUINA SUPERIOR IZQUIERDA  */
    .ds-login__brand-logo {
        width: 50%;
        margin-top: 20px;
    }

    /* EVA  */
    .ds-login__eva {
        left: 0px;
        bottom: 0px;
        height: 160px;
        width: 100%;
    }

    /* Bloque EVA (cara) */
    .ds-eva--xl {
        background: var(--ds-eva-bg);
        border-top-left-radius: 180px;
        border-top-right-radius: 180px;
        border-bottom-right-radius: 200%;
    }

    /* Bloque EVA (VISOR) */
    .ds-eva--xl .ds-eva__visor {
        left: 30px;
        right: 30px;
        top: 30px;
        height: 70px;
        gap: 70px;
    }

    /* Bloque EVA (OJOS) */
    .ds-eva--xl .ds-eva__eye {
        width: 23px;
        height: 23px;
    }

    /* Bloque EVA (LOADER) */
    .ds-login__eva-dot {
        display: none;
    }

    /* COLUMNA INFERIOR */
    .ds-login__panel {
        padding: 3rem 1rem;
    }

    /* CONTENEDOR FORMULARIO */
    .ds-login__card {
        width: 100%;
        margin-bottom: 6rem;
    }

    /* LOGO EUROMUNDO */
    .ds-login__company-logo {
        display: block;
        width: 50%;
        margin: 0 auto 2rem;
    }

    /* TITULO */
    .ds-login__title {
        font-size: 16px;
    }

    /* TEXTO DESCRIPCION */
    .ds-login__desc {
        font-size: 10px;
    }

    /* LOGIN EVA */
    .ds-login__form {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    /* CONTENEDOR INPUT FORM EVA */
    .eva-input-container {
        width: 70%;
        margin: 0 auto;
    }

    /* INPUT FORM EVA */
    .ds-control {
        height: 35px;
        font-size: 10px;
    }

    /* BUTTON FORM EVA */
    .eva-form-button {
        width: 203px;
        height: 40px;
    }

    /* EVA CHAT INICIAL */

    /*  Layout principal */
    .ds-home {
        min-height: calc(100vh - 64px);
        display: grid;
        place-items: center;
        padding: 0 0 5rem;
    }

    .ds-home__container {
        max-width: 980px;
        margin-bottom: 3rem;
    }

    /* CONTENEDOR NAVBAR */
    .ds-topbar__container {
        justify-content: space-around;
        padding: 0 22px;
    }
    
    /* CONTENEDOR LOGOS */
    .ds-topbar__left {
        gap: 10px;
    }

    /* LOGOS */
    .ds-topbar__logo {
        height: 20px;
    }
    
    /* CONTENEDOR ICONO NOMBRE */
    .ds-topbar__toggler {
        border: 0;
        padding: 0;
    }

    /* ICONO NOMBRE */
    .ds-avatar {
        width: 30px;
        height: 30px;
        border-radius: 999px;
        background: var(--ds-c-1);
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
    }

    /* CONTENEDOR EVA/TEXTO */
    .ds-hero__row {
        display: flex;
        flex-direction: column;
    }

    /* EVA TEXTO INICIAL */
    .ds-hero__title {
        margin-bottom: 1rem;
        font-size: 18px;
    }

    /* EVA TEXTO SECUNDARIO */
    .ds-hero__subtitle {
        font-size: 14px;
    }

    /* CONTENEDOR INPUT/BUSCADOR CHAT EVA */
    .ds-chatbar {
        height: 50px;
    }

    /* BOTONES + Y ENVIAR INPUT/BUSCADOR CHAT EVA */
    .ds-chatbar__add, .ds-chatbar__send {
        width: 30px;
        height: 30px;
        border-radius: 999px;
        border: 0;
        display: grid;
        place-items: center;
        cursor: pointer;
    }

    .ds-chatbar__send > svg {
        width: 15px;
    }

    /* INPUT/BUSCADOR CHAT EVA */
    .ds-chatbar__input {
        width: 100%;
        height: 30px;
        border: 0;
        outline: none;
        font-size: 10px;
        color: var(--ds-n-1);
        padding: 0 8px;
    }

    /* CONTENEDOR FAQS EVA */
    .ds-faq {
        margin: 1rem;
        text-align: left;
    }

    /* TITULO FAQS EVA */
    .ds-faq__title {
        font-size: 12px;
    }

    /* CARDS FAQS EVA */
    .ds-faq__card {
        max-width: 350px;
        min-height: 60px;
        font-size: 12px;
    }

    /* CHAT EVA */
    /* CONTENEDOR PREGUNTA/TEXTO USUARIO */
    .ds-thread__row--user {
        margin-right: 0rem;
        margin-bottom: 1rem;
    }

     /* BURBUJA PREGUNTA/TEXTO USUARIO */
    .ds-bubble--user {
        border-radius: 20px;
        padding: 11px 25px;
        max-width: 75%;
        font-size: 12px;
    }

    /* CONTENEDOR EVA RESPUESTA */
    .ds-userThread__row, .ds-evaThread__row {
        gap: 1rem;
    }

    /* EVA  */
    .ds-eva {
        position: relative;
        width: 80PX;
        height: 60PX;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }

    /* EVA CONTENEDOR VISOR  */
    .ds-eva-static__visor {
        left: 50%;
        top: 10px;
        width: 40px;
        height: 20px;
        border-radius: 30px;
        gap: 10px;
    }

    /* EVA OJOS */
    .ds-eva-static__eye {
        width: 5px;
        height: 5px;
    }

    /* EVA CONTENEDOR PUNTOS DOT  */
    .ds-eva-static__lights {
        left: 65%;
        top: 65%;
        width: 15px;
        height: 15px;
    }

    /* EVA PUNTOS DOT */
    .ds-eva-static__light {
        width: 5px;
        height: 5px;
    }

    .ds-chat-screen__composer {
        padding-bottom: 3rem;
    }

    /* BY EUROMUNNNDO CENTRADO */
    .ds-byEm--corner{
      position: static;
      display: flex;
      justify-content: center;
      padding: 0 12px;
      margin-bottom: 3rem;
    }

    /* BY EUROMUNNNDO CENTRADO BUSCADOR */
     .ds-chat-screen__composer .container{
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .ds-composer__surface{ order: 1; }
    .ds-composer__by{ order: 2; }

    .ds-composer__by{
        margin-top: 10px;
        margin-bottom: 0;
        justify-content: center; /* centrado en móvil */
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
     /* CONTENEDOR COLUMNA SUPERIOR  */
    .ds-login__row {
        min-height: 100%;
    }

     .ds-login__visual {
        min-height: 350px;
        padding: 24px;
    }

    /* CIRCULO ESQUINA SUPERIOR DERECHA  */
    .ds-login__visual::before{
        top: -430PX;
        left: 50%;
        width: 734px;
        height: 550px;
    }

    /* LOGO ESQUINA SUPERIOR IZQUIERDA  */
    .ds-login__brand-logo {
        width: 50%;
        margin-top: 20px;
    }

    /* EVA  */
    .ds-login__eva {
        left: 0px;
        bottom: 0px;
        height: 180px;
        width: 100%;
    }

    /* Bloque EVA (cara) */
    .ds-eva--xl {
        background: var(--ds-eva-bg);
        border-top-left-radius: 180px;
        border-top-right-radius: 180px;
        border-bottom-right-radius: 200%;
    }

    /* Bloque EVA (VISOR) */
    .ds-eva--xl .ds-eva__visor {
        left: 30px;
        right: 30px;
        top: 30px;
        height: 70px;
        gap: 70px;
    }

    /* Bloque EVA (OJOS) */
    .ds-eva--xl .ds-eva__eye {
        width: 23px;
        height: 23px;
    }

    /* Bloque EVA (LOADER) */
    .ds-login__eva-dot {
        display: none;
    }

    /* COLUMNA INFERIOR */
    .ds-login__panel {
        padding: 3rem 1rem;
    }

    /* CONTENEDOR FORMULARIO */
    .ds-login__card {
        width: 100%;
        margin-bottom: 6rem;
    }

    /* LOGO EUROMUNDO */
    .ds-login__company-logo {
        display: block;
        width: 30%;
        margin: 0 auto 2rem;
    }

    /* TITULO */
    .ds-login__title {
        font-size: 16px;
    }

    /* TEXTO DESCRIPCION */
    .ds-login__desc {
        font-size: 10px;
    }

    /* LOGIN EVA */
    .ds-login__form {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    /* CONTENEDOR INPUT FORM EVA */
    .eva-input-container {
        width: 70%;
        margin: 0 auto;
    }

    /* INPUT FORM EVA */
    .ds-control {
        height: 35px;
        font-size: 10px;
    }

    /* BUTTON FORM EVA */
    .eva-form-button {
        width: 203px;
        height: 40px;
    }

    /* EVA CHAT INICIAL */

    /*  Layout principal */
    .ds-home {
        min-height: calc(100vh - 64px);
        display: grid;
        place-items: center;
        padding: 0 0 5rem;
    }

    .ds-home__container {
        max-width: 980px;
        margin-bottom: 3rem;
    }

    /* CONTENEDOR NAVBAR */
    .ds-topbar__container {
        justify-content: space-around;
        padding: 0 22px;
    }
    
    /* CONTENEDOR LOGOS */
    .ds-topbar__left {
        gap: 10px;
    }

    /* LOGOS */
    .ds-topbar__logo {
        height: 20px;
    }
    
    /* CONTENEDOR ICONO NOMBRE */
    .ds-topbar__toggler {
        border: 0;
        padding: 0;
    }

    /* ICONO NOMBRE */
    .ds-avatar {
        width: 30px;
        height: 30px;
        border-radius: 999px;
        background: var(--ds-c-1);
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
    }

    /* CONTENEDOR EVA/TEXTO */
    .ds-hero__row {
        display: flex;
        flex-direction: column;
    }

    /* EVA TEXTO INICIAL */
    .ds-hero__title {
        margin-bottom: 1rem;
        font-size: 18px;
    }

    /* EVA TEXTO SECUNDARIO */
    .ds-hero__subtitle {
        font-size: 14px;
    }

    /* CONTENEDOR INPUT/BUSCADOR CHAT EVA */
    .ds-chatbar {
        height: 50px;
    }

    /* BOTONES + Y ENVIAR INPUT/BUSCADOR CHAT EVA */
    .ds-chatbar__add, .ds-chatbar__send {
        width: 30px;
        height: 30px;
        border-radius: 999px;
        border: 0;
        display: grid;
        place-items: center;
        cursor: pointer;
    }

    .ds-chatbar__send > svg {
        width: 15px;
    }

    /* INPUT/BUSCADOR CHAT EVA */
    .ds-chatbar__input {
        width: 100%;
        height: 30px;
        border: 0;
        outline: none;
        font-size: 10px;
        color: var(--ds-n-1);
        padding: 0 8px;
    }

    /* CONTENEDOR FAQS EVA */
    .ds-faq {
        margin: 1rem;
        text-align: left;
    }

    /* TITULO FAQS EVA */
    .ds-faq__title {
        font-size: 12px;
    }

    /* CARDS FAQS EVA */
    .ds-faq__card {
        max-width: 350px;
        min-height: 60px;
        font-size: 12px;
    }

    /* CHAT EVA */
    /* CONTENEDOR PREGUNTA/TEXTO USUARIO */
    .ds-thread__row--user {
        margin-right: 0rem;
        margin-bottom: 1rem;
    }

     /* BURBUJA PREGUNTA/TEXTO USUARIO */
    .ds-bubble--user {
        border-radius: 20px;
        padding: 11px 25px;
        max-width: 75%;
        font-size: 12px;
    }

    /* CONTENEDOR EVA RESPUESTA */
    .ds-userThread__row, .ds-evaThread__row {
        gap: 1rem;
    }

    /* EVA  */
    .ds-eva {
        position: relative;
        width: 80PX;
        height: 60PX;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }

    /* EVA CONTENEDOR VISOR  */
    .ds-eva-static__visor {
        left: 50%;
        top: 10px;
        width: 40px;
        height: 20px;
        border-radius: 30px;
        gap: 10px;
    }

    /* EVA OJOS */
    .ds-eva-static__eye {
        width: 5px;
        height: 5px;
    }

    /* EVA CONTENEDOR PUNTOS DOT  */
    .ds-eva-static__lights {
        left: 65%;
        top: 65%;
        width: 15px;
        height: 15px;
    }

    /* EVA PUNTOS DOT */
    .ds-eva-static__light {
        width: 5px;
        height: 5px;
    }

    .ds-chat-screen__composer {
        padding-bottom: 3rem;
    }

    /* BY EUROMUNNNDO CENTRADO */
    .ds-byEm--corner{
      position: static;
      display: flex;
      justify-content: center;
      padding: 0 12px;
      margin-bottom: 3rem;
    }

    /* BY EUROMUNNNDO CENTRADO BUSCADOR */
     .ds-chat-screen__composer .container{
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .ds-composer__surface{ order: 1; }
    .ds-composer__by{ order: 2; }

    .ds-composer__by{
        margin-top: 10px;
        margin-bottom: 0;
        justify-content: center; /* centrado en móvil */
    }
}

@media (min-width: 1024px) and (max-width: 1439px) {

    .ds-login{
    min-height: 100svh;  /* mejor que 100vh en móviles */
    }

    .ds-login__container,
    .ds-login__row{
        min-height: inherit;
    }

     .ds-login__visual {
        min-height: 350px;
        padding: 24px;
    }

    /* CIRCULO ESQUINA SUPERIOR DERECHA  */
    .ds-login__visual::before{
        top: -400PX;
        left: 50%;
        width: 734px;
        height: 550px;
    }

    /* LOGO ESQUINA SUPERIOR IZQUIERDA  */
    .ds-login__brand-logo {
        width: 50%;
        margin-top: 20px;
    }

    /* EVA  */
    .ds-login__eva {
        left: 0px;
        bottom: 0px;
        height: 50%;
        width: 100%;
    }

    /* Bloque EVA (cara) */
    .ds-eva--xl {
        background: var(--ds-eva-bg);
        border-top-left-radius: 180px;
        border-top-right-radius: 180px;
        border-bottom-right-radius: 200%;
    }

    /* Bloque EVA (VISOR) */
    .ds-eva--xl .ds-eva__visor {
        left: 30px;
        right: 30px;
        top: 30px;
        height: 70px;
        gap: 70px;
    }

    /* Bloque EVA (OJOS) */
    .ds-eva--xl .ds-eva__eye {
        width: 23px;
        height: 23px;
    }

    /* Bloque EVA (LOADER) */
    .ds-login__eva-dot {
        display: none;
    }

    /* COLUMNA INFERIOR */
    .ds-login__panel {
        padding: 3rem 1rem;
    }

    /* CONTENEDOR FORMULARIO */
    .ds-login__card {
        width: 100%;
        margin-bottom: 6rem;
    }

    /* LOGO EUROMUNDO */
    .ds-login__company-logo {
        display: block;
        width: 30%;
        margin: 0 auto 2rem;
    }

    /* TITULO */
    .ds-login__title {
        font-size: 16px;
    }

    /* TEXTO DESCRIPCION */
    .ds-login__desc {
        font-size: 10px;
    }

    /* LOGIN EVA */
    .ds-login__form {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    /* CONTENEDOR INPUT FORM EVA */
    .eva-input-container {
        width: 70%;
        margin: 0 auto;
    }

    /* INPUT FORM EVA */
    .ds-control {
        height: 35px;
        font-size: 10px;
    }

    /* BUTTON FORM EVA */
    .eva-form-button {
        width: 203px;
        height: 40px;
    }

    /* EVA CHAT INICIAL */

    /*  Layout principal */
    .ds-home {
        min-height: calc(100vh - 64px);
        display: grid;
        place-items: center;
        padding: 0 0 5rem;
    }

    .ds-home__container {
        max-width: 980px;
        margin-bottom: 3rem;
    }

    /* CONTENEDOR NAVBAR */
    .ds-topbar__container {
        justify-content: space-between;
        padding: 0 22px;
    }
    
    /* CONTENEDOR LOGOS */
    .ds-topbar__left {
        gap: 10px;
    }

    /* LOGOS */
    .ds-topbar__logo {
        height: 20px;
    }
    
    /* CONTENEDOR ICONO NOMBRE */
    .ds-topbar__toggler {
        border: 0;
        padding: 0;
    }

    /* ICONO NOMBRE */
    .ds-avatar {
        width: 30px;
        height: 30px;
        border-radius: 999px;
        background: var(--ds-c-1);
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
    }

    /* CONTENEDOR EVA/TEXTO */
    .ds-hero__row {
        display: flex;
        flex-direction: column;
    }

    /* EVA TEXTO INICIAL */
    .ds-hero__title {
        margin-bottom: 1rem;
        font-size: 18px;
    }

    /* EVA TEXTO SECUNDARIO */
    .ds-hero__subtitle {
        font-size: 14px;
    }

    /* CONTENEDOR INPUT/BUSCADOR CHAT EVA */
    .ds-chatbar {
        height: 50px;
    }

    /* BOTONES + Y ENVIAR INPUT/BUSCADOR CHAT EVA */
    .ds-chatbar__add, .ds-chatbar__send {
        width: 30px;
        height: 30px;
        border-radius: 999px;
        border: 0;
        display: grid;
        place-items: center;
        cursor: pointer;
    }

    .ds-chatbar__send > svg {
        width: 15px;
    }

    /* INPUT/BUSCADOR CHAT EVA */
    .ds-chatbar__input {
        width: 100%;
        height: 30px;
        border: 0;
        outline: none;
        font-size: 10px;
        color: var(--ds-n-1);
        padding: 0 8px;
    }

    /* CONTENEDOR FAQS EVA */
    .ds-faq {
        margin: 1rem;
        text-align: left;
    }

    /* TITULO FAQS EVA */
    .ds-faq__title {
        font-size: 12px;
    }

    /* CARDS FAQS EVA */
    .ds-faq__card {
        max-width: 350px;
        min-height: 60px;
        font-size: 12px;
    }

    /* CHAT EVA */
    /* CONTENEDOR PREGUNTA/TEXTO USUARIO */
    .ds-thread__row--user {
        margin-right: 0rem;
        margin-bottom: 1rem;
    }

     /* BURBUJA PREGUNTA/TEXTO USUARIO */
    .ds-bubble--user {
        border-radius: 20px;
        padding: 11px 25px;
        max-width: 75%;
        font-size: 12px;
    }

    /* CONTENEDOR EVA RESPUESTA */
    .ds-userThread__row, .ds-evaThread__row {
        gap: 1rem;
    }

    /* EVA  */
    .ds-eva {
        position: relative;
        width: 80PX;
        height: 60PX;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }

    /* EVA CONTENEDOR VISOR  */
    .ds-eva-static__visor {
        left: 50%;
        top: 10px;
        width: 40px;
        height: 20px;
        border-radius: 30px;
        gap: 10px;
    }

    /* EVA OJOS */
    .ds-eva-static__eye {
        width: 5px;
        height: 5px;
    }

    /* EVA CONTENEDOR PUNTOS DOT  */
    .ds-eva-static__lights {
        left: 65%;
        top: 65%;
        width: 15px;
        height: 15px;
    }

    /* EVA PUNTOS DOT */
    .ds-eva-static__light {
        width: 5px;
        height: 5px;
    }

    .ds-chat-screen__composer {
        padding-bottom: 4rem;
    }

    /* BY EUROMUNNNDO CENTRADO */
    .ds-byEm--corner{
        position: absolute;
        right: 30px;
        bottom: 30px;
        z-index: 5;
    }

    /* BY EUROMUNNNDO CENTRADO BUSCADOR */
     .ds-chat-screen__composer .container{
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .ds-composer__surface{ order: 1; }
    .ds-composer__by{ order: 2; }

    .ds-composer__by{
        margin-top: 10px;
        margin-bottom: 0;
        justify-content: center; /* centrado en móvil */
    }
}

@media (min-width: 2560px){
    .ds-login__container{
        display: flex;
        justify-content: center;
    }

    .ds-login__stage{
        max-width: 1920px;    
        width: 100%;
    }

    .ds-login__row{
        min-height: 100svh;
        align-items: center;
    }

    .ds-login__panel,
    .ds-login__visual {
        height: 1000px;
    }

    .ds-login__card {
        max-width: 1920px;
    }

    .ds-login__company-logo {
        width: 300px;
        margin: 0 auto 4rem;
    }

    .ds-login__title {
        font-size: 30px;
    }

    .ds-login__desc {
        font-size: 20px;
    }

    .eva-input-container {
        width: 600px;
    }

    .ds-control {
        height: 60px;
        font-size: 16px;
    }

    .eva-error {
        font-size: 16px;
    }

    .eva-form-button {
        width: 350px;
        height: 60px;
    }

    .ds-btn {
        font-size: 20px;
    }
}