/* Chat con Zimona (spec 002, tarea 55): <style> publicado de chat-zimona.php (sin cambios) +
   adaptaciones al final (estilos en línea, botones y encabezados semánticos, modales y toast). */

.chat-container {
    height: 650px;

    @media (max-width:768px) {
        height: 800px;
    }

    @media (max-width:520px) {
        height: 892px;
        top: -415px;
    }
}

.chat-messages {
    height: 555px;

    @media (max-width:768px) {
        height: 678px;
    }

    @media (max-width:520px) {
        height: 745px;
    }
}

.chat-footer {
    height: 85px;
}

/* Protocolo de crisis: respuesta fija de Zimona (data-crisis="first|persist|third_party") */
.crisis-alert {
    border-left: 4px solid #DEFA5C;
    background: rgba(222, 250, 92, 0.08);
    border-radius: 6px;
    padding: 12px 16px;
    margin: 4px 0;
}

.crisis-alert p {
    margin: 0 0 10px;
}

.crisis-alert p:last-child {
    margin-bottom: 0;
}

.crisis-alert strong,
.crisis-alert a {
    color: #DEFA5C;
}

.crisis-alert a {
    text-decoration: underline;
}

.terminos {
    margin: 0px;
}

.chat-init {
    font-family: Anek Tamil;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    margin-top: 0px;
    max-width: 1172px;
    width: 98vw;
    margin: auto;

    @media (max-width:768px) {
        flex-direction: column;
    }
}

.chat-init .titleContainer {
    width: 90vw;
    max-width: 620px;

    @media (max-width:768px) {
        margin-bottom: 25px;
    }
}

.chat-init .text64 {
    font-weight: 600;
    font-size: 54px;
    line-height: 60px;
    color: #fff;
    text-align: left;
    max-width: 520px;
    width: 90vw;
}

.chat-init .text28 {
    font-weight: 400;
    font-size: 22px;
    line-height: 28px;
    color: #fff;
    text-align: left;
    margin: 30px 0px;
}

.chat-init .text28>span {
    color: #DEFA5C;
}

.chat-init .buttons {
    display: flex;
    gap: 10px;
    text-align: left;
}

.chat-init .mainButton {
    width: 181px;
    height: 51px;
    border-radius: 20px;
    border: none;
    background-color: #DEFA5C;
    color: #0b2e1a;
    font-size: 20px;
    line-height: 20px;
    cursor: pointer;
}

.chat-init .secondaryButton {
    width: 181px;
    height: 51px;
    border-radius: 20px;
    border: 1px solid #fff;
    background-color: transparent;
    color: #FFF;
    font-size: 20px;
    cursor: pointer;
}

.chat-init>img,
.chat-init>picture>img {
    width: 380px;
    height: 380px;

    @media (max-width:768px) {
        width: 190px;
        height: 190px;
    }
}

.help-title {
    text-align: center;
}

.help-title>.text30 {
    font-weight: 900;
    font-size: 30px;
    line-height: 30px;
    color: #DEFA5C;
    margin: 0px;
}

.help-title>.text20 {
    font-weight: 400;
    font-size: 20px;
    line-height: 20px;
    color: #FFF;
    margin: 7px 0 20px 0;
}

.help-promt {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;

    @media (max-width:768px) {
        display: none;
    }
}

.help-promt>.text-card {
    width: 200px;
    height: 57px;
    border-radius: 20px;
    border: none;
    font-family: Anek Tamil;
    font-size: 16px;
    font-weight: 400;
    line-height: 16px;
    border: 1px solid #fff;
    color: #FFF !important;
    background-color: transparent;
    z-index: 3;
    padding: 14px 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.chat-info {
    bottom: -38px;
    display: none;
}

.seccion-terapia-emocional {
    height: 500px;
    margin-top: 60px;

    @media (max-width:1290px) {
        margin-top: 225px;
    }

    @media (max-width:768px) {
        margin-top: 0px;
    }

    @media (max-width:580px) {
        margin-top: 506px;
    }

    @media (max-width:390px) {
        margin-top: 436px;
    }
}

.seccion-terapia-emocional>p {
    z-index: 3;
    position: absolute;
    font-weight: 600;
    font-size: 29px;
    line-height: 74px;
    color: #fff;
    margin: 0px;
    left: 50%;
    transform: translate(-50%, 0);
    text-align: center;
    width: 95vw;

    @media (max-width:768px) {
        font-size: 25px;
        line-height: 25px;
    }

}

.banner-terapia {
    position: relative;
    width: 100vw;
    max-width: 1290px;
    height: 510px;
    top: 60px;
}

.banner-img0 {
    height: 559px;
    object-fit: cover;
    border-radius: 20px;
    margin: 0px auto;
    left: 50%;
    transform: translate(-50%);
    position: absolute;
    z-index: 2;

    @media (max-width:768px) {
        display: none;
    }

}

.banner-img2 {
    display: none;
    height: 540px;
    object-fit: cover;
    z-index: 2;
    position: relative;
    left: 50%;
    transform: translate(-50%);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);

    @media (max-width:768px) {
        display: block;
    }
}


