/* ==========================================
   SECCIÓN FILE TYPES - CSS COMPLETO RESPONSIVE
   ========================================== */

/* Contenedor principal */
.file-types {
    padding: 80px 0;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.file-types-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Título de la sección */
.file-types-section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    text-align: left;
    color: #1a1a1a;
    margin-bottom: 3.5rem;
    line-height: 1.2;
    background: linear-gradient(135deg,#000);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 300% 300%;
    animation: gradientShift 6s ease-in-out infinite;
    text-transform: uppercase;
    letter-spacing: -1px;
    position: relative;
}

.file-types-section-title::before {
    content: '📁';
    position: absolute;
    left: 50%;
    top: -60px;
    transform: translateX(-50%);
    font-size: 3rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* Grid de archivos */
.file-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Tarjeta de archivo — SIN border dashed y SIN hover */
.file-card {
    background: #000;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    /* Animación de entrada */
    opacity: 0;
    animation: fadeInUpCard 0.8s ease-out forwards;
}

/* Eliminamos completamente los pseudo-elementos y hover problemáticos */
.file-card::before,
.file-card::after {
    display: none !important;
}

/* Link del archivo */
.file-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 2;
}

/* Contenedor de imagen */
.file-card-image {
    position: relative;
    width: 100%;
    height: 220px;
    background: #f0f0f0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.98);
}

/* Contenido del archivo */
.file-card-content {
    padding: 1.5rem;
    background: #000;
    position: relative;
}

.file-card-content p {
    font-size: 3rem;
    font-weight: 700;
    color:#dcff00;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-left: 0;
}

.file-card-content small {
    display: inline-block;
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.3rem 0.8rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
}

/* Mensaje cuando no hay archivos */
.file-types-grid > p {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    padding: 3rem;
    background: white;
    border: 2px dashed #e0e0e0;
    border-radius: 16px;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Tablets grandes (≤1024px) */
@media (max-width: 1024px) {
    .file-types {
        padding: 60px 0;
    }

    .file-types-container {
        padding: 0 1.5rem;
    }

    .file-types-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.8rem;
    }

    .file-card-image {
        height: 200px;
    }

    .file-card-content p {
        font-size: 1.1rem;
    }
}

/* Tablets (≤768px) */
@media (max-width: 768px) {
    .file-types {
        padding: 50px 0;
    }

    .file-types-container {
        padding: 0 1.25rem;
    }

    .file-types-section-title {
        margin-bottom: 3rem;
    }

    .file-types-section-title::before {
        top: -50px;
        font-size: 2.5rem;
    }

    .file-types-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .file-card-image {
        height: 180px;
    }

    .file-card-content {
        padding: 1.25rem;
    }

    .file-card-content p {
        font-size: 1rem;
    }

    .file-card-content small {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }
}

/* Móviles (≤480px) */
@media (max-width: 480px) {
    .file-types {
        padding: 40px 0;
    }

    .file-types-container {
        padding: 0 1rem;
    }

    .file-types-section-title {
        margin-bottom: 2.5rem;
    }

    .file-types-section-title::before {
        top: -45px;
        font-size: 2rem;
    }

    .file-types-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .file-card {
        border-radius: 14px;
    }

    .file-card-image {
        height: 160px;
    }

    .file-card-content {
        padding: 1rem;
    }

    .file-card-content p {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
    }

    .file-card-content small {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
}

/* Móviles muy pequeños (≤360px) */
@media (max-width: 360px) {
    .file-types-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .file-card-image {
        height: 140px;
    }

    .file-card-content p {
        font-size: 1.5rem;
    }
}


/* ==========================================
   ANIMACIONES DE ENTRADA (mantenidas)
   ========================================== */

.file-card:nth-child(1) { animation-delay: 0.1s; }
.file-card:nth-child(2) { animation-delay: 0.2s; }
.file-card:nth-child(3) { animation-delay: 0.3s; }
.file-card:nth-child(4) { animation-delay: 0.4s; }
.file-card:nth-child(5) { animation-delay: 0.5s; }
.file-card:nth-child(6) { animation-delay: 0.6s; }
.file-card:nth-child(7) { animation-delay: 0.7s; }
.file-card:nth-child(8) { animation-delay: 0.8s; }
.file-card:nth-child(9) { animation-delay: 0.9s; }

@keyframes fadeInUpCard {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Animación del título */
.file-types-section-title {
    opacity: 0;
    animation: titleFadeIn 1s ease-out 0.3s forwards;
}

@keyframes titleFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ==========================================
   ESTILOS PARA EL BOTÓN DE FAVORITOS
   ========================================== */


.favorite-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
}

.favorite-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.favorite-btn:active {
    transform: scale(0.95);
}

.heart-icon {
    font-size: 1.5rem;
    line-height: 1;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Estado activo (favorito agregado) */
.favorite-btn.active .heart-icon {
    content: '❤️';
}

.favorite-btn.active {
    background: rgba(220, 255, 0, 0.15);
}

/* Animación al hacer clic */
.favorite-btn.animating .heart-icon {
    animation: heartBeat 0.6s ease-in-out;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(0.9); }
    75% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Efecto de pulso sutil cuando está activo */
.favorite-btn.active .heart-icon {
    animation: gentlePulse 2s ease-in-out infinite;
}

@keyframes gentlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ==========================================
   RESPONSIVE DESIGN PARA BOTÓN DE FAVORITOS
   ========================================== */

/* Tablets grandes (≤1024px) */
@media (max-width: 1024px) {
    .favorite-btn {
        width: 44px;
        height: 44px;
        top: 12px;
        right: 12px;
    }

    .heart-icon {
        font-size: 1.4rem;
    }
}

/* Tablets (≤768px) */
@media (max-width: 768px) {
    .favorite-btn {
        width: 42px;
        height: 42px;
        top: 10px;
        right: 10px;
    }

    .heart-icon {
        font-size: 1.3rem;
    }
}

/* Móviles (≤480px) */
@media (max-width: 480px) {
    .favorite-btn {
        width: 38px;
        height: 38px;
        top: 8px;
        right: 8px;
    }

    .heart-icon {
        font-size: 1.2rem;
    }

    .favorite-btn:hover {
        transform: scale(1.05);
    }
}

/* Móviles muy pequeños (≤360px) */
@media (max-width: 360px) {
    .favorite-btn {
        width: 36px;
        height: 36px;
        top: 6px;
        right: 6px;
    }

    .heart-icon {
        font-size: 1.1rem;
    }
}

/* Mejora de accesibilidad en dispositivos táctiles */
@media (hover: none) and (pointer: coarse) {
    .favorite-btn {
        min-width: 44px;
        min-height: 44px;
    }
}