/* ===========================================================
   Centrojoya — Joyería en Cuenca
   Dirección de arte: editorial. Paleta anclada al packaging real
   (azul porcelana + wordmark bronce) + oro cálido. Firma: motivo "vitrina/arco".
   =========================================================== */

:root {
  --pearl:      #F3F1ED;   /* base porcelana (cool, no crema) */
  --pearl-2:    #EAE7E1;
  --ink:        #1B2431;   /* tinta azul-negra */
  --ink-soft:   #46505E;
  --blue:       #8AA6BB;   /* azul polvo (caja / expositores) */
  --blue-deep:  #5B7B90;
  --blue-tint:  #DDE7ED;   /* paneles suaves */
  --blue-tint2: #CFDDE5;
  --gold:       #A8823F;   /* oro cálido (acentos, líneas) */
  --gold-lt:    #C9A96A;
  --taupe:      #7C7266;   /* bronce del wordmark */
  --line:       rgba(27,36,49,.13);
  --line-gold:  rgba(168,130,63,.42);
  --white:      #FCFBF9;
  --shadow:     0 24px 60px -30px rgba(27,36,49,.42);
  --ease:       cubic-bezier(.22,.61,.36,1);
  --serif:      "Cormorant Garamond", Georgia, serif;
  --sans:       "Manrope", system-ui, -apple-system, sans-serif;
  --wrap:       1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--pearl);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 26px; }

/* ---------- tipografía / helpers ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; line-height: 1.06; margin: 0; }
.section__title {
  font-size: clamp(1.85rem, 1rem + 2.9vw, 3.15rem);
  font-weight: 500;
  color: var(--ink);
}
.section__title--center { text-align: center; max-width: 16ch; margin-inline: auto; }
em { font-style: italic; color: var(--gold); }

.eyebrow {
  display: flex; align-items: center; gap: .7rem;
  font-family: var(--sans);
  font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--blue-deep);
  margin: 0 0 1.2rem;
}
.eyebrow__line { height: 1px; width: 2.4rem; background: var(--gold); flex: 0 0 auto; }
.eyebrow--center { justify-content: center; text-align: center; }
.eyebrow--center .eyebrow__line { width: 2rem; }

.section__head { margin-bottom: clamp(2.4rem, 5vw, 4rem); }

.link-underline {
  display: inline-block; margin-top: 1.4rem;
  font-weight: 600; font-size: .95rem; color: var(--ink);
  border-bottom: 1px solid var(--gold); padding-bottom: 3px;
  transition: color .25s, border-color .25s;
}
.link-underline:hover { color: var(--gold); }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--sans); font-weight: 600; font-size: .92rem; letter-spacing: .01em;
  padding: .85rem 1.6rem; border-radius: 2px; border: 1px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn--sm { padding: .55rem 1rem; font-size: .85rem; }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: #10161f; transform: translateY(-2px); }
.btn--gold { background: transparent; color: var(--ink); border-color: var(--line-gold); }
.btn--gold:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.1rem 0;
}
.site-header.scrolled {
  background: rgba(243,241,237,.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding: .7rem 0;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; }

.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); }
.brand__mark { color: var(--gold); display: inline-flex; }
.brand__name {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600;
  letter-spacing: .005em;
}

.nav { display: flex; gap: 2rem; }
.nav a {
  position: relative; font-size: .9rem; font-weight: 500; color: var(--ink-soft);
  padding: .2rem 0; transition: color .25s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--gold); transition: width .3s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a.active::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: .9rem; }

.burger { display: none; flex-direction: column; gap: 5px; width: 30px; height: 24px; justify-content: center; background: none; border: 0; cursor: pointer; }
.burger span { height: 1.5px; width: 100%; background: var(--ink); transition: transform .3s, opacity .3s; }

/* =========================================================
   HERO  (editorial-serif + arco firma)
   ========================================================= */