.rectangle30-2 {
    display: none;

    @media (max-width:768px) {
        bottom: -525px;
        display: block;
        width: 100%;
        z-index: 2;
        position: absolute;
        height: 310px;
    }

    @media (max-width:400px) {
        bottom: -518px;
    }
}

.page-title {
    position: absolute;
    text-align: center;
    letter-spacing: -1px;
    width: 576px;
    z-index: 9;
    top: 288px;
    left: 76px;

    @media (max-width:768px) {
        width: 90vw;
        max-width: 358px;
        top: auto;
        bottom: auto;
        left: 50%;
        transform: translate(-50%, -50%);
        margin-top: -177px;
    }

    @media (max-width:624px) {
        margin-top: -156px;
    }
}

.page-title>.tipo1 {
    font-weight: 300;
    font-size: 50px;
    line-height: 68px;
    color: #defa5c;

    @media (max-width:768px) {
        font-size: 41px;
        line-height: 40px;

    }
}

.page-title>.tipo2 {
    font-weight: 700;
    font-size: 54px;
    line-height: 52px;
    color: #fff;

    @media (max-width:768px) {
        font-size: 41px;
        line-height: 40px;
    }
}

.subbanner {
    display: flex;
    flex-wrap: wrap;
    position: absolute;
    bottom: -40px;
    align-items: end;
    gap: 20px;
    z-index: 3;
    justify-content: end !important;
    left: 43%;
    width: 519px;

    @media (max-width:1024px) {
        left: 42%;
    }

    @media (max-width:916px) {
        left: 38%;
    }

    @media (max-width:841px) {
        left: 34%;
    }

    @media (max-width:793px) {
        left: 32%;
    }

    @media (max-width:768px) {
        flex-direction: column-reverse;
        align-items: center !important;
        left: 50%;
        transform: translate(-50%, 0);
        bottom: -23px;
    }
}

.get-product {
    width: 249px;
    height: 60px;
    border-radius: 45px;
    border: none;
    font-family: Anek Tamil;
    font-size: 20px;
    font-weight: 700;
    line-height: 28.65px;
    color: #0b2e1a !important;
    background: #defa5c;
    z-index: 3;
    cursor: pointer;
    padding: 14px 0px;
}

.get-product p {
    margin: 0px;
    padding: 0px;
}

.seccion-nuestros-productos {
    top: 130px;

    @media (max-width:768px) {
        top: 190px;
    }
}

.rectangle-30 {
    @media (max-width:768px) {
        height: 654px;
    }


}

@media (max-width: 1024px),
(max-device-width: 1024px) {

    html,
    body {
        overflow-x: hidden;
    }

    .micontenido,
    .banner {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .banner {
        height: auto !important;
        min-height: 0 !important;
        padding: 24px 20px 36px !important;
        box-sizing: border-box;
    }

    .banner .rectangle,
    .banner .x31_26,
    .banner .rectangle-30 {
        display: none !important;
    }

    .chat-container {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        width: min(100%, 760px) !important;
        max-width: 760px !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 auto !important;
        box-sizing: border-box;
        display: flex !important;
        flex-direction: column;
        overflow: visible !important;
        background: rgba(0, 34, 29, 0.92);
        border-radius: 22px;
        z-index: 10;
        color: #FFFFFF;
    }

    .chat-menu {
        display: none !important;
    }

    .chat-messages {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        height: auto !important;
        min-height: 0 !important;
        padding-bottom: 0;
        box-sizing: border-box;
        overflow: visible !important;
        z-index: 11;
    }

    .chat-init {
        width: 100% !important;
        max-width: 680px !important;
        flex-direction: column;
        align-items: center;
        gap: 22px;
        padding: 24px 18px 18px !important;
        box-sizing: border-box;
        text-align: center;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        z-index: 12;
    }

    .chat-init .titleContainer {
        width: 100% !important;
        max-width: 560px !important;
        margin: 0 auto !important;
    }

    .chat-init .text64 {
        width: 100% !important;
        max-width: 560px !important;
        font-size: clamp(2.15rem, 7vw, 3.2rem) !important;
        line-height: 1.06 !important;
        text-align: center;
        margin: 0 auto;
    }

    .chat-init .text28 {
        font-size: 1.25rem !important;
        line-height: 1.35 !important;
        text-align: center;
        margin: 22px auto !important;
    }

    .chat-init .buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .chat-init>img,
.chat-init>picture>img {
        width: min(58vw, 230px) !important;
        height: auto !important;
        aspect-ratio: 1 / 1;
        object-fit: contain;
        order: -1;
    }

    .help-title {
        width: min(100%, 620px);
        margin: 0 auto 18px;
        padding: 0 18px;
        box-sizing: border-box;
        position: relative !important;
        z-index: 12;
    }

    .help-title>.text30 {
        font-size: 1.55rem !important;
        line-height: 1.15 !important;
    }

    .help-title>.text20 {
        font-size: 1.05rem !important;
        line-height: 1.35 !important;
        margin-bottom: 18px;
    }

    #chat-form {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100% !important;
        box-sizing: border-box;
        z-index: 12;
    }

    .chat-footer {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 0 18px 20px;
        box-sizing: border-box;
        display: block !important;
        overflow: visible !important;
    }

    .input-container {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: 100%;
        max-width: 620px;
        margin: 0 auto;
        box-sizing: border-box;
        display: flex !important;
        align-items: center;
        gap: 10px;
    }

    .input-message {
        width: 100%;
        min-height: 58px;
        box-sizing: border-box;
        resize: vertical;
        margin: 0 !important;
        padding-right: 58px;
    }

    .send-button {
        position: absolute !important;
        right: 10px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        flex: 0 0 auto;
    }

    .terminos {
        width: min(100%, 620px);
        margin: 12px auto 0 !important;
        font-size: 0.78rem;
        line-height: 1.28;
        text-align: center;
        box-sizing: border-box;
    }
}

