/* Studio 55 — vitral premium del Calypso Bulevar.
 * Steampunk cálido y elegante: carbón + azules profundos (~45%),
 * beige/crema (~30%), bronce/latón/cobre (~20%), rojo Studio solo como
 * acento (~5%). Sin engranajes girando por todas partes: un solo mecanismo
 * lento de fondo y detalles de plano técnico. */

:root {
  --carbon: #171717;
  --petroleo: #1E3D4A;
  --noche: #142830;
  --beige: #D8C5A5;
  --crema: #F0E5D1;
  --bronce: #986A3C;
  --laton: #B08D57;
  --cobre: #75452D;
  --rojo: #B72B20;
  --display: "Bahnschrift", "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  --texto: "Segoe UI", Roboto, system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--texto);
  background: var(--crema);
  color: var(--carbon);
  line-height: 1.55;
}

/* ---------- hero: carbón a azul noche ---------- */

.hero {
  position: relative;
  overflow: hidden;
  /* real photo (backlit metalwork + warm light) under a deep charcoal/blue
   * wash so text stays readable and the palette stays in charge */
  background:
    radial-gradient(ellipse at 70% 20%, rgba(176, 141, 87, .14), transparent 55%),
    linear-gradient(165deg, rgba(23, 23, 23, .93) 0%, rgba(20, 40, 48, .9) 55%, rgba(30, 61, 74, .88) 130%),
    url("img/hero.jpg") center 35% / cover no-repeat var(--carbon);
  color: var(--crema);
  padding-bottom: 60px;
}

.logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 10px;
  border: 1px solid rgba(176, 141, 87, .5);
}

.gear-bg {
  position: absolute;
  right: -120px;
  top: -100px;
  width: 420px;
  height: 420px;
  color: var(--laton);
  opacity: .12;
  pointer-events: none;
}

.gear { animation: girar 140s linear infinite; transform-origin: 50% 50%; }

@keyframes girar { to { transform: rotate(360deg); } }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px min(6vw, 48px);
  border-bottom: 1px solid rgba(176, 141, 87, .25);
}

.marca {
  font-family: var(--display);
  letter-spacing: .28em;
  font-size: 15px;
  color: var(--beige);
}

.marca em, .pie em { font-style: normal; color: var(--rojo); font-weight: 700; }

.volver {
  color: var(--laton);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.volver:hover { color: var(--crema); }

.hero-core {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px 0;
  text-align: center;
}

/* dial técnico alrededor del 55 */
.dial {
  position: relative;
  width: min(300px, 68vw);
  margin: 0 auto 26px;
  color: var(--laton);
}

.dial svg { width: 100%; display: block; opacity: .85; }

.cincuenta-cinco {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: clamp(84px, 22vw, 130px);
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--rojo);
  text-shadow: 0 0 22px rgba(183, 43, 32, .0);
  animation: encender 2.2s ease-out .3s forwards;
}

@keyframes encender {
  40% { text-shadow: 0 0 8px rgba(183, 43, 32, .25); }
  100% { text-shadow: 0 0 26px rgba(183, 43, 32, .38); }
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(34px, 7vw, 58px);
  letter-spacing: .3em;
  margin-right: -.3em;
  color: var(--crema);
}

.sub {
  margin-top: 10px;
  color: var(--beige);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: clamp(11px, 2.6vw, 14px);
}

.frase {
  margin: 22px auto 0;
  max-width: 460px;
  color: rgba(240, 229, 209, .82);
  font-size: 17px;
  font-style: italic;
}

.acciones {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  font-family: var(--display);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 13px;
  text-decoration: none;
  border-radius: 3px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn.latón {
  color: var(--beige);
  border: 1px solid var(--laton);
  background: linear-gradient(180deg, rgba(176, 141, 87, .12), rgba(176, 141, 87, .03));
}

.btn.latón:hover { background: rgba(176, 141, 87, .22); }

.btn.rojo {
  color: var(--crema);
  background: var(--rojo);
  border: 1px solid rgba(240, 229, 209, .25);
}

.btn.rojo:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(183, 43, 32, .35); }

.btn.grande { padding: 16px 34px; margin-top: 34px; }

/* ---------- divisores mecánicos ---------- */

.divisor {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 min(8vw, 70px);
  background: transparent;
}

.hero .divisor { margin-top: 54px; }

.divisor span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--laton), transparent); }

.divisor i {
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--laton);
  border-radius: 50%;
  position: relative;
}

.divisor i::after {
  content: "";
  position: absolute;
  inset: 2.5px;
  background: var(--bronce);
  border-radius: 50%;
}

.divisor.claro { padding-block: 34px; background: var(--crema); }

/* ---------- la carta: crema, marcos de latón, remaches ---------- */

.carta { background: var(--crema); padding: 70px min(6vw, 60px) 50px; text-align: center; }

.kicker {
  font-family: var(--display);
  letter-spacing: .3em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--bronce);
}

.carta h2, .espacio h2, .visita h2 {
  font-family: var(--display);
  font-size: clamp(26px, 5vw, 40px);
  letter-spacing: .06em;
  margin-top: 10px;
}

.carta .intro, .espacio .intro {
  max-width: 520px;
  margin: 14px auto 0;
  color: rgba(23, 23, 23, .72);
}

.carta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  max-width: 1020px;
  margin: 40px auto 0;
}

