/* ========== Página Web — Planes Web / Formatos Tradicionales, Rich Media y DSP ========== */
/* Misma base que tarifario (Bootstrap, fuentes, AOS). Tema: fondo azul oscuro, texto blanco, acento celeste. */

.page-web {
  /* background-color: var(--tarifario-bg-content); */
  color: var(--tarifario-text);
  overflow-x: hidden;
}

.page-web .app-wrapper {
  padding-bottom: 0;
  min-height: 100vh;
}

.page-web main {
  min-height: 0;
}

/* ---------- Header (dentro de tarifario) ---------- */

.web-header .container > div {
  flex-wrap: wrap;
}
.web-header__logo {
  height: auto;
  max-height: 52px;
  object-fit: contain;
}
.web-header__back {
  font-size: 0.875rem;
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.web-header__back:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

/* ---------- Hero (imagen + overlay "Web" + bloque azul con título y 2 columnas) ---------- */
.web-hero {
  margin-bottom: 0;
}

/* Contenido del hero visible desde el primer frame en responsive (evita pantalla solo azul por AOS) */
.web-hero .web-hero__content-block [data-aos] {
  opacity: 1;
}
.web-hero .web-hero__content-block [data-aos].aos-init {
  opacity: 1 !important;
}
.web-hero__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1.78 / 1;
  min-height: 220px;
  overflow: hidden;
}
.web-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.web-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 19, 33, 0.2) 0%, rgba(13, 19, 33, 0.5) 100%);
}
.web-hero__label {
  bottom: 18%;
  right: 12%;
  left: auto;
  top: auto;
}
.web-hero__content-block {
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}
.web-hero__title-line-wrap {
  display: inline-block;
  margin-top: 0.15rem;
}
.web-hero__title-mobile {
  font-family: var(--tarifario-font-title);
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.web-hero__desc {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.web-hero__cta {
  display: inline-block;
  padding: 0.6rem 1.75rem;
  font-weight: 700;
  background-color: #2073E5 !important;
  border-color: #2073E5 !important;
  color: #fff !important;
  border-radius: 8px;
}
.web-hero__cta:hover {
  background-color: #1a62c7 !important;
  border-color: #1a62c7 !important;
  color: #fff !important;
}

.web-hero__two-cols p {
  font-family: var(--tarifario-font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
}

.web-hero__two-cols strong {
  font-weight: 700;
  color: #fff;
}

@media (min-width: 992px) {
  .web-hero__visual {
    aspect-ratio: 1.78 / 1;
    min-height: 320px;
  }
  .web-hero__label {
    bottom: 22%;
    right: 18%;
  }
  .web-hero__content-block {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

/* ---------- Elementos propios de web (logo e intro en cabeza de sección) ---------- */
.web-section__logo {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background-color: rgba(32, 115, 229, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  line-height: 1.1;
  padding: 2px;
}
.web-section__logo span {
  font-size: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.web-section__intro {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  max-width: 720px;
}
.web-subtitle {
  font-family: var(--tarifario-font-title);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

/* ---------- Tablas ---------- */
.web-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  color: #f0f4f8;
}
.web-table th,
.web-table td {
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(32, 115, 229, 0.4);
  text-align: left;
}
.web-table th {
  font-weight: 700;
  background-color: rgba(32, 115, 229, 0.15);
  color: #fff;
}
.web-table--simple th:last-child,
.web-table--simple td:last-child {
  text-align: right;
}
.web-note {
  font-size: 0.75rem;
  font-weight: 700;
  color: #2073E5;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* ---------- Listas ---------- */
.web-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1rem 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}
.web-list li {
  padding: 0.25rem 0;
  padding-left: 1.25rem;
  position: relative;
}
.web-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: #2073E5;
}
.web-list--bullets li::before {
  content: '•';
}
.web-list--pricing li {
  display: flex;
  justify-content: space-between;
  padding-left: 0;
}
.web-list--pricing li::before {
  display: none;
}

/* ---------- Ejemplos (banners y artículos) ---------- */
.web-examples {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.web-example-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}
.web-example-card {
  position: relative;
  min-height: 120px;
  border-radius: 8px;
  border: 1px solid rgba(32, 115, 229, 0.5);
  background-color: rgba(32, 115, 229, 0.12);
  overflow: hidden;
}
.web-example-card--dark {
  background-color: rgba(13, 19, 33, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
}
.web-example-card__bar {
  position: absolute;
  background-color: #2073E5;
}
.web-example-card__bar--top {
  top: 0;
  left: 0;
  right: 0;
  height: 24px;
}
.web-example-card__bar--bottom {
  bottom: 0;
  left: 0;
  right: 0;
  height: 24px;
}
.web-example-card__bar--side {
  top: 0;
  right: 0;
  width: 24px;
  bottom: 0;
}
.web-example-card__label {
  position: absolute;
  bottom: 6px;
  left: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}
.web-example-card--article .web-example-card__title-line {
  position: absolute;
  top: 16px;
  left: 12px;
  right: 12px;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}
.web-example-card--article .web-example-card__media {
  position: absolute;
  top: 36px;
  left: 12px;
  right: 12px;
  height: 50px;
  background-color: #2073E5;
  border-radius: 4px;
}
.web-example-card--article.web-example-card--dark .web-example-card__media {
  background-color: rgba(32, 115, 229, 0.5);
}
.web-example-card--article .web-example-card__text {
  position: absolute;
  bottom: 28px;
  left: 12px;
  right: 12px;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}
.web-example-card--article.web-example-card--overlay .web-example-card__media--large {
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  border-radius: 0;
}
.web-example-card--article .web-example-card__overlay-text {
  position: absolute;
  bottom: 44px;
  left: 12px;
  right: 12px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
}
.web-example-caption {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0.25rem 0 0 0;
}

@media (max-width: 575.98px) {
  .web-example-pair {
    grid-template-columns: 1fr;
  }
}

/* ---------- Medidas Mobile: 8 columnas, scroll horizontal en mobile ---------- */
.web-measures-scroll {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1.25rem;
  align-items: flex-end;
  padding-bottom: 0.5rem;
}

.web-measure-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 120px;
  font-size: 0.8rem;
  color: #fff;
}

.web-measure-card__phone {
  position: relative;
  width: 80px;
  height: 140px;
  border: 2px solid rgba(32, 115, 229, 0.5);
  border-radius: 12px;
  background-color: rgba(13, 19, 33, 0.9);
  overflow: hidden;
  flex-shrink: 0;
}

.web-measure-card__block {
  position: absolute;
  background-color: #2073E5;
  border-radius: 4px;
}

/* Bloques según medida (proporcional dentro del mockup 80x140) */
.web-measure-card__block--320x250 { width: 55%; height: 36%; left: 50%; top: 15%; transform: translateX(-50%); }
.web-measure-card__block--320x480 { width: 55%; height: 75%; left: 50%; top: 12%; transform: translateX(-50%); }
.web-measure-card__block--320x50 { width: 55%; height: 8%; left: 50%; bottom: 15%; transform: translateX(-50%); }
.web-measure-card__block--300x50 { width: 55%; height: 8%; left: 50%; top: 22%; transform: translateX(-50%); }
.web-measure-card__block--300x100 { width: 55%; height: 16%; left: 50%; bottom: 0; transform: translateX(-50%); border-radius: 0 0 10px 10px; }
.web-measure-card__block--250x250 { width: 45%; height: 36%; left: 50%; top: 32%; transform: translateX(-50%); }
.web-measure-card__block--468x60 { width: 90%; height: 10%; left: 50%; bottom: 25%; transform: translateX(-50%); }
.web-measure-card__block--320x480-full { width: 100%; height: 100%; left: 0; top: 0; border-radius: 0; }

.web-measure-card__phone--footer .web-measure-card__close {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1;
  cursor: default;
}

.web-measure-card__label,
.web-measure-card__size {
  display: block;
  text-align: center;
}

.web-measure-card__size {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
}

@media (max-width: 991.98px) {
  .web-measures-scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .web-measure-card {
    scroll-snap-align: start;
    flex-shrink: 0;
  }
}

/* ---------- Medidas Desktop: 10 formatos, 5 columnas en desktop, scroll en mobile ---------- */
.web-measures-scroll--desktop {
  grid-template-columns: repeat(5, 1fr);
}

.web-measure-card__browser {
  position: relative;
  width: 120px;
  height: 88px;
  border: 2px solid rgba(32, 115, 229, 0.5);
  border-radius: 8px;
  background-color: rgba(42, 42, 50, 0.95);
  overflow: hidden;
  flex-shrink: 0;
}

.web-measure-card__browser::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 14px;
  background: rgba(60, 60, 70, 0.9);
  border-bottom: 1px solid rgba(32, 115, 229, 0.3);
  z-index: 0;
}

.web-measure-card--desktop .web-measure-card__block {
  position: absolute;
  background-color: #2073E5;
  border-radius: 2px;
  z-index: 1;
}

/* Posiciones proporcionales dentro del mockup 120x88 (área útil ~120x72 bajo la barra) */
.web-measure-card__block--728x90 { width: 85%; height: 22%; left: 50%; top: 18px; transform: translateX(-50%); }
.web-measure-card__block--970x90-footer { width: 95%; height: 22%; left: 50%; bottom: 2px; transform: translateX(-50%); }
.web-measure-card__block--970x90-billboard { width: 95%; height: 22%; left: 50%; top: 18px; transform: translateX(-50%); }
.web-measure-card__block--300x600 { width: 28%; height: 82%; right: 4px; top: 18px; }
.web-measure-card__block--160x600 { width: 15%; height: 82%; right: 4px; top: 18px; }
.web-measure-card__block--970x250 { width: 90%; height: 48%; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.web-measure-card__block--300x250 { width: 35%; height: 42%; right: 4px; top: 50%; transform: translateY(-50%); }
.web-measure-card__block--336x228 { width: 40%; height: 38%; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.web-measure-card__block--640x480 { width: 75%; height: 72%; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.web-measure-card__block--800x600 { width: 92%; height: 88%; left: 50%; top: 50%; transform: translate(-50%, -50%); }

@media (max-width: 991.98px) {
  .web-measures-scroll--desktop {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .web-measure-card--desktop {
    scroll-snap-align: start;
    flex-shrink: 0;
  }
}

/* ---------- Guía Web Tradicional: 7 items, 4 columnas en desktop, scroll en mobile ---------- */
.web-measures-scroll--guide {
  grid-template-columns: repeat(4, 1fr);
}

.web-measure-card--guide {
  min-width: 130px;
}

.web-measure-card--guide .web-measure-card__phone {
  width: 80px;
  height: 120px;
}

.web-measure-card__device {
  display: block;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.web-measure-card__formats {
  display: block;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.75);
}

/* Bloques guía: phone (80x120 área útil bajo barra) */
.web-measure-card--guide .web-measure-card__block--guide-header-mobile {
  position: absolute;
  background-color: #2073E5;
  width: 90%;
  height: 18%;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  border-radius: 4px;
}

.web-measure-card--guide .web-measure-card__block--guide-header-mid {
  position: absolute;
  background-color: #2073E5;
  width: 90%;
  height: 18%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 4px;
}

.web-measure-card--guide .web-measure-card__block--guide-skybox-mobile {
  position: absolute;
  background-color: #2073E5;
  width: 55%;
  height: 38%;
  left: 50%;
  top: 45%;
  transform: translateX(-50%);
  border-radius: 4px;
}

/* Guía: browser 970x250 at top */
.web-measure-card--guide .web-measure-card__block--guide-header-desktop {
  position: absolute;
  background-color: #2073E5;
  width: 95%;
  height: 48%;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  border-radius: 2px;
  z-index: 1;
}

.web-measure-card--guide .web-measure-card__browser .web-measure-card__block {
  position: absolute;
  background-color: #2073E5;
  border-radius: 2px;
  z-index: 1;
}

.web-measure-card--guide .web-measure-card__browser .web-measure-card__block--728x90 {
  width: 85%; height: 22%; left: 50%; top: 18px; transform: translateX(-50%);
}

.web-measure-card--guide .web-measure-card__browser .web-measure-card__block--970x250 {
  width: 90%; height: 48%; left: 50%; top: 18px; transform: translateX(-50%);
}

.web-measure-card--guide .web-measure-card__browser .web-measure-card__block--300x250 {
  width: 35%; height: 42%; right: 4px; top: 50%; transform: translateY(-50%);
}

/* Guía Rich Media: Banner Layer y Spincube */
.web-measures-scroll--rich {
  grid-template-columns: repeat(4, 1fr);
}

.web-measure-card--guide .web-measure-card__block--guide-layer-mobile {
  position: absolute;
  background-color: #2073E5;
  width: 50%;
  height: 65%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 4px;
}

.web-measure-card--guide .web-measure-card__browser .web-measure-card__block--guide-layer-desktop {
  position: absolute;
  background-color: #2073E5;
  width: 82%;
  height: 72%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 2px;
  z-index: 1;
}

.web-measure-card--guide .web-measure-card__block--guide-spincube-mobile {
  position: absolute;
  background: linear-gradient(135deg, #2073E5 0%, #1a62c7 100%);
  width: 55%;
  height: 38%;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  border-radius: 6px;
  box-shadow: inset -2px -2px 4px rgba(0,0,0,0.2), inset 2px 2px 4px rgba(255,255,255,0.1);
}

.web-measure-card--guide .web-measure-card__browser .web-measure-card__block--guide-spincube-desktop {
  position: absolute;
  background: linear-gradient(135deg, #2073E5 0%, #1a62c7 100%);
  width: 35%;
  height: 42%;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 6px;
  box-shadow: inset -2px -2px 4px rgba(0,0,0,0.2), inset 2px 2px 4px rgba(255,255,255,0.1);
}

@media (max-width: 991.98px) {
  .web-measures-scroll--guide {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .web-measure-card--guide {
    scroll-snap-align: start;
    flex-shrink: 0;
  }
}

/* ---------- Medidas (Mobile / Desktop / Guías) ---------- */
.web-measures {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: flex-end;
}
.web-measures--guide,
.web-guide-types {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
}
.web-measure-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #fff;
  min-width: 80px;
}
.web-measure-box {
  border: 1px solid rgba(32, 115, 229, 0.5);
  border-radius: 8px;
  background-color: rgba(32, 115, 229, 0.1);
}
.web-measure-box--phone {
  width: 60px;
  height: 90px;
}
.web-measure-box--browser {
  width: 100px;
  height: 60px;
}
.web-measure-box--wide {
  width: 140px;
  height: 78px;
}
.web-measures--mobile .web-measure-box--phone {
  width: 50px;
  height: 75px;
}
.web-measures--desktop .web-measure-box--browser {
  width: 90px;
  height: 55px;
}

@media (min-width: 768px) {
  .web-measures--mobile {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 1.5rem;
  }
  .web-measures--desktop {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
  }
  .web-measures--desktop .web-measure-item:nth-child(n+6) {
    grid-column: span 1;
  }
}

/* ---------- Footer ---------- */
.web-footer {
  background-color: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(32, 115, 229, 0.2);
}

/* ---------- Ajustes tabla Web (muchas columnas) en mobile ---------- */
@media (max-width: 767.98px) {
  .web-table thead th {
    font-size: 0.7rem;
    padding: 0.4rem 0.35rem;
  }
  .web-table td {
    font-size: 0.75rem;
    padding: 0.4rem 0.35rem;
  }
}
