/* Portada DataViva: hero de 3, fila de 3, videos y listado. */

body[data-page="home"] {
  --pt-ink: #1f1f1f;
  --pt-muted: #6b6b6b;
  --pt-line: #e3e3e3;
  --pt-gray: #f4f4f4;
  --pt-rule: #c9c9c9;
  --pt-rosa-bg: #fbe6e6;
  --pt-rosa-line: #f0c8c8;
  --pt-verde-bg: #e6f3e8;
  --pt-verde-line: #c9e5ce;
  --pt-col-gap: 16px;
  --pt-bar-h: 64px;
  --pt-h1: clamp(32px, 2.6vw, 48px);
  --pt-h2: clamp(28px, 2.1vw, 40px);
  --pt-h3: clamp(18px, 1.25vw, 23px);
  --pt-h4: clamp(16px, 1.05vw, 20px);
  --pt-block: 32px;
  --accent: var(--red);
  background: #fff;
  color: var(--pt-ink);
}

body.is-drawer-open {
  overflow: hidden;
}

.pt-wrap {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.pt-layout--rail.pt-wrap {
  width: min(1680px, calc(100% - 48px));
}

.pt-chrome {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
}

.pt-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #222;
  cursor: pointer;
}

.pt-icon svg {
  width: 22px;
  height: 22px;
}

.pt-icon:hover {
  color: var(--accent);
}

.pt-bar {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 8px;
  height: var(--pt-bar-h);
  padding: 0 16px;
  background: #fff;
  border-bottom: 1px solid var(--pt-line);
}

.pt-bar__brand {
  position: absolute;
  left: 56px;
  top: 50%;
  transform: translateY(-50%);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.pt-bar.is-scrolled .pt-bar__brand {
  visibility: visible;
  opacity: 1;
}

.pt-bar__brand img {
  height: 42px;
  width: auto;
}

.pt-bar__center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-width: 0;
}

.pt-bar__date {
  flex: none;
  font-size: 15px;
  color: #333;
  white-space: nowrap;
}

.pt-bar__menu,
.pt-drawer__list {
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pt-bar__menu a,
.pt-drawer__list a {
  color: #222;
  font-size: 15px;
  white-space: nowrap;
}

.pt-bar__menu a.is-active,
.pt-drawer__list a.is-active {
  font-weight: 700;
}

.pt-bar__menu a:hover,
.pt-drawer__list a:hover {
  color: var(--accent);
}

.pt-drawer[hidden] {
  display: none;
}

.pt-drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
}

.pt-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.pt-drawer__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(320px, 86vw);
  padding: 12px 22px 28px;
  overflow-y: auto;
  background: #fff;
}

.pt-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.pt-drawer__head img {
  height: 42px;
  width: auto;
}

.pt-drawer__list {
  flex-direction: column;
  gap: 4px;
}

.pt-drawer__list a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--pt-line);
  font-size: 17px;
}

.pt-drawer .social-list {
  margin-top: 18px;
}

.pt-drawer .social-list a {
  color: #222;
  border: 1px solid #ddd;
  border-radius: 50%;
}

body[data-page="home"] .pt-search.search-panel {
  background: #fff;
  border-top: 0;
  border-bottom: 1px solid var(--pt-line);
  padding: 12px 0 16px;
}

body[data-page="home"] .pt-search .search-form {
  align-items: center;
}

body[data-page="home"] .pt-search .search-form input {
  border: 1px solid #ccc;
  background: #fff;
  color: #222;
}

.pt-layout {
  display: block;
  padding: 8px 0 48px;
}

.pt-layout--rail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(200px, 16vw, 320px);
  column-gap: 40px;
  row-gap: 0;
  align-items: start;
}

.pt-layout--rail > .pt-masthead {
  grid-column: 1;
  grid-row: 1;
}

.pt-layout--rail > .pt-main {
  grid-column: 1;
  grid-row: 2;
}

.pt-layout--rail > .pt-rail {
  grid-column: 2;
  grid-row: 2;
}

.pt-main--rest {
  margin-top: var(--pt-block);
}

.pt-main {
  min-width: 0;
}

