/* ============================================================
   TARJETAS.CSS - Resultados, Cards VIP, Modales, Custom Select
   Real Sensi FF V3.0
   ============================================================ */

/* ========== CONTENEDOR PRINCIPAL ========== */
.container {
    width: 85%;
    max-width: 420px;
    background: var(--card-bg);
    padding: 65px 30px 40px 30px;
    margin-top: 55px;
    border-radius: 35px;
    border: 1px solid var(--border);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    text-align: center;
    backdrop-filter: blur(15px);
    position: relative;
}

.oni-container {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.oni {
    width: 130px;
    filter: drop-shadow(0 0 15px var(--primary));
    animation: pulse 2s infinite ease-in-out;
}

/* ========== RESULTADOS ========== */
.result-box-vip {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 20px;
    margin-top: 15px;
    border: 1px solid var(--premium);
    text-align: left;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.result-box-vip::before {
    content: "✨ IA PREMIUM ✨";
    position: absolute;
    top: 0;
    right: 0;
    background: var(--premium);
    color: #000;
    font-size: 8px;
    padding: 4px 10px;
    border-radius: 0 0 0 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

.result-box-mejorado {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 60, 60, 0.3);
    margin-top: 15px;
}

.result-header-basico {
    padding: 12px 15px;
    background: rgba(255, 60, 60, 0.12);
    border-bottom: 1px solid rgba(255, 60, 60, 0.2);
    text-align: center;
}

.result-badge-basico {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(255, 60, 60, 0.5);
}

.result-footer-basico {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 11px;
    color: #aaa;
    flex-wrap: wrap;
    gap: 8px;
}

.result-footer-basico span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.result-footer-premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 204, 0, 0.2);
    background: rgba(255, 204, 0, 0.05);
    border-radius: 0 0 12px 12px;
    font-size: 12px;
    color: #ccc;
    font-weight: 600;
}

.analisis-texto {
    font-size: 10px;
    color: #aaa;
    text-align: center;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px dashed #333;
    font-style: italic;
}

.result-linea-dpi-boton {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding: 0 10px;
    font-size: 13px;
    color: #aaa;
}

.result-linea-dpi-left {
    text-align: left;
    margin-top: 10px;
    padding-left: 10px;
    font-size: 13px;
    color: #aaa;
}

.result-linea-boton-right {
    text-align: right;
    margin-top: 10px;
    padding-right: 10px;
    font-size: 13px;
    color: #aaa;
}

