@charset "UTF-8";

/* ─── VARIABLES (compartidas con estilosWeb.css) ────────── */
:root {
  --ink:    #292c33;
  --lime:   #cff300;
  --paper:  #eff1ee;
  --steel:  #b8c9db;
  --smoke:  #809296;

  --f-display: 'Barlow Condensed', sans-serif;
  --f-body:    'DM Sans', sans-serif;

  --nav-h:  72px;
  --ease:   cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ═══════════════════════════════════════════════════════════
   NAV PRINCIPAL
══════════════════════════════════════════════════════════ */
#menuFlotante {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 3rem);
  background: var(--ink);
  border-bottom: 1px solid rgba(207, 243, 0, 0.15);
  transition: background 0.3s;
}

/* Logo */
#logoEnlace {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

#Capa_2 {
  height: 44px;
  width: auto;
  transition: transform 0.25s;
}

#Capa_2:hover { transform: scale(1.05); }

/* Fallback: si se usa texto en lugar de SVG */
.nav-logo-text {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--paper);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  flex-shrink: 0;
}

/* Contenedor de enlaces */
.horizontal,
.horizontalUsuario {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  margin-left: 2rem;
}

/* Lista de enlaces */
#opcionesMenu,
#opcionesMenuUsuario {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.liMenu {
  position: relative;
  list-style: none;
}

/* Línea inferior animada */
.liMenu::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--lime);
  transition: width 0.25s var(--ease);
  transform: translateX(-50%);
}

.liMenu:hover::after { width: 100%; }

.enlaceMenu {
  display: block;
  padding: 0.75rem 0.5rem;
  text-decoration: none;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  transition: color 0.2s;
}

.enlaceMenu:hover { color: var(--lime); }

/* Botones del menú */
#botonesMenuFlotante {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.enlaceBoton { text-decoration: none; }

#botonInicioSesion {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 1.4rem;
  border: 1.5px solid var(--lime);
  border-radius: 3px;
  color: var(--lime);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

#botonInicioSesion:hover {
  background: var(--lime);
  color: var(--ink);
}

/* ─── HAMBURGER ─────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  z-index: 910;
  background: transparent;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--paper);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── MENÚ MÓVIL ────────────────────────────────────────── */
#mobileMenu {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--ink);
  z-index: 800;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 3rem;
}

#mobileMenu.open { display: flex; }

#mobileMenu a {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2rem, 8vw, 3.5rem);
  color: var(--paper);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color 0.2s;
}

#mobileMenu a:hover { color: var(--lime); }

#mobileMenu .nav-cta-mobile {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 2.5rem;
  border: 1.5px solid var(--lime);
  border-radius: 3px;
  color: var(--lime);
  background: transparent;
  cursor: pointer;
  margin-top: 1rem;
  transition: background 0.2s, color 0.2s;
}

#mobileMenu .nav-cta-mobile:hover {
  background: var(--lime);
  color: var(--ink);
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
#menuFooter {
  background: var(--ink);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem) 2rem;
}

/* Contenedor horizontal - por defecto (móvil) centrado */
#horizontal {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centrado en móvil */
  gap: 2rem;
  width: 100%;
}

#horizontal > div {
  width: 100%;
  max-width: 300px; /* Ancho máximo para cada columna en móvil */
}

/* Estilos para las listas */
.opcionesFooter {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0;
  margin: 0;
  align-items: center; /* Texto centrado en móvil */
  text-align: center;
}

.opcionesFooter h3 {
  color: var(--lime);
  margin: 0 0 0.5rem 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.opcionesFooter a {
  font-family: var(--f-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--smoke);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}

.opcionesFooter a:hover {
  color: var(--paper);
  padding-left: 6px;
}

/* Logo en footer */
#logoEnlaceFooter {
  display: flex;
  justify-content: center; /* Centrado en móvil */
  margin-bottom: 2rem;
}

#logoFooter {
  height: 50px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.2s, transform 0.2s;
  filter: brightness(0) invert(1);
}

#logoFooter:hover {
  opacity: 1;
  transform: scale(1.02);
}

