/* Loader para botones */
.btn-loader {
    display: inline-block;
    width: 13px;
    height: 13px;
    border: 1px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Clase para botón en proceso */
.cargando {
    opacity: 0.6;
    pointer-events: none;
}

/* ==============================
   POPUP SWEETALERT - LISTAS
============================== */

.swal2-html-container > div {
    text-align: left;
    padding: 5px 0;
}

/* Cada fila de lista */
.swal2-html-container div > div {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin: 6px 0;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid #2c2c2c4a;
    transition: all 0.25s ease;
}

/* Hover */
.swal2-html-container div > div:hover {
    background: #262626;
    border-color: #3a3a3a;
}

/* Ocultar radio nativo */
.swal2-html-container input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #66666669;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

/* Radio seleccionado */
.swal2-html-container input[type="radio"]:checked {
    border-color: #e50914;
}

/* Punto interno */
.swal2-html-container input[type="radio"]:checked::after {
    content: "";
    width: 8px;
    height: 8px;
    background: #e50914;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Texto de la lista */
.swal2-html-container label {
    cursor: pointer;
    font-size: 14px;
    line-height: 1.2;
}

/* Estado seleccionado (card) */
.swal2-html-container input[type="radio"]:checked + label {
    font-weight: 600;
}

/* Línea separadora */
.swal2-html-container hr {
    border: none;
    height: 1px;
    background: #2c2c2c4a;
    margin: 12px 0;
}

/* Input nueva lista */
.swal2-html-container #nueva_lista {
    width: 100%;
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #2c2c2c;
    color: #fff;
    font-size: 14px;
    margin: 0;
}

.swal2-html-container #nueva_lista::placeholder {
   
}

/* Focus input */
.swal2-html-container #nueva_lista:focus {
    outline: none;
    border-color: #e50914;
    box-shadow: 0 0 0 2px rgba(229,9,20,.2);
}

/* === SHARE POPUP === */
.share-popup {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

.share-popup.active {
    display: block;
}

.share-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.6);
}

.share-popup-box {
    position: relative;
    max-width: 420px;
    margin: 10vh auto;
    background: var(--fondo-sitio);
    border-radius: 12px;
    padding: 20px;
    z-index: 2;
}

.share-close {
    position: absolute;
    top: 2px;
    right: 2px;
    background: none;
    border: none;
    font-size: 22px;
    color: #fff;
    cursor: pointer;
}

/* botones */
.share-buttons {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.share-btn {
    background: #1c1c1c2b;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    color: #fff;
    font-size: 12px;
    transition: background .2s ease;
    text-decoration: none;
}

.share-btn i {
    font-size: 20px;
    margin-bottom: 6px;
    display: block;
}

.share-btn:hover {
    background: #e50914;
}

/* copiar */
.share-copy {
    display: flex;
    gap: 8px;
}

.share-link-input {
    flex: 1;
    background: #2222223b;
    border: none;
    color: var(--texto-general);
    padding: 8px;
    border-radius: 6px;
}

.btn-copy-link {
    background: var(--boton-principal-fondo);
    border: none;
    color: var(--boton-principal-texto);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}
