/* ============================================================
   RINCÓN GOMERO — estilos
   Base: diseño móvil (frame 440 px, margen 25 px).
   Desktop (≥ 900 px): frame 1280 px, margen 120 px.
   ============================================================ */

@font-face { font-family: "Recoleta"; font-weight: 300; font-style: normal; font-display: swap; src: url("fonts/Recoleta-Light.woff2") format("woff2"); }
@font-face { font-family: "Recoleta"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/Recoleta-Regular.woff2") format("woff2"); }
@font-face { font-family: "Recoleta"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/Recoleta-Medium.woff2") format("woff2"); }
@font-face { font-family: "Recoleta"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/Recoleta-SemiBold.woff2") format("woff2"); }

:root {
  /* Colores (librería de Figma) */
  --rojo: #da121a;
  --crema: #fff6eb;
  --negro: #2a281d;

  /* Margen lateral: 25 px en el frame móvil (440 px) → 120 px en el desktop (1280 px) */
  --pad: clamp(25px, calc(25px + (100vw - 440px) * 0.1131), 120px);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: "Recoleta", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0;
  color: var(--negro);
  background: var(--crema);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; }
strong { font-weight: 500; }

/* Recorta el espacio extra de la línea, como en Figma (cap height → baseline) */
.tt { text-box: trim-both cap alphabetic; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--crema); color: var(--rojo); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.wrap { max-width: 1560px; margin-inline: auto; padding-inline: var(--pad); }

/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  overflow: clip;
  background: var(--rojo);
  color: var(--crema);
  min-height: 772px;
  display: flex;
}
.hero__mountain {
  position: absolute;
  right: -190px;
  top: 162px;
  width: 1022px;
  height: 251px;
  max-width: none;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1560px;
  margin-inline: auto;
  padding: 41px var(--pad) 84px;
  display: flex;
  flex-direction: column;
}
.hero__logo { display: block; width: 196.41px; }
.hero__logo img { width: 100%; height: auto; }

.hero__copy {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.hero__title { font-weight: 400; }
.hero__kicker, .hero__main { display: block; line-height: 1; }
.hero__kicker { font-size: 23.498px; font-weight: 400; }
.hero__main { font-size: 32.439px; font-weight: 500; text-transform: uppercase; }
.hero__lead { font-size: 20px; font-weight: 300; line-height: 1; max-width: 389px; }
.hero__lead strong { font-weight: 500; }
.br-m { display: inline; }

.hero__cta { display: flex; gap: 16px; margin-top: 45px; }
.btn {
  flex: 1 1 0;
  max-width: 187px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: var(--crema);
  color: var(--rojo);
  border: 1px solid transparent;
  border-radius: 10.973px;
  font-size: 20px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn__arrow { flex: none; }
/* Variante "CTA=Hover" de Figma: fondo crema al 20 %, borde y texto crema */
@media (hover: hover) {
  .btn:hover { background: rgba(255, 246, 235, 0.2); border-color: var(--crema); color: var(--crema); }
}
.btn:focus-visible { background: rgba(255, 246, 235, 0.2); border-color: var(--crema); color: var(--crema); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
/* Móvil pequeño y móvil: texto 2 pt menor para que no quede pegado al borde */
@media (max-width: 599px) { .btn { font-size: 18px; } }

/* ---------------- SECCIONES ---------------- */
.section { padding-block: 80px; }
.section--crema { background: var(--crema); color: var(--negro); }
.section--rojo { background: var(--rojo); color: var(--crema); }
.section > .wrap { display: flex; flex-direction: column; gap: 50px; }

.title { font-weight: 400; }
.title--xl { font-size: 45px; }
.title--md { font-size: 30px; }
.title-block { display: flex; flex-direction: column; gap: 25px; }
.intro { font-size: 20px; }

.cats { display: flex; flex-direction: column; gap: 50px; }
.cat { display: flex; flex-direction: column; gap: 24px; }
.cat__title { font-size: 26px; font-weight: 400; }
.rule { height: 0; border-top: 1px solid currentColor; }

.items { display: flex; flex-direction: column; gap: 24px; }
.item { display: flex; align-items: flex-start; gap: 60px; }
.items--tight .item { gap: 19px; }
.item__main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 15px; }
.item__name { font-size: 20px; font-weight: 400; }
.item__inline { font-size: 16px; font-weight: 300; }
.item__note { font-size: 12px; font-weight: 300; line-height: 1.4; }
.item__price { flex: none; font-size: 20px; font-weight: 300; text-align: right; white-space: nowrap; }

.opts { list-style: disc; padding-left: 24px; font-size: 16px; font-weight: 300; line-height: 1; }
.opts__item + .opts__item { margin-top: 5px; }
.opts__item--nw { white-space: nowrap; }
.opts__m { font-weight: 500; }
.opts__l { font-weight: 300; }

/* Vinos */
.title-block--vinos { max-width: 392px; }
.formats-note__head { font-size: 20px; font-weight: 300; }
.formats-note__head { font-weight: 400; }
.formats-note__line { font-size: 16px; font-weight: 300; line-height: 1; }
.formats-note__line--first { line-height: 1.5; }

.item--wine { align-items: flex-start; }
.item--wine .item__name { flex: 1 1 0; min-width: 0; }
.fmts { flex: none; display: flex; align-items: flex-start; gap: 15px; font-weight: 300; font-size: 20px; line-height: 1; }
.fmts__col { display: block; white-space: nowrap; text-box: trim-both cap alphabetic; }
.fmts__col span { display: block; }
.fmts__col span + span { margin-top: 5px; }
.fmts__col--price { width: 86px; text-align: right; }

/* Contacto */
.contact { display: flex; flex-direction: column; gap: 24px; }
.contact__row { display: flex; align-items: flex-start; gap: 60px; }
.contact__text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 15px; }
.contact__label { font-size: 20px; font-weight: 400; }
.contact__value { font-size: 20px; font-weight: 500; }
.pill {
  flex: none;
  width: 128px;
  height: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rojo);
  color: var(--crema);
  border-radius: 6.05px;
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------------- FOOTER ---------------- */
.footer {
  background: var(--rojo);
  color: var(--crema);
  padding: 20px var(--pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.social { display: flex; gap: 12.066px; }
.social img { width: 38.61px; height: 38.61px; }
.footer__legal { font-size: 20px; font-weight: 300; text-align: center; }
.footer__legal strong { font-weight: 500; }

/* ---------------- AVISO EMERGENTE ---------------- */
.aviso { border: 0; padding: 0; background: transparent; max-width: calc(100vw - 2 * var(--pad)); width: 420px; margin: auto; color: var(--negro); }
.aviso::backdrop { background: rgba(42, 40, 29, 0.6); }
.aviso__card { background: var(--crema); border-radius: 10.973px; padding: 32px 25px 25px; display: flex; flex-direction: column; gap: 24px; }
.aviso__title { font-size: 30px; font-weight: 400; line-height: 1.1; }
.aviso__list { display: flex; flex-direction: column; gap: 16px; }
.aviso__item { display: flex; flex-direction: column; gap: 6px; font-size: 20px; font-weight: 300; line-height: 1.2; }
.aviso__item strong { font-weight: 500; }
.aviso__btn { align-self: stretch; height: 44px; border: 0; border-radius: 10.973px; background: var(--rojo); color: var(--crema); font: inherit; font-size: 20px; font-weight: 400; text-transform: uppercase; cursor: pointer; }

/* ---------------- DESKTOP (≥ 900 px) ---------------- */
@media (min-width: 900px) {
  .hero { min-height: 800px; }
  /* Entre 900 y 1280 px la ilustración se ancla a la derecha: se desplaza a la izquierda
     y mantiene visible la parte relevante (la cumbre), como en el frame de 1280 px */
  .hero__mountain {
    right: auto;
    left: calc(100% - 1369.55px);
    top: 53.6px;
    width: 1537.4px;
    height: auto;
  }
  .hero__inner { padding-top: 52px; padding-bottom: 70px; }
  .hero__logo { width: 219.67px; }
  .hero__copy { gap: 30px; }
  .hero__kicker, .hero__main { font-size: 50px; }
  .hero__lead { font-size: 24px; max-width: 501px; }
  .br-m { display: none; }
  .hero__cta { gap: 28px; margin-top: 36px; }
  .btn { flex: 0 0 239px; max-width: none; }

  .contact__row { gap: 19px; }
  .contact__value { font-weight: 600; }
}

/* Desde 1280 px la ilustración vuelve a escalar con el ancho (frame de Figma) */
@media (min-width: 1280px) {
  .hero__mountain {
    left: calc(-7.12% + 1.64px);
    width: max(1537.4px, 107.12%);
  }
}

/* Más de 1560 px: el diseño deja de crecer y queda centrado. La ilustración mantiene
   el tamaño que tiene a 1560 px (no invade el texto) y la línea se prolonga hacia el borde. */
@media (min-width: 1560px) {
  .hero__mountain { left: calc(50% - 889.43px); width: 1671.1px; }
  .hero::before {
    content: "";
    position: absolute;
    left: 0;
    width: calc(50% - 888.4px);
    top: 459.8px;
    border-top: 3.3px solid var(--crema);
    pointer-events: none;
    transform-origin: left;
    animation: tramo .25s ease-out both;
  }
  .hero::after {
    content: "";
    position: absolute;
    right: 0;
    left: calc(50% + 779.5px);
    top: 293.2px;
    border-top: 3.3px solid var(--crema);
    pointer-events: none;
    transform-origin: left;
    animation: tramo .25s ease-out 2.7s both;
  }
  @media (prefers-reduced-motion: reduce) { .hero::before, .hero::after { animation: none; } }
}
@keyframes tramo { from { transform: scaleX(0); } to { transform: scaleX(1); } }
