audio, canvas, embed, iframe, img, object, svg, video {
    display: inline !important;
    vertical-align:  !important;
}
.contenedorNotas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.notaItem {
  width: 30%;
  color: #fff;
  text-decoration: none;
}
.notaItem h3{
    font-weight: 500;
    font-size: 20px;
}
.notaItem:hover{
    text-decoration: underline;
}
.imgNota {
  height: 250px;
  background-size: cover;
  background-position: center;
  border-radius: 15px;
}
.imgNota:hover {
  border: solid #fff;
}

/* Responsive */
@media (max-width: 992px) {
  .notaItem { width: 45%; }
}

@media (max-width: 576px) {
  .notaItem { width: 100%; }
}

.categorias {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 30px;
}

.btnCategoria {
  background: #ffffff;
  color: #0d6efd;
  border: 2px solid #0d6efd;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Hover */
.btnCategoria:hover {
  background: #0d6efd;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(13,110,253,0.3);
}

/* Activo */
.btnCategoria.active {
  background: #0d6efd;
  color: #fff;
  box-shadow: 0 6px 20px rgba(13,110,253,0.4);
}

/* Contador (opcional) */
.btnCategoria span {
  background: rgba(13,110,253,0.1);
  color: #0d6efd;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 20px;
  font-weight: 700;
}

/* Contador cuando está activo */
.btnCategoria.active span,
.btnCategoria:hover span {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

header {
    background-image: url("../img/bgblue.png");
    background-size: 100% 100%;
} 
header h1{
    font-size: 40px;
    font-weight: 700;
}
header p{
    font-size: 25px;
}
.casilla-contenido h1{
  font-size: 25px;
  font-weight: 700;
  color: #061a31;
}
#logotablero{
  width: 230px;
}
.bandera img {
    width: 100%;
    height: auto;
    max-height: 40px;
    object-fit:fill; 
    display: block;
}
/* BOTON LIDIA */
.lidia-bubble {
    position: fixed;
    bottom: 20px;  /* Pegado al fondo */
    right: 20px;   /* Pegado al lado derecho */
    background-color: #061a31;  /* Color verde de WhatsApp */
    border-radius: 50%;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 1000; /* Asegura que el botón esté encima de otros elementos */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icono dentro del botón */
.lidia-bubble img {
    width: 35px;
}

/* Estilo del mensaje que aparece cuando se pasa el cursor */
.lidia-message {
    display: block;
    position: absolute;
    bottom: 50px; /* Justo encima del botón */
    right: 20px;
    background-color: #061a31;
    color: white;
    padding: 8px;
    border-radius: 10px;
    font-size: 14px;
    white-space: nowrap;
}

/* Mostrar el mensaje cuando el botón se encuentra en hover */
.lidia-bubble:hover .lidia-message {
    padding: 25px;
    transition: 0.6s;
}
/* ==========================================================================
   #REDES SOCIALES
   ========================================================================== */
   .home-social-list {
      position: absolute;
      z-index: 200;
      right: 22px;
      top: 15vh;
      margin: 0;
      padding: 0;
      list-style: none;
      font-size: 1.5rem;
      line-height: 1.75;
      text-align: center;
      padding: 5px;
      padding: 12px 5px !important;
      border-radius: 25px;
      -webkit-transform: translateY(-55%);
      -ms-transform: translateY(-55%);
      transform: translateY(-55%); }
      @media only screen and (min-width: 1024px) {
        .home-social-list {
          right: 42px; 
      } 
  }
  .home-social-list:hover {

  }

  .home-social-list::before {
      display: block;
      content: "";
      width: 2px;
      height: 42px;
      background-color: #e51837;
      margin-left: auto;
      margin-right: auto;
      margin-bottom: 12px; 
  }

  .home-social-list li {
      padding-left: 0; 
  }

  .home-social-list li a,
  .home-social-list li a:visited {
      color: #fff !important;
      cursor: pointer;
      opacity: 1;
  }
  .home-social-list li a:hover {
      font-size: 3.2rem;
      opacity: 1;
  }
  .timeline-container {
      padding: 0px 15px;
      text-align: center;
  }

  .title {
      font-size: 28px;
      margin-bottom: 8px;
  }

  .title-line {
      width: 120px;
      height: 3px;
      background: #ff2e2e;
      margin: 0 auto 40px;
  }

  .timeline {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      position: relative;
      margin-top: 40px;
  }

  .timeline::before {
      content: "";
      position: absolute;
      top: 18px;
      left: 0;
      right: 0;
      height: 4px;
      background: #1e5eff;
  }

  .event {
      width: 18%;
      text-align: center;
      position: relative;
  }

  .dot {
      width: 16px;
      height: 16px;
      background: #0f2a44;
      border: 3px solid #1e5eff;
      border-radius: 50%;
      display: block;
      margin: 0 auto 15px;
      position: relative;
      z-index: 2;
  }

  .event h4 {
      font-size: 14px;
      margin-bottom: 6px;
  }

  .event p {
      font-size: 13px;
      opacity: 0.9;
  }

  .side-info {
    position: absolute;
    top: 150px;
    width: 260px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgb(0, 0, 0);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
    z-index: 20;
}

.side-info.left {
    left: -300px;
}

.side-info.right {
    right: -300px;
}

.side-info.active {
    opacity: 1;
    pointer-events: auto;
}

.side-info.left.active {
    left: 10px;
}

.side-info.right.active {
    right: 10px;
}

.side-info h3 {
    margin-bottom: 10px;
    color: #0033ff;
}

.side-info p {
    max-height: 350px;
    overflow-y: auto;
    white-space: normal;
    color: #000;
}

.side-info h4,
.side-info ul,
.side-info li {
    color: #000;
}


.cell {
    border: 1px solid #000;
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

.empty-cell {
    background: transparent;
}


:root {
    --azul: #005CA9;
    --blanco: #fff;
    --rojo: #E51837;
    --gris-claro: #F5F5F5;
    --gris-oscuro: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #142d4a;
    color: #fff;
    line-height: 1.6;
}


/*
header {
    background: #061a31;
    padding: 1rem 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
*/
.video-carousel {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}
.video-track::-webkit-scrollbar {
    width: 1px;
}
.video-track::-webkit-scrollbar-thumb {
    background: #e51837;
    border-radius: 10px;
}
.video-carousel button{
  font-size: 60px;
}
.video-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.video-item {
  min-width: 200px;
  height: 355px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* título arriba */
  position: relative;
}

.video-item video {
  width: 100%;
  height: calc(100% - 30px); /* dejar espacio para título */
  object-fit: cover;
}

.video-title {
  height: 30px;
  padding: 18px 5px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 12.5px;
  display: flex;
  align-items: center;
}
.player{
  padding-left: 100px;
  padding-right: 100px;
  padding-bottom: 50px;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

nav {
    background-color: #142d4a;
    padding: 1rem 0;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: var(--blanco);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--rojo);
}
.candidatos li{
    list-style: none;
}

.hero {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1551135049-8a33b5883817?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: var(--blanco);
    text-align: center;
    padding: 5rem 1rem;
    margin-bottom: 2rem;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--rojo);
    color: var(--blanco);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #c0102a;
}

.section-title {
    text-align: center;
    color: #fff;
    font-size: 35px;
    font-weight: 600;
}

.section-title:after {
    content: '';
    display: block;
    width: 300px;
    height: 3px;
    background-color: var(--rojo);
    margin: 0.5rem auto;
}

.candidates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.candidate-card {
    background-color: var(--blanco);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.candidate-card:hover {
    transform: translateY(-5px);
}

.candidate-img {
    height: 200px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
}

.candidate-info {
    padding: 1.5rem;
}

.candidate-info h3 {
    color: var(--azul);
    margin-bottom: 0.5rem;
}

.candidate-info p {
    color: var(--gris-oscuro);
    font-size: 0.9rem;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.timeline:before {
    top: 33px;
    bottom: 0;
    background-color: var(--azul);
    left: 0%;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    padding: 20px;
    background-color: var(--blanco);
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.timeline-content h3 {
    color: var(--azul);
    margin-bottom: 0.5rem;
}

.timeline-date {
    font-weight: bold;
    color: var(--rojo);
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.info-card {
    background-color: var(--blanco);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.info-card i {
    font-size: 3rem;
    color: var(--azul);
    margin-bottom: 1rem;
}

.info-card h3 {
    color: var(--azul);
    margin-bottom: 1rem;
}

.footer {
  position: relative;
  background: #000;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  z-index: 1100;
}

.footer-top-line {
  height: 5px;
  background: linear-gradient(
    to right,
    #fbbf24 0%,
    #f97316 25%,
    #22c55e 50%,
    #06b6d4 75%,
    #0ea5e9 100%
  );
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 33px 130px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.footer-columns {
  display: flex;
  gap: 60px;
}

.footer-column h3 {
  font-size: 28px;
  margin-bottom: 20px;
}

.footer-column p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 18px;
}

.footer-column strong {
  font-weight: 700;
}

.footer-logos {
  flex-direction: column;
  align-items: flex-end;
  gap: 30px;
}

.footer-logos img {
  max-width: 160px;
}

.footer-bottom {
  padding: 0px 20px 15px;
  text-align: center;
}

.footer-links {
  margin-bottom: 20px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.footer-links span {
  margin: 0 10px;
}

.footer-copy {
  font-size: 14px;
  opacity: 0.8;
}

.social-links {
    margin: 1rem 0;
}

.social-links a {
    color: var(--blanco);
    margin: 0 0.5rem;
    font-size: 1.5rem;
}


@media (max-width: 768px) {

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 0.5rem 0;
    }
}


@media (max-width: 768px) {
    header {
        background-size: cover; 
        min-height: 150px;
    }
    .footer-content {
      flex-direction: column;
      padding: 30px 50px;
    }

    .footer-columns {
      display: inline;
      flex-direction: column;
      text-align: center;
    }

    .footer-logos {
      align-items: flex-start;
      text-align: center;
    }
    #h3{
      display: none;
    }
}


.timeline-horizontal {
    scrollbar-width: thin;
}

@media (max-width: 768px) {
    .side-info {
        position: fixed !important;
        top: auto;
        bottom: 20px;
        left: 50% !important;
        transform: translateX(-50%);
        width: 90%;
    }
}


@media (max-width: 768px) {
    .candidates-grid {
        grid-template-columns: 1fr;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    #board {
        width: 95vw;
        height: 95vw;
        max-width: 460px;
        max-height: 460px;
    }
}


@media (max-width: 500px) {
    nav ul li {
        margin: 0.2rem 0;
    }
}

.timeline-horizontal {
    position: relative;
}

.timeline-horizontal::before {
    content: "";
    position: absolute;
    top: 60px;
    height: 6px;
    background: #0033ff;
    width: 100%;
    min-width: max-content; 
}

@media (max-width: 600px) {
    header{
      background-position: left;
      background-image: url("../img/bgheader.png");
    }
    .timeline-step {
        width: 240px;
        white-space: normal; 
        margin-right: 40px; 
    }

    .timeline-step h3 {
        font-size: 1rem;
        margin-top: 5px;
    }

    .timeline-step .date {
        font-size: 0.9rem;
    }
    .player{
      padding-left: 0px;
      padding-right: 0px;
      padding-bottom: 40px;
    }
    .event p {
      font-size: 11px;
      opacity: 0.9;
    }
    .event h4 {
      font-size: 14px;
    }
    .timeline:before {
      top: 53px;
    }
}

@media (max-width: 600px) {

    .home-social-list {
      top: 13vh;
      font-size: 28px;
      line-height: 1.75;
      right: 2px;
    }
  #menu-btn{
      font-size: 45px !important;
  }
  .timeline-horizontal::before {
    top: 50px;
}
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 25px;
}

.category-btn {
    padding: 10px 20px;
    border: 2px solid #1e88e5;
    border-radius: 30px;
    background: white;
    color: #1e88e5;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    transition: 0.25s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.category-btn.active {
    background: #1e88e5;
    color: white;
}

.category-btn .count {
    background: rgba(0,0,0,0.07);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 13px;
}

.category-btn.active .count {
    background: rgba(255,255,255,0.25);
}

#category-results {
    margin-top: 20px;
    text-align: center;
    font-size: 18px;
    min-height: 40px;
}


.modal-inner {
    max-height: 60vh;
    overflow-y: auto;
}

/* Scrollbar personalizado para el modal */
.modal-inner::-webkit-scrollbar {
    width: 8px;
}

.modal-inner::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-inner::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.modal-inner::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.casilla-contenido {
    text-align: center;
}

.casilla-contenido img {
    width: 100px;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 0 auto 10px;
}

.casilla-contenido ul {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
}

.casilla-contenido a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: blue;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

.casilla-box {
    background: #e6f0ff;                 
    border-left: 6px solid #1a4fb8;      
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
}