/* ===========================
   Reset básico
=========================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* ===========================
   Base y layout
=========================== */
body{
  font-family: Arial, sans-serif;
  background-color: #F0F0F0;
  color: #333333;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===========================
   Header
=========================== */
header{
  background-color: #333333;
  color: #fff;
  padding: 15px 0;
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
  width: 100%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding-right: 56px;

  overflow: visible; /* ✅ para que el logo pueda “salirse” y tapar */
}

/* ==== Logo + título unificados ==== */
header h1 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  flex-wrap: nowrap;
}

/* =========================================================
   ✅ LOGO INLINE — BLOQUE ÚNICO
   Inflado grande y PAREJO (desde el centro)
========================================================= */
.logo-inline{
  height: 68px;                 /* tamaño normal */
  width: auto;
  display: block;
  vertical-align: middle;

  transition: transform .35s ease, filter .35s ease;
  transform-origin: center center; /* ✅ crece parejo */
  position: relative;
  z-index: 1;
}

.logo-inline:hover{
  transform: scale(2.2);         /* <<< inflado grande */
  z-index: 9999;                /* <<< pasa por arriba y tapa todo */
  filter: brightness(1.25) saturate(1.15);
}

/* =========================================================
   ✅ SITE TITLE — BLOQUE ÚNICO
========================================================= */
.site-title {
  color: inherit;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  font-size: 2.6rem;   /* tamaño mayor final */
}

/* Responsive header */
@media (max-width: 700px) {
  .logo-inline { height: 66px; }
  .site-title  { font-size: 1.4rem; white-space: normal; }
}

/* ===========================
   Navegación
=========================== */
.main-nav{
  width: 100%;
  display: flex;
  gap: 8px;
  padding: 10px 20px;
  background: #e9e9e9;
  border-top: 1px solid #dcdcdc;
  border-bottom: 1px solid #dcdcdc;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.nav-button{
  color: #222;
  text-decoration: none;
  background: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #ccc;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.nav-button:hover{ transform: translateY(-1px); background: #fafafa; }
.nav-button.active{
  outline: 1px solid #2f86ff44;
  box-shadow: 0 0 0 2px #2f86ff22 inset;
}
.nav-dropdown{ position: relative; }
.dropdown-menu{
  display: none;
  position: absolute;
  left: 0;
  top: 46px;
  min-width: 340px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  overflow: hidden;
  z-index: 10;
}
.dropdown-item{
  display: block;
  padding: 10px 12px;
  color: #222;
  text-decoration: none;
  border-bottom: 1px solid #eee;
  white-space: nowrap;
}
.dropdown-item:last-child{ border-bottom: none; }
.dropdown-item:hover{ background: #f3f6ff; }
.dropdown-arrow{ font-size: 12px; }

/* ===========================
   Main
=========================== */
main{
  padding: 20px;
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 25px;
  flex-grow: 1;
  align-items: center;
}

/* ===========================
   Coordenadas
=========================== */
#coordenadas-container{
  background-color: #E8E8E8;
  padding: 15px 25px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  max-width: 500px;
  font-size: 1rem;
  text-align: center;
  width: 100%;
}
#coordenadas-container h2{
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #444444;
}

.coords-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}
.coords-map-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  color: #d9534f;
  line-height: 1;
}
.coords-map-btn:hover { color: #b52b27; }

.map-wrapper {
  margin-top: 12px;
  display: none;
  flex-direction: column;
  gap: 6px;
}
.map-wrapper.is-open { display: flex; }

#map {
  width: 100%;
  height: 250px;
  border-radius: 8px;
  border: 1px solid #aaa;
}
.map-msg {
  text-align: center;
  font-size: 0.9rem;
  color: #444;
  font-style: italic;
}

/* ===========================
   Astronomía
=========================== */
#astronomia-container {
  background-color: #DDDDDD;
  color: #333333;
  padding: 15px 25px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  font-size: 0.95rem;
  max-width: 700px;
  width: 100%;
  text-align: center;
}
#astronomia-container h2 {
  font-size: 1.4rem;
  font-weight: bold;
  margin: 0;
  color: #444444;
}

