@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 .radar-item {
  background-color: #2c2c2c;
  color: #ffffff;
}

body.dark-mode button {
  background-color: #003774;
  color: white;
}

body.dark-mode button:hover {
  background-color: #004085;
}

/* ensure headings and paragraphs respect the body color and flip in dark mode */
h1 {
  color: #333;
}
p {
  color: #333;
}

body.dark-mode h1,
body.dark-mode p {
  color: #ffffff;
}
  
  /* ==============================
     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;
  }
  
  #inicio button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  #inicio button:hover {
    background-color: #0056b3;
  }

  /* ==============================
   COLLAPSIBLE SECTION
   ============================== */
.collapsible-section {
  margin-top: 20px;
  text-align: center;
}

.collapsible-section2 {
  margin-top: 20px;
  margin-bottom: 40px;
  text-align: center;
}

.collapsible {
  background-color: #007BFF;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: auto;
}

.collapsible:hover {
  background-color: #0056b3;
}

.collapsible2 {
  background-color: #007BFF;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: auto;
}

.collapsible2:hover {
  background-color: #0056b3;
}

.radar-content {
  text-align: center;
}

.radar-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 700px;          /* ajustá este valor según el ancho que quieras */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* 2 o más por fila según pantalla */
  gap: 12px 30px;            /* espacio vertical y horizontal */
  text-align: left;          /* texto alineado a izquierda dentro de cada columna */
}

.radar-list li {
  font-size: 1.05em;
}

.radar-list a {
  color: white;
  text-decoration: none;
  transition: all 0.2s ease;
}

.radar-list a:hover {
  color: #a0d8ff;           /* azul claro al pasar el mouse - podés cambiarlo */
  text-decoration: underline;
}

.content {
  display: none; /* Oculto por defecto */
  padding: 1rem;
  background-color: #008cff;
  border-radius: 5px;
  margin-top: 10px;
  text-align: left;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.content img {
  max-width: 100%; /* Garantiza que la imagen no exceda el ancho del contenedor */
  height: auto; /* Mantiene la proporción de aspecto */
  border-radius: 5px; /* Coincide con el estilo del contenedor */
  margin-top: 10px; /* Espacio entre el texto y la imagen */
}

.content ul {
  list-style-type: disc;
  padding-left: 20px;
}

#radar-comoleer {
  text-decoration: underline; /* Subrayado */
  font-weight: bold;
}

/* Estilo para el contenido visible */
.content.visible {
  display: block;
}
  
  /* ==============================
   GALLERY - VERSIÓN INDIVIDUAL (más grande y centrada)
   ============================== */
#galeria {
    padding: 2rem 1rem;
    text-align: center;
}

#galeria h2 {
    font-size: 2.3rem;
    margin-bottom: 1.5rem;
}

.grid-container {
    display: flex;                /* ← cambio principal */
    flex-direction: column;       /* o row si querés, pero column es más natural aquí */
    align-items: center;          /* centra horizontalmente */
    justify-content: center;
    gap: 2rem;
    max-width: 960px;             /* o 1000px–1200px, según el tamaño que te guste */
    margin: 0 auto;
    padding: 0 1rem;
}

.radar-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    max-width: 720px;
}

.radar-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.radar-item img {
    width: 100%;
    height: 420px;           /* más grande que los 250px originales */
    object-fit: fill;
    border-radius: 8px;
}

.radar-item h3 {
    font-weight: bold;
    font-size: 1.25rem;
    margin: 1rem 0 0.5rem;
}

.radar-item button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 0.7rem 1.4rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    margin-top: 0.8rem;
}

.radar-item button:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

.radar-item button:active {
    transform: translateY(1px);
}
  
  /* ==============================
     FULLSCREEN VIEW
     ============================== */
  #fullscreen-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  #fullscreen-view.hidden {
    display: none;
  }
  
  #fullscreen-view.visible {
    opacity: 1;
  }
  
  .fullscreen-content {
    text-align: center;
    max-width: 90%;
    max-height: 90%;
  }

  #loading-indicator {
    display: none;
    color: white;
    font-size: 24px;
    font-weight: bold;
  }
  
  #fullscreen-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    margin-bottom: 1rem;
  }
  
  #close-fullscreen {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1000;
    transition: background-color 0.3s ease;
  }
  
  #close-fullscreen:hover {
    background-color: #cc0000;
  }
  
  .controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
  }
  
  .controls button {
    background-color: #004d9f;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .controls button:hover {
    background-color: #0056b3;
  }
  
  #play-stop-button {
    background-color: #ff4d4d;
  }
  
  #play-stop-button.playing {
    background-color: #28a745;
  }
  
  /* ==============================
     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 (max-width: 768px) {
    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) {
    #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;
    }

    .radar-item img {
    width: 100%;
    height: 310px;
    object-fit: cover;
    border-radius: 8px;
    }

  }