.hero { position: relative; padding: clamp(7rem, 16vh, 10rem) 0 clamp(3rem, 6vw, 5rem); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 80% at 100% 0%, var(--blue-tint) 0%, transparent 55%),
    linear-gradient(180deg, var(--white) 0%, var(--pearl) 60%);
}
.hero__grid {
  display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero__title {
  font-size: clamp(2.9rem, 1.4rem + 5.6vw, 5.6rem);
  font-weight: 500; letter-spacing: -.02em; line-height: 1.02;
  margin: .2rem 0 1.4rem;
}
.hero__lead {
  font-size: 1.12rem; color: var(--ink-soft); max-width: 46ch; margin: 0 0 2rem;
}
.hero__cta { display: flex; gap: .8rem; flex-wrap: wrap; }

.hero__status {
  display: inline-flex; align-items: center; gap: .55rem;
  margin-top: 2rem; font-size: .88rem; font-weight: 500; color: var(--ink-soft);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-deep); flex: 0 0 auto; }
.dot.open { background: #3f9d6a; box-shadow: 0 0 0 4px rgba(63,157,106,.16); }
.dot.closed { background: #c07a5b; box-shadow: 0 0 0 4px rgba(192,122,91,.14); }

/* --- firma: arco / vitrina --- */
.hero__media { position: relative; }
.arch {
  position: relative;
  border-radius: 999px 999px 8px 8px;
  overflow: hidden;
  aspect-ratio: 3 / 4.05;
  box-shadow: var(--shadow);
  background: var(--blue-tint);
  will-change: transform;
}
.arch::after {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  border: 1px solid var(--line-gold);
  box-shadow: inset 0 0 0 6px rgba(252,251,249,.5);
  pointer-events: none;
}
.arch img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 60%;
  will-change: transform;
}
.arch__caption {
  position: absolute; left: 50%; bottom: -.9rem; transform: translateX(-50%);
  background: var(--white); border: 1px solid var(--line);
  font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--taupe); padding: .5rem 1.1rem; border-radius: 2px; white-space: nowrap;
  box-shadow: 0 10px 24px -14px rgba(27,36,49,.4);
}

/* =========================================================
   TRUST STRIP
   ========================================================= */
.trust { border-block: 1px solid var(--line); background: var(--white); }
.trust__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: clamp(1.6rem, 3vw, 2.4rem) 26px;
}
.trust__item { display: flex; flex-direction: column; gap: .25rem; text-align: center; flex: 1; }
.trust__num {
  font-family: var(--serif); font-size: clamp(1.7rem, 1rem + 1.6vw, 2.5rem); font-weight: 600;
  color: var(--ink); line-height: 1; display: inline-flex; align-items: baseline; justify-content: center; gap: .12em;
}
.trust__num--word { font-style: italic; color: var(--gold); }
.trust__star { color: var(--gold-lt); font-size: .7em; }
.trust__label { font-size: .8rem; color: var(--ink-soft); font-weight: 500; }
.trust__sep { width: 1px; height: 40px; background: var(--line); flex: 0 0 auto; }

/* =========================================================
   LA CASA / ABOUT
   ========================================================= */
.casa { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.casa__grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.casa__text p { color: var(--ink-soft); margin: 0 0 1.1rem; max-width: 52ch; }
.casa__text .section__title { margin-bottom: 1.6rem; }

.frame { position: relative; border-radius: 3px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 4.4; }
.frame::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--line-gold); box-shadow: inset 0 0 0 7px rgba(252,251,249,.55); pointer-events: none; }
.frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }

/* =========================================================
   SERVICIOS
   ========================================================= */
.servicios { padding: clamp(4.5rem, 9vw, 7.5rem) 0; background: var(--white); border-block: 1px solid var(--line); }
.serv__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.serv {
  background: var(--white); padding: clamp(1.8rem, 3vw, 2.6rem);
  transition: background .3s;
}
.serv:hover { background: var(--pearl); }
.serv__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-gold); color: var(--gold);
  font-size: 1.15rem; margin-bottom: 1.2rem;
}
.serv h3 { font-size: 1.42rem; margin-bottom: .55rem; font-weight: 600; }
.serv p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* =========================================================
   MARCAS (marquee)
   ========================================================= */
