/* Centenario � editorial kraft refinado */

:root {
  --bg: #F2EBE0;
  --bg-deep: #E6DDD0;
  --ink: #241914;
  --ink-soft: #6A5B4C;
  --line: #D6CBB8;
  --paper: #FAF6EF;
  --accent: #7A5A3A;
  --oliva: #5A6648;
  --wa: #25D366;
  --wa-dark: #1EAE54;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Outfit', system-ui, sans-serif;
  --w: min(100% - 2rem, 520px);
  --bar: 58px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar) + 0.5rem);
}

body {
  font-family: var(--sans);
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100dvh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  background:
    linear-gradient(180deg, rgba(250, 246, 239, 0.55) 0%, transparent 28%),
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(122, 90, 58, 0.05), transparent 55%);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5000;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--ink); }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--oliva); outline-offset: 2px; }

.wrap {
  width: var(--w);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* Topbar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--bar);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  color: var(--ink);
}

.brand:hover { color: var(--ink); }

.brand img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  transform: rotate(-3deg);
}

.brand__text {
  font-family: var(--serif);
  font-size: clamp(0.72rem, 2.6vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
  white-space: normal;
}

.nav {
  display: flex;
  gap: 0.85rem;
  flex-shrink: 0;
}

.nav a {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav a:hover { color: var(--ink); }

/* Hero � parallax en dos tiempos: logo sticky, foto m�s lenta */

.hero {
  position: relative;
  z-index: 1;
  background: var(--bg);
  overflow: hidden;
}

.hero__copy {
  position: sticky;
  top: calc(var(--bar) + 1.25vh);
  z-index: 3;
  width: var(--w);
  max-width: 900px;
  margin: 0 auto -17rem;
  padding: 0.85rem 0 0;
  text-align: center;
  color: #F7F0E4;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.3;
  pointer-events: none;
  will-change: transform;
}

.hero__frame {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  line-height: 0;
  z-index: 1;
}

.hero__photo {
  width: 100%;
  height: auto;
  display: block;
  will-change: transform;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(20, 14, 10, 0.55) 0%,
    rgba(20, 14, 10, 0.22) 42%,
    rgba(20, 14, 10, 0.28) 100%
  );
  pointer-events: none;
}

.hero__seal-wrap {
  width: 128px;
  height: 128px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: #FAF6EF;
  display: grid;
  place-items: center;
  transform: rotate(-2deg);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(36, 25, 20, 0.08);
  animation: stampIn 0.75s ease both;
}

.hero__seal {
  width: 110px;
  height: 110px;
}

@keyframes stampIn {
  from { opacity: 0; transform: rotate(-8deg) scale(1.06); }
  to { opacity: 1; transform: rotate(-2deg) scale(1); }
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 5.2vw, 2.15rem);
  font-weight: 600;
  line-height: 1.12;
  margin-bottom: 0.35rem;
  text-wrap: balance;
  color: #FFF9F0;
  letter-spacing: 0.01em;
}

.hero__place {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 3.2vw, 1.25rem);
  font-weight: 500;
  font-style: italic;
  color: rgba(247, 240, 228, 0.92);
  margin-bottom: 0.45rem;
}

.hero__since {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(214, 224, 196, 0.95);
}

.btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.4rem;
  background: var(--wa);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.btn-wa:hover {
  background: var(--wa-dark);
  color: #fff;
}

/* Contenido */

.panel {
  position: relative;
  z-index: 2;
  background: var(--bg);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -6px 24px rgba(36, 25, 20, 0.08);
  margin-top: -0.75rem;
  overflow: hidden;
}

/* Product grid � full shots, no crop */

.gallery {
  padding: 1.35rem 0 0.35rem;
}

.shotgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 0 0.65rem 0.35rem;
  max-width: 720px;
  margin-inline: auto;
}

.shotgrid img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

@media (min-width: 600px) {
  .shotgrid {
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding-inline: 1rem;
  }
}

/* Featured branches */

.central {
  display: grid;
  gap: 0;
  margin-bottom: 1.1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.central--text {
  padding: 1.05rem 0 1.15rem;
  margin-bottom: 1rem;
}

.central--text .central__actions {
  margin-top: 0.85rem;
}

.central__media {
  line-height: 0;
  overflow: hidden;
  max-height: 132px;
}

.central__media img {
  width: 100%;
  height: 132px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.central__body {
  padding: 0.85rem 0 1rem;
}

.central__eyebrow {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oliva);
  margin-bottom: 0.2rem;
}

.central__title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.central__addr {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.45;
  margin-bottom: 0.35rem;
}

.central__meta {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 0;
}

.central__meta a {
  color: var(--ink);
  font-weight: 600;
}

.central__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.btn-wa--sm {
  min-height: 40px;
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
}

.btn-carta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 4px;
}