@media (max-width: 600px),
(max-device-width: 600px) {
    .banner {
        padding: 18px 12px 28px !important;
    }

    .chat-init {
        padding: 20px 14px 16px !important;
        gap: 18px;
    }

    .chat-init .text64 {
        font-size: 2rem !important;
        line-height: 1.08 !important;
    }

    .chat-init .text28 {
        font-size: 1rem !important;
        line-height: 1.35 !important;
        margin: 18px auto !important;
    }

    .chat-init .buttons {
        width: 100%;
        gap: 10px;
    }

    .chat-init .mainButton,
    .chat-init .secondaryButton {
        width: min(100%, 220px) !important;
        height: 48px !important;
        font-size: 1.05rem !important;
    }

    .chat-init>img,
.chat-init>picture>img {
        width: min(54vw, 190px) !important;
    }

    .help-title>.text30 {
        font-size: 1.3rem !important;
    }

    .help-title>.text20 {
        font-size: 0.95rem !important;
    }

    .chat-footer {
        padding: 0 12px 18px;
    }

    .terminos {
        font-size: 0.68rem;
    }
}

/* ===== Adaptaciones zeed_retail ============================================================ */

/* Títulos: los <div> .text64 y .text30 pasan a h1/h2 con el mismo aspecto. */
.chat-init h1.text64,
.help-title h2.text30 {
    margin: 0;
    font-family: inherit;
    letter-spacing: normal;
    text-transform: none;
}

.chat-init h1.text64 {
    font-size: 54px;
}

/* El menú de historial se mostraba con style.display desde JS: ahora con el atributo hidden. */
.chat-menu[hidden] {
    display: none;
}

/* Sugerencias: de <div onclick style="cursor:pointer"> a <button>. */
.help-promt > button.text-card {
    cursor: pointer;
    font-family: Anek Tamil;
}

/* Votos: de <svg onclick style="cursor:pointer"> a <button> con el mismo icono. */
.vote-button {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    line-height: 0;
}

/* Divi heredaba 14px, peso 500 e interlineado 1.7em al contenido de la página. */
.micontenido {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.7em;
}

/* Las tarjetas del chat usan .card, que en zeed_retail es un componente con borde, fondo y
   márgenes (common.css): aquí vuelven a ser las de home.css. */
.chat-messages > .card {
    background: none;
    border: 0;
    margin-block: 0 10px;
}

/* Botón del menú de historial: era un <div>. */
button.chat-menu-icon {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
}

/* common.css limita svg a max-width:100%; con el menú cerrado (ancho 0) la flecha se recortaba. */
.chat-menu-icon .arrow-icon {
    max-width: none;
    flex-shrink: 0;
}

.new-chat-icon {
    margin-right: 5px;
}

/* Historial: estilos que el original ponía en línea. */
.chat-menu li.chat-history-item {
    position: relative;
}

.chat-menu .old-chat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
}

.chat-menu .old-chat.is-current {
    background-color: #DEFA5C;
}

