/* Vivir Urbano 2.0: homepage, articles, ads strip. */

:root {
  --vu-max: 1240px;
  --vu-gutter: 16px;
  --vu-ink: #2f2f2f;
  --vu-muted: #5f5f5f;
  --vu-panel: #ecebe7;
  --vu-card: #efeeea;
  --vu-box: #dcdbd7;
  --vu-band: #d6d5d1;
  --vu-accent: #bd5343;
  --vu-serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --vu-sans: Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Homepage nav ---------- */

.vu-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: var(--vu-max);
  margin: 0 auto;
  padding: 10px var(--vu-gutter);
  font-family: var(--vu-sans);
}
.vu-nav__menu { position: static !important; margin: 0 !important; }
.vu-nav__links { display: flex; flex-wrap: wrap; gap: 4px 22px; flex: 1; }
.vu-nav__links a {
  color: var(--vu-muted);
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
}
.vu-nav__links a:hover { color: var(--vu-accent); }
.vu-nav__search { margin-left: auto; }

/* ---------- Home layout ---------- */

.vu-home {
  max-width: var(--vu-max);
  margin: 0 auto 48px;
  padding: 0 var(--vu-gutter);
  font-family: var(--vu-sans);
  color: var(--vu-ink);
}
.vu-home a { text-decoration: none; color: inherit; }

/* ---------- Hero carousel ---------- */

