body {
  margin: 10px;
  font-family: Arial, sans-serif;
  background-color: #0d0c2b;
  color: white;
}
.container {
  max-width: 500px;
  margin: 10px auto;
  background-color: #191847;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 10px;
}
.header-box {
  text-align: center;
  color: #fbd700;
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #fbd700;
}
.article-title {
  text-transform: uppercase;
  font-weight: bold;
  color: #fbd700;
  font-size: 1.2em;
  margin-top: 25px;
  margin-bottom: 35px;
  text-align: center;
}
.paragraph-box {
  background-color: #0d0c2b;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 6px;
  line-height: 1.6;
}
.paragraph-box strong {
  color: #fbd700;
}
footer {
  text-align: center;
  margin-top: 30px;
}
footer a {
  color: #fbd700;
  margin: 0 10px;
  text-decoration: none;
  font-size: 0.9em;
}
footer a:hover {
  text-decoration: underline;
}

/* VIDEO GRANDE: igual que el principal */
.video-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin: 0 auto 24px auto;
  width: 100%;
  max-width: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-bg {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
  border-radius: 10px;
  aspect-ratio: 16/9;
}

/* PLAY BUTTON más pequeño */
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 68px;
  background: rgba(255,255,255,0.65);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 24px #0006;
  animation: pulse 1.2s infinite;
}

.play-button::before {
  content: '';
  display: inline-block;
  margin-left: 7px;
  border-style: solid;
  border-width: 18px 0 18px 32px;
  border-color: transparent transparent transparent #191f46;
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.12); opacity: 0.7; }
}

/* ANUNCIOS grandes y sin contenedor */
.gpt-ad, #Content1, #Content2, #Content3 {
  width: 100%;
  max-width: 100%;
  margin: 0 auto 24px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}
.gpt-ad > div, #Content1 > div, #Content2 > div, #Content3 > div {
  margin: 0 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Elimina contenedores extra que hacían los videos y anuncios pequeños */
.ad-block, .video-section {
  all: unset;
  display: initial;
}

/* CTA overlay, sin cambios */
.cta-btn-overlay {
  position: absolute; 
  top: 50%; 
  left: 50%; 
  transform: translate(-50%, -50%);
  padding: 18px 34px; 
  font-size: 20px; 
  background: #222; 
  color: #fff;
  border: none; 
  border-radius: 12px; 
  cursor: pointer; 
  z-index: 30; 
  box-shadow: 0 4px 24px rgba(0,0,0,0.22); 
  opacity: 0.97;
}
.video-blur { 
  filter: blur(7px) grayscale(0.7); 
  pointer-events: none; 
  transition: filter 0.5s;
}
/* Separador */
.box {
  width: 100%;
  max-width: 500px;
  margin: 22px auto 22px auto;
  border-bottom: 2px solid #fbd700;
  opacity: 0.7;
  height: 0;
  padding: 0;
  box-sizing: border-box;
}
@media (max-width: 600px) {
  .container, 
  #fb-dynamic-content, 
  .contenido-dinamico {
    max-width: 100vw;
    padding: 0 2vw;
  }
  .video-wrapper,
  .gpt-ad,
  #Content1, #Content2, #Content3,
  .box {
    max-width: 100vw;
  }
}
.ad-block + .ad-block,
.video-section + .video-section {
  margin-top: 0;
}
.ad-block-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 16px 0;
  box-sizing: border-box;
  overflow-x: auto;
}
.code-block {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 420px;
  /*width: 100%;*/
  margin: 0 auto;
  box-sizing: border-box;
}

.ad-center {
  display: flex;
  justify-content: center;
  /* align-items: center; Opcional: centra verticalmente si el contenedor tiene altura fija */
}

/* =====================
   15. SECCIÓN RELACIONADA
   ===================== */

.related-section {
  margin: 20px auto;
  text-align: center;
}

.related-title {
    font-size: 18px;
    margin: 10px;
    font-weight: 600;
}

.related-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
}
.related-card {
  /* background: #fff;
  border: 4px solid #2226a5;
  border-radius: 16px; 
  box-shadow: 0 2px 12px rgba(50,50,50,0.07);
  */

  max-width: 340px;
  flex: 1 1 220px;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
}


.related-card:hover {
  transform: translateY(-4px) scale(1.03); 
 /* box-shadow: 0 8px 28px rgba(32,32,32,0.16);  */
}


.related-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  /*
  background: #f4f4f4;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
  */
  
  display:flex;
  align-items:center;
  justify-content:center;
}
.related-card-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}
.related-card-title {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  margin-top: 0.5rem;
  text-align: center;
  min-height: 3.5em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.link {
  color: white;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.link:hover,
.link:active {
  color: #ccc; /* gris claro */
}