.pieza {
  position: relative;
  text-align: left;
  background: linear-gradient(170deg, #fdf8ee, var(--crema));
  border: 1px solid var(--laton);
  border-radius: 4px;
  padding: 26px 22px 22px;
  box-shadow: 0 14px 34px rgba(117, 69, 45, .12);
}

.plato {
  aspect-ratio: 16 / 10;
  margin: 0 0 16px;
  border-radius: 3px;
  border: 1px solid rgba(152, 106, 60, .5);
  background-size: cover;
  background-position: center;
}

/* remaches discretos en las esquinas */
.pieza::before, .pieza::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bronce);
  box-shadow: 0 1px 1px rgba(23, 23, 23, .35) inset;
}

.pieza::before { top: 8px; left: 8px; }
.pieza::after { top: 8px; right: 8px; }

.medida {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--cobre);
  border-bottom: 1px solid rgba(152, 106, 60, .4);
  padding-bottom: 6px;
}

.pieza h3 { margin: 12px 0 6px; font-family: var(--display); letter-spacing: .08em; }

.pieza p { color: rgba(23, 23, 23, .7); font-size: 14.5px; }

.nota-carta { margin-top: 26px; font-size: 13px; color: rgba(23, 23, 23, .55); }

/* ---------- el espacio: azul petróleo, galería con marcos ---------- */

.espacio {
  background: linear-gradient(180deg, var(--petroleo), var(--noche));
  color: var(--crema);
  padding: 70px min(6vw, 60px) 60px;
  text-align: center;
}

.espacio .intro { color: rgba(240, 229, 209, .75); }

.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  max-width: 1020px;
  margin: 38px auto 0;
}

.galeria.chica { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); max-width: 560px; }

.marco {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--laton);
  border-radius: 4px;
  background-color: rgba(240, 229, 209, .06);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

/* fina línea interior de latón sobre la foto, como junquillo del marco */
.marco::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(176, 141, 87, .45);
  border-radius: 2px;
  pointer-events: none;
}

.marco figcaption {
  position: relative;
  width: 100%;
  padding: 8px 12px;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--beige);
  background: linear-gradient(0deg, rgba(20, 40, 48, .85), transparent);
  text-align: left;
}

/* ---------- carrusel: todas las fotos, completas y grandes ---------- */

.carrusel {
  position: relative;
  max-width: 1020px;
  margin: 38px auto 0;
}

.c-pista {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border: 1px solid var(--laton);
  border-radius: 4px;
  background: var(--noche);
  scrollbar-width: none;
}

.c-pista::-webkit-scrollbar { display: none; }

.c-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
}

.c-slide img {
  width: 100%;
  height: min(64vh, 540px);
  object-fit: contain;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(176, 141, 87, .08), transparent 70%),
    var(--noche);
  display: block;
}

.c-slide figcaption {
  padding: 10px 14px;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--beige);
  border-top: 1px solid rgba(176, 141, 87, .35);
  background: rgba(23, 23, 23, .55);
  text-align: center;
}

.c-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--laton);
  background: rgba(23, 23, 23, .65);
  color: var(--beige);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease;
}

.c-btn:hover { background: rgba(152, 106, 60, .55); }

.c-prev { left: 10px; }
.c-next { right: 10px; }

.c-puntos {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.c-puntos i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--laton);
  background: transparent;
  cursor: pointer;
  transition: background .2s ease;
}

.c-puntos i.activo { background: var(--laton); }

.c-nota {
  margin: 18px auto 0;
  max-width: 560px;
  text-align: center;
  font-size: 13px;
  color: rgba(240, 229, 209, .6);
}

@media (max-width: 560px) {
  .c-slide img { height: 58vh; }
  .c-btn { width: 38px; height: 38px; font-size: 22px; }
}

.momentos {
  max-width: 640px;
  margin: 36px auto 0;
  text-align: left;
  border: 1px solid rgba(176, 141, 87, .35);
  border-radius: 4px;
  padding: 16px 20px;
  background: rgba(20, 40, 48, .45);
}

.momentos summary {
  font-family: var(--display);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--laton);
  cursor: pointer;
}

.momentos p { margin: 12px 0; color: rgba(240, 229, 209, .75); font-size: 14px; }

/* ---------- visita: carbón ---------- */

.visita {
  background: var(--carbon);
  color: var(--crema);
  padding: 70px min(6vw, 60px) 70px;
  text-align: center;
}

.visita-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  max-width: 900px;
  margin: 38px auto 0;
}

.dato {
  border: 1px solid rgba(176, 141, 87, .3);
  border-radius: 4px;
  padding: 22px 18px;
  background: linear-gradient(180deg, rgba(176, 141, 87, .07), transparent);
}

.dato h3 {
  font-family: var(--display);
  letter-spacing: .2em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--laton);
  margin-bottom: 10px;
}

.dato p { color: rgba(240, 229, 209, .8); font-size: 15px; }

.dato a { color: var(--beige); }

.dato small { color: rgba(240, 229, 209, .5); }

/* ---------- pie ---------- */

.pie {
  background: var(--noche);
  color: rgba(240, 229, 209, .6);
  text-align: center;
  padding: 26px 20px;
  font-size: 13px;
  border-top: 1px solid rgba(176, 141, 87, .25);
}

.pie p:first-child { font-family: var(--display); letter-spacing: .24em; color: var(--beige); }

.pie a { color: var(--laton); }

/* ---------- accesibilidad y movimiento ---------- */

@media (prefers-reduced-motion: reduce) {
  .gear { animation: none; }
  .cincuenta-cinco { animation: none; text-shadow: 0 0 18px rgba(183, 43, 32, .3); }
  html { scroll-behavior: auto; }
}

@media (max-width: 560px) {
  .gear-bg { width: 300px; height: 300px; right: -140px; }
  .acciones .btn { width: 100%; }
}
