/* Estilos personalizados para el sitio de aplicaciones */

/* Truncar texto a 3 líneas */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Estilos para el prose (contenido de descripción larga) */
.prose {
    line-height: 1.7;
}

.prose p {
    margin-bottom: 1rem;
}

.prose ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
    list-style-type: disc;
}

.prose strong {
    font-weight: 600;
    color: #f6339a;
}

/* Animaciones suaves */
.transition-all {
    transition: all 0.3s ease;
}

/* Efectos hover para las tarjetas */
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Lightbox personalizado */
#lightbox {
    backdrop-filter: blur(4px);
}

#lightbox img {
    max-height: 90vh;
    max-width: 90vw;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Botones con efectos */
.btn-primary {
    background: linear-gradient(135deg, #f6339a 0%, #e91e63 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(246, 51, 154, 0.3);
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Focus states for accessibility */
button:focus,
a:focus {
    outline: 2px solid #f6339a;
    outline-offset: 2px;
}

/* Loading state */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Grid responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .grid {
        gap: 1rem;
    }
}

/* Header responsive */
@media (max-width: 640px) {
    header .flex {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    header .w-32 {
        display: none;
    }
}