* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --rojo: #bd3229;
  --grisoscuro: #31312a;
  --grisclaro: #eae8dc;
  --blanco: #ffffff;
  --negro: #0A0A0A;
}

@font-face {
  font-family: 'Bronova';
  src:url(/fuentes/ttf/BronovaRegular.ttf);
}

@font-face {
  font-family: 'Bronova';
  src:url(/fuentes/ttf/BronovaBold.ttf);
  font-weight: bold;
  font-style: bold;
}

body {
  font-family: 'Bronova';
  background-color: var(--blanco);
}

a {
  text-decoration: none;
}

/* NAVBAR PRINCIPAL */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--blanco);
  color: var(--negro);
  padding: 0;
  position: relative;
}

/* SECCIÓN DE INFORMACIÓN (IZQUIERDA) */
.navbar-info {
  background-color: var(--blanco);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 280px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.clima-section {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.clima-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.weather-icon {
  font-size: 16px;
  color: #fbbf24;
}

.temperatura {
  font-weight: 600;
  font-size: 15px;
}

.descripcion {
  color: var(--negro);
  text-transform: capitalize;
  font-size: 13px;
}

/* FECHA SECTION */
.fecha-section {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  color: var(--negro);
}

.fecha-section i {
  color: #93c5fd;
}

/* DÓLAR SECTION */
.dolar-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.dolar-blue,
.dolar-oficial {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dolar-icon {
  color: #86efac;
  font-size: 14px;
}

.dolar-label {
  font-weight: 600;
  color: #93c5fd;
  min-width: 35px;
}

.dolar-label-oficial {
  font-weight: 600;
  color: #86efac;
  min-width: 45px;
  margin-left: 20px;
}

.separator {
  color: #94a3b8;
  font-weight: 500;
}

#blue-compra,
#blue-venta,
#oficial-compra,
#oficial-venta {
  color: var(--negro);
  font-weight: 500;
}

/* LOGO */

.logo {
  width: 250px;
}

/* LOADING ANIMATIONS */
.loading {
  display: flex;
  align-items: center;
}

.skeleton {
  height: 16px;
  background: var(--blanco);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
  width: 150px;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.logo-nav {
  width: 150px;
}

.form button {
  border: none;
  background: none;
  color: #8b8ba7;
}

/* styling of whole input container */
.form button {
  border: none;
  background: none;
  color: #8b8ba7;
}

.form button {
  border: none;
  background: none;
  color: #8b8ba7;
}

.form button {
  border: none;
  background: none;
  color: #8b8ba7;
}

/* styling of whole input container */
.form {
  --timing: 0.3s;
  --width-of-input: 200px;
  --height-of-input: 40px;
  --border-height: 2px;
  --input-bg: #fff;
  --border-color: #2f2ee9;
  --border-radius: 30px;
  --after-border-radius: 1px;
  position: relative;
  width: var(--width-of-input);
  height: var(--height-of-input);
  display: flex;
  align-items: center;
  padding-inline: 0.8em;
  border-radius: var(--border-radius);
  transition: border-radius 0.5s ease;
  background: var(--input-bg, #fff);
  border-bottom: 2px solid transparent;
}

/* styling of Input */
.input {
  font-size: 0.9rem;
  background-color: transparent;
  width: 100%;
  height: 100%;
  padding-inline: 0.5em;
  padding-block: 0.7em;
  border: none;
}

/* Hover on Input - cambiar borde a azul */
.form:focus-within {
  border-radius: var(--after-border-radius);
  border-bottom-color: var(--border-color);
  transition: border-bottom-color var(--timing) ease;
}

input:focus {
  outline: none;
}

/* styling of close button */
.reset {
  border: none;
  background: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* close button shown when typing */
input:not(:placeholder-shown) ~ .reset {
  opacity: 1;
  visibility: visible;
}

/* sizing svg icons */
.form svg {
  width: 17px;
  margin-top: 3px;
  cursor: pointer;
}

.redes-icon {
  width: 35px;
  margin: 8px;
}

.buscar-redes {
  margin: 40px;
}

.menu-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  background-color: var(--rojo);
}

.menu-nav > li {
  list-style: none;
  margin: 20px;
}

.menu-nav > li > a {
  position: relative;
  display: inline-block;
  color: var(--blanco);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1.2rem;
  font-weight: bold;
  padding-bottom: 4px;
}

.menu-nav > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--blanco);
  transition: width 0.3s ease !important;
}

.menu-nav > li > a:hover::after {
  width: 100%;
}

/* ========================================
   MENÚ HAMBURGUESA - LADO IZQUIERDO
   ======================================== */

/* Botón hamburguesa - Oculto por defecto en desktop */
.hamburger-btn {
    display: none;
    background: var(--rojo);
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 8px;
    z-index: 1001;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(189, 50, 41, 0.3);
    width: 65px;
    height: 65px;
    position: relative;
}

.hamburger-btn:hover {
    background: #a02922;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(189, 50, 41, 0.5);
}

/* Ambos iconos ocupan todo el botón y están centrados */
.hamburger-btn img {
    width: 35px;
    height: 35px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

/* Estado inicial: mostrar hamburguesa, ocultar X */
.hamburger-btn .open-icon {
    opacity: 1;
    visibility: visible;
}

.hamburger-btn .close-icon {
    opacity: 0;
    visibility: hidden;
}

/* Estado activo: ocultar hamburguesa, mostrar X */
.hamburger-btn.active .open-icon {
    opacity: 0;
    visibility: hidden;
}

.hamburger-btn.active .close-icon {
    opacity: 1;
    visibility: visible;
}

/* Overlay oscuro */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* ========================================
   RESPONSIVE - MENÚ HAMBURGUESA
   ======================================== */

@media (max-width: 1023px) {
    /* Mostrar botón hamburguesa en la esquina superior IZQUIERDA */
    .hamburger-btn {
        display: block;
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1001;
    }
    
    /* Menú lateral desde la IZQUIERDA */
    .nav-bajo {
        position: fixed;
        top: 0;
        left: -100%;
        width: 320px;
        height: 100vh;
        background: var(--blanco);
        z-index: 999;
        transition: left 0.4s ease;
        overflow-y: auto;
        padding-top: 100px;
        box-shadow: 5px 0 20px rgba(0, 0, 0, 0.3);
    }
    
    .nav-bajo.active {
        left: 0;
    }
    
    /* Menú vertical */
    .menu-nav {
        flex-direction: column;
        background: var(--blanco);
        margin: 0;
        padding: 20px 0;
    }
    
    .menu-nav > li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid var(--grisclaro);
    }
    
    .menu-nav > li > a {
        display: block;
        padding: 18px 30px;
        color: var(--grisoscuro);
        font-size: 1.15rem;
        transition: all 0.3s ease;
        position: relative;
    }
    
    .menu-nav > li > a::before {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
        width: 0;
        background: var(--rojo);
        transition: width 0.3s ease;
    }
    
    .menu-nav > li > a::after {
        display: none;
    }
    
    .menu-nav > li > a:hover {
        background: var(--rojo);
        color: var(--blanco);
        padding-right: 40px;
    }
    
    .menu-nav > li > a:hover::before {
        width: 5px;
    }
}

/* Para tablets */
@media (min-width: 768px) and (max-width: 1023px) {
    .nav-bajo {
        width: 380px;
    }
    
    .hamburger-btn {
        top: 20px;
        left: 20px;
        width: 70px;
        height: 70px;
    }
    
    .hamburger-btn img {
        width: 40px;
        height: 40px;
    }
}

/* Para móviles muy pequeños */
@media (max-width: 375px) {
    .nav-bajo {
        width: 85%;
    }
    
    .hamburger-btn {
        width: 60px;
        height: 60px;
    }
    
    .hamburger-btn img {
        width: 30px;
        height: 30px;
    }
}

/* Animación de entrada del menú desde la izquierda */
@keyframes slideInLeft {
    from {
        left: -100%;
        opacity: 0;
    }
    to {
        left: 0;
        opacity: 1;
    }
}

.nav-bajo.active {
    animation: slideInLeft 0.4s ease;
}

/* ===========================
   FOOTER COMPLETO ACTUALIZADO
   =========================== */

footer {
  background-color: var(--negro);
  padding: 2.5rem 3rem 1.5rem;
  border-top: 3px solid var(--rojo);
  position: relative;
  overflow: visible;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--rojo) 0%,
    var(--grisclaro) 50%,
    var(--rojo) 100%);
}

