:root { --ink: #292929; --accent: #ff9800; --line: #dedfe2; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; color: var(--ink); font: 1rem/1.65 system-ui, sans-serif; background: #fff; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #e87500; outline-offset: 3px; }
.wrap { width: min(78rem, calc(100% - clamp(2rem, 8vw, 8rem))); margin-inline: auto; }
.site-header { background: #fff; border-bottom: 3px solid var(--accent); }
.mast { padding-block: .6rem; }
.brand img { display: block; width: clamp(8rem, 18vw, 12rem); height: auto; }
main { position: relative; display: grid; }
.hero { position: relative; isolation: isolate; display: grid; align-items: center; color: white; background: #393939; }
.hero-photo, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-photo { object-fit: cover; object-position: center 54%; }
.hero::after { content: ""; background: linear-gradient(85deg, #151515ed, #151515a0 38%, #15151512 80%), linear-gradient(0deg, #12121263, transparent 60%); }
.hero-copy { padding-block: clamp(.75rem, 5dvh, 3.5rem); }
h1, h2 { margin: 0; line-height: 1.05; letter-spacing: -.047em; }
h1 { font-size: clamp(1.2rem, 7.15vw, 6rem); }
h1 span { display: block; white-space: nowrap; }
.hero p { max-width: 40ch; font-size: clamp(1.08rem, 2vw, 1.3rem); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.button { display: inline-block; padding: .75rem 1.15rem; border: 1px solid transparent; border-radius: .35rem; background: linear-gradient(180deg, var(--accent), #f47e0c); color: #212121; font: inherit; font-weight: 750; cursor: pointer; }
.button:hover { background: #ffb238; }
.button.secondary { border-color: #ffffffa8; background: #17171750; color: white; }
.button.secondary:hover { background: #171717a0; }
.contact-bar { background: #343434; color: white; border-top: 2px solid var(--accent); }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .2rem 1rem; padding-block: .45rem; font-size: .85rem; line-height: 1.35; text-align: center; }
.photo-strip { position: absolute; inset: auto 0 0; z-index: 1; width: 100%; padding: .6rem 0 .35rem; border-top: 2px solid var(--accent); background: #202020f5; color: white; }
.strip-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.strip-heading h2 { font-size: 1.25rem; }
.strip-track, .viewer-layout { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .5rem; }
.strip-track { padding: .3rem .65rem 0; }
.thumbnails { display: flex; gap: .5rem; overflow-x: auto; padding: .3rem .25rem .5rem; scroll-snap-type: x proximity; }
.thumbnails button { flex: 0 0 auto; scroll-snap-align: start; padding: 0; border: 0; border-radius: .3rem; background: #353535; cursor: zoom-in; }
.thumbnails img { display: block; width: auto; height: clamp(2.75rem, 15dvh, 8.5rem); aspect-ratio: 4 / 3; object-fit: cover; border-radius: inherit; }
.gallery-button { min-width: 2.5rem; min-height: 2.5rem; padding: 0 .35rem; border: 0; border-radius: .35rem; background: var(--accent); color: var(--ink); font: inherit; font-size: 1.65rem; line-height: 1; cursor: pointer; }
#visor { width: min(96vw, 76rem); max-height: 96dvh; padding: .6rem; border: 0; border-radius: .55rem; background: #292929; color: white; }
#visor::backdrop { background: #151515e8; }
#cerrar-visor { display: block; margin: 0 0 .45rem auto; }
.viewer-layout figure { min-width: 0; margin: 0; text-align: center; }
#foto-ampliada { display: block; width: 100%; height: min(74dvh, calc(100dvh - 8rem)); object-fit: contain; touch-action: pan-y pinch-zoom; }
#pie-ampliado { margin-top: .25rem; }
@media (max-width: 47rem) {
  .hero::after { background: linear-gradient(0deg, #151515e6, #1515159c 48%, #1515150f 96%); }
  .hero-photo { object-position: 57% center; }
}
#chat {
  position: fixed;
  inset: auto clamp(.5rem, 3vw, 2rem) clamp(.5rem, 3vw, 2rem) auto;
  width: min(25rem, calc(100% - 1rem));
  max-height: calc(100dvh - 1rem);
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: .85rem;
  box-shadow: 0 14px 45px #0004;
}
#chat::backdrop { background: #17171742; }
.chat-header { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .75rem 1rem; background: #343434; color: white; border-bottom: 2px solid var(--accent); }
#chat-cerrar { background: transparent; color: white; border: 0; font-size: 1.6rem; cursor: pointer; padding-inline: .4rem; }
#chat-form { padding: .85rem 1rem; display: grid; gap: .65rem; }
.chat-bubble { margin: 0; padding: .65rem .8rem; border-radius: .7rem .7rem .7rem .15rem; background: #f2f3f5; }
.chat-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
#chat-form label { display: grid; gap: .2rem; min-width: 0; font-weight: 650; font-size: .875rem; }
#chat-form input, #chat-form textarea { width: 100%; padding: .42rem .5rem; border: 1px solid #a8a8aa; border-radius: .3rem; font: inherit; }
#chat-form textarea { resize: vertical; }
#chat-form .button { justify-self: end; cursor: pointer; }
#chat-estado { margin: 0; font-size: .875rem; }
#chat-estado:empty { display: none; }
