/* ==========================================================================
   TUGA · Secciones: lema, La casa, La bodega, galería, opiniones y Visítanos
   ========================================================================== */

/* --------------------------------------------------------------------------
   Lema: franja tipográfica (sustituye a la foto de la cocina)
   -------------------------------------------------------------------------- */
.lema {
  padding: clamp(72px, 10vw, 140px) 0;
  background: var(--ink);
  color: var(--bg);
  text-align: center;
}
.lema__inner { display: flex; flex-direction: column; align-items: center; }
.lema__mark { width: 40px; height: auto; margin-bottom: clamp(20px, 3vw, 32px); }
.lema__text {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.8rem, 8vw, 7.5rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--bg);
}
.lema__text em { font-style: italic; color: var(--gold-light); }
.lema__sub {
  margin: clamp(20px, 3vw, 32px) 0 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(250, 248, 244, 0.55);
}

/* --------------------------------------------------------------------------
   Visítanos: mapa antiguo de Jerez (1787) en verde y oro
   -------------------------------------------------------------------------- */
.oldmap { margin: 0; }
.oldmap__link { display: block; color: inherit; text-decoration: none; }
.oldmap__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1600 / 1373;
  background: #122e24;
  box-shadow: 0 40px 80px -48px rgba(18, 46, 36, 0.8);
}
.oldmap__frame > img { width: 100%; height: 100%; object-fit: cover; transform-origin: 44% 49%; }

/* Jerez en el mapa: 44 % horizontal, 49 % vertical */
.oldmap__pin {
  position: absolute;
  left: 44%;
  top: 49%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  translate: -50% -50%;
}
.oldmap__pin img { position: relative; z-index: 1; width: 30px; height: auto; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6)); }
.oldmap__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(201, 161, 96, 0.25);
  box-shadow: 0 0 0 1px rgba(201, 161, 96, 0.9);
  animation: oldmapPulse 2.6s var(--ease) infinite;
}
@keyframes oldmapPulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.6); opacity: 0; }
}
.oldmap__label {
  position: absolute;
  left: calc(100% + 6px);
  top: 50%;
  translate: 0 -50%;
  padding: 6px 12px;
  background: #faf8f4;
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.5);
}
.oldmap figcaption { margin-top: 12px; font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--fg-faint); }

@media (prefers-reduced-motion: reduce) { .oldmap__pulse { animation: none; } }

/* --------------------------------------------------------------------------
   Fotos profesionales de Tuga
   -------------------------------------------------------------------------- */
/* Lema sobre la foto del fuego.
   La foto sale del negro del manifiesto con un degradado largo y suave, con el
   mismo tono cálido, y el texto queda centrado en la franja. */
.lema--photo,
.manif + .lema--photo {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(100svh, 980px);
  overflow: hidden;
  padding: clamp(140px, 16vw, 220px) 0 clamp(120px, 14vw, 200px);
}
.lema__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 62%;
  filter: brightness(0.72) saturate(0.85) sepia(0.2);
}
.lema--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 58% 42% at 50% 54%, rgba(28, 24, 20, 0.5) 0%, rgba(28, 24, 20, 0) 72%),
    linear-gradient(180deg,
      #1c1814 0%,
      rgba(28, 24, 20, 0.94) 9%,
      rgba(28, 24, 20, 0.8) 18%,
      rgba(28, 24, 20, 0.58) 30%,
      rgba(28, 24, 20, 0.42) 44%,
      rgba(28, 24, 20, 0.4) 60%,
      rgba(28, 24, 20, 0.58) 80%,
      rgba(28, 24, 20, 0.86) 100%);
  pointer-events: none;
}
.lema--photo .lema__inner { position: relative; z-index: 1; }
.lema--photo .lema__sub { color: rgba(250, 248, 244, 0.75); }

/* --------------------------------------------------------------------------
   Galería "Desde la sala" con las fotos profesionales (nueve piezas)
   -------------------------------------------------------------------------- */
