/* ==========================================================================
   Actual — content pages: Nosotros, Contacto, 404
   Mobile-first; builds on the tokens and components in site.css.
   ========================================================================== */

.page-nosotros,
.page-contacto,
.page-404 {
  /* Darkened Golden Ochre for panels that carry small ivory text (WCAG AA ≥ 4.5:1) */
  --ochre-ink: #7a650e;
}

/* --------------------------------------------------------------------------
   Shared bits
   -------------------------------------------------------------------------- */

/* Pending store data ([Por confirmar] etc. from js/config.js) */
.pending {
  display: inline-block;
  padding: 0.05em 0.55em 0.1em;
  border: 1.5px dashed currentColor;
  border-radius: var(--radius-pill);
  font-size: 0.92em;
  font-weight: 500;
  line-height: 1.35;
  opacity: 0.85;
}

/* Brandbook color-block stripes, one ivory icon each */
.stripes {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  height: clamp(200px, 56vw, 300px);
  overflow: hidden;
  border-radius: var(--radius-l);
}
.stripe {
  --stripe: var(--berry);
  display: grid;
  place-items: center;
  background: var(--stripe);
  color: var(--ivory);
}
.stripe .icon { width: 52%; height: 26%; transition: transform 0.5s var(--ease); }
.stripe--berry { --stripe: var(--berry); }
.stripe--olive { --stripe: var(--olive); }
.stripe--ochre { --stripe: var(--ochre); }
.stripe--moss { --stripe: var(--moss); }
.stripe--ivory { --stripe: var(--sand); color: var(--moss); }
.stripes:hover .stripe .icon { transform: translateY(-8px); }
.stripes:hover .stripe:nth-child(even) .icon { transform: translateY(8px); }

/* Rotating slogan sticker (brandbook stickers) */
.sticker {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--olive);
  color: var(--ivory);
  box-shadow: 0 16px 34px -18px rgba(0, 0, 0, 0.6);
}
.sticker__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sticker__ring text {
  fill: currentColor;
  font-family: "Actual Condensed", var(--font-sans);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.06em;
}
.sticker__mark { width: 40%; }

@media (prefers-reduced-motion: no-preference) {
  .sticker__ring { animation: sticker-spin 26s linear infinite; }
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal-up linear both;
      animation-timeline: view();
      animation-range: entry 0 entry 220px; /* fixed distance: tall cards must not stay half-transparent */
    }
  }
}
@keyframes sticker-spin { to { transform: rotate(360deg); } }
@keyframes reveal-up {
  from { opacity: 0; translate: 0 32px; }
  to { opacity: 1; translate: none; }
}

/* ==========================================================================
   NOSOTROS
   ========================================================================== */

/* Hero: deep olive color block */
.about-hero {
  position: relative;
  overflow: clip;
  background: var(--olive-ink);
  color: var(--ivory);
}
.about-hero__inner {
  display: grid;
  gap: 36px;
  padding-block: 40px 0;
}
.about-hero__copy { display: grid; gap: 18px; justify-items: start; }
.about-hero__eyebrow { color: var(--ivory); opacity: 0.9; }
.about-hero__eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.about-hero .display-1 { font-size: clamp(3rem, 13vw, 6.5rem); }
.about-hero__lead {
  max-width: 30ch;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5.4vw, 2.1rem);
  line-height: 1.2;
  text-wrap: pretty;
}
.about-hero__stripes {
  height: clamp(170px, 46vw, 260px);
  margin-inline: calc(var(--gutter) * -1);
  border-radius: 0;
}

@media (min-width: 900px) {
  .about-hero__inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(40px, 6vw, 88px);
    min-height: 560px;
    padding-block: 72px;
  }
  .about-hero__stripes {
    height: 420px;
    margin-inline: 0;
    border-radius: var(--radius-l);
  }
}

/* Story */
.story__inner { display: grid; gap: 32px; }
.story__statement {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.75rem, 6.2vw, 3rem);
  line-height: 1.15;
  text-wrap: balance;
}
.story__statement strong { font-weight: inherit; color: var(--berry); }
.story__text { display: grid; gap: 24px; align-content: start; }
.story__text .prose { font-size: 1.05rem; }
.story__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.story__chips .chip { min-height: 44px; }
.story__chips .chip:hover { background: var(--ink); color: var(--ivory); }

@media (min-width: 900px) {
  .story__inner {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: clamp(48px, 7vw, 104px);
    align-items: start;
  }
  .story__text { padding-top: 10px; }
}

