/* El modal de entrar / crear cuenta el aviso de cookies y el chat de la portada (14-10-2026): solo sus reglas, sacadas de css/main.css,
   para no arrastrar los estilos de la app a la portada. Si cambian en main.css, regenerar. */
:root{--motion-fast:150ms;--motion-base:200ms;--motion-slow:250ms;--stilux-teal:#00b8a9;--stilux-teal-dark:#008b7d;--text-muted:#86868b;--text-primary:#1d1d1f;--text-secondary:#424245}
.btn-outline, .btn-primary-landing, .btn-large,
.pricing-btn, .auth-submit, .auth-tab,
.nav-login-link, .nav-cta-link,
.hiw-cta a, .v2-cta a{font-family: inherit !important;}
.modal-overlay{position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;}
.modal-overlay.visible{opacity: 1;
    visibility: visible;}
.modal{background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;}
.modal-overlay.visible .modal{transform: scale(1) translateY(0);}
.modal-header{padding: 24px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;}
.modal-title{font-family: inherit;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);}
.modal-close{width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;}
.modal-close:hover{background: #e5e7eb;}
.modal-body{padding: 24px;}
.auth-tabs{display: flex;
    gap: 8px;
    margin-bottom: 24px;}
.auth-tab{flex: 1;
    padding: 10px;
    border: none;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;}
.auth-tab.active{background: var(--stilux-teal);
    color: white;}
.auth-form{display: none;}
.auth-form.active{display: block;}
.auth-field{margin-bottom: 16px;}
.auth-field label{display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;}
.auth-field input{width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s;}
.auth-field input:focus{outline: none;
    border-color: var(--stilux-teal);
    box-shadow: 0 0 0 3px rgba(0, 184, 169, 0.15);}
.auth-submit{width: 100%;
    padding: 14px;
    border: none;
    background: var(--stilux-teal);
    color: white;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;}
.auth-submit:hover{background: var(--stilux-teal-dark);}
.auth-submit:disabled{background: #9ca3af;
    cursor: not-allowed;}
.auth-divider{display: flex;
    align-items: center;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 13px;}
.auth-divider::before,
.auth-divider::after{content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;}
.auth-divider span{padding: 0 16px;}
.social-buttons{display: flex;
    flex-direction: column;
    gap: 10px;}
.social-btn{display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;}
.social-btn:hover{background: #f9fafb;
    border-color: #d1d5db;}
.social-btn svg{width: 20px;
    height: 20px;}
.auth-error{background: #fef2f2;
    color: #dc2626;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    display: none;}
.auth-error.visible{display: block;}
.auth-terms{margin: 16px 0 4px;}
.auth-terms label{display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
    cursor: pointer;}
.auth-terms input[type="checkbox"]{margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--stilux-teal);
    cursor: pointer;}
.auth-terms a{color: var(--stilux-teal);
    text-decoration: underline;}
.auth-terms a:hover{color: var(--stilux-teal-dark);}
@keyframes plg-spin{ to { transform: rotate(360deg); } }
    background: transparent; border: none;
    font-size: 18px; line-height: 1; color: var(--text-muted);
    width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;}
@keyframes spin{
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes fadeIn{
    from { opacity: 0; transform: translateY(10px); }

    to { opacity: 1; transform: none; }
}
.spinner-small{display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spinSmall 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;}
@keyframes spinSmall{
    to { transform: rotate(360deg); }
}
@keyframes slideUpBanner{
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
@keyframes lk-spin{
    to { transform: rotate(360deg); }
}
@keyframes v1afspin{ to{ transform:rotate(360deg); } }
#wmExitModal .modal{transition: transform .3s ease, opacity .3s ease;}
#wmExitModal .modal button,
#wmExitModal .modal .btn{transition: background-color .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease;}
#opt2DictAskModal .modal{transition: transform .3s ease, opacity .3s ease;}
#opt2DictAskModal .modal button,
#opt2DictAskModal .modal .btn{transition: background-color .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease;}
/* El aviso de cookies (cookie-consent.js) */
#cookieConsentBanner{position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a2e;
    color: #fff;
    padding: 16px 24px;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    animation: slideUpBanner 0.35s var(--ease-standard);}
.cookie-banner-content{max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;}
.cookie-banner-content p{margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #ccc;}
.cookie-banner-content a{color: var(--stilux-teal);
    text-decoration: underline;}
.cookie-banner-buttons{display: flex;
    gap: 10px;
    flex-shrink: 0;}
.cookie-btn-accept{background: var(--stilux-teal);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--motion-fast) var(--ease-standard);}
.cookie-btn-accept:hover{background: var(--stilux-teal-dark);}
.cookie-btn-reject{background: transparent;
    color: #aaa;
    border: 1px solid #555;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: border-color var(--motion-fast) var(--ease-standard);}
.cookie-btn-reject:hover{border-color: #888;
    color: #ddd;}
@media (max-width: 600px){.cookie-banner-content{flex-direction: column;
        text-align: center;}.cookie-banner-buttons{width: 100%;
        justify-content: center;}}
/* El chat (chatbot.js) */
.chatbot-trigger{position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--stilux-teal), var(--stilux-teal-dark));
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 184, 169, 0.4);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--motion-base) ease, box-shadow var(--motion-base) ease;}
.chatbot-trigger:hover{transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(0, 184, 169, 0.5);}
.chatbot-trigger svg{width: 26px;
    height: 26px;
    transition: opacity var(--motion-fast) ease, transform var(--motion-fast) ease;}
.chatbot-trigger .chatbot-trigger-icon{opacity: 1;
    transform: scale(1);}
.chatbot-trigger .chatbot-trigger-close{position: absolute;
    opacity: 0;
    transform: scale(0.5) rotate(-90deg);}
