*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Work Sans', sans-serif;
}

/*
 * Contenedor + lanzador (equivalente CSS al template Vue):
 * fixed right-4 z-20 bottom-6 | bottom-[6rem] con .chatbot-container--banner
 * hidden + md:flex → solo ≥768px
 */
#chatbot-container {
    position: fixed;
    right: 1rem; /* right-4 */
    bottom: 1.5rem; /* bottom-6 */
    z-index: 20; /* z-20 */
    pointer-events: none;
}

#chatbot-container > * {
    pointer-events: auto;
}

#chatbot-container.chatbot-container--banner {
    bottom: 6rem; /* bottom-[6rem] */
}

#chatbot-container.chatbot-container--banner #chatbot-box {
    bottom: 6rem;
}

#chatbot-button.chatbot-launcher:focus-visible {
    outline: 2px solid #04324d;
    outline-offset: 4px;
}

/* fixed … items-center gap-2 px-4 py-2.5 hidden md:flex */
#chatbot-button.chatbot-launcher {
    position: relative;
    isolation: isolate;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem; /* gap-2 */
    padding: 0.625rem 1rem; /* py-2.5 px-4 */
    border: none;
    background: transparent;
    cursor: pointer;
    font: inherit;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
    #chatbot-button.chatbot-launcher {
        display: flex;
    }
}

#chatbot-button.chatbot-launcher.launcher-hidden {
    display: none !important;
}

/* span: halo -z-10, 7rem, -translate-y-2, border slate-400/70, slate-300/60, blur, shadow */
.chatbot-launcher__halo {
    pointer-events: none;
    position: absolute;
    inset: 0;
    margin: auto;
    width: 7rem;
    height: 7rem;
    transform: translateY(-0.5rem);
    border-radius: 9999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(203, 213, 225, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 28px rgba(71, 85, 105, 0.35);
    z-index: -1;
}

/* img: relative z-10 h-32 w-56 rounded-2xl object-cover */
.chatbot-launcher__media {
    position: relative;
    z-index: 10;
    width: 14rem; /* w-56 */
    height: 8rem; /* h-32 */
    border-radius: 1rem; /* rounded-2xl */
    object-fit: cover;
    display: block;
    pointer-events: none;
}

#chatbot-box {
    width: 375px;
    height: 640px;
    background-color: #fff;
    border: none;
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(0, 80, 0, 0.22), 0 3px 10px rgba(0,0,0,0.10);
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 3.5rem;
    right: calc(1rem + -8rem + 14rem + 0.75rem);
    transition: transform 0.25s cubic-bezier(.2, .8, .2, 1), opacity 0.2s ease;
    overflow: visible;
    will-change: transform, opacity;
}

#chatbot-box.chatbox-hidden {
    transform: translateY(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}



#chatbot-header {
    background: linear-gradient(to right, #006800 0%, #008000 15%, #2BB82B 40%, #3dd43d 100%);
    color: #fff;
    padding: 16px 14px 14px;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 3px 12px rgba(0, 104, 0, 0.2);
    min-height: 76px;
}

#zaju{
    width: 52px;
    height: 52px;
    padding: 0px;
    border-radius: 14px;
    background-color: rgba(255,255,255,0.22);
    border: 2px solid rgba(255,255,255,0.5);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

#chatbot-header h3 {
    margin: 0;
}

#chatbot-header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: unset;
    position: relative;
}

/* Eliminar tooltips nativos del navegador */
#chatbot-header button[title],
#chatbot-header button[aria-label] {
    position: relative;
}

#chatbot-header button[title]:hover::after,
#chatbot-header button[title]:hover::before,
#chatbot-header button[aria-label]:hover::after,
#chatbot-header button[aria-label]:hover::before {
    display: none !important;
}

/* Ocultar completamente el atributo title en hover */
#chatbot-header button[title]:hover,
#chatbot-header button[aria-label]:hover {
    text-decoration: none;
}

/* Estilos para tooltips */
.header-btn {
    position: relative;
}

.tooltip-container {
    position: relative;
}

.tooltip {
    position: absolute;
    left: 50%; /* centrado horizontal con respecto al botón */
    transform: translateX(-50%);
    background-color: #006800;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.tooltip::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
}