.chat-menu .delete-chat-trigger {
    cursor: pointer;
    width: 10px;
}

.chat-menu-container.is-open {
    display: block;
}

/* Términos: enlace blanco (antes style="color:#FFF"). */
.terminos a {
    color: #FFF;
}

/* Video de Zimona: se mostraba con style.display desde JS; ahora con clases. */
#videoOverlayZimona.is-open {
    display: flex;
    justify-content: center;
    align-items: center;
}

#loadingSpinnerZimona.is-visible {
    display: block;
}

/* Modales de feedback y términos: estilos de nav.css de WordPress (login) acotados a .chat-modal
   y los que el original ponía en línea. */
.modal-overlay.is-open {
    display: flex;
}

.chat-modal {
    display: flex;
    justify-content: center;
    align-items: start;
    position: fixed;
    top: 27px;
    left: 50%;
    transform: translate(-50%);
    width: 98vw;
    max-width: 570px;
    height: 100%;
    z-index: 9998;
}

.chat-modal .modal {
    background-color: #181d19;
    padding: 40px;
    margin-top: 57px;
    border-radius: 10px;
    width: 100%;
    max-width: 1285px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.5);
    position: relative;
    box-sizing: border-box;
}

.chat-modal .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #e5e5e5;
    cursor: pointer;
    background: none;
    border: 0;
    padding: 0;
    line-height: 1;
}

.chat-modal h2 {
    margin: 0 0 10px;
    font-family: "Anek Tamil";
    font-style: normal;
    font-weight: 700;
    font-size: 41px;
    line-height: 48px;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: #defa5c;
}

.chat-modal p {
    color: #e5e5e5;
    margin-bottom: 20px;
}

.chat-modal .ingresaText {
    font-family: "Anek Tamil";
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 22px;
}

.chat-modal .ingresaText a {
    color: #DEFA5C;
}

#feedbackText {
    width: 100%;
    background-color: #44554E;
    color: #FFF;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    box-sizing: border-box;
}

.chat-modal .login-btn {
    background-color: #d6e12c;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    width: 118px;
    height: 39px;
    font-family: "Anek Tamil";
    font-style: normal;
    font-weight: 700;
    font-size: 18px;
    line-height: 26px;
    text-align: center;
    color: #0b2e1a;
}

.chat-modal .chat-modal__btn {
    margin: 23px 0px;
}

.chat-modal__footer {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.chat-modal .chat-modal__btn--wide {
    white-space: nowrap;
    padding: 0 24px;
    width: auto;
    height: auto;
    min-height: 44px;
}

.chat-modal .chat-modal__btn--ghost {
    background: transparent;
    border: 1px solid #FFF;
    color: #FFF;
}

.chat-modal .help-section {
    text-align: center;
}

.chat-modal .help-section .text1 {
    font-family: "Anek Tamil";
    font-style: normal;
    font-weight: 400;
    font-size: 28px;
    line-height: 39px;
    color: #ffffff;
    margin: 0px;
    padding: 0px;
}

.chat-modal .help-section .text2 {
    font-family: "Anek Tamil";
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    color: #defa5c;
}

.chat-modal .help-section .text2 a {
    color: #defa5c;
}

/* Toast (antes en nav.php / ajax-login.js de mi-sesion-plugin). */
.toast-notification {
    position: fixed;
    top: 34px;
    right: 20px;
    background-color: #defa5c;
    color: #0b3948 !important;
    padding: 16px;
    border-radius: 4px;
    max-width: 300px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 9999;
    font-size: 26px;
    font-weight: 700;
    pointer-events: none;
}

.toast-notification p {
    color: #0b3948 !important;
    margin: 0px;
    padding: 0px;
}

.toast-notification.show {
    opacity: 1;
}

/* picture(): la flecha de enviar y la foto de Zimona quedan envueltas en <picture>; con
   display: contents la imagen sigue siendo el elemento flexible (order, tamaño). */
.send-button picture,
.chat-init > picture {
    display: contents;
}

/* Con display: contents, <source> sería un elemento flexible más (un hueco extra). */
.send-button picture > source,
.chat-init > picture > source {
    display: none;
}

/* Divi daba a los campos y botones la fuente del sitio (sin ella, el navegador usa la suya). */
.input-message,
#feedbackText,
.chat-init .buttons button,
.send-button {
    font-family: Anek Tamil;
}

/* Enlaces sin subrayado, como en Divi. */
.terminos a,
.chat-modal a {
    text-decoration: none;
}

/* Listas de las respuestas con los valores de Divi (ul/ol: sin margen, sangría 1em, 23px debajo). */
.card-answer ul,
.card-answer ol {
    margin: 0;
    padding: 0 0 23px 1em;
    line-height: 26px;
}