.bento--full .bento__a { grid-column: 1 / span 5; grid-row: 1 / span 4; }
.bento--full .bento__b { grid-column: 6 / span 3; grid-row: 1 / span 2; }
.bento--full .bento__c { grid-column: 9 / span 4; grid-row: 1 / span 4; }
.bento--full .bento__d { grid-column: 6 / span 3; grid-row: 3 / span 2; }
.bento--full .bento__e { grid-column: 1 / span 7; grid-row: 5 / span 3; }
.bento--full .bento__f { grid-column: 8 / span 5; grid-row: 5 / span 3; }
.bento--full .bento__g { grid-column: 1 / span 4; grid-row: 8 / span 3; }
.bento--full .bento__h { grid-column: 5 / span 4; grid-row: 8 / span 3; }
.bento--full .bento__i { grid-column: 9 / span 4; grid-row: 8 / span 3; }
/* Cuarta fila: fotos del libro de recetas de COPE (2026) */
.bento--full .bento__j { grid-column: 1 / span 4; grid-row: 11 / span 3; }
.bento--full .bento__k { grid-column: 5 / span 4; grid-row: 11 / span 3; }
.bento--full .bento__l { grid-column: 9 / span 4; grid-row: 11 / span 3; }
.bento--full img { object-position: 50% 50%; }
.bento--full .bento__k img { object-position: 50% 62%; }
.bento--full .bento__l img { object-position: 50% 45%; }
.bento--full .bento__c img { object-position: 50% 30%; }
.bento--full .bento__e img { object-position: 50% 60%; }

@media (max-width: 768px) {
  .bento--full .bento__a, .bento--full .bento__b, .bento--full .bento__c,
  .bento--full .bento__d, .bento--full .bento__e, .bento--full .bento__f,
  .bento--full .bento__g, .bento--full .bento__h, .bento--full .bento__i,
  .bento--full .bento__j, .bento--full .bento__k, .bento--full .bento__l { grid-column: auto; grid-row: span 1; }
  .bento--full .bento__a, .bento--full .bento__e { grid-column: span 2; grid-row: span 2; }
  .bento--full { grid-auto-flow: row dense; }
}

/* Opiniones: la puerta del local.
   La foto sale hasta el borde derecho y el borde superior de la sección,
   con los bordes limpios, sin fundido. */
.reviews { overflow-x: clip; }
.reviews__photo {
  position: relative;
  margin: 0;
  overflow: hidden;
}
.reviews__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 20% 50%; }

@media (min-width: 901px) {
  .rv__top { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr); gap: clamp(40px, 5vw, 96px); align-items: center; }
  .reviews__photo {
    align-self: stretch;
    margin-top: calc(-1 * var(--section));
    margin-right: calc(-1 * var(--gutter) - max(0px, (100vw - var(--wrap)) / 2));
    min-height: clamp(440px, 38vw, 620px);
  }
}
@media (max-width: 900px) {
  .rv__top { gap: clamp(32px, 8vw, 48px); }
  .reviews__photo {
    order: -1;
    margin: calc(-1 * var(--section)) calc(-1 * var(--gutter)) 0;
    aspect-ratio: 16 / 11;
  }
}


/* --------------------------------------------------------------------------
   Visítanos en el verde del mapa: la sección entera toma el fondo del mapa
   y el mapa se funde con él por los bordes, sin marco.
   -------------------------------------------------------------------------- */
.visit-sec {
  --map-green: #122e24;
  --bg: var(--map-green);
  --fg: #f1ead9;
  --fg-dim: rgba(241, 234, 217, 0.72);
  --fg-faint: rgba(241, 234, 217, 0.5);
  --line: rgba(241, 234, 217, 0.14);
  --line-strong: rgba(241, 234, 217, 0.34);
  --ink: #f1ead9;
  --ink-soft: #ffffff;
  --gold: #d2ad6b;
  --gold-soft: #d2ad6b;
  position: relative;
  background: var(--map-green);
  color: var(--fg);
  overflow: hidden;
}
.visit-sec .visit {
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(24px, 3vw, 56px);
  align-items: center;
}
.visit-sec .hours th,
.visit-sec .hours td { padding: 9px 0; }
.visit-sec .hours { margin-bottom: 32px; }
.visit-sec address { margin-bottom: 32px; }