/* Welcome letter */
.letter {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  padding: 44px 24px 36px;
  border-radius: var(--radius-l);
  background: var(--cream);
  box-shadow: var(--shadow);
  text-align: center;
}
.letter::before {
  content: "";
  position: absolute;
  inset: 0 24px auto;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--olive) 0 38%, var(--berry) 38% 62%, var(--olive) 62% 100%);
}
.letter__seal {
  position: absolute;
  top: -30px;
  right: 22px;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--berry);
  color: var(--ivory);
  box-shadow: 0 10px 22px -12px rgba(117, 2, 42, 0.8);
  transform: rotate(10deg);
}
.letter__seal .mark { width: 46%; }
.letter__title { margin-top: 14px; }
.letter__sub {
  margin-top: 14px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}
.letter__body {
  max-width: 52ch;
  margin: 18px auto 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.letter__sign {
  display: flex;
  justify-content: center;
  margin-top: 28px;
  color: var(--berry);
}
.letter__sign .mark { width: min(240px, 70%); }

@media (min-width: 720px) {
  .letter { padding: 64px 64px 52px; }
  .letter__seal { top: -34px; right: 40px; width: 84px; height: 84px; }
  .letter__sign { justify-content: flex-end; }
}

/* Propósito */
.purpose__grid { display: grid; gap: 14px; }
.purpose-card {
  --card: var(--berry);
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 28px 24px 30px;
  overflow: hidden;
  border-radius: var(--radius-l);
  background: var(--card);
  color: var(--ivory);
}
.purpose-card--ochre { --card: var(--ochre-ink); }
.purpose-card--berry { --card: var(--berry); }
.purpose-card--olive { --card: var(--olive-ink); }
.purpose-card__q {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(253, 236, 214, 0.45);
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 2.6rem);
  line-height: 1;
}
.purpose-card p { font-size: 1rem; line-height: 1.6; }
.purpose-card__icon {
  position: absolute;
  right: 18px;
  top: 20px;
  width: 44px;
  height: 56px;
  color: rgba(253, 236, 214, 0.35);
}

@media (min-width: 900px) {
  .purpose__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .purpose-card { padding: 36px 32px 40px; }
  .purpose-card--berry { transform: translateY(24px); }
}

/* Valores — pattern band with a cream card */
.values { padding-block: calc(var(--section-space) * 0.8); }
.values__card {
  padding: 36px 22px;
  border-radius: var(--radius-l);
  background: var(--cream);
  box-shadow: 0 30px 60px -40px rgba(54, 52, 31, 0.8);
}
.values__head { display: grid; gap: 10px; justify-items: center; text-align: center; margin-bottom: 32px; }
.values__list {
  display: grid;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.value {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 10px;
  text-align: center;
}
.value .icon-badge { --size: 76px; margin-bottom: 6px; }
.value__title {
  width: 100%;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive-ink);
}
.value p { max-width: 38ch; color: var(--ink-soft); }

@media (min-width: 640px) {
  .words__list { gap: 16px 14px; }
}
@media (min-width: 900px) {
  .values__card { padding: 56px clamp(32px, 5vw, 64px) 60px; }
  .values__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
  .value { justify-items: start; text-align: left; }
}

/* Palabras clave — playful stickers */
.words__inner { display: grid; justify-items: center; gap: 12px; text-align: center; }
.words__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 10px;
  max-width: 900px;
  margin: 22px 0 8px;
  padding: 0;
  list-style: none;
}
.word {
  --w: var(--berry);
  display: inline-block;
  padding: 0.38em 0.8em 0.42em;
  border-radius: var(--radius-pill);
  background: var(--w);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: clamp(1.2rem, 5.4vw, 2.15rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.35s var(--ease);
  box-shadow: 0 10px 20px -16px rgba(54, 52, 31, 0.9);
}
.word:hover { transform: rotate(0deg) scale(1.06); }
.word--berry { --w: var(--berry); }
.word--olive { --w: var(--olive); }
.word--ochre { --w: var(--ochre); }
.word--sage { --w: var(--sage); }
.word--moss { --w: var(--moss); }
.word--outline {
  background: transparent;
  color: var(--berry);
  box-shadow: inset 0 0 0 2px var(--berry);
}
.words__list li:nth-child(1) { --tilt: -4deg; }
.words__list li:nth-child(2) { --tilt: 3deg; }
.words__list li:nth-child(3) { --tilt: -2deg; }
.words__list li:nth-child(4) { --tilt: 4deg; }
.words__list li:nth-child(5) { --tilt: -3deg; }
.words__list li:nth-child(6) { --tilt: 2deg; }
.words__list li:nth-child(7) { --tilt: -5deg; }
.words__list li:nth-child(8) { --tilt: 3deg; }
.words__note { max-width: 44ch; color: var(--ink-soft); }

@media (prefers-reduced-motion: no-preference) {
  .words__list li { animation: word-bob 5s ease-in-out infinite; }
  .words__list li:nth-child(2n) { animation-delay: -1.2s; }
  .words__list li:nth-child(3n) { animation-delay: -2.4s; }
  .words__list li:hover { animation-play-state: paused; }
}
@keyframes word-bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -4px; }
}

