/* ========================================
   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: relative;
    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%);
    }
}

/* ========================================
   FOOTER - PIE DE PÁGINA
   ======================================== */
.footer {
    background-color: #000000;
    color: #ffffff;
    padding: 2rem 0 1rem 0;
    margin-top: 3rem;
    border-top: 3px solid var(--trans-pink);
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer__section h3 {
    color: var(--trans-pink);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer__section h4 {
    color: var(--trans-blue);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.footer__section p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer__section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__section ul li {
    margin-bottom: 0.5rem;
}

.footer__section ul li a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__section ul li a:hover {
    color: var(--trans-pink);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid #333333;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__copyright {
    color: #cccccc;
    font-size: 0.9rem;
}

.footer__counter {
    color: var(--trans-blue);
    font-size: 0.85rem;
    font-weight: 600;
    background-color: rgba(91, 206, 250, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--trans-blue);
}

/* Responsive para footer */
@media (max-width: 768px) {
    .footer {
        padding: 1.5rem 0 1rem 0;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer__bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .footer__counter {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* ========================================
   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;
    }
}

