/* =========================================================================
   AELE · Portada rediseñada (v3). Se carga después de style.css.
   Un solo elemento memorable: las tres revistas como objetos en el hero.
   ========================================================================= */

/* ---------- Ajustes globales de v3 ---------- */
:root { --sombra-objeto: 0 30px 60px -20px rgba(1,53,110,.45), 0 12px 24px -12px rgba(0,0,0,.35); }
:focus-visible { outline: 3px solid var(--dorado); outline-offset: 3px; border-radius: 4px; }
.btn:focus-visible { outline-offset: 2px; }
.section__head h2 { margin-bottom: .25em; }
.section__head p { margin: 0; }
.section__head--row > div { max-width: 640px; }

/* ---------- Hero ---------- */
.hero2 { position: relative; overflow: hidden; color: #fff; background: linear-gradient(160deg, #052a5a 0%, var(--azul) 55%, #0A1C3F 100%); }
.hero2::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 500px at 75% 30%, rgba(214,174,118,.14), transparent 60%); pointer-events: none; }
.hero2__inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; min-height: 600px; padding: 72px 0 80px; }
.hero2__kicker { font-size: 1rem; color: var(--dorado); margin: 0 0 20px; max-width: 480px; line-height: 1.5; }
.hero2__h1 { font-family: var(--f-titulo); font-weight: 800; font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: .98; letter-spacing: -.025em; color: #fff; margin: 0 0 24px; }
.hero2__lead { font-size: 1.15rem; line-height: 1.6; color: rgba(255,255,255,.82); max-width: 520px; margin: 0 0 34px; }
.hero2__actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero2__link { color: #fff; font-family: var(--f-titulo); font-weight: 700; font-size: .95rem; border-bottom: 2px solid var(--dorado); padding-bottom: 2px; }
.hero2__link:hover { text-decoration: none; color: var(--dorado); }
.hero2__franja { position: absolute; right: -70px; top: -10%; width: 52px; height: 130%; background: var(--dorado); transform: rotate(18deg); opacity: .95; }
.hero2__franja::before { content: ""; position: absolute; left: -26px; top: 0; bottom: 0; width: 10px; background: rgba(214,174,118,.35); }

/* Pila de revistas */
.hero2__stack { position: relative; height: 520px; perspective: 1400px; margin-right: 40px; }
.hero2__item { position: absolute; left: 50%; top: 50%; width: 250px; display: block; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.2,.8,.2,1); will-change: transform; }
.hero2__item--0 { transform: translate(-108%, -50%) rotateY(14deg) rotateZ(-7deg) translateZ(-40px); z-index: 1; }
.hero2__item--1 { transform: translate(-50%, -56%) rotateY(0deg) translateZ(40px) scale(1.02); z-index: 3; }
.hero2__item--2 { transform: translate(8%, -46%) rotateY(-14deg) rotateZ(7deg) translateZ(-40px); z-index: 2; }
.hero2__stack:hover .hero2__item--0 { transform: translate(-116%, -52%) rotateY(18deg) rotateZ(-9deg) translateZ(-30px); }
.hero2__stack:hover .hero2__item--2 { transform: translate(16%, -44%) rotateY(-18deg) rotateZ(9deg) translateZ(-30px); }
.hero2__stack:hover .hero2__item--1 { transform: translate(-50%, -60%) translateZ(70px) scale(1.09); }
.hero2__piso { position: absolute; left: 10%; right: 10%; bottom: 20px; height: 40px; background: radial-gradient(closest-side, rgba(0,0,0,.45), transparent); filter: blur(10px); }

/* Objeto portada */
.portada { position: relative; aspect-ratio: 3 / 4.15; width: 100%; transform-style: preserve-3d; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }
.portada__cara { position: absolute; inset: 0; background: var(--rev); border-radius: 3px 8px 8px 3px; overflow: hidden; display: flex; flex-direction: column; padding: 9% 9% 8%; color: #fff; background-size: cover; background-position: center; box-shadow: inset 10px 0 18px -12px rgba(0,0,0,.55); }
.portada__lomo { position: absolute; left: -6px; top: 3px; bottom: 3px; width: 8px; background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(0,0,0,.15)); border-radius: 2px 0 0 2px; transform: translateZ(-2px); }
.portada__brillo { position: absolute; inset: 0; border-radius: 3px 8px 8px 3px; background: linear-gradient(115deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 35%, rgba(255,255,255,0) 70%, rgba(255,255,255,.08) 100%); pointer-events: none; }
.portada__cab { display: flex; flex-direction: column; gap: 6px; }
.portada__cab img { width: 78%; background: #fff; padding: 3px 5px; border-radius: 3px; }
.portada__cab span { font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.8); font-family: var(--f-titulo); font-weight: 700; }
.portada__tit { margin-top: auto; font-family: var(--f-titulo); font-weight: 800; font-size: clamp(.9rem, 1.4vw, 1.15rem); line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; position: relative; z-index: 1; }
.portada__pie { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .6rem; color: rgba(255,255,255,.75); position: relative; z-index: 1; }
.portada__pie img { width: 16px; }
.portada__corte { position: absolute; right: -20px; bottom: -30px; width: 46px; height: 190px; background: var(--dorado); transform: rotate(32deg); }
.portada[data-img] .portada__cara { padding: 0; }

@media (max-width: 980px) {
  .hero2__inner { grid-template-columns: 1fr; padding: 56px 0 40px; min-height: 0; }
  .hero2__stack { height: 400px; }
  .hero2__item { width: 190px; }
  .hero2__franja { display: none; }
}
@media (max-width: 560px) { .hero2__stack { height: 330px; } .hero2__item { width: 150px; } .hero2__h1 { font-size: 2.4rem; } }

/* Entrada orquestada (una sola vez) */
@media (prefers-reduced-motion: no-preference) {
  .home .hero2__txt > * { opacity: 0; transform: translateY(14px); animation: subir .7s cubic-bezier(.2,.8,.2,1) forwards; }
  .home .hero2__txt > :nth-child(2) { animation-delay: .08s } .home .hero2__txt > :nth-child(3) { animation-delay: .16s } .home .hero2__txt > :nth-child(4) { animation-delay: .24s }
  .home .hero2__item { opacity: 0; animation: aparecer .9s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: .35s; }
  .home .hero2__item--1 { animation-delay: .25s } .home .hero2__item--2 { animation-delay: .45s }
  @keyframes subir { to { opacity: 1; transform: none; } }
  @keyframes aparecer { from { opacity: 0; translate: 0 60px; } to { opacity: 1; translate: 0 0; } }
  .ticker__move { animation: desplazar 60s linear infinite; }
  .ticker:hover .ticker__move { animation-play-state: paused; }
  @keyframes desplazar { to { transform: translateX(-50%); } }
}

/* ---------- Franja de alertas ---------- */
.ticker { background: var(--azul-profundo); color: #fff; border-top: 1px solid rgba(255,255,255,.08); }
.ticker__inner { display: flex; align-items: center; gap: 18px; height: 44px; overflow: hidden; }
.ticker__tag { flex: none; font-family: var(--f-titulo); font-weight: 700; font-size: .75rem; color: var(--dorado); padding-right: 18px; border-right: 1px solid rgba(255,255,255,.15); }
.ticker__track { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker__move { display: flex; gap: 48px; width: max-content; }
.ticker__move a { color: rgba(255,255,255,.85); font-size: .9rem; white-space: nowrap; }
.ticker__move a b { color: var(--dorado); font-weight: 700; margin-right: 6px; }
.ticker__move a:hover { color: #fff; text-decoration: none; }

/* ---------- Tríptico de revistas ---------- */
.triptico { display: grid; grid-template-columns: repeat(3, 1fr); }
.triptico__col { position: relative; overflow: hidden; background: var(--rev); color: #fff; padding: 56px 40px 60px; display: flex; flex-direction: column; gap: 16px; min-height: 480px; transition: filter .2s; }
.triptico__col:hover { text-decoration: none; filter: brightness(1.08); }
.triptico__col::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.28)); pointer-events: none; }
.triptico__col > * { position: relative; z-index: 1; }
.triptico__logo img { height: 44px; background: #fff; padding: 5px 9px; border-radius: 6px; }
.triptico__desc { font-family: var(--f-titulo); font-weight: 700; font-size: 1.25rem; line-height: 1.25; margin: 6px 0 0; max-width: 24ch; }
.triptico__ed { margin: 0; padding: 14px 16px; background: rgba(255,255,255,.1); border-left: 3px solid var(--dorado); font-size: .95rem; line-height: 1.45; }
.triptico__ed span { display: block; font-family: var(--f-titulo); font-weight: 700; font-size: .72rem; color: var(--dorado); margin-bottom: 4px; }
.triptico__temas { list-style: none; margin: 4px 0 0; padding: 0; color: rgba(255,255,255,.85); font-size: .92rem; display: grid; gap: 5px; }
.triptico__temas li::before { content: "— "; color: var(--dorado); }
.triptico__cta { margin-top: auto; align-self: flex-start; font-family: var(--f-titulo); font-weight: 700; color: #fff; border-bottom: 2px solid var(--dorado); padding-bottom: 2px; }
.triptico__corte { position: absolute; right: -40px; top: -20px; width: 42px; height: 140%; background: var(--dorado); transform: rotate(18deg); opacity: .9; z-index: 0; }
@media (max-width: 900px) { .triptico { grid-template-columns: 1fr; } .triptico__col { min-height: 0; padding: 40px 24px; } }

/* ---------- Lo que hacemos ---------- */
.pilares2 { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.pilares2__txt h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.pilares2__lista { margin: 0; display: grid; gap: 0; }
.pilares2__lista > div { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--gris-linea); }
.pilares2__lista > div:last-child { border-bottom: 1px solid var(--gris-linea); }
.pilares2__lista dt { font-family: var(--f-titulo); font-weight: 800; color: var(--azul); font-size: 1.3rem; }
.pilares2__lista dd { margin: 0; color: var(--gris-texto); line-height: 1.55; }
@media (max-width: 900px) { .pilares2 { grid-template-columns: 1fr; gap: 24px; } .pilares2__lista > div { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Fichas de programa ---------- */
.fichas { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ficha2 { display: grid; grid-template-columns: 120px 1fr; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 0 var(--gris-linea), var(--sombra); }
.ficha2__fecha { background: var(--rev); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 10px; text-align: center; gap: 2px; position: relative; }
.ficha2__fecha::after { content: ""; position: absolute; right: -1px; top: 0; bottom: 0; width: 10px; background: radial-gradient(circle at right, #fff 4px, transparent 4.5px) right/10px 18px repeat-y; }
.ficha2__fecha em { font-style: normal; font-size: .72rem; text-transform: capitalize; opacity: .85; }
.ficha2__fecha strong { font-family: var(--f-titulo); font-weight: 800; font-size: 3rem; line-height: 1; }
.ficha2__fecha span { font-family: var(--f-titulo); font-weight: 700; font-size: .85rem; letter-spacing: .1em; }
.ficha2__cuerpo { padding: 22px 26px; display: flex; flex-direction: column; gap: 8px; }
.ficha2__meta { font-size: .82rem; color: var(--gris-texto); }
.ficha2 h3 { font-size: 1.3rem; margin: 0; }
.ficha2 h3 a { color: inherit; }
.ficha2 p { color: var(--gris-texto); margin: 0; }
.ficha2__pie { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.ficha2__precio strong { font-family: var(--f-titulo); font-weight: 800; font-size: 1.6rem; color: var(--azul); display: block; line-height: 1; }
.ficha2__precio span { font-size: .8rem; color: var(--rojo); }
@media (max-width: 900px) { .fichas { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .ficha2 { grid-template-columns: 90px 1fr; } .ficha2__fecha strong { font-size: 2.2rem; } }

/* ---------- Herramientas ---------- */
.herr { background: var(--azul); color: #fff; padding: 80px 0; position: relative; overflow: hidden; }
.herr::after { content: ""; position: absolute; right: -60px; top: -10%; width: 46px; height: 130%; background: var(--dorado); transform: rotate(18deg); }
.herr__head { max-width: 640px; margin-bottom: 36px; }
.herr__head h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.herr__head p { color: rgba(255,255,255,.75); margin: 0; }
.herr__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(180px, auto); gap: 16px; }
.herr__item { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 26px; color: #fff; display: flex; flex-direction: column; gap: 8px; position: relative; transition: background .2s, border-color .2s; }
.herr__item:hover { background: rgba(255,255,255,.12); border-color: rgba(214,174,118,.6); text-decoration: none; }
.herr__item--big { grid-column: span 2; grid-row: span 2; background: rgba(255,255,255,.1); }
.herr__item h3 { color: #fff; margin: 0; font-size: 1.15rem; }
.herr__item--big h3 { font-size: 1.7rem; }
.herr__item p { color: rgba(255,255,255,.8); margin: 0; font-size: .95rem; }
.herr__dato { margin-top: auto; font-family: var(--f-titulo); font-weight: 800; font-size: 2.2rem; color: var(--dorado); line-height: 1; }
.herr__item--big .herr__dato { font-size: 3.6rem; }
.herr__dato small { display: block; font-size: .8rem; font-weight: 700; color: rgba(255,255,255,.7); letter-spacing: 0; }
@media (max-width: 980px) { .herr__grid { grid-template-columns: 1fr 1fr; } .herr__item--big { grid-column: span 2; grid-row: auto; } }
@media (max-width: 560px) { .herr__grid { grid-template-columns: 1fr; } .herr__item--big { grid-column: auto; } }

/* ---------- AELE TV ---------- */
.tv2 { position: relative; background: var(--azul-profundo); color: #fff; overflow: hidden; }
.tv2__fondo { position: absolute; inset: 0; background-size: cover; background-position: center; filter: grayscale(1) contrast(1.1); opacity: .25; }
.tv2::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,28,63,.98) 35%, rgba(10,28,63,.6)); }
.tv2__inner { position: relative; display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; padding: 80px 0; }
.tv2__logo { height: 48px; width: auto; margin-bottom: 20px; }
.tv2__txt h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.tv2__txt p { color: rgba(255,255,255,.8); margin: 0 0 28px; }
.tv2__player .video { box-shadow: var(--sombra-objeto); }
.tv2__player .video__placeholder strong { font-family: var(--f-titulo); font-size: 1.2rem; max-width: 30ch; }
.tv2__lista { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tv2__lista li { background: rgba(255,255,255,.06); border-radius: 8px; padding: 10px 14px; display: flex; flex-direction: column; }
.tv2__lista a { color: #fff; font-weight: 600; font-size: .92rem; }
.tv2__lista small { color: rgba(255,255,255,.55); }
@media (max-width: 900px) { .tv2__inner { grid-template-columns: 1fr; padding: 56px 0; } .tv2__lista { grid-template-columns: 1fr; } }

/* ---------- Noticias editoriales ---------- */
.noticias2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; }
.noticias2__prim { padding: 0 0 0 24px; border-left: 5px solid var(--rev); }
.noticias2__prim img { border-radius: 10px; aspect-ratio: 16/9; object-fit: cover; margin-bottom: 18px; }
.noticias2__meta { font-size: .82rem; color: var(--gris-texto); margin-bottom: 8px; }
.noticias2__prim h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.15; }
.noticias2__prim h3 a, .noticias2__item h4 a { color: inherit; }
.noticias2__prim p { color: var(--gris-texto); font-size: 1.05rem; }
.noticias2__resto { display: grid; gap: 0; }
.noticias2__item { padding: 16px 0 16px 18px; border-left: 3px solid var(--rev); border-bottom: 1px solid var(--gris-linea); }
.noticias2__item:last-child { border-bottom: 0; }
.noticias2__item h4 { font-size: 1.05rem; line-height: 1.3; margin: 0; }
@media (max-width: 900px) { .noticias2 { grid-template-columns: 1fr; } }

/* ---------- Cierre ---------- */
.cierre { background: linear-gradient(135deg, var(--azul), #0A1C3F); color: #fff; }
.cierre__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; padding: 64px 0; }
.cierre h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: .3em; }
.cierre p { margin: 0; color: rgba(255,255,255,.8); }
.cierre a:not(.btn) { color: var(--dorado); font-weight: 700; }
.cierre .hero2__actions { justify-content: flex-end; }
@media (max-width: 900px) { .cierre__inner { grid-template-columns: 1fr; } .cierre .hero2__actions { justify-content: flex-start; } }

/* ---------- Ediciones en la ficha de revista ---------- */
.ediciones3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.edicion3 { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center; }
.edicion3__obj { display: block; perspective: 900px; }
.edicion3__obj .portada { transform: rotateY(14deg); transition: transform .4s; filter: drop-shadow(0 18px 24px rgba(0,0,0,.3)); }
.edicion3__obj:hover .portada { transform: rotateY(4deg) translateY(-4px); }
.edicion3__txt b { display: block; font-family: var(--f-titulo); color: var(--rev); font-size: .8rem; margin-bottom: 4px; }
.edicion3__txt p { color: var(--gris-texto); font-size: .92rem; margin: 0 0 8px; }
@media (max-width: 1000px) { .ediciones3 { grid-template-columns: 1fr; } }
/* Afinado: tamaños relativos de la portada y móviles */
.portada { container-type: inline-size; }
.portada__tit { font-size: clamp(.5rem, 8cqw, 1.2rem); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.portada__cab span { font-size: clamp(.4rem, 4.2cqw, .62rem); }
.portada__pie { font-size: clamp(.38rem, 4cqw, .6rem); }
.portada__pie img { width: clamp(9px, 7cqw, 16px); }
.portada__corte { width: 18cqw; height: 80cqw; right: -8cqw; bottom: -12cqw; }
@media (max-width: 980px) { .hero2__stack { margin-right: 0; } .hero2__item--0 { transform: translate(-125%, -50%) rotateY(14deg) rotateZ(-7deg); } .hero2__item--2 { transform: translate(25%, -46%) rotateY(-14deg) rotateZ(7deg); } }
@media (max-width: 760px) { .banner .sticker { display: none; } }

/* ---------- Fotografía con el tratamiento del manual: blanco y negro + capa azul (duotono) ---------- */
.page-hero--foto, .cierre { position: relative; overflow: hidden; isolation: isolate; }
.page-hero--foto::before, .cierre::before { content: ""; position: absolute; inset: 0; width: auto; height: auto; transform: none; background-color: transparent; background-image: var(--foto); background-size: cover; background-position: center 35%; filter: grayscale(1) contrast(1.1) brightness(1.05); mix-blend-mode: luminosity; opacity: .85; z-index: 0; }
.page-hero--foto::after, .cierre::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, var(--rev, var(--azul)) 0%, var(--rev, var(--azul)) 28%, color-mix(in srgb, var(--rev, var(--azul)) 55%, transparent) 62%, color-mix(in srgb, var(--rev, var(--azul)) 25%, transparent) 100%); }
.page-hero--foto > .container, .cierre > .container { position: relative; z-index: 2; }
.page-hero--foto.franja::after { right: 0; top: 0; height: auto; width: auto; transform: none; opacity: 1; }
.page-hero--foto .page-hero__symbol { display: none; }
.page-hero--foto .page-hero__inner { padding: 84px 0 80px; }
.cierre { background: var(--azul-profundo); }
.cierre::after { background: linear-gradient(90deg, var(--azul-profundo) 0%, var(--azul-profundo) 30%, rgba(10,28,63,.55) 100%); }
.pilares2__foto { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; margin-bottom: 24px; filter: grayscale(1) contrast(1.05); box-shadow: var(--sombra-objeto); display: block; }
.pilares2__fotowrap { position: relative; margin-bottom: 24px; }
.pilares2__fotowrap::after { content: ""; position: absolute; inset: 0; border-radius: 12px; background: var(--azul); mix-blend-mode: screen; opacity: .35; pointer-events: none; }
.pilares2__fotowrap .pilares2__foto { margin: 0; }

/* ===================== Hemeroteca: la estantería ===================== */
.hem-hero { background: linear-gradient(160deg, #052a5a, var(--azul) 55%, #0A1C3F); color: #fff; position: relative; overflow: hidden; }
.hem-hero::after { content: ""; position: absolute; right: -60px; top: -10%; width: 46px; height: 130%; background: var(--dorado); transform: rotate(18deg); }
.hem-hero__inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; padding: 64px 0 70px; position: relative; z-index: 1; }
.hem-hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -.02em; margin: 10px 0 14px; }
.hem-hero__lead { font-size: 1.15rem; color: rgba(255,255,255,.82); max-width: 560px; margin: 0 0 28px; }
.hem-hero__lead b { color: #fff; }
.hem-cifras { display: flex; gap: 40px; margin: 0; flex-wrap: wrap; }
.hem-cifras dt { font-family: var(--f-titulo); font-weight: 800; font-size: 2.2rem; color: var(--dorado); line-height: 1; }
.hem-cifras dd { margin: 4px 0 0; color: rgba(255,255,255,.7); font-size: .9rem; }
.hem-hero__obj { justify-self: center; width: 240px; perspective: 1200px; text-align: center; }
.hem-hero__obj .portada { transform: rotateY(-16deg) rotateZ(2deg); }
.hem-hero__cap { display: block; margin-top: 22px; font-size: .82rem; color: rgba(255,255,255,.7); }
@media (max-width: 900px) { .hem-hero__inner { grid-template-columns: 1fr; } .hem-hero__obj { width: 180px; } }

.hem-nav { position: sticky; top: 82px; z-index: 30; background: rgba(246,243,238,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--gris-linea); }
.hem-nav__inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 56px; flex-wrap: wrap; padding: 8px 0; }
.hem-nav__revs { display: flex; gap: 6px; flex-wrap: wrap; }
.hem-nav__revs a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font: 700 .85rem var(--f-titulo); color: var(--tinta); border: 1.5px solid var(--gris-linea); background: #fff; }
.hem-nav__revs a:hover { text-decoration: none; border-color: var(--rev, var(--azul)); }
.hem-nav__revs a.is-active { background: var(--rev, var(--azul)); color: #fff; border-color: var(--rev, var(--azul)); }
.hem-nav__revs small { opacity: .7; font-weight: 600; }
.hem-nav__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rev); }
.hem-nav__revs a.is-active .hem-nav__dot { background: #fff; }
.hem-nav__anios { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.hem-nav__dec { font: 700 .68rem var(--f-titulo); color: var(--dorado); margin: 0 4px 0 12px; }
.hem-nav__anios a { font: 600 .82rem var(--f-titulo); color: var(--azul); padding: 4px 6px; border-radius: 4px; }
.hem-nav__anios a:hover { background: var(--azul); color: #fff; text-decoration: none; }

.hem-estante { padding: 40px 0 70px; background: var(--crema); }
.hem-anio { position: relative; padding: 28px 0 0; scroll-margin-top: 150px; }
.hem-anio__label { display: flex; align-items: baseline; gap: 12px; margin: 0 0 6px; }
.hem-anio__label span { font: 800 2.6rem/1 var(--f-titulo); color: var(--azul); letter-spacing: -.03em; }
.hem-anio__label small { color: var(--gris-texto); font-size: .9rem; }
.hem-fila { display: flex; gap: 22px; align-items: flex-end; overflow-x: auto; padding: 24px 12px 0; scrollbar-width: thin; }
.hem-item { flex: none; width: 128px; text-align: center; position: relative; perspective: 800px; }
.hem-item .portada { transform: rotateY(-10deg); transition: transform .35s cubic-bezier(.2,.8,.2,1); filter: drop-shadow(0 14px 16px rgba(0,0,0,.28)); }
.hem-item:hover .portada, .hem-item:focus-visible .portada { transform: rotateY(0) translateY(-10px) scale(1.04); }
.hem-item:hover { text-decoration: none; }
.hem-item__cap { display: block; margin-top: 10px; font: 700 .78rem var(--f-titulo); color: var(--tinta); }
.hem-item__cap small { color: var(--gris-texto); font-weight: 600; }
.hem-tabla { height: 14px; margin-top: 6px; background: linear-gradient(180deg, #e9e2d6, #d9d0bf); border-radius: 2px; box-shadow: 0 10px 18px -8px rgba(0,0,0,.35), inset 0 1px 0 #fff; position: relative; }
.hem-tabla::before { content: ""; position: absolute; left: 0; right: 0; top: -4px; height: 4px; background: #f3eee5; border-radius: 2px 2px 0 0; }

.hem-visor { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
.hem-visor__fondo { position: absolute; inset: 0; background: rgba(10,28,63,.86); backdrop-filter: blur(6px); }
.hem-visor__caja { position: relative; background: #fff; border-radius: 16px; width: min(92vw, 880px); display: grid; grid-template-columns: 300px 1fr; gap: 30px; padding: 30px; box-shadow: var(--sombra-objeto); }
.hem-visor__img img { width: 100%; border-radius: 4px 10px 10px 4px; box-shadow: 0 18px 30px rgba(0,0,0,.35); }
.hem-visor__txt h3 { font-size: 1.5rem; margin: 10px 0 6px; }
.hem-visor__x { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 2rem; line-height: 1; color: var(--gris-texto); cursor: pointer; }
@media (max-width: 700px) { .hem-visor__caja { grid-template-columns: 1fr; max-height: 92vh; overflow: auto; } .hem-visor__img { max-width: 220px; margin: 0 auto; } }

/* Libros como objetos */
.libros3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.libro3 { display: grid; grid-template-rows: auto 1fr; gap: 18px; text-align: left; }
.libro3__obj { perspective: 1000px; width: 70%; margin: 0 auto; }
.libro3__obj .portada { aspect-ratio: 3 / 4.3; transform: rotateY(-14deg); transition: transform .35s; }
.libro3:hover .libro3__obj .portada { transform: rotateY(-4deg) translateY(-6px); }
.libro3__obj .portada__lomo { width: 14px; left: -12px; }
.libro3 h3 { margin: 0 0 4px; font-size: 1.25rem; }
.libro3 h3 a { color: inherit; }
.libro3__sub { color: var(--gris-texto); margin: 0 0 10px; }
.libro3__meta { font-size: .85rem; color: var(--gris-texto); display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
@media (max-width: 900px) { .libros3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .libros3 { grid-template-columns: 1fr; } }
.hem-visor[hidden] { display: none; }