.pt-main > * + * {
  margin-top: var(--pt-block);
}

.pt-main > .pt-rule + * {
  margin-top: 16px;
}

.pt-main > .pt-panel + .pt-panel {
  margin-top: 16px;
}

.pt-masthead {
  text-align: center;
  border-bottom: 1px solid var(--pt-line);
  margin-bottom: var(--pt-block);
}

.pt-masthead__brand {
  display: inline-block;
  padding: 18px 0 16px;
}

.pt-masthead__brand img {
  width: min(330px, 70vw);
  height: auto;
}

.pt-main h1 a:hover,
.pt-main h2 a:hover,
.pt-main h3 a:hover {
  color: var(--accent);
}

.pt-h1 {
  margin: 0;
  font-size: var(--pt-h1);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.pt-h3 {
  margin: 0;
  font-size: var(--pt-h3);
  line-height: 1.32;
  font-weight: 700;
}

.pt-deck {
  margin: 10px 0 0;
  color: #555;
  font-size: clamp(15px, 1vw, 17px);
  line-height: 1.45;
}

.pt-deck--clamp {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.pt-by {
  margin: 8px 0 0;
  color: var(--pt-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pt-by a:hover {
  color: var(--accent);
}

.pt-media {
  position: relative;
  display: block;
  margin-top: 10px;
  overflow: hidden;
  background: #eee;
}

.pt-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.pt-media--169 {
  aspect-ratio: 16 / 9;
}

.pt-media--1610 {
  aspect-ratio: 16 / 10;
}

.pt-play,
.pt-live__play {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
}

.pt-play {
  left: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border: 2px solid #fff;
  background: rgba(0, 0, 0, 0.55);
}

.pt-play svg {
  width: 14px;
  height: 14px;
  margin-left: 2px;
}

.pt-hero {
  display: grid;
  grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr);
  gap: 22px;
}

.pt-hero__main .pt-media {
  margin-top: 14px;
}

.pt-hero__side {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.pt-row {
  display: grid;
  gap: 18px;
}

.pt-row--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 12px;
  border-top: 1px solid var(--pt-line);
}

.pt-row--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pt-row--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pt-row--4 .pt-h3 {
  font-size: var(--pt-h4);
}

.pt-row--1 {
  grid-template-columns: minmax(0, 1fr);
  max-width: 33.33%;
}

.pt-row--4 .pt-story,
.pt-row--2 .pt-story {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--pt-line);
}

.pt-h4 {
  margin: 0;
  font-size: var(--pt-h4);
  line-height: 1.32;
  font-weight: 700;
}

.pt-rule {
  height: 0;
  margin: 0;
  border: 0;
  border-top: 2px solid var(--pt-rule);
}

.pt-banner {
  padding: 22px 48px 18px;
  background: var(--pt-gray);
  border-radius: 4px;
  text-align: center;
}

.pt-banner__title {
  margin: 0;
  font-size: var(--pt-h2);
  line-height: 1.25;
  font-weight: 600;
}

.pt-banner .pt-by {
  margin-top: 10px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 400;
}

.pt-feature {
  display: grid;
  grid-template-columns: 60% minmax(0, 1fr);
  overflow: hidden;
  background: var(--pt-gray);
  border-radius: 4px;
}

.pt-feature .pt-media {
  margin: 0;
}

.pt-feature__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 26px;
}

.pt-feature__title {
  margin: 0;
  font-size: clamp(21px, 1.45vw, 28px);
  line-height: 1.3;
  font-weight: 700;
}

.pt-section {
  padding-top: 12px;
  border-top: 1px solid var(--pt-line);
}

.pt-section--plain {
  padding-top: 18px;
  border-top: 0;
}

.pt-trio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  gap: 20px;
}

.pt-trio__side {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.pt-trio__side .pt-media {
  min-height: 120px;
}

.pt-trio__center {
  text-align: center;
}

.pt-trio__title {
  margin: 0;
  font-size: clamp(28px, 2vw, 40px);
  line-height: 1.28;
  font-weight: 700;
}

.pt-trio__center .pt-deck {
  max-width: 92%;
  margin-inline: auto;
}

.pt-trio__center .pt-media {
  margin-top: 14px;
}

.pt-carousel__head {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 10px;
}

.pt-carousel__nav {
  display: flex;
  gap: 6px;
}

.pt-carousel__nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #cfcfcf;
  border-radius: 50%;
  background: #fff;
  color: #555;
  cursor: pointer;
}

