/* ========================================
   TRAMPERAS - COMPONENTES Y EFECTOS VISUALES
   ======================================== */

/* ========================================
   EFECTOS PARA BOTONES DE VOTO
   ======================================== */
.vote-icon.voted {
    animation: votePulse 0.3s ease-in-out;
}

@keyframes votePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

/* ========================================
   NOTIFICACIONES
   ======================================== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    color: white;
    font-weight: 600;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.notification--visible {
    transform: translateX(0);
}

.notification--success {
    background-color: var(--color-success);
}

.notification--error {
    background-color: var(--color-danger);
}

.notification--info {
    background-color: var(--trans-blue);
}

/* ========================================
   MEJORAS PARA LAS TARJETAS DE PERFIL
   ======================================== */
.profile-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px var(--color-card-shadow);
    cursor: pointer;
    transition: all 0.3s ease;
    aspect-ratio: 2/3;
    background-color: var(--trans-white);
}

.profile-card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s;
}

.profile-card:hover::before {
    left: 100%;
}

.profile-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.profile-card:hover .profile-card__image {
    transform: scale(1.1);
}

/* ========================================
   MEJORAS PARA EL ENCABEZADO
   ======================================== */
.header {
    position: fixed !important; /* Mantener posici├│n fija */
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(91, 206, 250, 0.1) 0%,
        rgba(245, 169, 184, 0.1) 100%
    );
    pointer-events: none;
}

.header__logo-icon {
    transition: transform 0.3s ease;
}

.header__logo-icon:hover {
    transform: rotate(360deg);
}

/* ========================================
   MEJORAS PARA BOTONES
   ======================================== */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:active {
    transform: translateY(1px);
}

/* ========================================
   ANIMACIONES DE ENTRADA
   ======================================== */
.profile-card {
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Aplicar animaci├│n escalonada a las tarjetas */
.profile-card:nth-child(1) { animation-delay: 0.1s; }
.profile-card:nth-child(2) { animation-delay: 0.2s; }
.profile-card:nth-child(3) { animation-delay: 0.3s; }
.profile-card:nth-child(4) { animation-delay: 0.4s; }
.profile-card:nth-child(5) { animation-delay: 0.5s; }
.profile-card:nth-child(6) { animation-delay: 0.6s; }
.profile-card:nth-child(7) { animation-delay: 0.7s; }
.profile-card:nth-child(8) { animation-delay: 0.8s; }
.profile-card:nth-child(9) { animation-delay: 0.9s; }
.profile-card:nth-child(10) { animation-delay: 1.0s; }
.profile-card:nth-child(11) { animation-delay: 1.1s; }
.profile-card:nth-child(12) { animation-delay: 1.2s; }

/* ========================================
   ESTADOS DE CARGA
   ======================================== */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* ========================================
   MEJORAS PARA DISPOSITIVOS M├ôVILES
   ======================================== */
@media (max-width: 768px) {
    .profile-card:hover {
        transform: scale(1.02);
    }
    
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        transform: translateY(-100%);
    }
    
    .notification--visible {
        transform: translateY(0);
    }
}

/* ========================================
   EFECTOS DE FOCO PARA ACCESIBILIDAD
   ======================================== */
.btn:focus,
.vote-icon:focus {
    outline: 2px solid var(--trans-blue);
    outline-offset: 2px;
}

.profile-card:focus-within {
    outline: 2px solid var(--trans-pink);
    outline-offset: 2px;
}

/* ========================================
   MODOS OSCURO (FUTURO)
   ======================================== */
@media (prefers-color-scheme: dark) {
    :root {
        --color-text-primary: #F9FAFB;
        --color-text-secondary: #D1D5DB;
        --color-background: #1F2937;
        --color-card-shadow: rgba(0, 0, 0, 0.3);
    }
    
    .profile-card {
        background-color: #374151;
    }
}

