/**
 * CEMEBA IOMA Badge & Modal
 *
 * @package Cemeba_Crecienta
 */

.cmx-ioma {
    position: relative;
    z-index: 999;
}

/* Badge flotante inferior izquierdo */
.cmx-ioma__badge {
    position: fixed;
    bottom: 24px;
    left: 24px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 18px;
    background: #0284c7;
    color: var(--cmx-white);
    border-radius: var(--cmx-radius-pill);
    box-shadow: 0 4px 18px rgba(2, 132, 199, 0.4);
    font-family: var(--cmx-font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--cmx-transition);
    z-index: 999;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.cmx-ioma__badge:hover {
    background: #0369a1;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(2, 132, 199, 0.55);
}

.cmx-ioma__badge-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Modal */
.cmx-ioma-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cmx-ioma-modal[hidden] {
    display: none;
}

.cmx-ioma-modal__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    animation: cmxFadeIn 0.25s ease;
}

.cmx-ioma-modal__card {
    position: relative;
    background: var(--cmx-white);
    max-width: 480px;
    width: 100%;
    border-radius: var(--cmx-radius-lg);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    padding: clamp(24px, 4vw, 36px);
    z-index: 10001;
    animation: cmxScaleUp 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes cmxFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes cmxScaleUp {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.cmx-ioma-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    cursor: pointer;
    transition: var(--cmx-transition);
}

.cmx-ioma-modal__close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.cmx-ioma-modal__close svg {
    width: 18px;
    height: 18px;
}

.cmx-ioma-modal__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 1.2rem;
}

.cmx-ioma-modal__icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: var(--cmx-radius-md);
    background: #e0f2fe;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cmx-ioma-modal__icon-wrap svg {
    width: 26px;
    height: 26px;
}

.cmx-ioma-modal__title {
    font-size: 1.35rem;
    color: var(--cmx-navy);
}

.cmx-ioma-modal__body {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--cmx-text);
    margin-bottom: 1.8rem;
}

.cmx-ioma-modal__list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cmx-ioma-modal__list li {
    position: relative;
    padding-left: 20px;
    font-size: 0.9rem;
}

.cmx-ioma-modal__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #0284c7;
    font-weight: 700;
}

.cmx-ioma-modal__footer {
    display: flex;
    justify-content: flex-end;
}

.cmx-ioma-modal__footer .cmx-btn {
    width: 100%;
}

@media (max-width: 640px) {
    .cmx-ioma__badge {
        bottom: 18px;
        left: 18px;
        padding: 8px 14px;
        font-size: 0.82rem;
    }
}

