/* ==========================================================================
   COLECCIONES — mosaico editorial
   ========================================================================== */

/* Encabezado: título a la izquierda + botón a la derecha */
.vd-colhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: clamp(36px, 5vw, 64px); }
.vd-colhead .vd-heading { margin: 0; max-width: 720px; }
.vd-colhead .vd-btn { flex: none; }

/* Grilla */
.vd-bento { display: grid; gap: 14px; grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: clamp(250px, 23vw, 360px); }
.vd-bento__item.is-big { grid-row: span 2; }
.vd-bento--4 .vd-bento__item:nth-child(2) { grid-column: span 2; }
.vd-bento--3 { grid-template-columns: 1.3fr 1fr; }
.vd-bento--2 { grid-template-columns: 1.2fr 1fr; grid-auto-rows: clamp(320px, 34vw, 520px); }
.vd-bento--2 .vd-bento__item.is-big { grid-row: auto; }
.vd-bento--1 { grid-template-columns: 1fr; }

/* Tarjeta */
.vd-bento__item {
	position: relative; display: block; overflow: hidden; isolation: isolate;
	border-radius: 22px; background: var(--vd-graphite);
	box-shadow: 0 0 0 1px var(--vd-line), 0 40px 80px -50px rgba(0, 0, 0, .9);
	color: var(--vd-chrome) !important;
}
.vd-bento__media { position: absolute; inset: 0; z-index: -2; }
.vd-bento__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; filter: grayscale(.55) brightness(.78) contrast(1.05); transform: scale(1.03); transition: transform 1.4s var(--vd-ease), filter .9s var(--vd-ease); }
.vd-bento__item::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 10, 11, .94) 0%, rgba(10, 10, 11, .55) 38%, rgba(10, 10, 11, .05) 70%), radial-gradient(80% 60% at 100% 0%, rgba(10, 10, 11, .55), transparent 60%); transition: opacity .6s; }
.vd-bento__item:hover .vd-bento__media img { filter: grayscale(0) brightness(.92) contrast(1.05); transform: scale(1.09); }

/* Marco interior bronce al pasar el mouse */
.vd-bento__frame { position: absolute; inset: 12px; z-index: 1; border-radius: 14px; border: 1px solid rgba(201, 138, 82, 0); transition: border-color .6s var(--vd-ease), inset .6s var(--vd-ease); pointer-events: none; }
.vd-bento__item:hover .vd-bento__frame { border-color: rgba(201, 138, 82, .55); inset: 14px; }

/* Encabezado de la tarjeta */
.vd-bento__top { position: absolute; top: 22px; left: 24px; right: 24px; z-index: 2; display: flex; align-items: center; justify-content: space-between; }
.vd-bento__idx { font-family: var(--vd-display); font-style: italic; font-size: 26px; line-height: 1; color: var(--vd-ember-2); font-variant-numeric: lining-nums; }
.vd-bento__count { padding: 7px 13px; border-radius: 100px; background: rgba(10, 10, 11, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--vd-line-2); font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--vd-steel-l); }

/* Cuerpo */
.vd-bento__body { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; }
.vd-bento__title { margin: 0 0 8px !important; font-size: clamp(28px, 2.6vw, 40px) !important; font-weight: 500 !important; line-height: 1 !important; letter-spacing: -.01em !important; }
.is-big .vd-bento__title { font-size: clamp(38px, 4.4vw, 68px) !important; }
.vd-bento__desc { max-width: 420px; font-size: 14.5px; line-height: 1.55; color: var(--vd-steel-l); margin-bottom: 14px; }
.vd-bento__item:not(.is-big) .vd-bento__desc { max-height: 0; opacity: 0; overflow: hidden; margin-bottom: 0; transition: max-height .6s var(--vd-ease), opacity .5s, margin .6s var(--vd-ease); }
.vd-bento__item:not(.is-big):hover .vd-bento__desc { max-height: 90px; opacity: 1; margin-bottom: 14px; }
.vd-bento__cta { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--vd-chrome); }
.vd-bento__cta span { background: linear-gradient(var(--vd-ember), var(--vd-ember)) 0 100% / 0 1px no-repeat; padding-bottom: 3px; transition: background-size .6s var(--vd-ease); }
.vd-bento__cta svg { transition: transform .6s var(--vd-ease); color: var(--vd-ember-2); }
.vd-bento__item:hover .vd-bento__cta span { background-size: 100% 1px; }
.vd-bento__item:hover .vd-bento__cta svg { transform: translateX(6px); }

/* Miniaturas apiladas de obras de la colección */
.vd-bento__stack { display: flex; margin-bottom: 16px; }
.vd-bento__stack img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--vd-carbon); box-shadow: 0 0 0 1px rgba(201, 138, 82, .45); margin-right: -10px; transition: margin .5s var(--vd-ease), transform .5s var(--vd-ease); }
.vd-bento__item:hover .vd-bento__stack img { margin-right: 4px; }
.vd-bento__item:not(.is-big) .vd-bento__stack { display: none; }

/* Tono claro */
.vd-tone--light .vd-bento__item { box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 40px 80px -50px rgba(0, 0, 0, .6); }

/* Responsive */
@media (max-width: 960px) {
	.vd-colhead { flex-direction: column; align-items: flex-start; }
	.vd-bento, .vd-bento--3, .vd-bento--4 { grid-template-columns: 1fr 1fr; grid-auto-rows: clamp(220px, 44vw, 340px); }
	.vd-bento__item.is-big { grid-column: span 2; grid-row: span 1; }
	.vd-bento--4 .vd-bento__item:nth-child(2) { grid-column: span 1; }
	.vd-bento--4 .vd-bento__item:nth-child(4) { grid-column: span 2; }
}
@media (max-width: 640px) {
	.vd-bento, .vd-bento--2, .vd-bento--3, .vd-bento--4 { grid-template-columns: 1fr 1fr; grid-auto-rows: 230px; gap: 10px; }
	.vd-bento__item.is-big { grid-row: span 1; grid-column: span 2; min-height: 340px; }
	.vd-bento__item { border-radius: 18px; }
	.vd-bento__top { top: 14px; left: 16px; right: 16px; }
	.vd-bento__body { left: 16px; right: 16px; bottom: 16px; }
	.vd-bento__title { font-size: 24px !important; }
	.is-big .vd-bento__title { font-size: 40px !important; }
	.vd-bento__count { padding: 5px 9px; font-size: 9px; }
	.vd-bento__idx { font-size: 20px; }
	.vd-bento__item:not(.is-big) .vd-bento__cta span { display: none; }
	.vd-bento__item:not(.is-big) .vd-bento__desc { display: none; }
}

/* Ajuste de luz y contorno */
.vd-bento__item { box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 40px 80px -50px rgba(0, 0, 0, .9); background: radial-gradient(70% 60% at 50% 45%, #26211d, #121112 70%); }
.vd-bento__media img { filter: grayscale(.3) brightness(.95) contrast(1.08); }
.vd-bento__item:hover .vd-bento__media img { filter: grayscale(0) brightness(1.05) contrast(1.08); }

@media (max-width: 640px) {
	.vd-bento, .vd-bento--2, .vd-bento--3, .vd-bento--4 { grid-auto-rows: auto; }
	.vd-bento__item { min-height: 0 !important; aspect-ratio: 3 / 4; }
	.vd-bento__item.is-big { aspect-ratio: 4 / 4.3; }
	.vd-bento--4 .vd-bento__item:nth-child(4) { aspect-ratio: 16 / 10; }
	.vd-bento__item.is-big .vd-bento__desc { font-size: 13.5px; }
}
