@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;800&family=Poppins:wght@500;600&family=Roboto:wght@400;500&display=swap');

:root {
  --bg-dark: #ffffff;
  --bg-darker: #15202b;
  --text-light: #e6e9f0;
  --accent-green: #ca0303;
  --accent-green-dark: #00b34f;
  --gray-muted: #9aa0aa;
  --font-heading: 'Roboto', sans-serif;
  --font-subheading: 'Poppins', sans-serif;
  --font-body: 'Roboto', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2 {
  font-family: var(--font-subheading);
  font-weight: 800;
}

h3, h4 {
  font-family: var(--font-subheading);
  font-weight: 600;
}

p, li, input, button, a, select {
  font-family: var(--font-body);
}

.container {
  max-width: 100%;
  margin: 0 auto;
}

/* NAVBAR */
.navbar {
  background-color: var(--bg-darker);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;           /* Espacio entre imagen y texto */
  margin-left: 20%;   /* Empuja todo el logo un poco a la derecha */
  text-decoration: none;
}

.logo img {
  height: 72px;
  width: auto;
}

.logo-text {
  font-family: 'Bebas Neue', cursive;
  font-size: 32px;
  color: white;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 10px;
}


/* Ocultar logo texto en pantallas ≤600px */
@media (max-width: 600px) {
  .logo-text {
    display: none;
  }
}

/* Ocultar logo completo en pantallas ≤768px */
@media (max-width: 768px) {
  .logo {
    display: none;
  }
}

/* Menú */
.nav-list {
  list-style: none;
  display: flex;
  gap: 24px;
}

.nav-list li a {
  color: var(--text-light);
  font-weight: 600;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: color 0.3s ease;
}

.nav-list li a:hover,
.nav-list li a:focus {
  color: var(--accent-green-dark);
  outline: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  padding: 0;
}

.menu-toggle span {
  height: 3px;
  width: 100%;
  background: var(--text-light);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Móvil ≤768px ajustes del navbar */
@media (max-width: 768px) {
  .navbar .container {
    flex-direction: row;
    justify-content: flex-start; /* pegar todo a la izquierda */
    gap: 16px;
  }

  .menu-toggle {
    display: flex;
    order: 1;
    margin-left: 16px; /* un poco de espacio desde el borde izquierdo */
    margin-right: auto; /* empuja el resto a la derecha */
  }

  .nav-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background-color: var(--bg-darker);
    padding: 20px 0;
    z-index: 999;
    order: 2;
  }

  .nav-list.active {
    display: flex;
  }

  .nav-list li {
    margin: 10px 0;
    text-align: center;
  }
}

/* HERO */
.hero {
  background: url('/Multimedia/Imagenes/4.jpeg') center center / cover no-repeat;
  min-height: 85vh;
  padding-top: 180px;
  padding-bottom: 40px;
  text-align: center;
  color: var(--text-light);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 0;
}

.hero-content { 
  z-index: 1;
  margin-top: 80px;
  max-width: 1000px;
  width: 100%;
  font-family: 'Roboto', sans-serif;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
    font-family: 'Bebas Neue', cursive;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 24px;
}

/* FORMULARIO en línea */
.search-form-inline {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  margin: 0 auto;
  flex-direction: row;
}

.search-form-inline input,
.search-form-inline select,
.search-form-inline button {
  padding: 12px 16px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.search-form-inline input {
  background-color: #fff;
  color: #000;
  min-width: 220px;
  flex-grow: 1;
}

.search-form-inline input:hover,
.search-form-inline select:hover {
  border: 2px solid #00e676;
  background-color: #fff;
  box-shadow: 0 0 10px 3px rgba(0, 230, 118, 0.4);
  transition: box-shadow 0.3s ease, background-color 0.3s ease, border 0.3s ease;
}

.search-form-inline input:focus,
.search-form-inline select:focus {
  border: 2px solid #00ff88;
  background-color: #fff;
  box-shadow: 0 0 12px 4px rgba(0, 255, 136, 0.5);
  outline: none;
}

.search-form-inline select {
  background-color: #fff;
  color: #000;
  min-width: 160px;
}

.search-form-inline input::placeholder {
  color: var(--gray-muted);
}

.search-form-inline input:focus,
.search-form-inline select:focus {
  outline: none;
  background-color: #f4f4f4;
}

.search-form-inline button {
  background-color: var(--bg-darker); 
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-form-inline button:hover {
  background-color: var(--accent-green-dark);
}

/* FOOTER */
.footer {
  background-color: var(--bg-darker);
  text-align: center;
  padding: 16px 20px;
  color: var(--gray-muted);
  font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .navbar .container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
  .nav-list {
    flex-wrap: wrap;
    gap: 12px;
  }
  .hero h1 {
    font-size: 2.2rem;
    font-family: 'Bebas Neue', cursive;
  }
  .hero p {
    font-size: 1rem;
  }
  .subsecciones {
    grid-template-columns: 1fr;
  }
  .search-form-inline {
    flex-direction: column;
    align-items: stretch;
  }
  .hero {
    padding-top: 20px; /* ajusta según lo que necesites */
  }

  .hero-content {
    padding-top: 0; /* o reduce si ya tiene valor */
  }
}

#btn-top {
  position: fixed;
  bottom: 30px;
  right: 1px;
  background-color: #00ff88;
  color: #004d00;
  border: none;
  border-radius: 50%;
  padding: 15px 18px;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 999;
  display: none;
}

#btn-top:hover {
  background-color: #00b34f;
  transform: scale(1.1);
}

/* Estilos base */
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}


/* Mostrar solo en escritorio */
.logo-escritorio {
  display: flex;
  align-items: center;
}

/* Ocultar logo centrado por defecto */
.logo-movil {
  display: none;
}

/* Para móvil */
@media (max-width: 768px) {
  .logo-escritorio {
    display: none; /* Ocultar logo normal */
  }

  .logo-movil {
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    padding-top: 10px;
  }

  .logo-movil img {
    height: 140px;
    background: transparent;
  }

  .navbar .container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }  
  .search-form-inline button {
  background-color: var(--bg-darker); 
  color: #00ff88;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}
  
}
.btn-Buscar { 
  background-color: #15202b;
  color: #00b34f;
  width: 80px;
}
.btn-Buscar:hover {
  background-color: #00b34f;
   color: #000;
  transform: scale(1.1);
  
}