#astronomia-container .astro-title{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
#astronomia-container .astro-title h2{
  grid-column: 2;
  justify-self: center;
  margin: 0;
}

/* 🌙 Widget Luna */
#ml-widget{
  grid-column: 3;
  justify-self: end;
}
#ml-svg{
  width: clamp(52px, 6.5vw, 78px);
  height: clamp(52px, 6.5vw, 78px);
  filter: drop-shadow(0 0 3px rgba(0,0,0,0.1));
  transition: opacity .25s ease;
}

#astronomia-container .row{
  display: flex;
  justify-content: space-around;
  gap: 15px;
  flex-wrap: wrap;
}
#astronomia-container .row > div{
  flex: 1;
  min-width: 180px;
  text-align: left;
}
#astronomia-container .row div div{ margin-bottom: 6px; }

/* ===========================
   Grid de datos
=========================== */
#datos-grid-container{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: 20px;
  max-width: 900px;
  width: 100%;
  justify-content: center;
}
.dato-container{
  display: flex;
  align-items: center;
  background-color: #fff;
  border: 1px solid #CCCCCC;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  font-size: 20px;
  color: #333;
  height: fit-content;
  transition: transform .2s ease, box-shadow .2s ease;
}
.dato-container:hover{
  transform: translateY(-4px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}
.dato-icon{ font-size: 30px; margin-right: 15px; }

.fa-temperature-half{ color:#ff5722; }
.fa-droplet{ color:#2196f3; }
.fa-cloud-rain{ color:#607d8b; }
.fa-sun{ color:#ffc107; }
.fa-gauge-high{ color:#8bc34a; }
.fa-cloud{ color:#9e9e9e; }
.fa-temperature-low{ color:#00bcd4; }
.fa-wind{ color:#4caf50; }
.fa-temperature-three-quarters{ color:#ff9800; }

.dato-value--bold { font-weight: bold; color: #000; }

/* ===========================
   Footer
=========================== */
footer{
  background-color: #333333;
  color: #fff;
  text-align: center;
  padding: 15px 0;
  font-size: 0.9rem;
  width: 100%;
  box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
  margin-top: auto;
}
footer .info-icon-footer{
  color: #fff;
  font-size: 1.2rem;
  margin-left: 10px;
  text-decoration: none;
  transition: color .2s ease;
  display: inline-block;
  vertical-align: middle;
}
footer .info-icon-footer:hover{ color: #CCCCCC; }

/* ===========================
   Redes sociales flotantes
=========================== */
.social-icons-container{
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 15px;
}
.social-icon{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px; height: 48px;
  background-color: #555555;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 26px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
  transition: background-color .2s ease, transform .2s ease, border-radius .2s ease;
}
.social-icon:hover{
  transform: scale(1.1) translateY(-2px);
  border-radius: 50%;
}
.social-icon.instagram:hover{ background-color:#E4405F; }
.social-icon.facebook:hover{ background-color:#1877F2; }
.social-icon.twitter:hover{ background-color:#1DA1F2; }
.social-icon.youtube:hover{ background-color:#FF0000; }
.social-icon.email:hover{ background-color:#D44638; }

/* ===========================
   Marquee (texto de aviso)
=========================== */
.marquee-text {
  background: #e9e9e9;
  color: #333;
  padding: 8px 12px;
  border-top: 1px solid #dcdcdc;
  border-bottom: 1px solid #dcdcdc;
  width: 100%;
  display: block;
}

/* ===========================
   Lupa y barra de búsqueda
=========================== */
.search-container {
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: #444; color: #fff;
  border-radius: 8px; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.search-container:hover { transform: translateY(-50%) scale(1.05); background: #555; }

.search-bar-wrapper {
  width: 100%;
  background: #f7f7f7;
  border-bottom: 1px solid #e5e5e5;
  overflow: hidden;
  max-height: 0; opacity: 0; visibility: hidden;
  display: flex; gap: 8px; justify-content: center;
  padding: 0 20px;
  transition: max-height .25s ease, opacity .25s ease, visibility .25s ease, padding .25s ease;
}
.search-bar-wrapper.active {
  max-height: 80px; opacity: 1; visibility: visible;
  padding: 10px 20px;
}
.search-input {
  max-width: 520px; width: 100%;
  padding: 10px 12px;
  border-radius: 8px; border: 1px solid #ccc;
  font-size: 16px;
}
.search-button {
  padding: 10px 14px;
  border: 1px solid #ccc; border-radius: 8px;
  background: #fff; cursor: pointer; font-size: 16px;
}
.search-button:hover { background: #fafafa; }

/* ===========================
   Responsivo
=========================== */
@media (max-width: 768px){
  main{ padding: 0 10px; }
  #datos-grid-container{ grid-template-columns: 1fr; }
  #coordenadas-container,
  #astronomia-container{ max-width: 95%; }
  #astronomia-container .row{
    flex-direction: column;
    align-items: center;
  }
  #astronomia-container .row > div{ text-align: center; }

  .social-icons-container{
    right: 5px; padding-right: 0; gap: 8px;
  }
  .social-icon{
    width: 40px; height: 40px; font-size: 20px; border-radius: 5px;
  }
  .social-icon:hover{
    transform: scale(1.05) translateY(-1px);
    border-radius: 50%;
  }
}

/* ===== Submenú dentro de "Datos Actuales" (restaurado) ===== */

/* Permitir que el submenú desborde hacia la derecha del menú principal */
#tandilDropdownMenu { overflow: visible !important; }

/* Item padre que contiene un submenú */
.dropdown-item.has-sub {
  position: relative;
  display: block;
  padding: 10px 12px;
  color: #222;
  text-decoration: none;
  border-bottom: 1px solid #eee;
  cursor: default;
  user-select: none;
}
.dropdown-item.has-sub:hover { background: #f3f6ff; }

/* Etiqueta del padre + flechita */
.dropdown-item.has-sub > span {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.dropdown-item.has-sub .subchev {
  margin-left: auto;
  font-size: 12px;
  opacity: .8;
}

/* El submenú que se despliega a la derecha */
.dropdown-item .sub-menu {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 200px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  padding: 6px 0;
  display: none;          /* 👈 oculto por defecto */
  z-index: 9999;
}

/* Mostrar el submenú al pasar el mouse o con teclado (accesible) */
.dropdown-item.has-sub:hover > .sub-menu,
.dropdown-item.has-sub:focus-within > .sub-menu {
  display: block;
}

/* Ítems del submenú */
.dropdown-subitem {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
  border-bottom: 1px solid #eee;
  border-radius: 6px;
}
.dropdown-subitem:last-child { border-bottom: none; }
.dropdown-subitem:hover { background: #f3f6ff; }

/* En pantallas chicas, que el submenú caiga debajo (más usable) */
@media (max-width: 900px){
  .dropdown-item .sub-menu {
    position: static;
    border: none;
    box-shadow: none;
    padding-left: 12px;
    display: block;  /* visible al abrir el menú principal */
  }
}

/* === Ajuste final: rieles más visibles y logos más grandes (OVERRIDE) === */
:root{
  --rail-opacity: 0.18;  /* antes ~0.08–0.14 → más visible */
  --rail-logo-w: 210px;  /* antes 170px → más grande */
  --rail-min: 200px;     /* riel un poquito más ancho para que respire */
}

/* ===== RIELES LATERALES — varios logos, sin recorte ===== */
:root{
  --content-max: 1200px;     /* coincide con tu <main> */
  --rail-bg: #F0F0F0;        /* fondo base */
  --rail-min: 200px;         /* ancho mínimo del riel (más ancho = logo más grande) */
  --rail-opacity: 0.18;      /* 0.05–0.10 según gusto */
  --rail-logo-w: 200px;      /* ANCHO del logo dentro del riel (ajustá acá) */
  --rail-gutter: 16px;       /* “colchón” interno para que no se corte */
}

html, body { background: var(--rail-bg); }
html { position: relative; }

@media (min-width: 1024px){
  html::before,
  html::after{
    content: "";
    position: fixed;
    top: 0; bottom: 0;
    width: max(calc((100vw - var(--content-max)) / 2), var(--rail-min));
    padding: 0 var(--rail-gutter);            /* gutters laterales */
    box-sizing: border-box;
    background-color: var(--rail-bg);

    /* → Un SOLO “renglón” de logos centrado en X y repetidos en Y */
    background-image: url("img/logo-mctandil.png");
    background-position: center top;
    background-size: var(--rail-logo-w) auto; /* controla el tamaño del logo */
    background-repeat: no-repeat space;       /* X: no-repeat | Y: space (con espacio entre logos) */
    background-clip: content-box;             /* respeta los gutters al pintar */
    opacity: var(--rail-opacity);

    pointer-events: none;
    z-index: 0;
  }
  html::before{ left: 0; }
  html::after { right: 0; }

  /* contenido por encima */
  header, main, footer { position: relative; z-index: 1; }
}

.footer-link { text-decoration: none; }
.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: transparent;
  margin: 0 4px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* 1) NO escalar el contenedor en hover */
.icon-link:hover { transform: none; opacity: 0.9; }

/* 2) Aumentar solo el ícono */
.icon-whatsapp{
  color: #25D366;
  font-size: 22px;      /* ajustá a gusto: 20–24px */
  line-height: 1;
  display: inline-block;
  transform-origin: center;
}

/* ===== Iconitos en menús (TANDIL) ===== */
.with-icon {
  display: flex;
  align-items: center;
  gap: .25rem;
}

/* Cajita fija para que el icono no “empuje” nada al hacer hover */
.nav-ico-wrap {
  width: 1.25em;
  height: 1.25em;
  display: inline-grid;
  place-items: center;
  flex: 0 0 1.25em;      /* reserva ancho fijo */
}

/* Tamaño y comportamiento del ícono */
.nav-ico {
  font-size: 1.05em;     /* ajustá a gusto: 0.95–1.2em */
  opacity: .9;
  transition: transform .15s ease, opacity .15s ease;
  transform-origin: center;
}

/* Hover agradable sin agrandar el contenedor gracias a .nav-ico-wrap fija */
.dropdown-item:hover .nav-ico,
.dropdown-subitem:hover .nav-ico,
.with-icon:hover .nav-ico {
  transform: translateX(2px) scale(1.08);
  opacity: 1;
}

/* Colores opcionales por ítem (podés comentar si no los querés) */
a.dropdown-item[href*="mensuales"] .nav-ico { color: #0ea5e9; }   /* celestito */
a.dropdown-item[href*="galeria"]   .nav-ico { color: #ef4444; }   /* rojo */
a.dropdown-item[href*="webcam"]    .nav-ico { color: #22c55e; }   /* verde */

#descargasDropdownMenu {
    min-width: 380px !important;
}

.nav-home {
    margin-left: auto;
}

.icon-max {
    color: #ef4444;
}

.icon-prom {
    color: #000000;
}

#astronomia-container .astro-title{
  display: grid !important;
  grid-template-columns: 80px 1fr 80px !important;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

#astronomia-container .astro-title h2{
  grid-column: 2 !important;
  justify-self: center !important;
  margin: 0 !important;
  text-align: center !important;
}

.astro-sun-icon{
  grid-column: 1 !important;
  justify-self: start !important;
  width: 115px !important;
  height: 115px !important;
  object-fit: contain;
  position: relative;
  top: -16px;
}

#ml-widget{
  grid-column: 3 !important;
  justify-self: end !important;
}

































   


































    

