/* ================= ESTILOS GLOBALES & VARIABLES ================= */
:root {
    --bg-color: #070306;
    --primary: #9b111e; /* Crimson Velvet */
    --primary-hover: #b81424;
    --primary-glow: rgba(155, 17, 30, 0.55);
    --secondary: #ff8fa3; /* Warm Rose */
    --gold: #d4af37; /* Gold Satin */
    --gold-glow: rgba(212, 175, 55, 0.4);
    --gold-hover: #e5c05c;
    --text-main: #fcf9fb;
    --text-muted: #bdaeb6;
    --glass-bg: rgba(18, 8, 14, 0.75);
    --glass-border: rgba(212, 175, 55, 0.15);
    --glass-border-red: rgba(155, 17, 30, 0.25);
    --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
    --glow-shadow: 0 0 20px rgba(155, 17, 30, 0.25);
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
    --cris-color: #3b82f6;
    --sol-color: #ec4899;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    background-image: linear-gradient(135deg, rgba(12, 5, 10, 0.75) 0%, rgba(30, 8, 18, 0.7) 100%), url('assets/erotic_silk_bg.png?v=1.8.0');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Capa de destello erótico ambiental */
.ambient-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(155, 17, 30, 0.12) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    pointer-events: none;
    animation: slow-pulse 8s infinite alternate ease-in-out;
}

@keyframes slow-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

/* ================= CONTENEDORES PRINCIPALES ================= */
.app-container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    min-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.view {
    display: none;
    width: 100%;
    animation: fadeIn 0.6s ease-out forwards;
}

.view.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= COMPONENTE: PANEL DE CRISTAL (GLASSMORPHISM) ================= */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    padding: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 15px rgba(155, 17, 30, 0.15);
}

/* ================= DISEÑO DEL LOGIN ================= */
#login-view {
    max-width: 480px;
    margin: 0 auto;
}

.login-card {
    text-align: center;
    border-radius: 24px;
    border-color: var(--glass-border-red);
}

.logo-area {
    margin-bottom: 30px;
}

.logo-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    display: inline-block;
    animation: heartbeat 2s infinite ease-in-out;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(155, 17, 30, 0.5));
    }
    30% {
        transform: scale(1.15);
        filter: drop-shadow(0 0 15px rgba(155, 17, 30, 0.8));
    }
    45% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 10px rgba(155, 17, 30, 0.7));
    }
    60% {
        transform: scale(1.15);
        filter: drop-shadow(0 0 15px rgba(155, 17, 30, 0.8));
    }
}

.logo-area h1 {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 1px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text-main) 30%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* ================= ELEMENTOS DE FORMULARIO ================= */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(10, 5, 8, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(155, 17, 30, 0.3), inset 0 0 5px rgba(0,0,0,0.5);
    background: rgba(15, 5, 10, 0.8);
}

.form-group select option {
    background: #180913;
    color: var(--text-main);
}

.form-error {
    color: #ef4444;
    font-size: 0.85rem;
    margin-bottom: 15px;
    text-align: left;
    min-height: 20px;
    display: none;
}

