/* Galería de muestras de Flip Clock — complementa main.css */

.samples-wrapper {
    position: relative;
    z-index: 10;
    max-width: 1180px;
    margin: 0 auto;
    padding: 56px 20px 80px;
}

.samples-head {
    text-align: center;
    margin-bottom: 44px;
}

.samples-head h1 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 30px;
    letter-spacing: -0.01em;
    color: rgba(30, 30, 50, 0.92);
}

.samples-head p {
    margin-top: 8px;
    font-size: 14px;
    color: rgba(60, 60, 80, 0.5);
    letter-spacing: 0.02em;
}

.cat-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(60, 60, 90, 0.55);
    margin: 40px 0 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 18px;
    padding: 14px;
    overflow: hidden;
    cursor: zoom-in;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 0, 0, 0.14);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.card figcaption {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(60, 60, 90, 0.55);
    text-align: center;
    letter-spacing: 0.01em;
    word-break: break-word;
}

/* Visor a tamaño completo */
#lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(10, 10, 20, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: zoom-out;
}

#lightbox.open {
    display: flex;
}

#lightbox figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 100%;
    max-height: 100%;
}

#lightbox img {
    max-width: 100%;
    max-height: calc(100vh - 130px);
    width: auto;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

#lightbox figcaption {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.82);
}

#lightbox-close {
    position: absolute;
    top: 22px;
    right: 26px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s;
}

#lightbox-close:hover {
    background: rgba(255, 255, 255, 0.28);
}

@media (max-width: 600px) {
    #lightbox {
        padding: 20px;
    }

    #lightbox img {
        max-height: calc(100vh - 100px);
    }
}
