/* Estilos de la sección social, publicaciones y componentes de publicidad. */
/* Social STS: lenguaje editorial y tarjetas con profundidad */
/* Carrusel de Facebook: cabecera, tarjetas, galerías y controles. */

#facebook-timeline.facebook-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(54px, 7vw, 88px) 0;
  background:
    radial-gradient(ellipse at 88% 5%, rgba(67, 150, 235, 0.14), transparent 34%),
    linear-gradient(145deg, #f6f9fc 0%, #fff 54%, #edf4fb 100%);
  border-top: 1px solid rgba(21, 66, 118, 0.1);
  border-bottom: 1px solid rgba(21, 66, 118, 0.1);
}
#facebook-timeline.facebook-section:before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: '';
  opacity: 0.26;
  background-image: radial-gradient(rgba(21, 92, 164, 0.2) 0.7px, transparent 0.7px);
  background-size: 22px 22px;
  mask-image: linear-gradient(120deg, #000, transparent 60%);
}
#facebook-timeline .facebook-section__head {
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 30px;
}
#facebook-timeline .facebook-section__eyebrow {
  padding: 8px 13px;
  border: 1px solid rgba(24, 119, 242, 0.17);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 48, 89, 0.07);
  color: #155ca4;
  font-weight: 700;
}
#facebook-timeline #facebook-title {
  max-width: 18ch;
  margin: 13px 0 10px;
  color: #0d2034;
  font-size: clamp(32px, 4.5vw, 50px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
#facebook-timeline .facebook-section__intro {
  max-width: 57ch;
  color: #526b83;
  font-size: 16px;
  line-height: 1.7;
}
#facebook-timeline .facebook-follow-link {
  min-height: 48px;
  padding: 0 19px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(120deg, #1877f2, #1054b5);
  box-shadow: 0 10px 24px rgba(24, 119, 242, 0.22);
  color: #fff;
  font-weight: 700;
  transition:
    transform 0.22s,
    box-shadow 0.22s;
}
#facebook-timeline .facebook-follow-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(24, 119, 242, 0.3);
}
#facebook-timeline .fbc {
  position: relative;
  padding: 7px 0 20px;
}
#facebook-timeline .fbc__track {
  gap: 20px;
  padding: 7px 4px 22px;
  scroll-snap-type: x mandatory;
  scrollbar-color: #9bb8d7 transparent;
  scrollbar-width: thin;
}
#facebook-timeline .fbc__card {
  overflow: hidden;
  border: 1px solid rgba(27, 62, 100, 0.11);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 13px 35px rgba(18, 45, 77, 0.1);
  scroll-snap-align: start;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