/* ========== MODALES DEL FOOTER ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-contenido {
    background: url('../img-fondo/footer.jpg') no-repeat center center;
    background-size: cover;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    width: 85%;
    max-width: 420px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 35px;
    border: 1px solid var(--premium);
    padding: 25px;
    text-align: left;
    position: relative;
    animation: fadeIn 0.3s;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.modal-contenido .contenido-wrapper {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 20px;
    padding: 15px;
}

.modal-contenido h2 {
    color: var(--premium);
    text-align: center;
    margin-top: 0;
    margin-bottom: 15px;
}

.modal-contenido h3 {
    color: var(--premium);
    margin-top: 15px;
    margin-bottom: 8px;
}

.modal-contenido p, 
.modal-contenido li {
    font-size: 13px;
    color: #fff;
    line-height: 1.5;
}

.modal-contenido a {
    color: var(--premium);
    text-decoration: none;
}

.modal-contenido a:hover {
    text-decoration: underline;
}

.cerrar-modal {
    position: absolute;
    top: 12px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: url('../img-iconos-2/share_close.png') no-repeat center center;
    background-size: contain;
    cursor: pointer;
    transition: 0.2s;
    z-index: 10;
    font-size: 0;
    color: transparent;
}

.cerrar-modal:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.modal-contenido::-webkit-scrollbar {
    width: 5px;
}

.modal-contenido::-webkit-scrollbar-track {
    background: #333;
    border-radius: 10px;
}

.modal-contenido::-webkit-scrollbar-thumb {
    background: var(--premium);
    border-radius: 10px;
}

/* ========== MODAL FAQ ========== */
.modal-faq {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-faq-contenido {
    background: url('../img-fondo/faq.jpg') no-repeat center center;
    background-size: cover;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    width: 85%;
    max-width: 420px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 35px;
    border: 1px solid var(--premium);
    padding: 25px;
    text-align: left;
    position: relative;
    animation: fadeIn 0.3s;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.modal-faq-contenido h2 {
    color: var(--premium);
    text-align: center;
    margin-bottom: 15px;
    background: rgba(0, 0, 0, 0.25);
    padding: 10px;
    border-radius: 12px;
}

.modal-faq-contenido .faq-item {
    margin-bottom: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

.modal-faq-contenido .faq-question {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 15px;
    cursor: pointer;
    font-weight: bold;
    color: var(--premium);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.modal-faq-contenido .faq-question:hover {
    background: rgba(0, 0, 0, 0.45);
}

.modal-faq-contenido .faq-question::after {
    content: "▼";
    font-size: 10px;
    color: var(--premium);
    transition: transform 0.2s;
}

.modal-faq-contenido .faq-question.active::after {
    transform: rotate(180deg);
}

.modal-faq-contenido .faq-answer {
    display: none;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.15);
    font-size: 12px;
    line-height: 1.4;
    color: #fff;
}

.modal-faq-contenido .faq-answer.show {
    display: block;
}

.cerrar-modal-faq {
    position: absolute;
    top: 12px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: url('../img-iconos-2/share_close.png') no-repeat center center;
    background-size: contain;
    cursor: pointer;
    transition: 0.2s;
    z-index: 10;
    font-size: 0;
    color: transparent;
}

.cerrar-modal-faq:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

/* ========== ALERTAS GLOBALES ========== */
#customAlert {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.alert-box {
    background: rgba(0, 0, 0, 0.9);
    width: 85%;
    max-width: 340px;
    padding: 25px;
    border-radius: 25px;
    border: 1px solid var(--primary);
    text-align: center;
    animation: fadeIn 0.4s;
}

.alert-logo {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 15px;
}

/* ========== CUSTOM SELECT ========== */
.custom-select-container {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.custom-select-trigger {
    width: 100%;
    padding: 12px 15px;
    background: rgba(20, 20, 30, 0.95);
    border: 1.5px solid rgba(255, 204, 0, 0.4);
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-select-trigger .arrow {
    color: var(--premium);
    font-size: 14px;
}

.custom-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 250px;
    background: #1a1a2a;
    border: 2px solid var(--premium);
    border-radius: 12px;
    margin-top: 5px;
    overflow-y: auto;
    z-index: 99999;
    display: none;
}

.custom-select-dropdown.show {
    display: block;
}

.custom-select-options {
    max-height: 200px;
    overflow-y: auto;
}

.custom-select-option {
    position: relative;
    padding: 12px 15px 12px 40px;
    color: #ddd;
    font-size: 13px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-select-option:hover {
    background: rgba(255, 204, 0, 0.2);
    color: #fff;
}

.custom-select-option::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background: url('../img-iconos-2/abc_btn_check_to_on_mtrl_000.png') no-repeat center center;
    background-size: contain;
    transition: all 0.2s ease;
}

.custom-select-option.selected::before {
    background: url('../img-iconos-2/abc_btn_check_to_on_mtrl_015.png') no-repeat center center;
    background-size: contain;
    box-shadow: none;
    border: none;
    border-radius: 0;
}

.custom-select-option.selected::after {
    display: none;
}

.custom-select-trigger.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #555;
}

/* ========== MODAL EXTENDER VIP ========== */
.modal-extender-vip-bg {
    background: url('../img-fondo/fondo.jpg') no-repeat center center;
    background-size: cover;
    background-color: #0a0a1a;
    width: 85%;
    max-width: 350px;
    padding: 25px 20px;
    border-radius: 30px;
    border: 2px solid var(--premium);
    text-align: center;
    background-position: center 15%;
    box-shadow: 0 0 40px rgba(255, 204, 0, 0.3);
    position: relative;
}

.modal-extender-vip-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    border-radius: 30px;
    z-index: 0;
}

.modal-extender-vip-bg>* {
    position: relative;
    z-index: 1;
}

/* ========== MODAL INFO PJ ========== */
.modal-info-pj {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 10004;
    align-items: center;
    justify-content: center;
}

.modal-info-pj-contenido {
    background: url('../img-fondo/fondo13.jpg') no-repeat center center;
    background-size: cover;
    background-color: #0a0a1a;
    width: 85%;
    max-width: 350px;
    padding: 25px 20px;
    border-radius: 30px;
    border: 2px solid var(--premium);
    text-align: center;
    box-shadow: 0 0 40px rgba(255, 204, 0, 0.3);
}

.modal-info-pj-contenido h3 {
    color: var(--premium);
    font-size: 20px;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.modal-info-pj-contenido p {
    color: #fff;
    font-size: 11px;
    margin-bottom: 18px;
    opacity: 0.7;
}

.modal-info-pj-contenido label {
    color: var(--premium);
    font-size: 13px;
    display: block;
    text-align: left;
    margin-bottom: 4px;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.modal-info-pj-contenido input {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--premium);
    background: rgba(0,0,0,0.5);
    color: white;
    text-align: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.modal-info-pj-contenido input::placeholder {
    color: #888;
}

.modal-info-pj-botones {
    display: flex;
    gap: 10px;
}

.modal-info-pj-btn-guardar {
    background: var(--premium);
    color: #000;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: bold;
    flex: 2;
    cursor: pointer;
    font-size: 13px;
}

.modal-info-pj-btn-cancelar {
    background: transparent;
    border: 1px solid #444;
    color: #888;
    padding: 12px;
    border-radius: 12px;
    flex: 1;
    cursor: pointer;
    font-size: 13px;
}

/* ========== MODAL AVISO INFO PJ ========== */
.modal-aviso-info {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 10005;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.modal-aviso-info-contenido {
    background: url('../img-fondo/fondo13.jpg') no-repeat center center;
    background-size: cover;
    background-color: #0a0a1a;
    width: 85%;
    max-width: 350px;
    padding: 25px 20px;
    border-radius: 30px;
    border: 2px solid var(--premium);
    text-align: center;
    box-shadow: 0 0 40px rgba(255, 204, 0, 0.3);
}

.modal-aviso-info-contenido h3 {
    color: var(--premium);
    font-size: 18px;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.modal-aviso-info-contenido p {
    color: #fff;
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 5px;
}

.modal-aviso-info-botones {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.modal-aviso-info-btn-si {
    background: var(--premium);
    color: #000;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: bold;
    flex: 1;
    cursor: pointer;
    font-size: 12px;
}

.modal-aviso-info-btn-omitir {
    background: transparent;
    border: 1px solid #444;
    color: #888;
    padding: 12px;
    border-radius: 12px;
    flex: 1;
    cursor: pointer;
    font-size: 12px;
}

/* ========== MODAL REPORTE DE SENSIBILIDAD ========== */
.modal-reporte {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 10005;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.modal-reporte-contenido {
    background: url('../img-fondo/fondo13.jpg') no-repeat center center;
    background-size: cover;
    background-color: #0a0a1a;
    width: 85%;
    max-width: 360px;
    padding: 25px 20px;
    border-radius: 30px;
    border: 2px solid var(--premium);
    text-align: center;
    box-shadow: 0 0 40px rgba(255, 204, 0, 0.3);
}

.modal-reporte-contenido h3 {
    color: var(--premium);
    font-size: 18px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.modal-reporte-contenido label {
    color: var(--premium);
    font-size: 13px;
    display: block;
    text-align: left;
    margin-bottom: 4px;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.modal-reporte-contenido input,
.modal-reporte-contenido select {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--premium);
    background: rgba(0,0,0,0.5);
    color: white;
    text-align: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.modal-reporte-contenido select option {
    background: #1a1a2a;
    color: white;
    text-align: center;
}

.modal-reporte-contenido textarea {
    width: 100%;
    height: 100px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--premium);
    background: rgba(0,0,0,0.5);
    color: white;
    font-size: 13px;
    resize: none;
    margin-bottom: 5px;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

.modal-reporte-contenido textarea::placeholder {
    color: #888;
}

.modal-reporte-botones {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.modal-reporte-btn-enviar {
    background: var(--premium);
    color: #000;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: bold;
    flex: 2;
    cursor: pointer;
    font-size: 13px;
}

.modal-reporte-btn-cancelar {
    background: transparent;
    border: 1px solid #444;
    color: #888;
    padding: 12px;
    border-radius: 12px;
    flex: 1;
    cursor: pointer;
    font-size: 13px;
}

/* ========== CONTENEDOR DE CÓDIGO Y COMPARTIR ========== */
.codigo-compartir-container {
    margin-top: 8px;
    text-align: center;
    font-size: 12px;
    color: var(--premium);
    background: rgba(255, 204, 0, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    letter-spacing: 2px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.codigo-copiar {
    cursor: pointer;
    font-size: 18px;
    transition: transform 0.2s;
}

.codigo-copiar:hover {
    transform: scale(1.2);
}

.codigo-compartir {
    cursor: pointer;
    background: transparent;
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 204, 0, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--premium);
    font-weight: 600;
    letter-spacing: 0;
    transition: all 0.2s ease;
}

.codigo-compartir:hover {
    background: rgba(255, 204, 0, 0.15);
    border-color: rgba(255, 204, 0, 0.7);
    transform: scale(1.03);
}

.codigo-compartir img {
    width: 18px;
    height: 18px;
    filter: brightness(1.2);
}

/* ========== MODAL COMPARTIR ========== */
.modal-compartir {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 10006;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.modal-compartir-contenido {
    background: #111;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.modal-compartir-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.modal-compartir-header h3 {
    color: #fff;
    font-size: 14px;
    letter-spacing: 1px;
    margin: 0;
}

.modal-compartir-cerrar {
    color: #666;
    font-size: 22px;
    cursor: pointer;
}

.modal-compartir-cerrar:hover {
    color: #fff;
}

.compartir-redes {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.compartir-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 25px;
    border: 1px solid #333;
    background: rgba(0,0,0,0.5);
    color: #ccc;
    cursor: pointer;
    font-size: 12px;
    transition: 0.2s;
}

.compartir-btn:hover {
    transform: translateY(-1px);
}

.compartir-whatsapp:hover {
    background: rgba(37,211,102,0.15);
    border-color: #25d366;
    color: #25d366;
}

.compartir-facebook:hover {
    background: rgba(24,119,242,0.15);
    border-color: #1877f2;
    color: #1877f2;
}

.compartir-tiktok:hover {
    background: rgba(255,0,80,0.15);
    border-color: #ff0050;
    color: #ff0050;
}

.compartir-descargar:hover {
    background: rgba(255,204,0,0.15);
    border-color: var(--premium);
    color: var(--premium);
}

#compartirImagenContainer img {
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid #222;
}