/* ===== Layout general (modo sitio) ===== */
.site-wrap {
    max-width: 1280px;
    margin-top:200px;
    min-height:75vh;
    padding: 10px 15px; /* antes era 16px 20px */
}

.topbar {
    margin-bottom: 10px;
}

.title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.price-badge {
    background-color: #000;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ===== Pestañas de versiones ===== */
.versions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.version-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    font-weight: 600;
    text-decoration: none;
    color: #111;
    transition: all .12s ease;
}

    .version-pill:hover {
        border-color: #cbd5e1;
        box-shadow: 0 1px 8px rgba(0,0,0,.06);
    }

    .version-pill.selected {
        border-color: #2563eb;
        background: #e8f0ff;
        color: #111;
    }

/* ===== Panel izquierdo: info compacta ===== */
.info-col {
    display: grid;
    gap: 10px;
}

.info-card {
    border: 1px solid #eaeaea;
    border-radius: 10px;
    padding: 12px;
    background: #0f172a;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .info-card i {
        font-size: 20px;
        opacity: .9;
    }

    .info-card h5 {
        margin: 0;
        font-size: 16px;
        font-weight: 600;
    }

/* ===== Galería centro ===== */
.gallery {
    margin-top: 5px;
}

/* Grilla de miniaturas: celdas basadas en 200px */
/* Grilla de miniaturas: 3 columnas fijas en desktop */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* siempre 3 columnas */
    gap: 5px; /* menos separación */
    justify-items: center;
}

    /* Miniaturas rectangulares: 200px ancho, auto alto */
    .gallery-grid a {
        display: inline-block;
    }

    .gallery-grid img {
        height: 140px; /* altura fija */
        width: 100%; /* que use todo el ancho de su celda */
        object-fit: cover; /* recorta para llenar el espacio sin deformar */
        border-radius: 8px;
        display: block;
        border: 1px solid #eee;
        transition: transform .12s ease, box-shadow .12s ease;
    }

    .gallery-grid a:hover img {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0,0,0,.10);
    }


/* ===== Panel derecho: acciones ===== */
.actions {
    display: grid;
    gap: 10px;
}

@media (min-width: 992px) {
    .actions {
        position: sticky;
        top: 16px;
        z-index: 2;
    }
}

.btn-site {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    font-weight: 700;
    border-radius: 10px;
    border: 1px solid transparent;
    background: #d01818;
    color: #fff;
    text-decoration: none;
    transition: filter .12s ease, transform .04s ease, box-shadow .12s ease;
}

    .btn-site:hover {
        filter: brightness(1.03);
        box-shadow: 0 4px 12px rgba(0,0,0,.15);
    }

    .btn-site:active {
        transform: translateY(1px);
    }

/* Variante contorno */
.btn-outline {
    background: #fff;
    color: #111;
    border-color: #d1d5db;
}

    .btn-outline:hover {
        background: #f9fafb;
    }

/* Botón activo (sección actual) */
.btn-site.is-active {
    background: #b31313;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    border-color: #991010;
}

/* Accesibilidad foco */
.version-pill:focus-visible, .btn-site:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}