.marcas { padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(4.5rem, 9vw, 7rem); overflow: hidden; }
.marcas__head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.marquee { position: relative; width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: inline-flex; align-items: center; gap: 2.4rem; white-space: nowrap; animation: marquee 34s linear infinite; }
.marquee__track span {
  font-family: var(--serif); font-size: clamp(1.7rem, 1rem + 2vw, 2.8rem); font-weight: 500;
  color: var(--ink); letter-spacing: .01em;
}
.marquee__dot { color: var(--gold-lt) !important; font-size: .8rem !important; font-family: var(--sans) !important; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   GALERÍA (bento + arco eco)
   ========================================================= */
.galeria { padding: clamp(4.5rem, 9vw, 7.5rem) 0; background: var(--blue-tint); }
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
}
.shot {
  margin: 0; position: relative; overflow: hidden; border-radius: 3px; cursor: pointer;
  background: var(--pearl-2); box-shadow: 0 14px 34px -22px rgba(27,36,49,.5);
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.shot:hover img { transform: scale(1.06); }
.shot::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(252,251,249,.5); border-radius: inherit; pointer-events: none; }
.shot--tall { grid-row: span 2; }
.shot--wide { grid-column: span 2; }
.shot--arch { border-radius: 999px 999px 3px 3px; }
.shot--arch img { object-position: center 58%; }

/* =========================================================
   RESEÑAS
   ========================================================= */
.resenas { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.carousel { max-width: 780px; margin-inline: auto; }
.quote { margin: 0; padding: 0 clamp(.5rem, 3vw, 2rem); text-align: center; }
.quote__stars { color: var(--gold-lt); letter-spacing: .28em; font-size: 1.05rem; margin: 0 0 1.3rem; }
.quote__text {
  font-family: var(--serif); font-size: clamp(1.3rem, .9rem + 1.4vw, 1.85rem);
  font-weight: 500; font-style: italic; line-height: 1.4; color: var(--ink); margin: 0 0 1.6rem;
}
.quote__author { font-family: var(--sans); font-style: normal; font-weight: 600; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-deep); }
.carousel__nav { display: flex; align-items: center; justify-content: center; gap: 1.4rem; margin-top: 2.4rem; }
.carousel__nav button[data-prev], .carousel__nav button[data-next] {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--white); color: var(--ink); font-size: 1.3rem; cursor: pointer; line-height: 1;
  transition: border-color .25s, color .25s;
}
.carousel__nav button:hover { border-color: var(--gold); color: var(--gold); }
.dots { display: flex; gap: .5rem; }
.dot-btn { width: 8px; height: 8px; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; padding: 0; transition: background .25s, transform .25s; }
.dot-btn.active { background: var(--gold); transform: scale(1.3); }

/* =========================================================
   VISÍTANOS
   ========================================================= */
.visita { padding: clamp(4.5rem, 9vw, 7.5rem) 0; background: var(--white); border-top: 1px solid var(--line); }
.visita__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: stretch; }
.visita__lead { color: var(--ink-soft); max-width: 44ch; margin: 0 0 1.6rem; }
.visita__status { display: inline-flex; align-items: center; gap: .55rem; font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: 1.8rem; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 40px; }
.visita__list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.visita__list li { display: flex; flex-direction: column; padding: .9rem 0; border-top: 1px solid var(--line); }
.visita__list li:last-child { border-bottom: 1px solid var(--line); }
.visita__k { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-deep); margin-bottom: .2rem; }
.visita__v { font-size: 1.05rem; color: var(--ink); }
.visita__v a { border-bottom: 1px solid var(--line-gold); }

.hours { width: 100%; border-collapse: collapse; margin: 0 0 1.8rem; font-size: .94rem; }
.hours .row th { text-align: left; font-weight: 500; color: var(--ink-soft); padding: .5rem .4rem; font-family: var(--sans); }
.hours .row td { text-align: right; color: var(--ink); padding: .5rem .4rem; }
.hours .row.today { background: var(--blue-tint); }
.hours .row.today th, .hours .row.today td { color: var(--ink); font-weight: 700; }
.hours .row.today th::after { content: " · hoy"; color: var(--gold); font-weight: 600; }
.closed-day { color: var(--blue-deep) !important; }
.visita__cta { display: flex; gap: .8rem; flex-wrap: wrap; }