.btn-carta:hover {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.btn-map {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
}

.btn-map:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.sublabel {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0.35rem 0 0.35rem;
  color: var(--ink);
}

@media (min-width: 640px) {
  .central:not(.central--text) {
    grid-template-columns: 140px 1fr;
    align-items: stretch;
  }

  .central:not(.central--text) .central__media {
    max-height: none;
  }

  .central:not(.central--text) .central__media img {
    height: 100%;
    min-height: 148px;
    max-height: 168px;
    object-fit: cover;
    object-position: center;
  }

  .central:not(.central--text) .central__body {
    padding: 0.85rem 0 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* Gift card CTA */

.gift {
  padding: 1.5rem 0 1.65rem;
}

.gift .wrap {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem 1.15rem 1.35rem;
  text-align: center;
}

.gift__eyebrow {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--oliva);
  margin-bottom: 0.45rem;
}

.gift__title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  text-wrap: balance;
  margin-bottom: 1rem;
}

.btn-gift {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(36, 25, 20, 0.18);
}

.btn-gift:hover {
  background: var(--ink);
  color: #fff;
}

/* Servicios */

.offer {
  padding: 1rem 0 1.25rem;
  border-bottom: 1px solid var(--line);
}

.offer:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.offer__title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.offer__text {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
  line-height: 1.45;
}

.offer__grid {
  display: grid;
  gap: 3px;
  margin-bottom: 0.7rem;
}

.offer__grid img {
  width: 100%;
  height: auto;
  display: block;
}

.offer__grid--3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 480px;
  gap: 3px;
}

.offer__grid--3 img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  height: auto;
  max-height: none;
  display: block;
}

@media (min-width: 600px) {
  .offer__grid--3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 520px;
  }

  .offer__grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Blocks */

.block {
  position: relative;
  z-index: 1;
  padding: 1.35rem 0 1.5rem;
}

.block--contact {
  padding-bottom: 1.75rem;
}

.label {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--oliva);
  margin-bottom: 0.65rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}

.branches {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.branch {
  padding: 0.85rem 0;
  border-bottom: 1px dashed var(--line);
}

.branch:last-child { border-bottom: none; padding-bottom: 0; }

.branch__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.2rem;
}

.branch h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.tag {
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--oliva);
  padding: 0.18rem 0.4rem;
  border-radius: 2px;
}

.branch__map {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
}

.branch__map:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.branch__addr {
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.branch__meta {
  margin-top: 0.25rem;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.branch__meta a {
  color: var(--ink);
  font-weight: 600;
}

.link-wa {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--wa-dark);
  letter-spacing: 0.02em;
}

.link-wa:hover { color: var(--wa); }

.contact {
  list-style: none;
}

.contact li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}

.contact li:last-child { border-bottom: none; }

.contact span {
  color: var(--ink-soft);
  font-weight: 500;
  flex-shrink: 0;
}

.contact a {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.contact a:hover { color: var(--accent); }

.footer {
  padding: 1.1rem 0 1.4rem;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.footer__seal {
  width: 28px;
  height: 28px;
  opacity: 0.7;
  transform: rotate(3deg);
}

.footer p {
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.footer a { color: var(--ink-soft); }
.footer a:hover { color: var(--accent); }

.fabs {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7rem;
}

.fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 14px rgba(37, 211, 102, 0.4);
  flex-shrink: 0;
}

.fab:hover {
  background: var(--wa-dark);
  color: #fff;
}

.fab svg { width: 26px; height: 26px; }

.fab-gift {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
}

.fab-gift:hover { color: #fff; }

.fab-gift__bubble {
  position: relative;
  background: #A63A2E;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.5rem 0.8rem;
  border-radius: 16px 16px 4px 16px;
  box-shadow: 0 3px 14px rgba(166, 58, 46, 0.35);
  white-space: nowrap;
  animation: giftBubble 2.8s ease-in-out infinite;
}

.fab-gift__bubble::after {
  content: '';
  position: absolute;
  right: -5px;
  bottom: 10px;
  width: 10px;
  height: 10px;
  background: #A63A2E;
  transform: rotate(45deg);
  border-radius: 2px;
}

.fab-gift__btn {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #A63A2E;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 14px rgba(166, 58, 46, 0.45);
  animation: giftPulse 2.2s ease-out infinite;
}

.fab-gift:hover .fab-gift__btn,
.fab-gift:hover .fab-gift__bubble {
  background: #8B2F25;
}

.fab-gift:hover .fab-gift__bubble::after {
  background: #8B2F25;
}

.fab-gift__btn svg { width: 24px; height: 24px; }

@keyframes giftPulse {
  0% { box-shadow: 0 0 0 0 rgba(166, 58, 46, 0.55), 0 3px 14px rgba(166, 58, 46, 0.45); }
  70% { box-shadow: 0 0 0 12px rgba(166, 58, 46, 0), 0 3px 14px rgba(166, 58, 46, 0.45); }
  100% { box-shadow: 0 0 0 0 rgba(166, 58, 46, 0), 0 3px 14px rgba(166, 58, 46, 0.45); }
}

@keyframes giftBubble {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@media (max-width: 420px) {
  .nav {
    gap: 0.55rem;
  }

  .nav a {
    font-size: 0.64rem;
  }

  .brand__text {
    font-size: 0.68rem;
  }
}

@media (max-width: 380px) {
  .fab-gift__bubble {
    font-size: 0.7rem;
    padding: 0.42rem 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__seal-wrap { animation: none; }
  .fab-gift__btn,
  .fab-gift__bubble { animation: none; }
}