.form-error.active {
    display: block;
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.prompt-ayuda {
    font-size: 0.8rem;
    color: var(--secondary);
    margin-top: 8px;
    font-style: italic;
    background: rgba(155, 17, 30, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 2px solid var(--primary);
}

/* ================= BOTONES ================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #730612 100%);
    color: var(--text-main);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow), 0 0 10px rgba(255,255,255,0.1);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, #a47c1a 100%);
    color: #12080f !important;
    box-shadow: 0 4px 15px var(--gold-glow);
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-hover) 0%, var(--gold) 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--gold-glow);
}

.btn-purple {
    background: linear-gradient(135deg, #6b21a8 0%, #4c1d95 100%) !important;
    color: #fcf9fb !important;
    box-shadow: 0 4px 15px rgba(107, 33, 168, 0.4);
}

.btn-purple:hover {
    background: linear-gradient(135deg, #7e22ce 0%, #6b21a8 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 33, 168, 0.5);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--gold);
    color: var(--gold);
}

.btn-block {
    width: 100%;
    display: flex;
}

.btn-icon {
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.btn-icon .icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.btn-xs {
    padding: 4px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
    border-radius: 6px;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
    border-radius: 12px;
}

.animate-pulse {
    animation: button-pulse 2.5s infinite;
}

@keyframes button-pulse {
    0% { box-shadow: 0 0 0 0 rgba(155, 17, 30, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(155, 17, 30, 0); }
    100% { box-shadow: 0 0 0 0 rgba(155, 17, 30, 0); }
}

/* Quick Access login panel */
.quick-login-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.quick-login-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.quick-login-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.quick-login-buttons .btn {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255,255,255,0.02);
}

/* ================= DISEÑO DE CABECERA (HEADER) ================= */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px 30px;
    border-radius: 20px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.heart-pulse {
    font-size: 1.6rem;
    display: inline-block;
    animation: logo-heartbeat 1.8s infinite ease-in-out;
}

@keyframes logo-heartbeat {
    0%, 100% { transform: scale(1); }
    35% { transform: scale(1.2); }
    55% { transform: scale(1.08); }
    75% { transform: scale(1.2); }
}

.app-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 10px;
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-btn .icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: fill 0.3s ease;
}

.nav-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
}

.nav-btn.active {
    color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
    box-shadow: inset 0 0 5px rgba(212, 175, 55, 0.08);
}

.nav-btn.admin-only.active {
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.1);
}

.nav-btn.moderador-only.active {
    color: var(--secondary);
    background: rgba(255, 143, 163, 0.1);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.5px;
}

.user-badge.user-Cris {
    border-color: rgba(59, 130, 246, 0.5);
    color: var(--cris-color);
    background: rgba(59, 130, 246, 0.08);
}

.user-badge.user-Sol {
    border-color: rgba(236, 72, 153, 0.5);
    color: var(--sol-color);
    background: rgba(236, 72, 153, 0.08);
}

.user-badge.user-Admin {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(212, 175, 55, 0.08);
}

.user-badge.user-Moderador {
    border-color: var(--secondary);
    color: var(--secondary);
    background: rgba(255, 143, 163, 0.08);
}

/* ================= DISEÑO DE CONTENIDO ================= */
.main-content {
    min-height: 60vh;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.tab-content.active {
    display: block;
}

.tab-header {
    margin-bottom: 25px;
}

.tab-header h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--text-main);
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.tab-header .description {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* ================= SPLIT LAYOUT ================= */
.content-split {
    display: grid;
    grid-template-columns: 1.1fr 1.9fr;
    gap: 25px;
}

@media (max-width: 900px) {
    .content-split {
        grid-template-columns: 1fr;
    }
}

.form-container {
    height: fit-content;
}

.form-container h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--gold);
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 8px;
}

.list-container h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--text-main);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ================= TARJETAS DE DESEOS (WISHLIST) ================= */
.deseos-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 5px;
}

.deseo-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.deseo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    border-radius: 2px 0 0 2px;
}

.deseo-card:hover {
    background: rgba(155, 17, 30, 0.04);
    border-color: rgba(155, 17, 30, 0.2);
    transform: translateX(4px);
}

.deseo-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 10px;
}

.deseo-card-header h4 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
}

.deseo-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    background: rgba(0,0,0,0.2);
    padding: 3px 8px;
    border-radius: 10px;
}

.deseo-card-body {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 300;
    white-space: pre-wrap;
    word-break: break-word;
}

.deseo-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 10px;
}

.btn-text-action {
    color: var(--gold);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: color 0.2s;
}

.btn-text-action:hover {
    color: var(--gold-hover);
    text-decoration: underline;
}

