/* Galería opcional de fotografías del ejemplar real. No modifica las imágenes originales. */
.how-real-button { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .55rem; margin: 1.5rem 0 0 1rem; padding: .85rem 1.12rem; color: #0b1d33; background: #ffcf55; border: 0; border-radius: .75rem; font: inherit; font-size: .9rem; font-weight: 800; cursor: pointer; transition: transform .18s, background .18s; }
.how-real-button:hover { transform: translateY(-2px); background: #ffdf8b; }
.how-real-button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.how-real-button > span[aria-hidden] { font-size: 1.3rem; line-height: 1; }
.real-button-count { padding: .23rem .48rem; border-radius: 3rem; color: #0b1d33; background: rgb(255 255 255 / .68); font-size: .72rem; }
.real-gallery { position: fixed; inset: 0; width: min(94vw, 1100px); max-width: 1100px; height: min(94dvh, 950px); max-height: 94dvh; padding: 0; color: #fff; background: #0b1d33; border: 1px solid #2f4258; border-radius: 1.1rem; overflow: hidden; box-shadow: 0 25px 80px rgb(0 0 0 / .5); }
.real-gallery::backdrop { background: rgb(0 0 0 / .82); backdrop-filter: blur(3px); }
.real-gallery[open] { display: block; }
.real-gallery-shell { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.real-gallery-header { flex: 0 0 auto; display: flex; gap: 1rem; justify-content: space-between; align-items: flex-start; padding: clamp(1rem, 2.5vw, 1.7rem) clamp(1rem, 2.5vw, 2rem) .7rem; }
.real-gallery-eyebrow { display: block; margin-bottom: .25rem; color: #ffcf55; font-size: .72rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.real-gallery-header h2 { margin: 0; color: #fff; font-size: clamp(1.55rem, 2.7vw, 2.35rem); line-height: 1.08; }
.real-gallery-header p { margin: .55rem 0 0; color: #b9c9da; font-size: .85rem; }
.real-gallery-close { flex: 0 0 auto; width: 2.5rem; height: 2.5rem; border: 1px solid #526278; border-radius: 50%; color: #fff; background: #23374e; font-size: 1.65rem; line-height: 1; cursor: pointer; }
.real-gallery-close:hover, .real-gallery-arrow:hover { background: #3b536d; }
.real-gallery-stage { display: grid; grid-template-columns: 3.3rem minmax(0, 1fr) 3.3rem; gap: .4rem; align-items: center; flex: 1 1 auto; min-height: 0; padding: .4rem clamp(.4rem, 1.8vw, 1.7rem); }
.real-gallery-arrow { display: grid; place-items: center; width: 2.8rem; height: 3.8rem; margin: auto; border: 1px solid #4b5d70; border-radius: .7rem; background: #24394f; color: #fff; font-size: 2.25rem; cursor: pointer; }
.real-gallery-figure { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; height: 100%; min-height: 0; margin: 0; }
.real-gallery-figure img { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(100% - 2.2rem); object-fit: contain; border-radius: .35rem; background: #15263c; }
.real-gallery-figure figcaption { padding: .55rem 0 .1rem; color: #e5edf6; font-size: .82rem; line-height: 1.2; text-align: center; }
.real-gallery-meta { display: flex; justify-content: space-between; gap: .7rem; flex: 0 0 auto; padding: .25rem clamp(1rem, 2.5vw, 2rem) .6rem; color: #9fafc1; font-size: .73rem; }
.real-gallery-meta [data-real-gallery-counter] { color: #ffcf55; font-weight: 850; }
.real-gallery-thumbs { display: flex; align-items: center; gap: .5rem; padding: .65rem clamp(.7rem, 2.5vw, 2rem) 1rem; flex: 0 0 auto; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #6c7d91 #192d44; border-top: 1px solid #35485e; }
.real-gallery-thumb { display: grid; place-items: center; flex: 0 0 auto; width: 4.2rem; height: 3.6rem; padding: .16rem; border: 2px solid transparent; border-radius: .45rem; background: #25394f; cursor: pointer; }
.real-gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.real-gallery-thumb[aria-pressed="true"] { border-color: #ffcf55; background: #3e4f62; }
.real-gallery-thumb:focus-visible, .real-gallery-arrow:focus-visible, .real-gallery-close:focus-visible { outline: 3px solid #ffcf55; outline-offset: 3px; }
@media (max-width: 700px) {
  .how-real-button { margin-left: 0; width: 100%; justify-content: center; }
  .real-gallery { width: 100vw; max-width: none; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; }
  .real-gallery-header { padding: .85rem .9rem .55rem; }
  .real-gallery-eyebrow { font-size: .64rem; }
  .real-gallery-header h2 { font-size: 1.6rem; }
  .real-gallery-header p { font-size: .75rem; }
  .real-gallery-stage { grid-template-columns: 2.35rem minmax(0, 1fr) 2.35rem; gap: 0; padding: .2rem .25rem; }
  .real-gallery-arrow { width: 2.1rem; height: 3.3rem; font-size: 2rem; }
  .real-gallery-figure figcaption { font-size: .72rem; }
  .real-gallery-meta { padding: .35rem .9rem; }
  .real-gallery-meta > span:last-child { display: none; }
  .real-gallery-thumbs { padding: .45rem .6rem .65rem; }
  .real-gallery-thumb { width: 3.7rem; height: 3.4rem; }
}
@media (prefers-reduced-motion: reduce) { .how-real-button { transition: none; } }