.pt-carousel__nav svg {
  width: 16px;
  height: 16px;
}

.pt-carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 4 * 14px) / 5);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.pt-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--pt-line);
  border-radius: 4px;
  scroll-snap-align: start;
}

.pt-card .pt-media {
  margin: 0;
}

.pt-media--card {
  aspect-ratio: 9 / 14;
}

.pt-card__body {
  padding: 10px 10px 12px;
}

.pt-card__kicker {
  margin: 0 0 4px;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pt-muted);
}

.pt-card__title {
  margin: 0;
  font-size: clamp(13px, 0.9vw, 16px);
  line-height: 1.3;
  font-weight: 700;
}

.pt-card time {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--pt-muted);
}

.pt-panel {
  padding: 14px 16px 18px;
  border: 1px solid;
  border-radius: 6px;
}

.pt-panel--rosa {
  background: var(--pt-rosa-bg);
  border-color: var(--pt-rosa-line);
}

.pt-panel--verde {
  background: var(--pt-verde-bg);
  border-color: var(--pt-verde-line);
}

.pt-panel__grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: var(--pt-col-gap);
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.pt-lists {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.pt-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 8px;
  border: 1px solid #d6d6d6;
  border-bottom: 2px solid var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

a.pt-tab:hover {
  color: var(--accent);
}

.pt-dark {
  position: relative;
  display: block;
  margin-top: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #111;
}

.pt-dark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.pt-dark h3 {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 12px 18px;
  color: #fff;
  font-size: clamp(14px, 1vw, 18px);
  line-height: 1.3;
  font-weight: 700;
  text-align: center;
}

.pt-list {
  display: flex;
  flex-direction: column;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.pt-list li + li {
  padding-top: 12px;
  border-top: 1px solid var(--pt-line);
}

.pt-list a {
  font-size: clamp(13px, 0.9vw, 16px);
  line-height: 1.32;
  font-weight: 700;
}

.pt-ad--grande .pt-ad__slot {
  min-height: 120px;
}

.pt-ad--grande .pt-ad__slot img {
  max-height: 280px;
}

.pt-resto .pt-row + .pt-row {
  margin-top: 28px;
}

.pt-featured-row .pt-row,
.pt-feed .pt-row,
.pt-video-more .pt-row {
  padding-top: 14px;
  border-top: 1px solid var(--pt-line);
}

.pt-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.pt-section__title {
  margin: 0;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pt-section__title a {
  color: inherit;
  font-size: inherit;
  letter-spacing: inherit;
}

.pt-section__head a {
  color: var(--pt-muted);
  font-size: 14px;
  font-weight: 700;
}

.pt-section__head a:hover {
  color: var(--accent);
}

.pt-live {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(220px, 1fr);
  overflow: hidden;
  background: #1a1a1a;
  color: #fff;
}

.pt-live:not(:has(.pt-live__list)) {
  grid-template-columns: minmax(0, 1fr);
}

.pt-live__video {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}

.pt-live__video img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.pt-live__play {
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  background: var(--accent);
  transform: translate(-50%, -50%);
}

.pt-live__play svg {
  width: 28px;
  height: 28px;
  margin-left: 3px;
}

.pt-live__caption {
  padding: 16px 18px 22px;
}

.pt-live__title {
  margin: 0;
  font-size: clamp(18px, 1.4vw, 24px);
  line-height: 1.3;
  font-weight: 700;
}

.pt-live .pt-deck {
  color: #d5d5d5;
}

.pt-live__title a,
.pt-live__list a {
  color: #fff;
}

.pt-live__title a:hover,
.pt-live__list a:hover {
  color: #fff;
  text-decoration: underline;
}

.pt-live__list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 4px 20px;
  list-style: none;
  border-left: 1px solid #333;
}

.pt-live__list li {
  border-bottom: 1px solid #333;
}

.pt-live__list li:last-child {
  border-bottom: 0;
}

.pt-live__list a {
  display: block;
  padding: 14px 0;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 500;
}

.pt-video-more {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 28px;
}

.pt-feed .pt-row + .pt-row {
  margin-top: 28px;
}

.pt-feed__more {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.pt-feed__more a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 22px;
  border: 1px solid #cfcfcf;
  background: #fff;
  color: #222;
  font-size: 14px;
  font-weight: 700;
}

.pt-feed__more a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pt-feed__more.is-loading a {
  color: var(--pt-muted);
}

.pt-empty {
  color: var(--pt-muted);
}

.pt-ad {
  padding: 10px 16px 16px;
  background: var(--pt-gray);
}

.pt-ad__label {
  display: block;
  margin-bottom: 6px;
  color: #8a8a8a;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.pt-ad__slot,
.pt-rail__ad {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pt-ad__slot img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 220px;
}

.pt-rail__ad img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
}

.pt-rail {
  position: sticky;
  top: calc(var(--pt-bar-h) + 16px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pt-footer {
  margin-top: 20px;
  background: #2e2e2e;
  color: #d7d7d7;
}

.pt-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.4fr;
  gap: 28px;
  padding: 36px 0 28px;
}

.pt-footer__logo {
  width: 180px;
  height: auto;
  margin-bottom: 14px;
}

.pt-footer__follow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.pt-footer h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.pt-footer ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pt-footer a {
  color: #d7d7d7;
}

.pt-footer a:hover {
  color: #fff;
}

.pt-footer .social-list a {
  color: #fff;
  border: 1px solid #6a6a6a;
  border-radius: 50%;
}

.pt-footer .social-list a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.pt-footer p {
  margin: 0;
  line-height: 1.5;
}

.pt-footer__copy {
  padding: 14px 20px 18px;
  border-top: 1px solid #444;
  text-align: center;
  color: #a9a9a9;
  font-size: 12px;
}

@media (max-width: 1023px) {
  .pt-bar__menu,
  .pt-bar__date {
    display: none;
  }

  .pt-layout--rail {
    grid-template-columns: minmax(0, 1fr);
  }

  .pt-layout--rail > .pt-masthead,
  .pt-layout--rail > .pt-main,
  .pt-layout--rail > .pt-rail {
    grid-column: 1;
    grid-row: auto;
  }

  .pt-layout--rail > .pt-rail {
    position: static;
    max-width: 340px;
  }

  .pt-row--3,
  .pt-row--4,
  .pt-lists,
  .pt-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pt-trio {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pt-trio__center {
    grid-column: 1 / -1;
    order: -1;
  }

  .pt-feature {
    grid-template-columns: 1fr;
  }

  .pt-row--1 {
    max-width: 50%;
  }
}

@media (max-width: 767px) {
  body[data-page="home"] {
    --pt-h1: 28px;
    --pt-h3: 18px;
    --pt-block: 24px;
    --pt-bar-h: 56px;
  }

  .pt-bar__center {
    display: none;
  }

  .pt-bar__brand {
    left: 50%;
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, -50%);
  }

  .pt-wrap,
  .pt-layout--rail.pt-wrap {
    width: min(1240px, calc(100% - 28px));
  }

  .pt-bar__brand {
    justify-self: center;
    visibility: visible;
    opacity: 1;
  }

  .pt-masthead {
    display: none;
  }

  .pt-layout > .pt-main > :first-child {
    margin-top: var(--pt-block);
  }

  .pt-hero,
  .pt-live,
  .pt-feature,
  .pt-trio,
  .pt-lists,
  .pt-panel__grid,
  .pt-row--3,
  .pt-row--4,
  .pt-row--2,
  .pt-row--1,
  .pt-footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pt-banner {
    padding: 18px 16px;
  }

  .pt-carousel__track {
    grid-auto-columns: 68%;
  }

  .pt-row--1 {
    max-width: none;
  }

  .pt-live__list {
    border-left: 0;
    border-top: 1px solid #333;
  }

  .pt-live__play {
    width: 52px;
    height: 52px;
  }
}