/* Posiciones del tooltip */
.tooltip--top { top: -38px; }
.tooltip--top::before { bottom: -5px; border-top: 5px solid #006800; }

.tooltip--bottom { top: calc(100% + 8px); }
.tooltip--bottom::before { top: -5px; border-bottom: 5px solid #006800; }

.tooltip-container:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

.chatbot-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
    overflow: hidden;
}

/* Estilos generales para la caja de mensajes */
#chatbot-messages {
    padding: 16px 14px;
    background-color: #f7faf7;
    background-image: radial-gradient(circle, #c8e8c8 1px, transparent 1px);
    background-size: 22px 22px;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    overflow-y: auto;
}

#chatbot-messages::-webkit-scrollbar {
    width: 4px;
}
#chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}
#chatbot-messages::-webkit-scrollbar-thumb {
    background: #b8e0b8;
    border-radius: 4px;
}
#chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #2BB82B;
}

/* Estilo para las burbujas de los mensajes */
.chat-bubble {
    max-width: 82%;
    padding: 10px 14px;
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.5;
}

/* Burbujas de mensajes del usuario */
.user-message {
    background: linear-gradient(135deg, #006800, #2BB82B);
    color: white;
    text-align: left;
    clear: both;
    float: right;
    border-radius: 16px 0 16px 16px;
    border-right: 3px solid #006800;
    box-shadow: 0 2px 10px rgba(0, 104, 0, 0.28);
}

/* Burbujas de respuestas del chatbot */
.chatbot-message {
    background-color: #ffffff;
    color: #1a3a1a;
    text-align: left;
    clear: both;
    word-wrap: break-word;
    border-radius: 0 16px 16px 16px;
    border-left: 3px solid #2BB82B;
    box-shadow: 0 2px 8px rgba(0, 80, 0, 0.10);
}


#chatbot-input {
    flex: 1;
    padding: 11px 16px;
    border: none;
    border-radius: 14px;
    font-family: inherit;
    margin: 10px 8px 10px 12px;
    background: #f0f5f0;
    color: #1a3a1a;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    font-size: 14px;
}

#chatbot-input:focus {
    outline: none;
    background: #e6f2e6;
    box-shadow: 0 0 0 2px rgba(43, 184, 43, 0.25);
}

#chatbot-form {
    display: flex;
    align-items: center;
    border-top: 1px solid #e8f0e8;
    background-color: #f8fbf8;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    padding: 6px 8px;
}

#chatbot-form button {
    background-color: #2BB82B;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, transform 0.15s;
    margin: 0 8px 0 0;
    padding: 9px;
    flex-shrink: 0;
}

#chatbot-form button:hover {
    background-color: #008000;
    transform: scale(1.05);
}

#img {
    position: absolute;
    top: 90%;       /* Centra verticalmente */
    left: 92%;      /* Centra horizontalmente */
    transform: translate(-50%, -50%);  /* Ajusta el desplazamiento para que la imagen esté perfectamente centrada */
    width: 38px;
}
    

.chatbot-name {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.online-status {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    margin-top: 2px;
}

.online-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #a8ffb0;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    box-shadow: 0 0 6px rgba(168,255,176,0.8);
}

.chatonline {
    flex: 1;
}

#imgx {
    width: 30px;
    height: 30px;
    padding: 3px;
    border-radius: 100%;
    background: none;
     
}

#imgm {
     width: 30px;
    height: 30px;
    padding: 3px;
    border-radius: 100%;
    background: none;
}

.hidden {
    display: none;
}

#chatbot-box.minimized {
    height: 76px;
    overflow: visible;
    border-radius: 24px;
}

.chatonline{
    display: flex;
    flex-direction: column;
    flex: 1;
}

@font-face {
    font-family: 'Work Sans';
    src:url("../fonts/WorkSans-Medium.ttf") format('truetype');
    font-size: medium;
}

.menu-button, .menu-description, .menu-option {
    font-family: 'Work Sans', sans-serif;
    font-weight: 500;
}

.menu-button {
    display: flex;
    align-items: center;
    margin: 5px 0;
    padding: 0;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: #ffffff;
    color: #006800;
    width: 100%;
    max-width: 260px;
    font-size: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 80, 0, 0.14);
    transition: box-shadow 0.2s ease, transform 0.15s ease;
    position: relative;
}