.vu-hero {
  position: relative;
  aspect-ratio: 1240 / 440;
  min-height: 420px;
  overflow: hidden;
  background: #555;
}
.vu-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease, visibility .8s;
}
.vu-hero__slide.is-active { opacity: 1; visibility: visible; }
.vu-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vu-hero__badge {
  position: absolute;
  top: 16px;
  right: 24px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
}
.vu-hero__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 27%;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  padding: 26px 20px 18px;
  background: rgba(58, 58, 58, .72);
  color: #fff !important;
}
.vu-hero__brand {
  font-family: var(--vu-sans);
  font-weight: 700;
  font-size: clamp(30px, 3.3vw, 42px);
  line-height: 1;
  letter-spacing: -.01em;
}
.vu-hero__tagline {
  margin-top: 8px;
  max-width: 220px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.25;
}
.vu-hero__line {
  margin-top: auto;
  font-family: var(--vu-serif);
  font-size: 17px;
}
.vu-hero__title {
  margin: 6px 0 0 !important;
  color: #fff !important;
  font-family: var(--vu-serif) !important;
  font-weight: 400 !important;
  font-size: clamp(28px, 2.9vw, 38px) !important;
  line-height: 1.12 !important;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vu-hero__meta {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--vu-serif);
  font-size: 15px;
  line-height: 1.3;
}
.vu-hero__panel:hover .vu-hero__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.vu-hero__dots {
  position: absolute;
  right: 24px;
  bottom: 16px;
  display: flex;
  gap: 8px;
}
.vu-hero__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.vu-hero__dot.is-active { background: #fff; }

/* ---------- Cards + bands ---------- */

.vu-panel {
  padding: 34px 24px 0;
  background: var(--vu-panel);
}
.vu-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 26px;
}
.vu-card {
  display: flex;
  flex-direction: column;
  background: var(--vu-card);
  padding-bottom: 14px;
}
.vu-card__img {
  display: block;
  aspect-ratio: 16 / 9.2;
  overflow: hidden;
  background: #d9d8d4;
}
.vu-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.vu-card:hover .vu-card__img img { transform: scale(1.04); }
.vu-card__label {
  display: block;
  margin: 18px 12px 4px;
  color: var(--vu-muted);
  font-size: 13px;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.vu-card__title {
  margin: 0 12px;
  color: var(--vu-muted);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
}
.vu-card--editions {
  margin-top: -34px;
  padding-top: 34px;
  background: var(--vu-box);
  text-align: center;
}
.vu-card--editions .vu-card__label { color: var(--vu-ink); }
.vu-card--editions .vu-card__title { color: var(--vu-ink); font-weight: 400; }
.vu-card--editions .vu-card__img img { object-position: top; }

.vu-bands {
  display: grid;
  grid-template-columns: 4fr 1fr;
  gap: 26px;
  margin-top: 18px;
  padding-bottom: 12px;
}
.vu-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 78px;
  padding: 12px 16px;
  background: var(--vu-band);
  text-align: center;
  transition: background .2s;
}
.vu-band:hover { background: #cbcac6; }
.vu-band__eyebrow {
  color: var(--vu-muted);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.vu-band__text { font-size: 19px; color: var(--vu-ink); }
.vu-band__today { margin-top: 4px; font-size: 14px; color: var(--vu-muted); }
.vu-band--prices .vu-band__text { color: var(--vu-muted); font-weight: 700; line-height: 1.2; }

/* ---------- Ads strip ---------- */

.vu-ads {
  max-width: var(--vu-max);
  margin: 28px auto 0;
  overflow: hidden;
}
.vu-ads__row { overflow: hidden; margin-bottom: 14px; }
.vu-ads__track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: vu-marquee calc(var(--vu-ads-count) * 5s) linear infinite;
}
.vu-ads__row:hover .vu-ads__track { animation-play-state: paused; }
.vu-ads__item { flex: none; display: block; }
.vu-ads__item img { display: block; width: auto; object-fit: contain; }
.vu-ads__row--large .vu-ads__item img { height: 150px; }
.vu-ads__row--small .vu-ads__item img { height: 64px; }
@keyframes vu-marquee {
  to { transform: translateX(calc(-50% - 7px)); }
}
@media (prefers-reduced-motion: reduce) {
  .vu-ads__row { overflow-x: auto; }
  .vu-ads__track { animation: none; }
}

/* ---------- More articles ---------- */

.vu-more { max-width: var(--vu-max); margin: 40px auto 0; padding: 0 var(--vu-gutter); font-family: var(--vu-sans); }
.vu-home .vu-more { padding: 0; }
.vu-more__title {
  margin: 0 0 18px !important;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--vu-accent);
  font-family: var(--vu-serif) !important;
  font-weight: 500 !important;
  font-size: 28px !important;
}
.vu-more__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 26px;
}
.vu-more__item { display: flex; flex-direction: column; color: var(--vu-ink); text-decoration: none; }
.vu-more__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #d9d8d4; }
.vu-more__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.vu-more__item:hover .vu-more__img img { transform: scale(1.04); }
.vu-more__item .vu-card__label { margin: 12px 0 2px; }
.vu-more__name { font-family: var(--vu-serif); font-size: 23px; line-height: 1.2; }
.vu-more__excerpt { margin-top: 6px; color: var(--vu-muted); font-size: 15px; line-height: 1.5; }
.vu-more__all { margin-top: 26px; text-align: center; }
.vu-more__all a, .vu-button {
  display: inline-block;
  padding: 10px 22px;
  border: 1px solid var(--vu-ink);
  color: var(--vu-ink) !important;
  font-family: var(--vu-sans);
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none !important;
}
.vu-more__all a:hover, .vu-button:hover { background: var(--vu-ink); color: #fff !important; }

/* ---------- Single article ---------- */

.vu-article { max-width: 1100px; margin: 0 auto; padding: 32px var(--vu-gutter) 0; color: var(--vu-ink); }
.vu-article__header { max-width: 760px; margin: 0 auto 28px; text-align: center; }
.vu-article__eyebrow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 14px;
  margin: 0 0 10px !important;
  font-family: var(--vu-sans);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--vu-muted);
}
.vu-article__eyebrow a { color: var(--vu-accent); text-decoration: none; font-weight: 700; }
.vu-article__title {
  margin: 0 !important;
  font-family: var(--vu-serif) !important;
  font-weight: 500 !important;
  font-size: clamp(34px, 5vw, 54px) !important;
  line-height: 1.08 !important;
}
.vu-article__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 14px !important;
  font-family: var(--vu-serif);
  font-size: 18px;
  color: var(--vu-muted);
}
.vu-article__hero { margin: 0 0 32px; }
.vu-article__hero img { display: block; width: 100%; max-height: 720px; object-fit: cover; }
.vu-article__hero figcaption,
.vu-article__body figcaption { margin-top: 6px; font-family: var(--vu-sans); font-size: 13px; color: var(--vu-muted); }
.vu-article__body {
  max-width: 700px;
  margin: 0 auto;
  font-family: var(--vu-serif);
  font-size: 21px;
  line-height: 1.6;
}
.vu-article__body p { margin: 0 0 1em; }
.vu-article__body h2 {
  margin: 1.6em 0 .5em;
  font-family: var(--vu-sans);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .02em;
}
.vu-article__body figure { margin: 1.8em -60px; }
.vu-article__body figure img { display: block; width: 100%; height: auto; max-height: 85vh; object-fit: contain; background: var(--vu-panel); }
.vu-article__body .vu-specs {
  padding: 14px 18px;
  background: var(--vu-panel);
  font-family: var(--vu-sans);
  font-size: 15px;
  line-height: 1.5;
}
.vu-article__edition {
  max-width: 700px;
  margin: 36px auto 0 !important;
  padding-top: 22px;
  border-top: 1px solid #ddd;
  font-family: var(--vu-sans);
  color: var(--vu-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.vu-more--related { margin-bottom: 56px; }

/* ---------- Precios page ---------- */

.vu-prices { overflow-x: auto; margin: 0 0 2em; }
.vu-prices table { width: 100%; border-collapse: collapse; font-family: var(--vu-sans); font-size: 14px; }
.vu-prices th, .vu-prices td { padding: 6px 8px; border-bottom: 1px solid #e3e3e3; text-align: left; }
.vu-prices td.num, .vu-prices th.num { text-align: right; white-space: nowrap; }
.vu-prices tr.group td { background: var(--vu-panel); font-weight: 700; }
.vu-prices caption { caption-side: top; text-align: left; font-weight: 700; padding: 8px 0; }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .vu-cards { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .vu-card--editions { grid-column: span 2; margin-top: 0; padding-top: 0; }
  .vu-card--editions .vu-card__img { aspect-ratio: 21 / 9; }
  .vu-bands { grid-template-columns: 1fr; gap: 12px; }
  .vu-more__grid { grid-template-columns: repeat(2, 1fr); }
  .vu-article__body figure { margin: 1.6em 0; }
}

@media (max-width: 700px) {
  .vu-nav__links { gap: 4px 14px; }
  .vu-nav__links a { font-size: 12px; }
  .vu-home { padding: 0; }
  .vu-hero { aspect-ratio: auto; height: 78vh; min-height: 520px; max-height: 680px; }
  .vu-hero__panel {
    top: auto;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 62%;
    padding: 18px var(--vu-gutter) 40px;
    background: linear-gradient(to top, rgba(40, 40, 40, .92) 70%, rgba(40, 40, 40, 0));
  }
  .vu-hero__line { margin-top: 18px; }
  .vu-hero__badge { font-size: 12px; right: var(--vu-gutter); }
  .vu-hero__dots { right: var(--vu-gutter); }
  .vu-panel { padding: 18px var(--vu-gutter) 0; }
  .vu-card__title { font-size: 16px; }
  .vu-band__text { font-size: 16px; }
  .vu-more__grid { grid-template-columns: 1fr; }
  .vu-home .vu-more { padding: 0 var(--vu-gutter); }
  .vu-ads__row--large .vu-ads__item img { height: 110px; }
  .vu-ads__row--small .vu-ads__item img { height: 48px; }
  .vu-article__body { font-size: 19px; }
}