.chatbot-trigger.open .chatbot-trigger-icon{opacity: 0;
    transform: scale(0.5) rotate(90deg);}
.chatbot-trigger.open .chatbot-trigger-close{opacity: 1;
    transform: scale(1) rotate(0deg);}
@keyframes chatbot-pulse{
    0%, 100% { box-shadow: 0 4px 16px rgba(0, 184, 169, 0.4); }
    50% { box-shadow: 0 4px 24px rgba(0, 184, 169, 0.6); }
}
.chatbot-trigger:not(.open){animation: chatbot-pulse 3s ease-in-out infinite;}
.chatbot-trigger:hover, .chatbot-trigger.open{animation: none;}
.chatbot-panel{position: fixed;
    bottom: 92px;
    right: 24px;
    width: 380px;
    height: 520px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: opacity var(--motion-slow) ease, transform var(--motion-slow) ease;}
.chatbot-panel.open{opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;}
.chatbot-header{background: linear-gradient(135deg, var(--stilux-teal), var(--stilux-teal-dark));
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;}
.chatbot-header-info{display: flex;
    align-items: center;
    gap: 10px;}
.chatbot-avatar{width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;}
.chatbot-avatar img{width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.5);}
.chatbot-avatar svg{width: 20px;
    height: 20px;
    color: #fff;}
.chatbot-header-title{font-weight: 600;
    font-size: 0.95rem;}
.chatbot-header-status{font-size: 0.75rem;
    opacity: 0.85;}
.chatbot-close{background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 4px;
    opacity: 0.8;
    transition: opacity var(--motion-fast);}
.chatbot-close:hover{opacity: 1;}
.chatbot-close svg{width: 20px;
    height: 20px;}
.chatbot-messages{flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f8fafb;}
.chatbot-msg{display: flex;
    max-width: 85%;}
.chatbot-msg.bot{align-self: flex-start;}
.chatbot-msg.user{align-self: flex-end;}
.chatbot-msg-bubble{padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.875rem;
    line-height: 1.5;
    word-wrap: break-word;}
.chatbot-msg.bot .chatbot-msg-bubble{background: #fff;
    color: var(--text-primary);
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 4px;}
.chatbot-msg.user .chatbot-msg-bubble{background: linear-gradient(135deg, var(--stilux-teal), var(--stilux-teal-dark));
    color: #fff;
    border-bottom-right-radius: 4px;}
.chatbot-typing{display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 18px !important;}
.chatbot-dot{width: 8px;
    height: 8px;
    background: var(--stilux-teal);
    border-radius: 50%;
    opacity: 0.4;
    animation: chatbot-bounce 1.4s ease-in-out infinite;}
.chatbot-dot:nth-child(2){animation-delay: 0.2s;}
.chatbot-dot:nth-child(3){animation-delay: 0.4s;}
@keyframes chatbot-bounce{
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}
.chatbot-input-area{display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    flex-shrink: 0;}
.chatbot-input{flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.875rem;
    font-family: inherit;
    resize: none;
    outline: none;
    max-height: 80px;
    line-height: 1.4;
    transition: border-color var(--motion-fast);}
.chatbot-input:focus{border-color: var(--stilux-teal);}
.chatbot-input::placeholder{color: var(--text-muted);}
.chatbot-send{width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: var(--stilux-teal);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background var(--motion-fast), transform var(--motion-fast);}
.chatbot-send:hover{background: var(--stilux-teal-dark);
    transform: scale(1.05);}
.chatbot-send svg{width: 18px;
    height: 18px;}
.chatbot-cta-banner{padding: 60px 24px;
    background: linear-gradient(135deg, #f0fdfa 0%, #e0f7f3 50%, #f0fdfa 100%);}
.chatbot-cta-content{max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 48px;}
.chatbot-cta-text{flex: 1;}
.chatbot-cta-text h3{font-family: inherit;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;}
.chatbot-cta-text p{font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;}
.chatbot-cta-text button{background: linear-gradient(135deg, var(--stilux-teal), var(--stilux-teal-dark));
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--motion-fast), box-shadow var(--motion-fast);
    display: inline-flex;
    align-items: center;
    gap: 10px;}
.chatbot-cta-text button:hover{transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 184, 169, 0.35);}
.chatbot-cta-visual{flex-shrink: 0;
    width: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;}
.chatbot-cta-visual .chatbot-avatar{width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 184, 169, 0.2);
    margin-bottom: 4px;}
.chatbot-bubble{background: white;
    padding: 10px 18px;
    border-radius: 16px;
    border-top-left-radius: 4px;
    font-size: 14px;
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    font-weight: 500;
    max-width: 220px;}
.chatbot-bubble-1{align-self: flex-start;}
.chatbot-bubble-2{align-self: flex-end;
    border-top-left-radius: 16px;
    border-top-right-radius: 4px;
    color: white;
    background: var(--stilux-teal);}
@media (max-width: 768px){.chatbot-cta-content{flex-direction: column;
        text-align: center;
        gap: 32px;}.chatbot-cta-text h3{font-size: 22px;}.chatbot-cta-visual{width: 220px;}}
@media (max-width: 480px){.chatbot-panel{width: calc(100vw - 16px);
        height: calc(100vh - 120px);
        bottom: 80px;
        right: 8px;
        border-radius: 12px;}.chatbot-trigger{bottom: 16px;
        right: 16px;
        width: 50px;
        height: 50px;}.chatbot-trigger svg{width: 22px;
        height: 22px;}}
@keyframes ichatBounce{
    0%,80%,100% { transform:translateY(0); }
    40% { transform:translateY(-6px); }
}
