html, body
{
   height: 100%;
}
div#space
{
   width: 1px;
   height: 50%;
   margin-bottom: -1710px;
   float:left
}
div#container
{
   width: 1206px;
   height: 3420px;
   margin: 0 auto;
   position: relative;
   clear: left;
}
body
{
   background-color: #FFFFFF;
   color: #000000;
   font-family: Arial;
   font-weight: normal;
   font-size: 16px;
   line-height: 1.1875;
   margin: 0;
   padding: 0;
}
    :root {
      --header-bg: #ffffff;
      --text-main: #0f172a;
      --text-muted: #475569;
      --border-color: #e2e8f0;
      --accent-red: #991b1b;
      --accent-gold: #b45309;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: 'Plus Jakarta Sans', sans-serif;
      background-color: #f8fafc;
      color: var(--text-main);
    }

    /* =========================================================
       CABECERA PRINCIPAL - TECLAZOS POLÍTICOS
       ========================================================= */
    .header-tp {
      background-color: var(--header-bg);
      border-bottom: 3px solid var(--accent-red);
      width: 100%;
      box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
    }

    /* Barra superior: Fecha actual, 15 años y Contador autoactualizable */
    .header-top-bar {
      background-color: #f1f5f9;
      border-bottom: 1px solid var(--border-color);
      padding: 8px 16px;
      font-size: 0.83rem;
      color: var(--text-muted);
    }

    .header-top-inner {
      max-width: 1120px;
      margin: 0 auto;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
    }

    .fecha-actual {
      font-weight: 600;
      color: var(--text-main);
      text-transform: capitalize;
    }

    .stats-group {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 12px;
    }

    .badge-aniversario {
      background-color: #fffbeb;
      color: var(--accent-gold);
      border: 1px solid #fde68a;
      padding: 2px 10px;
      border-radius: 20px;
      font-weight: 700;
      font-size: 0.78rem;
    }

    .contador-box {
      font-weight: 600;
      color: var(--text-main);
      background: #ffffff;
      padding: 2px 10px;
      border-radius: 6px;
      border: 1px solid var(--border-color);
    }

    /* Bloque central: Cuadrito foto autor + Título en Calibri + Nombre Autor + Clima + Teclazos Informativo */
    .header-main {
      max-width: 1120px;
      margin: 0 auto;
      padding: 26px 16px;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 22px;
    }

    .brand-hero {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 16px;
      width: 100%;
    }

    /* Marco cuadrado limpio para la foto del autor */
    .autor-foto-wrap {
      width: 96px;
      height: 108px;
      border-radius: 6px;
      overflow: hidden;
      border: 1px solid #cbd5e1;
      box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
      flex-shrink: 0;
      background-color: #e2e8f0;
    }

    .autor-foto {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .brand-text-center {
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .brand-kicker {
      font-size: 0.8rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.16em;
      color: var(--accent-red);
      margin-bottom: 4px;
    }

    .brand-title {
      font-family: 'Calibri', 'Candara', 'Segoe UI', sans-serif;
      font-size: clamp(2.8rem, 6.5vw, 4.5rem);
      font-weight: 700;
      color: var(--text-main);
      text-decoration: none;
      line-height: 1.05;
      letter-spacing: -0.01em;
      min-height: 1.1em;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .cursor-maquina {
      display: inline-block;
      width: 3px;
      height: 0.88em;
      background-color: var(--accent-red);
      margin-left: 5px;
      animation: parpadeo 0.75s infinite;
    }

    @keyframes parpadeo {
      0%, 49% { opacity: 1; }
      50%, 100% { opacity: 0; }
    }

    .brand-subtitle {
      font-size: 0.96rem;
      color: var(--text-muted);
      margin-top: 8px;
      font-weight: 500;
    }

    .brand-author-name {
      font-size: 1.02rem;
      font-weight: 700;
      color: var(--text-main);
      margin-top: 4px;
      letter-spacing: 0.01em;
    }

    .brand-author-name span {
      color: var(--accent-red);
      font-weight: 600;
    }

    /* Widget de Clima Ampliado */
    .clima-widget-container {
      background-color: #f8fafc;
      border: 1px solid var(--border-color);
      border-radius: 10px;
      padding: 12px 18px;
      width: 100%;
      max-width: 860px;
      display: flex;
      justify-content: center;
      align-items: center;
      box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    }

    .clima-widget-container > div {
      width: 100% !important;
    }

    /* =========================================================
       SECCIÓN: TECLAZOS INFORMATIVO (CON CRÉDITOS AUTOMÁTICOS)
       ========================================================= */
    .teclazos-informativo-wrap {
      width: 100%;
      max-width: 860px;
      background-color: #ffffff;
      border: 1px solid var(--border-color);
      border-top: 3px solid var(--accent-red);
      border-radius: 10px;
      padding: 16px 20px;
      text-align: left;
      box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    }

    .ti-header-principal {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 14px;
      padding-bottom: 8px;
      border-bottom: 1px solid #f1f5f9;
    }

    .ti-titulo-seccion {
      font-size: 1.05rem;
      font-weight: 800;
      color: var(--text-main);
      letter-spacing: -0.01em;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .ti-titulo-seccion span {
      color: var(--accent-red);
    }

    .ti-badge-en-vivo {
      font-size: 0.72rem;
      font-weight: 700;
      text-transform: uppercase;
      background-color: #fef2f2;
      color: var(--accent-red);
      padding: 3px 9px;
      border-radius: 12px;
      border: 1px solid #fecaca;
    }

    .ti-columnas {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
    }

    .ti-bloque-medio {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .ti-col-titulo {
      font-size: 0.82rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--accent-red);
      margin-bottom: 4px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .ti-credito-fuente {
      font-size: 0.7rem;
      font-weight: 600;
      color: #64748b;
      text-transform: none;
      letter-spacing: normal;
    }

    .ti-credito-fuente a {
      color: #475569;
      text-decoration: none;
    }

    .ti-credito-fuente a:hover {
      text-decoration: underline;
      color: var(--accent-red);
    }

    .ti-lista {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .ti-lista li a {
      font-size: 0.86rem;
      color: var(--text-main);
      text-decoration: none;
      font-weight: 500;
      line-height: 1.35;
      display: block;
      transition: color 0.2s;
    }

    .ti-lista li a:hover {
      color: var(--accent-red);
      text-decoration: underline;
    }

    .ti-cargando {
      font-size: 0.84rem;
      color: #64748b;
      font-style: italic;
    }

    /* Barra inferior de la cabecera */
    .header-bottom-bar {
      background-color: #0f172a;
      color: #ffffff;
      padding: 10px 16px;
      font-size: 0.87rem;
    }

    .header-bottom-inner {
      max-width: 1120px;
      margin: 0 auto;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
      gap: 8px;
    }

    .dias-publicacion {
      font-weight: 600;
      color: #f8fafc;
    }

    .dias-publicacion span {
      color: #fca5a5;
      font-weight: 700;
    }

    .autor-tag {
      color: #cbd5e1;
      font-size: 0.85rem;
    }

    /* Ajustes responsivos */
    @media (min-width: 768px) {
      .brand-hero {
        flex-direction: row;
        gap: 24px;
      }
      .autor-foto-wrap {
        width: 106px;
        height: 120px;
      }
    }

    @media (max-width: 700px) {
      .ti-columnas {
        grid-template-columns: 1fr;
        gap: 18px;
      }
    }

    @media (max-width: 640px) {
      .header-top-inner,
      .header-bottom-inner {
        justify-content: center;
        text-align: center;
      }
    }
      :root {
      --bg-page: #f8fafc;
      --bg-card: #ffffff;
      --text-main: #0f172a;
      --text-muted: #64748b;
      --accent-red: #991b1b;
      --border-light: #e2e8f0;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: 'Plus Jakarta Sans', sans-serif;
      background-color: var(--bg-page);
      color: var(--text-main);
    }

    /* =========================================================
       SECCIÓN: NUESTROS EVENTOS / INSERCIONES COMERCIALES
       ========================================================= */
    .eventos-wrapper {
      max-width: 960px;
      margin: 28px auto;
      padding: 0 16px;
    }

    .eventos-card {
      background-color: var(--bg-card);
      border: 1px solid var(--border-light);
      border-radius: 14px;
      padding: 24px 28px 28px;
      box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    }

    /* Encabezado de la sección */
    .eventos-header {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
      margin-bottom: 18px;
      padding-bottom: 12px;
      border-bottom: 2px solid var(--border-light);
    }

    .eventos-titulo-wrap {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .eventos-barra-acento {
      width: 5px;
      height: 24px;
      background-color: var(--accent-red);
      border-radius: 4px;
    }

    .eventos-titulo {
      font-size: 1.3rem;
      font-weight: 800;
      color: var(--text-main);
      letter-spacing: -0.01em;
    }

    .eventos-contador-slides {
      font-size: 0.8rem;
      font-weight: 700;
      color: var(--accent-red);
      background-color: #fef2f2;
      padding: 4px 12px;
      border-radius: 20px;
      border: 1px solid #fecaca;
    }

    /* Contenedor del Carrusel */
    .carrusel-viewport {
      position: relative;
      width: 100%;
      overflow: hidden;
      border-radius: 10px;
      background-color: #f1f5f9;
      border: 1px solid var(--border-light);
    }

    .carrusel-track {
      display: flex;
      transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
      width: 100%;
    }

    .carrusel-slide {
      min-width: 100%;
      position: relative;
      display: flex;
      flex-direction: column;
      background-color: #ffffff;
    }

    /* Contenedor de imagen adaptable sin recortar texto de flyers */
    .slide-img-box {
      width: 100%;
      aspect-ratio: 16 / 9;
      max-height: 460px;
      background-color: #0f172a;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }

    .slide-img-box img {
      width: 100%;
      height: 100%;
      object-fit: contain; /* Muestra el flyer o foto completa sin cortar bordes ni textos */
      display: block;
    }

    /* Pie informativo de cada anuncio */
    .slide-caption {
      padding: 14px 18px;
      background-color: #ffffff;
      border-top: 1px solid var(--border-light);
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
    }

    .slide-info h3 {
      font-size: 1rem;
      font-weight: 700;
      color: var(--text-main);
      margin-bottom: 2px;
    }

    .slide-info p {
      font-size: 0.84rem;
      color: var(--text-muted);
    }

    .slide-vigencia {
      font-size: 0.76rem;
      font-weight: 600;
      color: #475569;
      background-color: #f1f5f9;
      padding: 4px 10px;
      border-radius: 6px;
    }

    .btn-slide-link {
      background-color: var(--accent-red);
      color: #ffffff;
      text-decoration: none;
      font-size: 0.82rem;
      font-weight: 700;
      padding: 7px 14px;
      border-radius: 7px;
      transition: background-color 0.2s ease;
    }

    .btn-slide-link:hover {
      background-color: #7f1d1d;
    }

    /* Flechas de navegación */
    .carrusel-btn {
      position: absolute;
      top: 42%;
      transform: translateY(-50%);
      width: 42px;
      height: 42px;
      border-radius: 50%;
      background-color: rgba(255, 255, 255, 0.92);
      color: var(--text-main);
      border: 1px solid var(--border-light);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      font-size: 1.2rem;
      font-weight: 800;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 10;
      transition: all 0.2s ease;
    }

    .carrusel-btn:hover {
      background-color: var(--accent-red);
      color: #ffffff;
      border-color: var(--accent-red);
    }

    .carrusel-btn.prev { left: 12px; }
    .carrusel-btn.next { right: 12px; }

    /* Indicadores inferiores (puntitos) */
    .carrusel-dots {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 8px;
      margin-top: 16px;
    }

    .dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background-color: #cbd5e1;
      border: none;
      cursor: pointer;
      transition: all 0.25s ease;
    }

    .dot.active {
      width: 26px;
      border-radius: 6px;
      background-color: var(--accent-red);
    }

    /* Mensaje por si todos los anuncios ya caducaron */
    .sin-eventos-msg {
      padding: 40px 20px;
      text-align: center;
      color: var(--text-muted);
      font-size: 0.95rem;
    }

    @media (max-width: 640px) {
      .eventos-card {
        padding: 18px 14px 20px;
      }
      .slide-img-box {
        aspect-ratio: 4 / 3;
      }
      .carrusel-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
      }
    }
      /* =========================================================
       1. CONFIGURACIÓN BASE Y ESTILOS GENERALES
       ========================================================= */
    html, body {
        background-color: transparent; 
        margin: 0;
        padding: 0;
        scroll-behavior: smooth;
    }

    body {
        font-family: 'Calibri', 'Candara', 'Segoe', 'Segoe UI', sans-serif;
        color: #333;
        line-height: 1.4;
    }

    #contenedor-columna {
        max-width: 850px;
        width: 90%;
        margin: 0 auto;
        padding: 20px 20px;
        box-sizing: border-box;
    }

    /* =========================================================
       2. ENCABEZADO DE LA COLUMNA
       ========================================================= */
    .fecha-superior {
        font-size: 18pt;
        font-weight: bold;
        color: #666;
        text-align: center;
        display: block;
        margin-bottom: 2px;
    }

    .nombre-serie {
        font-size: 35pt;
        font-weight: bold;
        color: #1a1a1a;
        text-align: center;
        display: block;
        margin-bottom: 2px;
    }

    .titulo-entrega {
        font-size: 22pt; 
        font-weight: bold;
        color: #1f3a93;
        text-align: center;
        display: block;
        margin: 2px 0;
    }

    .nombre-autor {
        font-size: 20pt;
        font-style: italic;
        text-align: center;
        display: block;
        margin-bottom: 10px;
        color: #444;
    }

    .lectura-info {
        text-align: center;
        font-size: 10pt;
        color: #999;
        margin-bottom: 15px;
        border-bottom: 1px solid #eee;
        padding-bottom: 5px;
    }

    /* =========================================================
       3. CUERPO DE TEXTO Y TÍTULOS DE LA COLUMNA
       ========================================================= */
    .cuerpo-texto {
        font-size: 12pt;
        text-align: justify;
    }

    .cuerpo-texto h3 {
        color: #1f3a93;
        font-size: 15pt;
        margin-top: 15px;
        margin-bottom: 4px;
    }

    .cuerpo-texto p {
        margin-bottom: 0.8em;
    }

    /* =========================================================
       4. SECCIÓN: ENCUESTA POLÍTICA (OPCIÓN A - VÍA WHATSAPP)
       ========================================================= */
    .bloque-encuesta {
        background: #fff;
        border: 1px solid #e2e8f0;
        border-left: 5px solid #d97706;
        border-radius: 4px;
        padding: 18px;
        margin: 20px 0;
    }

    .bloque-encuesta h4 {
        color: #92400e;
        margin: 0 0 6px 0;
        font-size: 12pt;
    }

    .bloque-encuesta p {
        font-size: 10pt;
        color: #4a5568;
        margin-bottom: 12px;
    }

    .opciones-encuesta {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .btn-opcion {
        background: #f8fafc;
        border: 1px solid #cbd5e1;
        padding: 10px 14px;
        border-radius: 6px;
        text-align: left;
        font-family: inherit;
        font-size: 10.5pt;
        cursor: pointer;
        text-decoration: none;
        color: #1e293b;
        font-weight: 600;
        display: block;
        transition: all 0.2s;
    }

    .btn-opcion:hover {
        background: #f1f5f9;
        border-color: #94a3b8;
    }

    /* =========================================================
       5. SECCIÓN: TECLAZOS REGALA (DINÁMICA DE REGALOS / SORTEOS)
       ========================================================= */
    .bloque-regalos {
        background: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%);
        border: 1px solid #f5d0fe;
        border-left: 5px solid #c026d3;
        border-radius: 4px;
        padding: 18px;
        margin: 20px 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 15px;
    }

    .regalos-texto h4 {
        color: #86198f;
        margin: 0 0 4px 0;
        font-size: 12pt;
    }

    .regalos-texto p {
        margin: 0;
        font-size: 10pt;
        color: #701a75;
    }

    .btn-participar {
        background-color: #c026d3;
        color: white;
        text-decoration: none;
        padding: 9px 18px;
        font-size: 10pt;
        font-weight: bold;
        border-radius: 6px;
        transition: background 0.2s;
        white-space: nowrap;
    }

    .btn-participar:hover {
        background-color: #a21caf;
    }

    /* =========================================================
       6. CAJA DE BIOGRAFÍA DEL AUTOR
       ========================================================= */
    .caja-autor-final {
        border: 1px solid #ccc;
        padding: 15px;
        background-color: rgba(230, 238, 249, 0.4); 
        border-left: 6px solid #1f3a93;
        margin-top: 25px;
        font-size: 11pt;
        border-radius: 4px;
    }

    /* =========================================================
       7. BLOQUE EDITORIAL DE DONACIONES Y CUENTA BANCARIA
       ========================================================= */
    .bloque-apoyo-editorial {
        background-color: #f8fafc;
        border-left: 5px solid #1f3a93;
        border: 1px solid #e2e8f0;
        border-left-width: 5px;
        border-radius: 4px;
        padding: 15px;
        margin: 15px 0 15px 0;
    }

    .bloque-apoyo-editorial h4 {
        color: #1f3a93;
        margin: 0 0 2px 0;
        font-size: 12pt;
        font-weight: bold;
    }

    .bloque-apoyo-editorial p {
        margin: 0 0 8px 0;
        font-size: 10.5pt;
        color: #4a5568;
    }

    .info-bancaria-contenedor {
        background: white;
        border: 1px solid #e2e8f0;
        padding: 10px;
        border-radius: 4px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .detalles-cuenta {
        display: flex;
        flex-direction: column;
    }

    .banco-tag {
        font-size: 8pt;
        text-transform: uppercase;
        color: #718096;
        font-weight: bold;
    }

    .banco-digitos {
        font-size: 14pt;
        font-weight: bold;
        color: #1a202c;
        margin: 1px 0;
        font-family: 'Courier New', Courier, monospace;
    }

    .banco-propietario {
        font-size: 10pt;
        color: #2d3748;
    }

    .btn-copiar-cuenta {
        background-color: #1f3a93;
        color: white;
        border: none;
        padding: 8px 15px;
        font-size: 9.5pt;
        font-weight: bold;
        border-radius: 4px;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

    .btn-copiar-cuenta:hover {
        background-color: #152a6b;
    }

    .btn-copiar-cuenta.exito {
        background-color: #2db742;
    }

    /* =========================================================
       8. PIE DE PÁGINA Y REDES SOCIALES
       ========================================================= */
    .footer-contenedor {
        margin-top: 25px;
        text-align: center;
        border-top: 1px solid #eee;
        padding-top: 15px;
        padding-bottom: 10px;
    }

    .footer-sit {
        font-size: 10pt;
        color: #777;
        margin-bottom: 12px;
    }

    .footer-sit a {
        color: #1f3a93;
        text-decoration: none;
        font-weight: bold;
    }

    .redes-sociales {
        display: flex; 
        justify-content: center; 
        gap: 20px;
    }

    /* =========================================================
       9. BOTONES FLOTANTES (WHATSAPP Y SUBIR)
       ========================================================= */
    .whatsapp-flotante {
        position: fixed;
        bottom: 85px;
        right: 20px;
        background: #25d366;
        color: white;
        width: 52px;
        height: 52px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(0,0,0,0.25);
        z-index: 1000;
        transition: transform 0.2s;
        text-decoration: none;
    }

    .whatsapp-flotante:hover {
        transform: scale(1.1);
    }

    #btn-arriba {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background: #1f3a93;
        color: white;
        width: 52px;
        height: 40px;
        border-radius: 20px;
        text-decoration: none;
        font-size: 11px;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        display: none;
        z-index: 1000;
    }

    /* =========================================================
       10. RESPONSIVIDAD (MÓVILES)
       ========================================================= */
    @media screen and (max-width: 600px) {
        .nombre-serie { font-size: 22pt; }
        .titulo-entrega { font-size: 18pt; }
        .info-bancaria-contenedor { flex-direction: column; align-items: flex-start; }
        .btn-copiar-cuenta { width: 100%; text-align: center; }
        .banco-digitos { font-size: 13pt; }
        .bloque-regalos { flex-direction: column; text-align: center; }
        .btn-participar { width: 100%; text-align: center; }
    }
    