/* ================================================
   TRABAJOS.CSS — Fotos y Vídeos de CARLED
   Mobile-first, oscuro, LED aesthetic
   ================================================ */

/* --- HERO --- */
.trabajos-hero {
    padding: 130px 6% 60px;
    text-align: center;
    background: radial-gradient(ellipse at 50% 100%, rgba(112, 0, 255, 0.12) 0%, transparent 65%);
    position: relative;
    z-index: 10;
}

.trabajos-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 242, 255, 0.08);
    border: 1px solid rgba(0, 242, 255, 0.25);
    border-radius: 50px;
    padding: 6px 18px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    color: var(--led-blue);
    text-transform: uppercase;
    margin-bottom: 22px;
}

.trabajos-hero h1 {
    font-size: clamp(2.6rem, 10vw, 5.5rem);
    font-weight: 900;
    letter-spacing: 4px;
    line-height: 1.05;
    margin: 0 0 18px;
    text-transform: uppercase;
    color: #fff;
}

.trabajos-hero h1 span {
    color: var(--led-blue);
    text-shadow: 0 0 30px rgba(0, 242, 255, 0.5);
}

.trabajos-hero p {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.65;
    max-width: 480px;
    margin: 0 auto 32px;
}

.trabajos-socials {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.trabajos-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.25s ease;
}

.trabajos-social-btn--ig {
    background: rgba(220, 39, 67, 0.08);
    border: 1px solid rgba(220, 39, 67, 0.3);
    color: #e86985;
}

.trabajos-social-btn--ig:hover {
    background: rgba(220, 39, 67, 0.15);
    border-color: rgba(220, 39, 67, 0.6);
    transform: translateY(-2px);
}

.trabajos-social-btn--tt {
    background: rgba(0, 242, 255, 0.06);
    border: 1px solid rgba(0, 242, 255, 0.25);
    color: var(--led-blue);
}

.trabajos-social-btn--tt:hover {
    background: rgba(0, 242, 255, 0.12);
    border-color: rgba(0, 242, 255, 0.5);
    transform: translateY(-2px);
}

/* --- TABS --- */
.trabajos-tabs {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 0 5% 36px;
    position: relative;
    z-index: 10;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #666;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
}

.tab-btn i {
    font-size: 0.75rem;
}

.tab-btn:hover {
    border-color: rgba(0, 242, 255, 0.2);
    color: #aaa;
}

.tab-btn--active {
    background: rgba(0, 242, 255, 0.08);
    border-color: rgba(0, 242, 255, 0.4);
    color: var(--led-blue);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.1);
}

/* --- SECCIONES --- */
.trabajos-section {
    padding: 0 5% 80px;
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
}

.trabajos-section--hidden {
    display: none;
}

/* --- GRID DE FOTOS --- */
.fotos-grid {
    columns: 3 240px;
    column-gap: 12px;
    row-gap: 12px;
}

.foto-item {
    break-inside: avoid;
    margin-bottom: 12px;
    border-radius: 14px;
    overflow: hidden;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: zoom-in;
}

.foto-item:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 242, 255, 0.25);
}

.foto-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.foto-item:hover img {
    transform: scale(1.03);
}

/* Skeletons */
.foto-skeleton {
    break-inside: avoid;
    margin-bottom: 12px;
    border-radius: 14px;
    aspect-ratio: 4 / 3;
    background: linear-gradient(90deg, #111 25%, #1a1a1a 50%, #111 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
}

/* Skeleton con alturas variadas para simular masonry */
.foto-skeleton:nth-child(2) { aspect-ratio: 3 / 4; }
.foto-skeleton:nth-child(3) { aspect-ratio: 1 / 1; }
.foto-skeleton:nth-child(5) { aspect-ratio: 4 / 5; }

/* --- EMPTY STATE --- */
.trabajos-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 60px 0;
    color: #333;
}

.trabajos-empty i {
    font-size: 3rem;
}

.trabajos-empty p {
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* --- CTA FOLLOW --- */
.trabajos-follow-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-follow-social {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.25s ease;
}

.btn-follow-ig {
    background: rgba(220, 39, 67, 0.07);
    border: 1px solid rgba(220, 39, 67, 0.3);
    color: #e86985;
}

.btn-follow-ig:hover {
    background: rgba(220, 39, 67, 0.14);
    border-color: rgba(220, 39, 67, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220, 39, 67, 0.15);
}

.btn-follow-tt {
    background: rgba(0, 242, 255, 0.06);
    border: 1px solid rgba(0, 242, 255, 0.25);
    color: var(--led-blue);
}

.btn-follow-tt:hover {
    background: rgba(0, 242, 255, 0.12);
    border-color: rgba(0, 242, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 242, 255, 0.12);
}

/* --- GRID DE VÍDEOS TIKTOK --- */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    justify-items: center;
}

.video-card {
    width: 100%;
    max-width: 340px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 242, 255, 0.12);
    background: #000;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.video-embed-wrap {
    position: relative;
    width: 100%;
    /* Ratio vertical TikTok: 9:16 aprox → padding-top 177% */
    padding-top: 177%;
}

.video-embed-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* --- RESPONSIVO MÓVIL --- */
@media (max-width: 600px) {
    .trabajos-hero {
        padding: 110px 5% 48px;
    }

    .trabajos-hero h1 {
        letter-spacing: 2px;
    }

    /* En móvil: 2 columnas fijas para fotos */
    .fotos-grid {
        columns: 2;
        column-gap: 8px;
    }

    .foto-item {
        margin-bottom: 8px;
        border-radius: 10px;
    }

    .foto-skeleton {
        margin-bottom: 8px;
        border-radius: 10px;
    }

    /* En móvil: vídeos en columna única */
    .videos-grid {
        grid-template-columns: 1fr;
    }

    .video-card {
        max-width: 100%;
    }

    .trabajos-tabs {
        padding-bottom: 28px;
    }

    .tab-btn {
        padding: 9px 20px;
        font-size: 0.65rem;
    }

    .trabajos-follow-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-top: 36px;
    }

    .btn-follow-social {
        justify-content: center;
    }

    body {
        padding-bottom: 80px;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .fotos-grid {
        columns: 2 200px;
    }

    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