/* Slogan + closing CTA */
.slogan {
  position: relative;
  overflow: clip;
  padding-block: var(--section-space);
  background: var(--berry);
  color: var(--ivory);
}
.slogan__inner {
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}
.slogan__sticker {
  width: 124px;
  margin-bottom: 8px;
  transform: rotate(-10deg);
}
/* Brandbook p.9: slogan in Bebas Neue caps, "¡Actualízate!" in italic serif */
.slogan__title {
  max-width: 14ch;
  font-family: "Actual Condensed", var(--font-sans);
  font-size: clamp(2.3rem, 11vw, 4.6rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  text-wrap: balance;
}
.slogan__kicker {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 9vw, 4rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1;
}
.slogan__text {
  max-width: 50ch;
  margin-top: 4px;
  color: rgba(253, 236, 214, 0.92);
  text-wrap: pretty;
}
.slogan__ctas {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 420px;
  margin-top: 16px;
}

@media (min-width: 640px) {
  .slogan__ctas { display: flex; justify-content: center; max-width: none; }
  .slogan__sticker { width: 150px; }
}

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.page-head {
  position: relative;
  overflow: clip;
  padding-block: 40px 8px;
}
.page-head__inner { display: grid; gap: 14px; justify-items: start; }
.page-head .lead { max-width: 40ch; }
.page-head__badges {
  position: absolute;
  top: 34px;
  right: calc(var(--gutter) - 10px);
  display: flex;
}
.page-head__badges .icon-badge {
  --size: 46px;
  margin-left: -10px;
  box-shadow: 0 0 0 3px var(--ivory);
}
.page-head__badges .icon-badge:nth-child(2) { transform: translateY(14px); }
@media (min-width: 720px) {
  .page-head { padding-block: 72px 16px; }
  .page-head__badges { top: 72px; right: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); }
  .page-head__badges .icon-badge { --size: 88px; margin-left: -16px; }
  .page-head__badges .icon-badge:nth-child(2) { transform: translateY(28px); }
}

.contact__grid {
  display: grid;
  gap: 14px;
}
.contact-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 26px 22px 24px;
  border-radius: var(--radius-l);
  background: var(--cream);
  box-shadow: var(--shadow-s);
}
.contact-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--ivory);
  color: var(--berry);
}
.contact-card__icon svg { width: 26px; height: 26px; }
.contact-card__label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive-ink);
}
.contact-card__value {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 7vw, 2.3rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.contact-card__value .pending { font-family: var(--font-sans); font-size: 0.6em; letter-spacing: 0.02em; vertical-align: middle; }
.contact-card__note { color: var(--ink-soft); }
.contact-card .btn { margin-top: 10px; }

.contact-card--wa { background: var(--berry); color: var(--ivory); }
.contact-card--wa .contact-card__label,
.contact-card--wa .contact-card__note { color: rgba(253, 236, 214, 0.9); }
.contact-card--wa .contact-card__icon { background: var(--ivory); color: var(--berry); }

.contact-card--visit { gap: 18px; }
.contact-card__row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.contact-card__row-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--berry);
}
.contact-card__row-icon svg { width: 22px; height: 22px; }
.contact-card__sub {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.15;
}
.contact-card__text { margin-top: 4px; font-style: normal; color: var(--ink); line-height: 1.6; }
.hours { display: grid; gap: 4px; margin: 4px 0 0; padding: 0; list-style: none; }
.hours li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; }
.hours__time { color: var(--ink-soft); }

/* Map */
.map { display: grid; gap: 10px; }
.map__frame {
  position: relative;
  aspect-ratio: 4 / 3.4;
  overflow: hidden;
  border-radius: var(--radius-l);
  background: var(--sand);
  box-shadow: var(--shadow-s);
}
.map__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.map__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-weight: 500;
}
.map__placeholder .icon-badge { --size: 60px; }
.map__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  padding-inline: 4px;
}
.map__caption .link-arrow { min-height: 44px; }
.map__note { font-size: 0.88rem; color: var(--ink-soft); }