.visita__map { border-radius: 4px; overflow: hidden; box-shadow: var(--shadow); min-height: 420px; border: 1px solid var(--line); }
.visita__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; filter: grayscale(.2) contrast(1.02); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--ink); color: rgba(252,251,249,.72); }
.footer__top { display: grid; grid-template-columns: 1.3fr 2fr; gap: clamp(2rem, 5vw, 4rem); padding: clamp(3.5rem, 6vw, 5rem) 26px clamp(2.5rem, 4vw, 3.5rem); }
.brand--footer { color: var(--white); }
.brand--footer .brand__mark { color: var(--gold-lt); }
.footer__tag { margin: 1rem 0 0; max-width: 34ch; font-size: .92rem; line-height: 1.6; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer__col { display: flex; flex-direction: column; gap: .6rem; }
.footer__col h4 { font-family: var(--sans); font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-lt); margin: 0 0 .4rem; }
.footer__col a, .footer__col span { font-size: .92rem; color: rgba(252,251,249,.72); transition: color .25s; }
.footer__col a:hover { color: var(--white); }
.footer__bottom {
  display: flex; align-items: center; justify-content: flex-start; gap: .6rem 1.6rem; flex-wrap: wrap;
  padding: 1.4rem 26px; border-top: 1px solid rgba(252,251,249,.12);
  font-size: .82rem;
}
.footer__bottom p { margin: 0; }
.footer__legal { display: flex; gap: 1.4rem; }
.footer__legal::before { content: "·"; margin-right: .8rem; color: rgba(252,251,249,.4); }
.footer__legal a { color: rgba(252,251,249,.6); }
.footer__legal a:hover { color: var(--white); }

/* =========================================================
   MOBILE CALL BAR
   ========================================================= */
.callbar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; gap: 1px; background: var(--line); box-shadow: 0 -6px 24px -12px rgba(27,36,49,.4); }
.callbar__btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .95rem; font-size: .92rem; font-weight: 600; }
.callbar__btn--primary { background: var(--ink); color: var(--white); }
.callbar__btn--ghost { background: var(--white); color: var(--ink); }

/* =========================================================
   LIGHTBOX (encima del comportamiento del runtime)
   ========================================================= */
.lightbox img { max-width: 90vw; max-height: 86vh; border-radius: 4px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); }
.lightbox__close { position: absolute; top: 20px; right: 26px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.3); color: #fff; font-size: 1.6rem; cursor: pointer; line-height: 1; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 940px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 82vw);
    background: var(--white); flex-direction: column; gap: 1.4rem;
    padding: 6rem 2rem 2rem; transform: translateX(100%); transition: transform .35s var(--ease);
    box-shadow: -20px 0 60px -30px rgba(27,36,49,.5); z-index: 99;
  }
  .nav.open { transform: translateX(0); }
  .nav a { font-size: 1.15rem; color: var(--ink); }
  .burger { display: flex; }
  .header__actions .btn--gold span { display: none; }
  .header__actions .btn--gold { padding: .55rem .7rem; }

  .hero__grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero__media { max-width: 400px; margin-inline: auto; width: 100%; }
  .casa__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .casa__media { max-width: 440px; }
  .serv__grid { grid-template-columns: repeat(2, 1fr); }
  .visita__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .trust__row { flex-wrap: wrap; gap: 1.3rem 0; }
  .trust__item { flex: 0 0 50%; }
  .trust__sep { display: none; }
  .serv__grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .shot--wide { grid-column: span 2; }
  .shot--tall { grid-row: span 2; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .callbar { display: flex; }
  body { padding-bottom: 58px; }
  .callbar { padding-bottom: env(safe-area-inset-bottom); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
}
