/* Estilos adicionales para componentes interactivos */

/* Animaciones de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from { 
        transform: translateX(100%); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0); 
        opacity: 1; 
    }
}

@keyframes slideOut {
    from { 
        transform: translateX(0); 
        opacity: 1; 
    }
    to { 
        transform: translateX(100%); 
        opacity: 0; 
    }
}

/* Estilos para el menú móvil */
.menu-movil.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-movil.active span:nth-child(2) {
    opacity: 0;
}

.menu-movil.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Estados de validación de formularios */
.grupo-campo.error input,
.grupo-campo.error textarea,
.grupo-campo.error select {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.grupo-campo.success input,
.grupo-campo.success textarea,
.grupo-campo.success select {
    border-color: #16a34a !important;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1) !important;
}

.mensaje-error {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
}

.mensaje-exito {
    color: #16a34a;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
}

/* Animación de carga de página */
body {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Efectos de hover mejorados */
.tarjeta-articulo,
.tarjeta-evento {
    will-change: transform;
}

/* Optimizaciones de performance */
.hero-principal {
    will-change: transform;
}

.navegacion {
    will-change: transform;
}

/* Mejoras de accesibilidad */

/* Estilos para botones de compartir en redes sociales - Diseño circular minimalista */
.compartir-social {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    backdrop-filter: blur(10px);
    text-align: center;
}

.compartir-social h4 {
    font-size: 1rem;
    font-weight: 500;
    color: #64748b;
    margin: 0 0 1.5rem 0;
    letter-spacing: 0.025em;
}

.botones-compartir {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.boton-compartir {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(226, 232, 240, 0.8);
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.boton-compartir img {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
    filter: grayscale(0.3) opacity(0.8);
}

.boton-compartir:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

.boton-compartir:hover img {
    filter: grayscale(0) opacity(1);
    transform: scale(1.1);
}

/* Efectos específicos por plataforma */
.boton-whatsapp:hover {
    background: linear-gradient(135deg, #25d366, #128c7e);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

.boton-facebook:hover {
    background: linear-gradient(135deg, #1877f2, #166fe5);
    box-shadow: 0 10px 25px rgba(24, 119, 242, 0.4);
}

.boton-x:hover {
    background: linear-gradient(135deg, #000000, #1a1a1a);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.boton-telegram:hover {
    background: linear-gradient(135deg, #0088cc, #006699);
    box-shadow: 0 10px 25px rgba(0, 136, 204, 0.4);
}

.boton-tiktok:hover {
    background: linear-gradient(135deg, #ff0050, #e6004a);
    box-shadow: 0 10px 25px rgba(255, 0, 80, 0.4);
}

.boton-copiar:hover {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.boton-copiar.copiado {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4) !important;
    border-color: transparent !important;
}

.boton-copiar.copiado img {
    filter: brightness(0) invert(1);
}

/* Animación de pulso para feedback */
.boton-compartir:active {
    transform: translateY(-1px) scale(0.95);
}

/* Responsive */
@media (max-width: 768px) {
    .compartir-social {
        margin: 1.5rem 0;
        padding: 1.25rem;
    }
    
    .botones-compartir {
        gap: 0.8rem;
    }
    
    .boton-compartir {
        width: 45px;
        height: 45px;
    }
    
    .boton-compartir img {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    .compartir-social {
        padding: 1rem;
    }
    
    .botones-compartir {
        gap: 0.6rem;
    }
    
    .boton-compartir {
        width: 42px;
        height: 42px;
    }
    
    .boton-compartir img {
        width: 20px;
        height: 20px;
    }
}

/* Estilos responsivos adicionales removidos para mantener botones circulares */

.menu-movil:focus-visible {
    outline: 2px solid var(--accent-bright);
    outline-offset: 2px;
}

.boton-principal:focus-visible,
.boton-enviar:focus-visible {
    outline: 2px solid var(--accent-bright);
    outline-offset: 2px;
}

/* Responsive para animaciones */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}