/* El mapa llega hasta el borde derecho de la pantalla */
.visit-sec .visit__media {
  margin-right: calc(-1 * ((100vw - min(100vw, var(--wrap))) / 2 + var(--gutter)));
}
.visit-sec .oldmap__frame {
  background: none;
  box-shadow: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24%), linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 24%), linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-composite: intersect;
}
.visit-sec .oldmap__label { color: #1c1814; }
.visit-sec .oldmap figcaption {
  margin: -8px var(--gutter) 0 0;
  text-align: right;
  color: var(--fg-faint);
}

@media (max-width: 900px) {
  .visit-sec .visit { grid-template-columns: minmax(0, 1fr); }
  .visit-sec .visit__media { margin-inline: calc(-1 * var(--gutter)); }
  .visit-sec .oldmap__frame {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%);
  }
  .visit-sec .oldmap figcaption { margin-left: var(--gutter); text-align: left; }
}

/* --------------------------------------------------------------------------
   Más platos de Tuga: al pasar el cursor la foto se acerca, sube el nombre
   del plato con una línea dorada y el resto de fotos pierde color.
   -------------------------------------------------------------------------- */
.bento figure { position: relative; isolation: isolate; }
.bento figure::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(20, 16, 12, 0.74) 0%, rgba(20, 16, 12, 0.18) 42%, rgba(20, 16, 12, 0) 62%);
  opacity: 0;
  transition: opacity 0.9s var(--ease);
  pointer-events: none;
}
.bento figcaption {
  position: absolute;
  left: clamp(16px, 2vw, 30px);
  right: clamp(16px, 2vw, 30px);
  bottom: clamp(16px, 2vw, 28px);
  z-index: 2;
  overflow: hidden;
  color: #faf8f4;
  pointer-events: none;
}
.bento figcaption::before {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  margin-bottom: 12px;
  background: var(--gold-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s var(--ease);
}
.bento figcaption span {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.7rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease);
}
.js .bento figure.is-in img {
  transition: transform 1.6s var(--ease-out), filter 0.9s var(--ease);
  transition-delay: 0s;
}

@media (hover: hover) and (pointer: fine) {
  .bento figure { cursor: default; }
  .bento figure:hover::after { opacity: 1; }
  .bento figure:hover figcaption::before { transform: scaleX(1); transition-delay: 0.12s; }
  .bento figure:hover figcaption span { transform: none; transition-delay: 0.05s; }
  .js .bento figure.is-in:hover img,
  .bento figure:hover img { transform: scale(1.07); }
  .bento:has(figure:hover) figure:not(:hover) img { filter: grayscale(0.6) brightness(0.82); }
}

/* En pantallas táctiles el nombre se ve siempre */
@media (hover: none) {
  .bento figure::after { opacity: 0.85; }
  .bento figcaption::before { transform: scaleX(1); margin-bottom: 8px; }
  .bento figcaption span { transform: none; font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  .bento figcaption span, .bento figcaption::before { transition: none; }
}

/* --------------------------------------------------------------------------
   La casa: titular grande, texto al lado y el comedor a todo el ancho.
   Al bajar, la foto se abre desde el ancho del contenido hasta los bordes.
   -------------------------------------------------------------------------- */
.casa2 {
  padding: var(--section) 0 clamp(36px, 4vw, 64px);
  background: var(--bg);
}
.casa2__head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 140px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 100px);
}
.casa2__title {
  margin: 0;
  max-width: 12em;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.8rem, 6.2vw, 7.2rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.casa2__title em { font-style: italic; color: var(--gold); }
.casa2__intro p { max-width: 34em; margin: 0 0 18px; font-size: 17px; line-height: 1.7; color: var(--fg-dim); }
.casa2__intro .link-arrow { margin-top: 14px; }

.casa2__photo {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  max-height: 92svh;
  width: 100%;
  overflow: hidden;
  background: var(--bg-alt);
}
.casa2__photo img {
  position: absolute;
  left: 0;
  top: -6%;
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: 50% 55%;
}
.casa2__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 16, 12, 0.55) 0%, rgba(20, 16, 12, 0) 34%);
  pointer-events: none;
}
.casa2__photo figcaption {
  position: absolute;
  left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  bottom: clamp(20px, 3vw, 44px);
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #faf8f4;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.casa2__pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(56px, 7vw, 110px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.casa2__pillars li { padding: clamp(28px, 3vw, 44px) clamp(24px, 3vw, 56px) 0; }
.casa2__pillars li:first-child { padding-left: 0; }
.casa2__pillars li + li { border-left: 1px solid var(--line); }
.casa2__num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.4rem, 3.6vw, 3.8rem);
  line-height: 1;
  color: var(--gold);
}
.casa2__pillars h3 {
  margin: clamp(18px, 2vw, 28px) 0 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 1.9vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.casa2__pillars p { max-width: 30em; margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--fg-dim); }

