/* ==========================================================================
   MODAL DE INTENCIÓN DE SALIDA (EXIT-INTENT POPUP) — LE COMPTOIR DES ESSENCES
   Hospitalidad Ceremonial de Alta Gama (Solo PC / Escritorio)
   ========================================================================== */

.exit-intent-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 7, 6, 0.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.exit-intent-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.exit-intent-container {
    position: relative;
    max-width: 530px;
    width: 90%;
    background: rgba(16, 15, 14, 0.96);
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 4px;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.85), 0 0 35px rgba(212, 175, 55, 0.15);
    padding: 44px 38px 36px;
    text-align: center;
    transform: scale(0.94) translateY(18px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.exit-intent-overlay.is-open .exit-intent-container {
    transform: scale(1) translateY(0);
}

/* Botón de Cierre */
.exit-intent-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: transparent;
    border: none;
    color: rgba(212, 175, 55, 0.7);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.25s ease, transform 0.25s ease;
}

.exit-intent-close:hover {
    color: #D4AF37;
    transform: scale(1.15);
}

/* Blasón Joya Oficial */
.exit-intent-logo-wrap {
    margin-bottom: 18px;
}

.exit-intent-logo {
    width: 68px;
    height: auto;
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.45));
}

/* Título */
.exit-intent-title {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #D4AF37;
    letter-spacing: 2px;
    line-height: 1.3;
    margin: 0 0 12px 0;
    text-transform: uppercase;
}

/* Línea Divisoria Áurea */
.exit-intent-divider {
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
    margin: 0 auto 16px;
}

/* Texto Cercano y de Tú a Tú */
.exit-intent-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 1.65;
    color: rgba(244, 240, 236, 0.88);
    margin: 0 0 24px 0;
}

.exit-intent-text p {
    margin: 0 0 8px 0;
}

.exit-intent-text p:last-child {
    margin-bottom: 0;
}

/* Botón Principal: Consultar al Boticario */
.exit-intent-btn-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #D4AF37;
    color: #0A0A0A;
    font-family: 'Cinzel', serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 13px 20px;
    border: 1px solid #D4AF37;
    border-radius: 3px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
    transition: all 0.25s ease;
    margin-bottom: 20px;
}

.exit-intent-btn-search:hover {
    background: #e6c555;
    color: #000;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
    transform: translateY(-1px);
}

/* Separador "o si lo prefieres" */
.exit-intent-or-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
}

.exit-intent-or-line {
    flex: 1;
    height: 1px;
    background: rgba(212, 175, 55, 0.2);
}

.exit-intent-or-text {
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    color: rgba(212, 175, 55, 0.65);
    text-transform: uppercase;
}

/* Formulario Minimalista de Suscripción */
.exit-intent-form {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

/* Casilla de Consentimiento RGPD */
.exit-intent-consent {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 18px auto;
    text-align: left;
    max-width: 420px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    line-height: 1.45;
    color: rgba(244, 240, 236, 0.65);
}

.exit-intent-consent input[type="checkbox"] {
    accent-color: #D4AF37;
    margin-top: 2px;
    width: 13px;
    height: 13px;
    cursor: pointer;
    flex-shrink: 0;
}

.exit-intent-consent label {
    cursor: pointer;
    user-select: none;
}

.exit-intent-consent a {
    color: #D4AF37;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.exit-intent-consent a:hover {
    color: #fff;
}

.exit-intent-input {
    flex: 1;
    background: rgba(10, 9, 8, 0.75);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 3px;
    padding: 11px 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    color: #F4F0EC;
    outline: none;
    transition: border-color 0.25s ease;
}

.exit-intent-input:focus {
    border-color: #D4AF37;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
}

.exit-intent-input::placeholder {
    color: rgba(244, 240, 236, 0.4);
}

.exit-intent-btn-submit {
    background: transparent;
    color: #D4AF37;
    border: 1px solid rgba(212, 175, 55, 0.6);
    border-radius: 3px;
    font-family: 'Cinzel', serif;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 11px 18px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.exit-intent-btn-submit:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: #D4AF37;
    color: #fff;
}

/* Mensaje de Éxito / Feedback */
.exit-intent-feedback {
    display: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    color: #D4AF37;
    margin-bottom: 16px;
    padding: 8px 12px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 3px;
    border: 1px solid rgba(212, 175, 55, 0.25);
}

.exit-intent-feedback.is-visible {
    display: block;
}

/* Enlace Discreto de Cierre */
.exit-intent-dismiss-link {
    background: transparent;
    border: none;
    color: rgba(244, 240, 236, 0.45);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.76rem;
    letter-spacing: 0.8px;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
}

.exit-intent-dismiss-link:hover {
    color: rgba(244, 240, 236, 0.85);
}

/* Ocultar terminantemente en móviles y pantallas táctiles */
@media (max-width: 1023px), (hover: none) {
    .exit-intent-overlay {
        display: none !important;
    }
}
