@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css');

/* ===============================
  NAVBAR CRIPESO — estilos exclusivos del nav
  Usar este archivo en nav.php en lugar de styles.css
  para no contaminar el CSS de otras páginas
=============================== */

.custom-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  padding: 15px 30px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #ccc;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.custom-navbar-logo img {
  height: 65px;
  width: auto;
  transition: all 0.3s ease;
}

.custom-navbar-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.custom-navbar-links li {
  margin: 0 15px;
}

.custom-navbar-links a {
  text-decoration: none;
  color: #005096;
  font-weight: 600;
  font-size: 1.2em;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s ease;
}

.custom-navbar-links a:hover {
  color: #8CBB27;
}

.custom-navbar-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #8CBB27;
  transition: width 0.3s ease;
}

.custom-navbar-links a:hover::after {
  width: 100%;
}

.bigdata-link {
  font-weight: 700 !important;
}

.custom-navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: #005096;
  font-size: 2.4em;
  cursor: pointer;
  padding: 5px 10px;
  z-index: 1001;
  transition: all 0.3s ease;
}

.custom-navbar-toggle:hover {
  color: #8CBB27;
}

/* ===============================
  RESPONSIVE - MENU HAMBURGUESA
=============================== */
@media (max-width: 920px) {
  .custom-navbar {
    flex-wrap: wrap;
    padding: 10px 20px;
  }

  .custom-navbar-logo {
    flex: 1;
    order: 1;
  }

  .custom-navbar-logo img {
    height: 50px;
  }

  .custom-navbar-toggle {
    display: block;
    order: 2;
  }

  .custom-navbar-links {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .custom-navbar-links.is-open {
    display: flex !important;
    animation: fadeIn 0.3s ease-out;
  }

  .custom-navbar-links li {
    border-bottom: 1px solid #f0f0f0;
  }

  .custom-navbar-links a {
    display: block;
    padding: 15px 20px;
    font-size: 1.1em;
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ===============================
  SCROLLED NAV
=============================== */
.navbar-scrolled {
  padding: 10px 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-scrolled .custom-navbar-logo img {
  height: 50px;
}

/* Compensar altura del navbar fijo */
body {
  padding-top: 95px;
}

@media (max-width: 920px) {
  body {
    padding-top: 70px;
  }
}