@media (min-width: 720px) {
  .contact__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .map { grid-column: 1 / -1; }
  .map__frame { aspect-ratio: 16 / 7; }
}
@media (min-width: 1024px) {
  .contact__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .map__frame { aspect-ratio: auto; height: clamp(340px, 32vw, 440px); }
  .contact-card { padding: 32px 30px 30px; }
}

/* ¿Cómo pedir? */
.how { padding-top: calc(var(--section-space) * 0.5); }
.how__card {
  display: grid;
  gap: 28px;
  padding: 32px 22px;
  border-radius: var(--radius-l);
  background: var(--moss);
  color: var(--ivory);
}
.how__intro { display: grid; gap: 12px; }
.how__eyebrow { color: rgba(253, 236, 214, 0.9); }
.how__text { color: rgba(253, 236, 214, 0.9); max-width: 44ch; }
.how__steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.how__steps li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.how__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ivory);
  color: var(--moss);
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1;
}
.how__steps p { padding-top: 9px; }
.how__steps strong { font-weight: 600; }
.how__ctas { display: flex; }
.how__ctas .btn { flex: 1 1 auto; }

@media (min-width: 900px) {
  .how__card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 32px clamp(40px, 6vw, 88px);
    padding: 56px clamp(32px, 5vw, 64px);
  }
  .how__ctas { grid-column: 1; grid-row: 2; align-self: end; }
  .how__ctas .btn { flex: 0 0 auto; }
  .how__steps { grid-column: 2; grid-row: 1 / span 2; align-self: center; gap: 22px; }
}

/* ==========================================================================
   404
   ========================================================================== */
.nf { padding-block: clamp(40px, 9vw, 104px) var(--section-space); }
.nf__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 16px;
  max-width: 760px;
  text-align: center;
}
.nf__shelf {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(10px, 4vw, 28px);
  width: min(100%, 460px);
  padding: 0 12px 4px;
  margin-bottom: 18px;
}
.nf__piece { display: block; transform-origin: 50% 100%; transition: transform 0.4s var(--ease); }
.nf__piece .icon { display: block; width: 100%; height: 100%; }
.nf__piece--vase { width: clamp(46px, 13vw, 70px); height: clamp(58px, 16vw, 88px); color: var(--sage); }
.nf__piece--candle { width: clamp(30px, 8vw, 44px); height: clamp(92px, 25vw, 136px); color: var(--berry); }
.nf__piece--lamp { width: clamp(46px, 12vw, 64px); height: clamp(100px, 28vw, 150px); color: var(--ochre); }
.nf__piece--pitcher { width: clamp(52px, 14vw, 78px); height: clamp(58px, 16vw, 88px); color: var(--moss); }
.nf__shelf:hover .nf__piece:nth-child(odd) { transform: rotate(-4deg); }
.nf__shelf:hover .nf__piece:nth-child(even) { transform: rotate(4deg); }
.nf__gap {
  display: grid;
  place-items: center;
  width: clamp(54px, 15vw, 80px);
  height: clamp(84px, 23vw, 124px);
  border: 2px dashed var(--line-strong);
  border-radius: 999px 999px 14px 14px;
  color: var(--olive-ink);
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1;
}
.nf__rule {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--olive) 0 38%, var(--berry) 38% 62%, var(--olive) 62% 100%);
}
.nf__title { max-width: 16ch; }
.nf__lead { max-width: 44ch; }

.nf__search {
  position: relative;
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 520px;
  margin-top: 12px;
  padding: 6px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--cream);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.nf__search:focus-within { border-color: var(--berry); box-shadow: 0 0 0 4px rgba(148, 4, 53, 0.12); }
.nf__search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  color: var(--ink-soft);
  pointer-events: none;
}
.nf__search input {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  min-height: 46px;
  padding: 0 8px 0 42px;
  border: 0;
  background: transparent;
  font-size: 1rem;
  outline: none;
}
.nf__search input::placeholder { color: var(--ink-soft); opacity: 0.8; }
.nf__search .btn { min-height: 46px; padding-inline: 20px; }

.nf__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

@media (prefers-reduced-motion: no-preference) {
  .nf__gap span { display: inline-block; animation: nf-wobble 3.2s ease-in-out infinite; }
}
@keyframes nf-wobble {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(8deg) translateY(-3px); }
}