@media (max-width: 900px) {
  .casa2__head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .casa2__photo { aspect-ratio: 4 / 3; }
  .casa2__photo figcaption { flex-direction: column; gap: 4px; }
  .casa2__pillars { grid-template-columns: minmax(0, 1fr); border-top: 0; }
  .casa2__pillars li,
  .casa2__pillars li:first-child { padding: 28px 0 32px; border-top: 1px solid var(--line); }
  .casa2__pillars li + li { border-left: 0; }
}

/* --------------------------------------------------------------------------
   La bodega: fondo oscuro, las copas a sangre por la izquierda, titular grande,
   cifras con filetes y los vinos del Marco desfilando en letras de contorno.
   -------------------------------------------------------------------------- */
.bodega2 {
  --bg: #1c1814;
  --fg: #f3ece0;
  --fg-dim: rgba(243, 236, 224, 0.7);
  --fg-faint: rgba(243, 236, 224, 0.48);
  --line: rgba(243, 236, 224, 0.14);
  --line-strong: rgba(243, 236, 224, 0.3);
  --gold: #c9a160;
  position: relative;
  padding: var(--section) 0 clamp(56px, 6vw, 96px);
  overflow: hidden;
  background: #1c1814;
  color: var(--fg);
}
.bodega2__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 110px);
  align-items: center;
}
.bodega2__photo {
  position: relative;
  margin: 0 0 0 calc(-1 * ((100vw - min(100vw, var(--wrap))) / 2 + var(--gutter)));
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.bodega2__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 60%; }
.bodega2__photo figcaption {
  position: absolute;
  right: 20px;
  bottom: 18px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #faf8f4;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}
.bodega2__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 5vw, 5.6rem);
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.bodega2__title em { font-style: italic; color: var(--gold); }
.bodega2__copy { max-width: 32em; margin: clamp(24px, 2.6vw, 36px) 0 clamp(32px, 3vw, 44px); font-size: 17px; line-height: 1.7; color: var(--fg-dim) !important; }

.bodega2__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(64px, 8vw, 120px) 0 0;
  border-top: 1px solid var(--line-strong);
}
.bodega2__stats div { padding: clamp(24px, 3vw, 40px) clamp(20px, 3vw, 56px) 0; }
.bodega2__stats div:first-child { padding-left: 0; }
.bodega2__stats div + div { border-left: 1px solid var(--line); }
.bodega2__stats dt {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.2rem, 6.4vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.bodega2__stats dd { margin: 14px 0 0; font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }

/* Los vinos del Marco, en grande y con contorno */
.bodega2__band { margin-top: clamp(56px, 7vw, 110px); }
.bodega2__band p {
  margin: 0;
  padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(3.4rem, 10vw, 11rem);
  line-height: 1;
  letter-spacing: -0.035em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 161, 96, 0.55);
  will-change: transform;
}
.bodega2__band i { font-style: normal; -webkit-text-stroke: 0; color: var(--gold); padding: 0 0.12em; }

@media (max-width: 900px) {
  .bodega2__grid { grid-template-columns: minmax(0, 1fr); }
  .bodega2__photo { margin-inline: calc(-1 * var(--gutter)); }
  .bodega2__stats div { padding-right: 12px; }
  .bodega2__stats div + div { padding-left: 14px; }
  .bodega2__stats dt { font-size: 2.8rem; }
  .bodega2__stats dd { font-size: 10px; letter-spacing: 0.14em; }
}
.bodega2 .btn--gold { --btn-bg: var(--gold); color: #1c1814; }
.bodega2 .btn--gold:hover { --btn-bg: #dcb978; box-shadow: 0 16px 36px -18px rgba(0, 0, 0, 0.7); }