.btn-text-danger {
    color: #ef4444;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: color 0.2s;
}

.btn-text-danger:hover {
    color: #f87171;
    text-decoration: underline;
}

/* ================= FANTASÍAS CORTAS (LÍMITES) ================= */
.permisos-box {
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.permisos-box h4 {
    font-size: 0.8rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.permiso-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.permiso-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.permiso-row > span {
    font-size: 0.85rem;
    color: var(--text-main);
    font-weight: 500;
}

.checkbox-group {
    display: flex;
    gap: 12px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-label {
    font-size: 0.8rem;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.custom-checkbox input:checked + .checkbox-label {
    background: rgba(155, 17, 30, 0.2);
    border-color: var(--primary);
    color: var(--text-main);
}

/* ================= LISTADO DE FANTASÍAS CORTAS ================= */
.limites-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 5px;
}

.limite-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.limite-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.limite-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.limite-frase-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-main);
}

.limite-creado-por {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: 8px;
}

.limite-interactive-area {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.15);
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.interactive-toggles {
    display: flex;
    gap: 10px;
}

.toggle-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

.toggle-btn.active {
    background: rgba(155, 17, 30, 0.25);
    border-color: var(--primary);
    color: #ffb3c1;
    box-shadow: 0 0 10px rgba(155, 17, 30, 0.2);
}

.toggle-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.03);
    text-decoration: line-through;
}

/* ================= DISEÑO DE ADMINISTRADOR ================= */
.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

@media (max-width: 900px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

.admin-panel-column {
    height: 520px;
    display: flex;
    flex-direction: column;
}

.border-cris {
    border-color: rgba(59, 130, 246, 0.2);
}
.border-sol {
    border-color: rgba(236, 72, 153, 0.2);
}

.column-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
}

.column-header .avatar {
    font-size: 1.8rem;
}

.column-header h3 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
}

.admin-list {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-right: 5px;
    overflow-y: auto;
}

.admin-deseo-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 15px;
    transition: background-color 0.2s;
}

.admin-deseo-card:hover {
    background: rgba(255, 255, 255, 0.02);
}

.admin-deseo-card h4 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 8px;
}

.admin-deseo-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: pre-wrap;
}

/* Tabla resumen para el administrador */
.admin-limits-summary {
    margin-top: 30px;
}

.admin-limits-summary h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--gold);
}

.admin-table-container {
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

.admin-table th, 
.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-table th {
    background: rgba(255, 255, 255, 0.03);
    font-weight: 600;
    color: var(--gold);
}

.admin-table tr:hover {
    background: rgba(255, 255, 255, 0.01);
}

.admin-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

/* ================= DISEÑO DE MODERADOR ================= */
.moderador-deck {
    display: grid;
    grid-template-columns: 1fr 1.7fr;
    gap: 25px;
}

@media (max-width: 900px) {
    .moderador-deck {
        grid-template-columns: 1fr;
    }
}

.moderador-controls {
    display: flex;
    flex-direction: column;
}

.control-box h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 8px;
}

