/*
 * Estilos del modal de compartir de Chollos Radical.
 */

body.radical-share-modal-open {
    overflow: hidden !important;
}

.radical-share-modal[hidden] {
    display: none !important;
}

.radical-share-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(7px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.radical-share-backdrop {
    position: absolute;
    inset: 0;
}

.radical-share-dialog {
    position: relative;
    z-index: 1;
    overflow: hidden;
    isolation: isolate;
    width: min(100%, 448px);
    padding: 32px 24px 24px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 28px;
    background:
        radial-gradient(circle at 92% 10%, rgba(96, 165, 250, 0.18), transparent 24%),
        radial-gradient(circle at 10% 0%, rgba(251, 146, 60, 0.18), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
    box-shadow: 0 34px 90px rgba(15, 23, 42, 0.34);
}

.radical-share-dialog::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 7px;
    background: linear-gradient(90deg, #b91c1c, #ea580c, #1d4ed8);
}

.radical-share-dialog::after {
    content: "";
    position: absolute;
    inset: auto -80px -90px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(29, 78, 216, 0.1), rgba(29, 78, 216, 0));
    pointer-events: none;
}

.radical-share-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #6b7280;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
    transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.radical-share-close:hover {
    background: #f8fafc;
    border-color: #d1d5db;
    color: #182230;
    transform: translateY(-1px);
}

.radical-share-dialog-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin: 0 auto 12px;
    border-radius: 22px;
    background: linear-gradient(135deg, #fff3ec, #eef5ff);
    border: 1px solid #e5edf6;
    color: #b91c1c;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 12px 24px rgba(148, 163, 184, 0.14);
}

.radical-share-title {
    margin: 0;
    text-align: center;
    color: #182230;
    font-size: clamp(1.7rem, 1.4rem + 0.8vw, 2rem);
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.radical-share-subtitle {
    max-width: 30ch;
    margin: 10px auto 24px;
    text-align: center;
    color: #667085;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.55;
}

.radical-share-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.radical-share-network {
    min-height: 58px;
    padding: 0 14px 0 12px;
    border: 1px solid #dbe4ee;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    text-decoration: none !important;
    color: #182230 !important;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: -0.02em;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.radical-share-network:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.12);
}

.radical-share-network-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.radical-share-network--whatsapp {
    background: linear-gradient(180deg, #ffffff, #f6fff9);
    border-color: #cfead7;
}

.radical-share-network--whatsapp .radical-share-network-icon {
    background: linear-gradient(135deg, #25d366, #16a34a);
}

.radical-share-network--telegram {
    background: linear-gradient(180deg, #ffffff, #f4fbff);
    border-color: #cfe6fb;
}

.radical-share-network--telegram .radical-share-network-icon {
    background: linear-gradient(135deg, #1498e5, #0a83d0);
}

.radical-share-network--twitter {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border-color: #d7dee7;
}

.radical-share-network--twitter .radical-share-network-icon {
    background: linear-gradient(135deg, #111111, #000000);
}

.radical-share-network--facebook {
    background: linear-gradient(180deg, #ffffff, #f5f9ff);
    border-color: #d4e4ff;
}

.radical-share-network--facebook .radical-share-network-icon {
    background: linear-gradient(135deg, #2d81f0, #1e6fe0);
}

.radical-share-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: #8a94a6;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.radical-share-divider::before,
.radical-share-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #d8dde5;
}

.radical-share-divider span {
    white-space: nowrap;
}

.radical-share-copy-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid #dbe4ee;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 14px 26px rgba(148, 163, 184, 0.14);
}

.radical-share-copy-row:focus-within {
    border-color: #bfd0e4;
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 14px 26px rgba(148, 163, 184, 0.14);
}

.radical-share-url {
    flex: 1;
    min-width: 0;
    height: 42px;
    border: 0;
    padding: 0 10px;
    background: transparent;
    color: #526071;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    outline: none;
    box-shadow: none;
}

.radical-share-copy-button {
    border: none;
    min-width: 102px;
    height: 42px;
    padding: 0 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #b91c1c, #ea580c);
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: -0.02em;
    cursor: pointer;
    box-shadow: 0 12px 20px rgba(185, 28, 28, 0.2);
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.radical-share-copy-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 26px rgba(185, 28, 28, 0.24);
}

.radical-share-copy-button.is-copied {
    background: linear-gradient(135deg, #166534, #15803d);
}

@media (max-width: 560px) {
    .radical-share-modal {
        backdrop-filter: none;
    }

    .radical-share-dialog {
        width: 100%;
        padding: 26px 18px 18px;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
    }

    .radical-share-dialog::after {
        display: none;
    }

    .radical-share-grid {
        grid-template-columns: 1fr;
    }

    .radical-share-copy-row {
        flex-direction: column;
        align-items: stretch;
    }

    .radical-share-copy-button {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 420px) {
    .radical-share-modal {
        padding: 14px;
    }

    .radical-share-dialog {
        padding: 24px 14px 16px;
        border-radius: 18px;
    }

    .radical-share-title {
        font-size: 1.65rem;
    }

    .radical-share-subtitle,
    .radical-share-divider {
        font-size: 11px;
    }

    .radical-share-network {
        min-height: 46px;
        font-size: 14px;
    }

    .radical-share-url {
        font-size: 14px;
        height: 40px;
    }

    .radical-share-copy-button {
        height: 40px;
        font-size: 14px;
    }
}
