/* COMA · Tarjetas de productos (front) */
:root {
    --product-blue:  #0b5a8c;
    --product-blue2: #3d7fae;
    --product-grad:  linear-gradient(180deg, #eefaf5 0%, #a6ecd5 50%, #1fd09e 100%);
}

.products {
    display: grid;
    gap: 40px 28px;
    grid-template-columns: repeat(4, 1fr);
}

.product { text-align: center; display: flex; flex-direction: column; align-items: center; }

/* Imagen (clic = popup) */
.product-media {
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 0;
    border: 0;
    border-radius: 22px;
    background: var(--product-grad);
    display: grid;
    place-items: center;
    overflow: hidden;
    cursor: zoom-in;
    transition: box-shadow .25s, transform .25s;
}
.product-media img {
    width: 82%;
    height: 82%;
    object-fit: contain;
    transition: transform .35s ease;
}
.product-media:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(31, 208, 158, .28); }
.product-media:hover img { transform: scale(1.06); }
.product-media:focus-visible { outline: 3px solid var(--product-blue); outline-offset: 3px; }

/* Textos */
.product-name {
    margin: 16px 0 0;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--product-blue);
}
.product-brand { display: block; text-transform: uppercase; }
.product-feature { margin: 4px 0 0; color: var(--product-blue2); font-size: 1.05rem; }

.product-link {
    margin-top: 12px;
    padding: 7px 18px;
    border: 1px solid var(--product-blue);
    border-radius: 99px;
    color: var(--product-blue);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.product-link:hover { background: var(--product-blue); color: #fff; }

/* Popup */
.lightbox {
    border: 0;
    padding: 24px;
    border-radius: 22px;
    max-width: min(92vw, 640px);
    width: 100%;
    background: var(--product-grad);
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.lightbox::backdrop { background: rgba(10, 30, 40, .7); backdrop-filter: blur(3px); }
.lightbox[open] { animation: lb-in .2s ease-out; }
.lightbox img { width: 100%; max-height: 72vh; object-fit: contain; margin: 0 auto; }
.lightbox-title { margin: 12px 0 0; color: var(--product-blue); font-weight: 700; }
.lightbox-close {
    position: absolute; top: 10px; right: 12px;
    width: 38px; height: 38px; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .9); color: var(--product-blue);
    font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { background: #fff; }

@keyframes lb-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

@media (max-width: 1024px) { .products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .products { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
                             .product-name { font-size: 1.05rem; } .product-feature { font-size: .9rem; } }