#facebook-timeline .fbc__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(18, 45, 77, 0.16);
}
#facebook-timeline .fbc__head {
  padding: 15px 17px 11px;
}
#facebook-timeline .fbc__avatar {
  border: 2px solid #e9f2fd;
  box-shadow: 0 2px 8px rgba(20, 50, 80, 0.12);
}
#facebook-timeline .fbc__media--gallery {
  overflow: hidden;
  gap: 3px;
  background: #eaf0f6;
}
#facebook-timeline .fbc__gallery-link {
  overflow: hidden;
  background: #eaf0f6;
}
#facebook-timeline .fbc__gallery-link img {
  transition: transform 0.4s ease;
}
#facebook-timeline .fbc__gallery-link:hover img {
  transform: scale(1.035);
}
#facebook-timeline .fbc__foot {
  border-top: 1px solid #edf1f5;
  color: #155ca4;
}
#facebook-timeline .fbc__foot a {
  font-weight: 700;
}
#facebook-timeline .fbc__nav {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(20, 70, 120, 0.12);
  border-radius: 50%;
  background: #fff;
  color: #155ca4;
  box-shadow: 0 8px 22px rgba(15, 48, 89, 0.17);
  font-size: 30px;
  transition:
    transform 0.2s,
    background 0.2s;
}
#facebook-timeline .fbc__nav:hover {
  transform: scale(1.06);
  background: #f2f7fd;
}
#facebook-timeline .fbc__all {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
  padding: 10px 15px;
  border: 1px solid rgba(21, 92, 164, 0.16);
  border-radius: 999px;
  background: #fff;
  color: #155ca4;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 5px 16px rgba(15, 48, 89, 0.06);
}
#facebook-timeline .fbc__empty {
  padding: 22px;
  border: 1px dashed rgba(21, 92, 164, 0.25);
  border-radius: 16px;
  background: #fff;
  color: #526b83;
}
@media (max-width: 600px) {
  #facebook-timeline.facebook-section {
    padding: 44px 0;
  }
  #facebook-timeline .facebook-section__head {
    gap: 17px;
  }
  #facebook-timeline #facebook-title {
    max-width: 17ch;
    font-size: 32px;
  }
  #facebook-timeline .facebook-section__intro {
    font-size: 14px;
  }
  #facebook-timeline .facebook-follow-link {
    min-height: 43px;
  }
  #facebook-timeline .fbc__track {
    gap: 14px;
  }
  #facebook-timeline .fbc__card {
    border-radius: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #facebook-timeline *,
  .ads-popup * {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
/* Popup publicitario */
/* Visor modal para explorar las creatividades publicitarias. */

.ads-popup {
  position: fixed;
  z-index: 99999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 17, 31, 0.72);
  backdrop-filter: blur(9px);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.ads-popup.is-open {
  opacity: 1;
}
.ads-popup.is-closing {
  opacity: 0;
}
.ads-popup__dialog {
  position: relative;
  width: min(900px, 100%);
  max-height: min(92vh, 850px);
  overflow: auto;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: linear-gradient(145deg, #fff, #f4f8fc);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.34);
  transform: translateY(12px) scale(0.985);
  transition: transform 0.22s ease;
}
.is-open .ads-popup__dialog {
  transform: translateY(0) scale(1);
}
.ads-popup__close {
  position: absolute;
  z-index: 2;
  top: 15px;
  right: 15px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(13, 32, 52, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #132b43;
  font: 400 29px/1 system-ui;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(10, 30, 50, 0.12);
}
.ads-popup__close:hover {
  background: #eaf3fd;
}
.ads-popup__top {
  padding: 0 54px 18px 2px;
}
.ads-popup__kicker {
  color: #2472bd;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ads-popup__top h2 {
  margin: 5px 0 0;
  color: #102840;
  font-size: clamp(21px, 3vw, 30px);
  letter-spacing: -0.03em;
}
.ads-popup__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  max-height: 65vh;
  overflow: hidden;
  border-radius: 16px;
  background: #e8eef5;
}
.ads-popup__image {
  display: block;
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
}
.ads-popup__arrow {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: rgba(9, 31, 53, 0.68);
  color: #fff;
  font: 400 29px/1 system-ui;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.ads-popup__arrow--prev {
  left: 12px;
}
.ads-popup__arrow--next {
  right: 12px;
}
.ads-popup__arrow:hover {
  background: #155ca4;
}
.ads-popup__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 3px 0;
  color: #506982;
  font-size: 13px;
  font-weight: 700;
}
.ads-popup__dots {
  display: flex;
  align-items: center;
  gap: 7px;
}
.ads-popup__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #bfd0df;
  cursor: pointer;
  transition:
    width 0.2s,
    background 0.2s;
}
.ads-popup__dot.is-active {
  width: 23px;
  border-radius: 99px;
  background: #1877f2;
}
.ads-popup__note {
  margin: 11px 3px 0;
  color: #71849a;
  font-size: 12px;
}
@media (max-width: 600px) {
  .ads-popup {
    padding: 12px;
  }
  .ads-popup__dialog {
    padding: 19px 13px 15px;
    border-radius: 19px;
  }
  .ads-popup__close {
    top: 10px;
    right: 10px;
    width: 37px;
    height: 37px;
  }
  .ads-popup__top {
    padding-right: 47px;
  }
  .ads-popup__top h2 {
    font-size: 21px;
  }
  .ads-popup__stage {
    min-height: 150px;
    border-radius: 12px;
  }
  .ads-popup__image {
    max-height: 60vh;
  }
  .ads-popup__arrow {
    width: 37px;
    height: 37px;
  }
  .ads-popup__arrow--prev {
    left: 8px;
  }
  .ads-popup__arrow--next {
    right: 8px;
  }
  .ads-popup__bottom {
    padding-top: 11px;
  }
}
/* Gestor de anuncios privado */
/* Presentación del panel privado para administrar anuncios. */

.ads-admin-card {
  border: 1px solid rgba(24, 119, 242, 0.18);
  background: linear-gradient(145deg, #fff, #f4f8fd);
}
.ads-admin-card h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #12385f;
  font-size: 1.13rem;
}
.ads-admin-card h2:before {
  content: '✦';
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #e6f1ff;
  color: #176bc1;
  font-size: 14px;
}
.ads-admin-card .ads-admin-help {
  margin: 0;
  color: #61768b;
  font-size: 0.92rem;
  line-height: 1.55;
}
.ads-admin-card input[type='file'] {
  margin-top: 11px;
  background: #fff;
}
.ads-admin-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  margin-top: 14px;
}
.ad-admin-slot {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 82px;
  overflow: hidden;
  border: 1px dashed #bdd0e3;
  border-radius: 12px;
  background: linear-gradient(135deg, #f5f9fd, #edf3fa);
  color: #7b8da1;
  font-size: 11px;
  font-weight: 700;
}
.ad-admin-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ad-admin-slot span {
  position: absolute;
  bottom: 5px;
  left: 5px;
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(9, 31, 53, 0.76);
  color: #fff;
  font-size: 10px;
}
.ad-admin-slot.is-filled {
  border-style: solid;
}
.ads-admin-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 13px;
}
.ads-admin-actions .ads-save {
  background: linear-gradient(120deg, #1877f2, #1054b5);
  color: #fff;
}
.ads-admin-card .msg {
  min-height: 0;
}
@media (max-width: 550px) {
  .ads-admin-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ad-admin-slot {
    min-height: 76px;
  }
}

/* Composición final del popup: la imagen es la protagonista, sin caja blanca */
.ads-popup {
  padding: 24px;
  background: rgba(3, 11, 22, 0.78);
  backdrop-filter: blur(5px);
}
.ads-popup__dialog {
  width: min(920px, 100%);
  max-height: none;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.ads-popup__title {
  position: relative;
  z-index: 2;
  width: fit-content;
  max-width: calc(100% - 92px);
  margin: 0 auto 17px;
  color: #fff;
  font-family: 'Space Grotesk', 'IBM Plex Sans', sans-serif;
  font-size: clamp(23px, 3.8vw, 38px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-align: center;
  text-wrap: balance;
  text-shadow:
    0 2px 18px rgba(35, 151, 255, 0.8),
    0 0 42px rgba(31, 139, 255, 0.62);
}
.ads-popup__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  max-height: 80vh;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  isolation: isolate;
}
.ads-popup__stage:before {
  position: absolute;
  z-index: -1;
  inset: 7% 12%;
  content: '';
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    rgba(27, 139, 255, 0.38) 0%,
    rgba(27, 139, 255, 0.2) 32%,
    rgba(27, 139, 255, 0) 72%
  );
  filter: blur(32px);
  transform: scale(1.18);
}
.ads-popup__image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(84vw, 860px);
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 0 12px rgba(85, 177, 255, 0.28))
    drop-shadow(0 0 34px rgba(32, 130, 255, 0.34));
}
.ads-popup__close {
  top: -6px;
  right: -6px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  background: rgba(10, 28, 49, 0.65);
  color: #fff;
  box-shadow: 0 0 22px rgba(62, 161, 255, 0.36);
  backdrop-filter: blur(8px);
}
.ads-popup__close:hover {
  background: rgba(28, 91, 151, 0.88);
}
.ads-popup__arrow {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  background: rgba(9, 28, 49, 0.58);
  box-shadow: 0 0 18px rgba(47, 143, 237, 0.3);
}
.ads-popup__arrow--prev {
  left: clamp(8px, 4vw, 35px);
}
.ads-popup__arrow--next {
  right: clamp(8px, 4vw, 35px);
}
.ads-popup__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 14px;
  margin: 14px auto 0;
}
.ads-popup__dot {
  width: 7px;
  height: 7px;
  background: rgba(224, 241, 255, 0.52);
  box-shadow: 0 0 7px rgba(55, 154, 255, 0.38);
}
.ads-popup__dot.is-active {
  width: 20px;
  background: #45b9ff;
  box-shadow: 0 0 12px rgba(69, 185, 255, 0.85);
}
@media (max-width: 600px) {
  .ads-popup {
    padding: 20px 13px;
  }
  .ads-popup__dialog {
    width: 100%;
  }
  .ads-popup__title {
    max-width: calc(100% - 82px);
    margin-bottom: 14px;
    font-size: clamp(21px, 6vw, 28px);
  }
  .ads-popup__stage {
    max-height: 78vh;
  }
  .ads-popup__image {
    max-width: 91vw;
    max-height: 76vh;
    border-radius: 6px;
  }
  .ads-popup__close {
    top: -5px;
    right: -3px;
    width: 37px;
    height: 37px;
  }
  .ads-popup__arrow {
    width: 36px;
    height: 36px;
  }
  .ads-popup__dots {
    margin-top: 11px;
  }
}

/* Enlace interactivo y foco accesible para el destino del anuncio. */

.ads-popup__link {
  display: block;
  cursor: pointer;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.ads-popup__link:hover {
  transform: scale(1.01);
}
.ads-popup__link:focus-visible {
  outline: 3px solid #45b9ff;
  outline-offset: 4px;
}