li {
  list-style: none;
}

/* ======= Distribución general ======= */
.menu-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1800px;
  margin: 0 auto;
  padding: 2rem 1rem;
  width: 100%;
  box-sizing: border-box;
}

/* Reset general */
.menu-footer li {
  margin: 0 !important;
  padding: 0 !important;
}

/* ======= Logo Eco del Norte (izquierda) ======= */
.menu-footer > li:first-child {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 320px;
}

.logo-footer {
  width: 280px;
  max-width: 100%;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
  filter: brightness(1.1);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-footer:hover {
  transform: translateY(-5px) scale(1.05);
  filter: brightness(1.3);
}

/* ======= Sección central: Staff ======= */
.footer-center {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  min-width: 0;
}

.staff {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.9rem;
  padding: 2rem 2.5rem;
  background-color: rgba(234, 232, 220, 0.05);
  border-radius: 8px;
  border-left: 3px solid var(--rojo);
  max-width: 500px;
  min-width: 400px;
  width: 100%;
}

.staff > li {
  color: var(--grisclaro);
  text-align: left;
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.8;
}

.roles-footer {
  color: var(--blanco);
  font-weight: bold;
  font-style: normal;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

/* ======= Redes + Mail (columna derecha) ======= */
.footer-social {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  max-width: 250px;
}

.redes-y-mail {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  text-align: center;
}

/* Redes Sociales */
.redes-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 0;
}

.redes-container > li {
  margin: 0;
}

.redes-icon-footer {
  width: 80px;
  height: 80px;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: grayscale(0%) brightness(0.9);
  padding: 12px;
  background-color: rgba(234, 232, 220, 0.1);
  border-radius: 40%;
  border: 2px solid transparent;
}

.redes-icon-footer:hover {
  transform: translateY(-5px) scale(1.15);
  filter: brightness(1.2);
  background-color: rgba(189, 50, 41, 0.2);
  border-color: var(--rojo);
}

/* Email */
.footer-social a {
  color: var(--grisclaro);
  font-size: 1.1rem;
  font-weight: 500;
  padding: 1rem 2rem;
  background-color: rgba(234, 232, 220, 0.05);
  border-radius: 25px;
  border: 1px solid rgba(234, 232, 220, 0.2);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.footer-social a:hover {
  background-color: rgba(189, 50, 41, 0.2);
  border-color: var(--rojo);
  transform: translateY(-2px);
}

/* ======= Logo Riestra (extremo derecho) ======= */
.footer-riestra {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 0;
  min-height: 140px;
  overflow: visible;
  max-width: 180px;
}

.logo-riestra {
  width: 150px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: brightness(1.1);
  transition: transform 0.3s ease, filter 0.3s ease;
  display: block;
  margin: 0 auto;
}

.logo-riestra:hover {
  transform: translateY(-5px) scale(1.05);
  filter: brightness(1.3);
}

/* ======= Copyright ======= */
.footer-bottom {
  text-align: center;
  padding: 20px 0;
  opacity: 0.7;
  font-size: 0.9em;
  color: var(--blanco);
}

/* ======= RESPONSIVE ======= */

/* Laptop y Laptop L */
@media (max-width: 1440px) {
  .menu-footer {
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 1rem;
  }
  
  .menu-footer > li {
    flex: 0 1 auto;
  }

  .staff {
    min-width: 380px;
    max-width: 450px;
    padding: 1.8rem 2.2rem;
  }

  .logo-footer {
    width: 240px;
  }

  .logo-riestra {
    width: 140px;
  }
  
  .footer-riestra {
    min-height: 140px;
    padding: 2rem 0;
    max-width: 160px;
  }
}

/* Tablets */
@media (max-width: 1024px) {
  .menu-footer {
    grid-template-columns: 1fr 1fr;
    row-gap: 2rem;
  }

  .footer-center {
    flex-direction: column;
    gap: 2rem;
  }

  .staff {
    max-width: 100%;
    min-width: auto;
  }
}

/* Móviles */
@media (max-width: 768px) {
  .menu-footer {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-social {
    order: 3;
  }

  .footer-riestra {
    order: 4;
  }

  .logo-footer {
    width: 220px;
  }

  .redes-icon-footer {
    width: 60px;
    height: 60px;
  }
}

/* ======= FIX: estructura real del footer (footer-contact) ======= */

/* Contenedor general de redes + mail */
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  text-align: center;
}

/* Redes sociales */
.footer-contact .redes-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: nowrap;
  padding: 0;
  margin: 0;
}

.footer-contact .redes-container li {
  margin: 0;
}

.footer-contact .redes-icon-footer {
  width: 75px;
  height: 75px;
  aspect-ratio: 1 / 1;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: grayscale(0%) brightness(0.9);
  padding: 10px;
  background-color: rgba(234, 232, 220, 0.1);
  border-radius: 40%;
  border: 2px solid transparent;
}

.footer-contact .redes-icon-footer:hover {
  transform: translateY(-5px) scale(1.15);
  filter: brightness(1.2);
  background-color: rgba(189, 50, 41, 0.2);
  border-color: var(--rojo);
}

/* Email */
.footer-contact .email-footer {
  color: var(--grisclaro);
  font-size: 1.1rem;
  font-weight: 500;
  padding: 1rem 2rem;
  background-color: rgba(234, 232, 220, 0.05);
  border-radius: 25px;
  border: 1px solid rgba(234, 232, 220, 0.2);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}

.footer-contact .email-footer:hover {
  background-color: rgba(189, 50, 41, 0.2);
  border-color: var(--rojo);
  transform: translateY(-2px);
}

/* En pantallas grandes, más aire */
@media (min-width: 1024px) {
  .footer-riestra {
    padding: 2.5rem 0;
    min-height: 160px;
  }
  .logo-riestra {
    width: 180px;
    max-width: 200px;
  }
}