@import url('https://fonts.googleapis.com/css2?family=Anek+Tamil:wght@300&display=swap');
/* ==============================
   GENERAL STYLES
   ============================== */
   body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
  }
  
  a {
    color: white;
    text-decoration: none;
  }
  
  a:hover {
    color: #eceff0;
  }

  /* Modo oscuro */
body.dark-mode {
  background-color: #121212;
  color: #ffffff;
}

body.dark-mode header,
body.dark-mode footer {
  background-color: #1f1f1f;
}

body.dark-mode #technical-notice {
  background-color: #414142;
}

body.dark-mode .legal {
  color: #a8a8a8;
}

body.dark-mode nav {
  background-color: #272727;
  color: #ffffff;
}

body.dark-mode #inicio {
  background: linear-gradient(to bottom, #2c2c2c, #121212);
  color: #ffffff;
}

body.dark-mode button {
  background-color: #003774;
  color: white;
}

body.dark-mode button:hover {
  background-color: #004085;
}
  
  /* ==============================
     HEADER & NAVIGATION
     ============================== */
  nav {
    background: #0070eb;
    padding: 0 15px;
  }
  
  .menu,
  .submenu {
    list-style-type: none;
  }
  
  .logo {
    font-size: 20px;
    padding: 7.5px 10px 7.5px 0;
  }
  
  .item {
    padding: 10px;
  }
  
  .item.button {
    padding: 9px 5px;
  }
  
  .menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }
  
  .menu li a {
    display: block;
    padding: 10px 5px;
  }
  
  .menu li.subitem a {
    padding: 15px;
  }
  
  .toggle {
    order: 1;
    font-size: 20px;
  }
  
  .item.button {
    order: 2;
  }
  
  .item {
    order: 3;
    width: 100%;
    text-align: center;
    display: none;
  }
  
  .active .item {
    display: block;
  }
  
  .button.secondary {
    border-bottom: 1px #444 solid;
  }
  
  .submenu {
    display: none;
  }
  
  .submenu-active .submenu {
    display: block;
  }
  
  .has-submenu i {
    font-size: 12px;
  }
  
  .has-submenu > a::after {
    font-family: "Font Awesome 5 Free";
    font-size: 12px;
    line-height: 16px;
    font-weight: 900;
    content: "\f078";
    color: white;
    padding-left: 5px;
  }
  
  .subitem a {
    padding: 10px 15px;
  }
  
  .submenu-active {
    background-color: rgba(17, 17, 17, 0.212);
    border-radius: 3px;
  }
  
  /* Tablet Menu */
  @media all and (min-width: 700px) {
    .menu {
      justify-content: center;
    }
  
    .logo {
      flex: 1;
    }
  
    .item.button {
      width: auto;
      order: 1;
      display: block;
    }
  
    .toggle {
      flex: 1;
      text-align: right;
      order: 2;
    }
  
    .menu li.button a {
      padding: 10px 15px;
      margin: 5px 0;
    }
  
    .button a {
      background: #0080ff;
      border: 1px royalblue solid;
    }
  
    .button.secondary {
      border: 0;
    }
  
    .button.secondary a {
      background: transparent;
      border: 1px #0080ff solid;
    }
  
    .button a:hover {
      text-decoration: none;
    }
  
    .button:not(.secondary) a:hover {
      background: royalblue;
      border-color: darkblue;
    }
  }
  
  /* Desktop Menu */
  @media all and (min-width: 960px) {
    .menu {
      align-items: flex-start;
      flex-wrap: nowrap;
      background: none;
    }
  
    .logo {
      order: 0;
    }
  
    .item {
      order: 1;
      position: relative;
      display: block;
      width: auto;
    }
  
    .button {
      order: 2;
    }
  
    .submenu-active .submenu {
      z-index: 1;
      display: block;
      position: absolute;
      left: 0;
      top: 68px;
      background: rgba(17, 17, 17, 0.9);
    }
  
    .toggle {
      display: none;
    }
  
    .submenu-active {
      border-radius: 0;
    }
  }
  
  /* Mobile-specific adjustments */
  @media all and (max-width: 700px) {
    .menu {
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
    }
  
    .logo {
      order: 0;
      flex: 1;
      text-align: left;
    }
  
    .toggle {
      order: 1;
      flex: 0;
      text-align: right;
    }
  
    .item {
      display: none;
    }
  
    .active .item {
      display: block;
    }
  }
  
  /* ==============================
     SECTIONS
     ============================== */

  #technical-notice {
    background-color: #006cd7;
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 0.9rem;
    font-weight: bold;
    display: none; /* Oculto por defecto */
  }
  
  #technical-notice.visible {
    display: block; /* Visible cuando se cumpla la condición */
  }

  #inicio {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(to bottom, #007BFF, #ffffff);
    color: white;
  }
  
  #inicio h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .button-youtube {
    display: inline-block;
    background-color: #FF0000;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
  }
  
  .button-youtube:hover {
    background-color: #cc0000;
  }

  /* ==============================
   COLLAPSIBLE SECTION (Deprecated - no longer used)
   ============================== */
  /* Estilos removidos - esta funcionalidad fue reemplazada por el widget de YouTube */
  
  /* ==============================
   GALLERY
   ============================== */
  #galeria {
    padding: 2rem;
    text-align: center;
  }
  
  #galeria h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  /* YouTube Grid y Cards */
  .youtube-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
  }

  .youtube-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
  }

  body.dark-mode .youtube-card {
    background-color: #2c2c2c;
  }

  .youtube-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }

  .youtube-iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Aspect ratio 16:9 */
    height: 0;
    overflow: hidden;
    background-color: #000;
  }

  .youtube-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
  }

  .youtube-info {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }

  .youtube-title {
    font-size: 1rem;
    font-weight: bold;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    color: #333;
    flex-grow: 1;
  }

  body.dark-mode .youtube-title {
    color: #ffffff;
  }

  .youtube-date {
    font-size: 0.85rem;
    color: #888;
    margin: 0;
  }

  body.dark-mode .youtube-date {
    color: #a8a8a8;
  }

  .youtube-view-more {
    display: inline-block;
    background-color: #FF0000;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
  }

  .youtube-view-more:hover {
    background-color: #cc0000;
  }

  .youtube-error {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 1.1rem;
  }

  body.dark-mode .youtube-error {
    color: #ccc;
  }
  
  /* ==============================
     FULLSCREEN VIEW (Deprecated - no longer used)
     ============================== */
  /* Estilos removidos - esta funcionalidad fue reemplazada por el widget de YouTube */
  
  /* ==============================
     FOOTER
     ============================== */
  .footer {
    margin-top: auto;
    text-align: center;
    display: flex;
    flex-flow: row wrap;
    padding: 17px 30px 20px 30px;
    color: #2f2f2f;
    background-color: rgb(215 215 215 / 50%);
    font-weight: bold;
  }
  
  .footer > * {
    flex: 1 100%;
  }
  
  .legal {
    display: flex;
    flex-wrap: wrap;
    color: #5b5959;
  }
  
  .legal__links {
    display: flex;
    align-items: center;
    font-size: 90%;
  }
  
  .sol {
    color: #fffb00;
  }
  
  @media screen and (min-width: 450px) {
    .legal .legal__links {
      margin-left: auto;
    }
  }
  
  @media screen and (min-width: 40.375em) {
    .footer__nav > * {
      flex: 1;
    }
  
    .nav__item--extra {
      flex-grow: 2;
    }
  
    .footer__addr {
      flex: 1 0px;
    }
  
    .footer__nav {
      flex: 2 0px;
    }
  }
  
  /* ==============================
     RESPONSIVE DESIGN
     ============================== */
  @media (min-width: 960px) {
    .youtube-grid {
      grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
  }

  @media (max-width: 768px) {
    #galeria {
      padding: 2rem 1.5rem;
    }

    header {
      flex-direction: column;
      gap: 1rem;
    }
  
    header nav ul {
      flex-direction: column;
      gap: 0.5rem;
    }
  
    #inicio h1 {
      font-size: 2rem;
    }
  
    #inicio p {
      font-size: 1rem;
    }
  
    #galeria h2 {
      font-size: 1.5rem;
    }
  
    .radar-item h3 {
      font-size: 0.9rem;
    }
  
    .radar-item button {
      font-size: 0.8rem;
      padding: 0.4rem 0.8rem;
    }
  }
  
  @media (max-width: 480px) {
    #galeria {
      padding: 2rem 1rem;
    }

    #inicio h1 {
      font-size: 1.5rem;
    }
  
    #inicio p {
      font-size: 0.9rem;
    }
  
    #galeria h2 {
      font-size: 1.2rem;
    }
  
    .radar-item h3 {
      font-size: 0.8rem;
    }
  
    .radar-item button {
      font-size: 0.7rem;
      padding: 0.3rem 0.6rem;
    }
  }