.menu-button::after {
    content: '›';
    position: absolute;
    right: 10px;
    font-size: 18px;
    color: #2BB82B;
    font-weight: bold;
}

.menu-button:hover:not(:disabled) {
    box-shadow: 0 4px 14px rgba(0, 80, 0, 0.22);
    transform: translateY(-1px);
    background: #f4fbf4;
}

.menu-option {
    background: linear-gradient(180deg, #2BB82B, #008000);
    padding: 10px 10px;
    border-radius: 0;
    font-weight: 700;
    color: white;
    font-size: 13px;
    min-width: 36px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
}

.menu-description {
    overflow-wrap: break-word;
    text-align: left;
    padding: 10px 28px 10px 10px;
    font-weight: 500;
    color: #1a3a1a;
}

.menu-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}

#rating-box {
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 80, 0, 0.12);
    text-align: center;
    border-top: 3px solid #2BB82B;
}

.rating-textarea {
    width: 100%;
    margin: 10px 0;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
}

.stars {
    margin: 10 px 0;
}

.star {
    font-size: 25px;
    cursor: pointer;
    color: gray;
}

.star:hover,
.star.selected {
    color: gold;
}

.download-btn{
    padding: 6px 12px;
    border: none;
    border-radius: 8px;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #008000, #2BB82B);
    color: white;
    box-shadow: 0 2px 6px rgba(43, 184, 43, 0.3);
    cursor: pointer;
    transition: opacity 0.2s;
}

.submit-rating {
    padding: 6px 12px;
    border: none;
    border-radius: 8px;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #008000, #2BB82B);
    color: white;
    box-shadow: 0 2px 6px rgba(43, 184, 43, 0.3);
    cursor: pointer;
    transition: opacity 0.2s;
}

.send-email {
    padding: 6px 12px;
    border: none;
    border-radius: 8px;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #008000, #2BB82B);
    color: white;
    box-shadow: 0 2px 6px rgba(43, 184, 43, 0.3);
    cursor: pointer;
    transition: opacity 0.2s;
}

#download-btn {
    margin-left: 12px;
}

.countdown-timer {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

/* Estilos para el formulario de datos personales */

.form-header h3 {
    color: #006800;
    text-align: center;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.form-header hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, #006800, #2BB82B);
    margin-bottom: 20px;
    border-radius: 2px;
}

.form-group {
    margin-bottom: 20px;
}

.input-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.field-icon {
    width: 20px;
    height: 20px;
    position: absolute;
    left: 12px;
    z-index: 2;
}

.input-icon input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background-color: #fff;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.input-icon input:focus {
    outline: none;
    border-color: #2BB82B;
    box-shadow: 0 0 0 2px rgba(43, 184, 43, 0.12);
}

.checkbox-group {
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #2BB82B;
    border-radius: 3px;
    margin-right: 10px;
    margin-top: 1px;
    position: relative;
    background-color: #fff;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark:after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: #2BB82B;
    font-size: 16px;
    font-weight: bold;
}

.policy-link {
    color: #2BB82B;
    text-decoration: underline;
    font-weight: 500;
}

.policy-link:hover {
    color: #006800;
}

.start-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(to right, #006800, #2BB82B);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 3px 10px rgba(43, 184, 43, 0.35);
}

.start-button:hover {
    opacity: 0.9;
    box-shadow: 0 5px 16px rgba(43, 184, 43, 0.45);
}

.start-button:disabled {
    background: #ccc;
    box-shadow: none;
    cursor: not-allowed;
}

/* Ocultar el formulario por defecto */
.personal-data-form {
    display: none;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

/* Clase para ocultar elementos */
.hidden {
    display: none !important;
}


#check-form-div {
  text-align: center;
  /* margin-top: 50px; */
}

.check-form button {
  padding: 10px;
  margin: 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background-color: transparent;
  transition: transform 0.2s;
}

.check-button {
  background-color: #4CAF50; /* Verde aceptar */
}

.no-check-button {
  background-color: #f44336; /* Rojo cancelar */
}

.check-form button:hover {
  transform: scale(1.05);
}

.check-form img {
  width: 64px;
  height: 64px;
}