.small-info {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.moderador-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

/* Botones mosaico de checkbox para moderador */
.custom-checkbox-large {
    display: block;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.custom-checkbox-large input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-tile {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.custom-checkbox-large input:checked + .checkbox-tile {
    background: rgba(155, 17, 30, 0.15);
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(155, 17, 30, 0.15);
}

.custom-checkbox-large:hover .checkbox-tile {
    border-color: rgba(255, 255, 255, 0.15);
}

.tile-icon {
    font-size: 1.5rem;
}

.tile-title {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-main);
}

/* Panel de exhibición de la Ruleta */
.moderador-wheel-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wheel-stage {
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    position: relative;
}

/* Marcadores de posición iniciales */
.stage-placeholder {
    animation: fadeIn 0.4s ease-out;
}

.stage-flame {
    font-size: 3.5rem;
    margin-bottom: 15px;
    animation: flame-flicker 1.5s infinite alternate ease-in-out;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

@keyframes flame-flicker {
    0% { transform: scale(0.95) rotate(-2deg); opacity: 0.9; }
    50% { transform: scale(1.05) rotate(3deg); opacity: 1; }
    100% { transform: scale(0.9) rotate(-1deg); opacity: 0.95; }
}

.stage-placeholder h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.stage-placeholder p {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 320px;
}

/* Spinner de búsqueda */
.stage-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.spinner-ring {
    width: 70px;
    height: 70px;
    border: 3px solid rgba(255, 255, 255, 0.05);
    border-top: 3px solid var(--primary);
    border-right: 3px solid var(--gold);
    border-radius: 50%;
    animation: spin 1s infinite linear;
}

.spinner-heart {
    position: absolute;
    top: calc(50% - 25px);
    font-size: 1.2rem;
    animation: pulse-fast 0.5s infinite alternate;
}

.spinning-text {
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 500;
    letter-spacing: 0.5px;
    animation: blink 1.2s infinite ease-in-out;
}

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

@keyframes pulse-fast {
    0% { transform: scale(0.8); }
    100% { transform: scale(1.2); }
}

@keyframes blink {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Pantalla de revelación */
.stage-reveal {
    animation: scale-up 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
    width: 100%;
}

@keyframes scale-up {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.reveal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.reveal-badge {
    background: var(--primary);
    color: var(--text-main);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.reveal-badge.user-Cris { background: #2563eb; }
.reveal-badge.user-Sol { background: #db2777; }

.stage-reveal h4,
.stage-reveal-corta h4 {
    font-size: 0.75rem;
    color: var(--gold);
    letter-spacing: 2px;
}

.stage-reveal h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255,255,255,0.15);
}

.reveal-description {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    font-size: 1.02rem;
    line-height: 1.65;
    color: #e5dbe1;
    max-height: 550px;
    overflow-y: auto;
    margin-bottom: 20px;
    font-weight: 300;
    white-space: pre-wrap;
    word-break: break-word;
}

.reveal-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.pulse-warning {
    font-size: 0.75rem;
    color: var(--secondary);
    font-weight: 600;
    letter-spacing: 0.5px;
    animation: warning-pulse 1.5s infinite alternate ease-in-out;
}

@keyframes warning-pulse {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Revelación de fantasía corta en moderador */
.stage-reveal-corta {
    animation: scale-up 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
    width: 100%;
}

.badge-corta {
    background: var(--gold);
    color: #12080f;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reveal-corta-votes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
    width: 100%;
}

@media (max-width: 600px) {
    .reveal-corta-votes {
        grid-template-columns: 1fr;
    }
}

.vote-block {
    padding: 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    text-align: left;
}

.vote-block h5 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 5px;
}

.vote-item {
    font-size: 0.85rem;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
}

.vote-item span {
    font-weight: 600;
}

.match-result-indicator {
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.match-success {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--gold);
    color: var(--gold);
    animation: gold-pulse 2s infinite alternate ease-in-out;
}

.match-none {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-muted);
}

.match-incompatible {
    background: rgba(155, 17, 30, 0.1);
    border: 1px solid var(--primary);
    color: var(--secondary);
}

/* ================= ESTILOS DE MODALES FLOTANTES ================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    display: none !important;
}

.modal-card {
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    border-color: var(--glass-border-red);
}

.modal-card h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--gold);
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 8px;
    text-align: center;
    flex-shrink: 0;
}

.modal-card form {
    overflow-y: auto;
    flex: 1;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(155, 17, 30, 0.3) rgba(0, 0, 0, 0.1);
}

.modal-card form::-webkit-scrollbar {
    width: 6px;
}
.modal-card form::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}
.modal-card form::-webkit-scrollbar-thumb {
    background-color: rgba(155, 17, 30, 0.3);
    border-radius: 3px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 25px;
}

.animate-zoom {
    animation: zoom-in 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}

@keyframes zoom-in {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ================= CLASES DE UTILIDAD ================= */
.scroll-y,
.deseos-list,
.limites-list {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(155, 17, 30, 0.3) rgba(0, 0, 0, 0.1);
}

.scroll-y::-webkit-scrollbar,
.deseos-list::-webkit-scrollbar,
.limites-list::-webkit-scrollbar {
    width: 6px;
}

.scroll-y::-webkit-scrollbar-track,
.deseos-list::-webkit-scrollbar-track,
.limites-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.scroll-y::-webkit-scrollbar-thumb,
.deseos-list::-webkit-scrollbar-thumb,
.limites-list::-webkit-scrollbar-thumb {
    background-color: rgba(155, 17, 30, 0.3);
    border-radius: 3px;
}

.mb-20 { margin-bottom: 20px !important; }
.mt-20 { margin-top: 20px !important; }
.mt-10 { margin-top: 10px !important; }
.hidden { display: none !important; }

/* ================= CARGA DE IMÁGENES Y ENLACES (DESEOS) ================= */
.file-input-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.btn-upload {
    border: 1px dashed var(--gold);
    background: rgba(212, 175, 55, 0.05);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-upload:hover {
    background: rgba(212, 175, 55, 0.12);
    border-color: var(--gold-hover);
    color: var(--text-main);
    transform: translateY(-1px);
}

/* Vista previa de múltiples imágenes */
.images-preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.image-preview-item {
    position: relative;
    width: 90px;
    height: 90px;
    border: 1px solid var(--gold);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-item .btn-remove-thumb {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(239, 68, 68, 0.95);
    color: white;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.image-preview-item .btn-remove-thumb:hover {
    background: #f87171;
    transform: scale(1.15);
}

/* Vista previa de múltiples enlaces */
.links-preview-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.link-preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.15);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
}

.link-preview-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
    color: var(--text-muted);
}

.link-preview-item .btn-remove-link {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: bold;
    transition: color 0.2s;
}

.link-preview-item .btn-remove-link:hover {
    color: #f87171;
}

/* Rejilla de Imágenes en Tarjetas (Deseos) */
.deseo-card-images-grid {
    display: grid;
    gap: 12px;
    margin-top: 15px;
}

.deseo-card-images-grid.grid-1 {
    grid-template-columns: 1fr;
}

.deseo-card-images-grid.grid-2 {
    grid-template-columns: 1fr 1fr;
}

.deseo-card-images-grid.grid-3 {
    grid-template-columns: 1.2fr 0.8fr;
}

.deseo-card-images-grid.grid-3 > :first-child {
    grid-row: span 2;
}

.deseo-card-images-grid.grid-multi {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.deseo-card-image-wrapper {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.deseo-card-image-wrapper img {
    width: 100%;
    height: 100%;
    min-height: 150px;
    max-height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.deseo-card-image-wrapper img:hover {
    transform: scale(1.03);
}

.deseo-card-link-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--gold);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
    width: fit-content;
}

.deseo-card-link-badge:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold-hover);
    color: var(--text-main);
    transform: translateY(-1px);
}

.deseo-card-link-badge svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.auto-link {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px dashed var(--gold);
    transition: all 0.2s ease;
}

.auto-link:hover {
    color: var(--gold-hover);
    border-bottom-style: solid;
}

/* ================= MOBILE RESPONSIVE ADJUSTMENTS ================= */
@media (max-width: 820px) {
    .app-container {
        padding: 10px;
    }
    
    .app-header {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 15px;
        padding: 15px 20px;
    }
    
    .header-logo {
        grid-column: 1;
        justify-self: start;
    }
    
    .user-profile {
        grid-column: 2;
        justify-self: end;
        gap: 8px;
    }
    
    .nav-links {
        grid-column: 1 / span 2;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
        justify-content: center;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        padding-top: 15px;
        margin-top: 5px;
    }
    
    .nav-btn {
        font-size: 0.75rem;
        padding: 8px 12px;
        flex: 1 1 auto;
        justify-content: center;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .app-title {
        font-size: 1.15rem;
    }
    
    .app-header {
        padding: 12px 15px;
        gap: 10px;
    }
    
    .user-badge {
        padding: 4px 10px;
        font-size: 0.75rem;
    }
    
    .btn-icon {
        width: 32px;
        height: 32px;
        padding: 6px;
    }
    
    .nav-btn {
        font-size: 0.72rem;
        padding: 6px 10px;
        gap: 4px;
        min-width: 80px;
    }
    
    .nav-btn .icon {
        width: 14px;
        height: 14px;
    }
    
    .form-actions {
        flex-direction: column-reverse;
        gap: 10px !important;
    }
    
    .form-actions .btn {
        width: 100%;
        flex: none !important;
    }
    
    .link-builder-group {
        flex-direction: column;
        gap: 8px !important;
    }
    
    .link-builder-group button {
        width: 100%;
    }
}

/* Estilos para fantasías completadas */
.card-completed {
    opacity: 0.55;
    border-color: rgba(212, 175, 55, 0.1) !important;
    background: rgba(0, 0, 0, 0.15) !important;
    filter: grayscale(30%);
    transition: all 0.3s ease;
}

.card-completed:hover {
    opacity: 0.85;
    filter: none;
}

.card-completed h4,
.card-completed .limite-frase-text {
    text-decoration: line-through;
    color: var(--text-muted) !important;
}

.badge-completed {
    background: rgba(212, 175, 55, 0.12) !important;
    color: var(--gold) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
}

/* ================= DISEÑO DE SECCIÓN KINKY ================= */
.badge-kink-legend {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.badge-kink-legend.favorite { background: rgba(59, 130, 246, 0.15); color: #93c5fd; border-color: rgba(59, 130, 246, 0.4); }
.badge-kink-legend.like { background: rgba(34, 197, 94, 0.15); color: #86efac; border-color: rgba(34, 197, 94, 0.4); }
.badge-kink-legend.maybe { background: rgba(249, 115, 22, 0.15); color: #fed7aa; border-color: rgba(249, 115, 22, 0.4); }
.badge-kink-legend.no { background: rgba(239, 68, 68, 0.15); color: #fca5a5; border-color: rgba(239, 68, 68, 0.4); }

.kink-category-block {
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 20px;
}

.kink-category-block h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.kinks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

@media (max-width: 680px) {
    .kinks-grid {
        grid-template-columns: 1fr;
    }
}

.kink-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s ease;
}

.kink-card:hover {
    border-color: rgba(212, 175, 55, 0.2);
    background: rgba(255, 255, 255, 0.01);
}

.kink-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.kink-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
}

.kink-ref {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: monospace;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
}

.kink-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
    flex-grow: 1;
}

.kink-buttons-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
}

.kink-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    padding: 5px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.72rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 3px;
    flex-grow: 1;
    justify-content: center;
}

.kink-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

.kink-btn.active.favorite { background: rgba(59, 130, 246, 0.25); border-color: #3b82f6; color: #93c5fd; box-shadow: 0 0 10px rgba(59, 130, 246, 0.2); }
.kink-btn.active.like { background: rgba(34, 197, 94, 0.25); border-color: #22c55e; color: #86efac; box-shadow: 0 0 10px rgba(34, 197, 94, 0.2); }
.kink-btn.active.maybe { background: rgba(249, 115, 22, 0.2); border-color: #f97316; color: #fed7aa; box-shadow: 0 0 10px rgba(249, 115, 22, 0.15); }
.kink-btn.active.no { background: rgba(239, 68, 68, 0.2); border-color: #ef4444; color: #fca5a5; }

.badge-match {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}