/* ═══════════════════════════════════════════════════════════
   VERSIÓN PC - Distribución en columnas
══════════════════════════════════════════════════════════ */
@media (min-width: 769px) {
  #menuFooter {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 3rem;
  }
  
  /* Logo a la izquierda */
  #logoEnlaceFooter {
    flex: 0 0 auto;
    margin-bottom: 0;
    justify-content: flex-start;
  }
  
  /* Contenedor horizontal - ahora en fila con columnas distribuidas */
  #horizontal {
    flex: 1;
    flex-direction: row;
    justify-content: space-evenly; /* Distribuye el espacio equitativamente */
    align-items: flex-start;
    gap: 2rem;
  }
  
  /* Cada columna ocupa su espacio */
  #horizontal > div {
    flex: 1;
    max-width: none; /* Elimina el límite de móvil */
  }
  
  /* En PC, alineamos el texto a la izquierda */
  .opcionesFooter {
    align-items: flex-start;
    text-align: left;
  }
  
  .opcionesFooter h3 {
    text-align: left;
    width: 100%;
  }
}


/* ─── FOOTER BOTTOM ─────────────────────────────────────── */
#footer {
  background: rgba(41, 44, 51, 0.95);
  padding: 1.5rem clamp(1.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Contenedor del copyright - siempre al final */
#footer > div:first-of-type {
  order: 3;
  width: 100%;
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

#footer p {
  font-family: var(--f-body);
  font-size: 0.8rem;
  color: rgba(128, 146, 150, 0.6);
  margin: 0;
}


.footer-legal {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-legal a {
  font-family: var(--f-body);
  font-size: 0.8rem;
  color: rgba(128, 146, 150, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover { color: var(--smoke); }

/* ═══════════════════════════════════════════════════════════
   CARTELES DE AYUDAS (imágenes del footer)
══════════════════════════════════════════════════════════ */
.cartel {
  border-radius: 4px;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
  max-width: 100%;
  height: auto;
  width: 300px;
  order: 1; /* Las imágenes van antes del copyright */
}

.cartel:hover { 
  transform: scale(1.03); 
}

/* Móvil - columna (por defecto) */

/* Tablet y PC - fila para imágenes */
@media (min-width: 769px) {
  #footer {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
  }
  
  .cartel {
    width: 300px;
    order: 1; /* Mantenemos las imágenes al inicio */
  }
  
  /* El copyright ocupa toda la anchura y va abajo */
  #footer > div:first-of-type {
    order: 3;
    flex-basis: 100%;
    margin-top: 2rem;
  }
}

/* Pantallas grandes */
@media (min-width: 1200px) {
  #footer {
    justify-content: space-evenly;
  }
}
/* ═══════════════════════════════════════════════════════════
   RESPONSIVE MENUS
══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .horizontal,
  .horizontalUsuario,
  #botonesMenuFlotante {
    display: none;
  }

  .hamburger { display: flex; }

  /* Footer responsive */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-legal {
    justify-content: center;
  }
  .footer-col ul {
    align-items: center;
  }
}


@media (max-width: 480px) {
  #menuFlotante { padding: 0 1rem; }

  #Capa_2,
  #logoFooter { height: 36px; }
}

/* ─── ACCESIBILIDAD ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   BOTÓN CERRAR SESIÓN — DESKTOP (dentro del nav)
══════════════════════════════════════════════════════════ */
.logout-menu-btn {
  background: transparent;
  border: 1px solid rgba(207, 243, 0, 0.4);
  border-radius: 6px;
  color: var(--paper);
  font-family: var(--f-body);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.25s var(--ease),
              border-color 0.25s var(--ease),
              color 0.25s var(--ease);
  white-space: nowrap;
  /* Alinear verticalmente igual que los enlaces del nav */
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.logout-menu-btn:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

/* ═══════════════════════════════════════════════════════════
   BOTÓN CERRAR SESIÓN — MÓVIL (dentro del overlay #mobileMenu)
══════════════════════════════════════════════════════════ */
.mobile-logout-btn {
  display: block;
  width: 100%;
  background: transparent;
  border: 1px solid rgba(207, 243, 0, 0.4);
  border-radius: 8px;
  color: var(--paper);
  font-family: var(--f-body);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 14px 20px;
  cursor: pointer;
  text-align: left;
  transition: background 0.25s var(--ease),
              border-color 0.25s var(--ease),
              color 0.25s var(--ease);
  margin-top: 8px;
}

.mobile-logout-btn:hover,
.mobile-logout-btn:active {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}
h3{
  color: var(--lime);
}