/* --------- RESETEO BÁSICO --------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #0A2540;
  background-color: #FFFFFF;
  line-height: 1.6;
}

/* Contenedor principal */
.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

/* --------- BOTONES GENERALES --------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease,
              box-shadow 0.15s ease,
              background-color 0.15s ease,
              color 0.15s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: #1A73E8;
  color: #FFFFFF;
  box-shadow: 0 10px 25px rgba(26, 115, 232, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(26, 115, 232, 0.35);
}

.btn-outline {
  background-color: transparent;
  color: #fefffd;
  border-color: #1ae870;
}

.btn-outline:hover {
  background-color: #1A73E8;
  color: #FFFFFF;
}

/* Botón WhatsApp dentro del menú móvil (si lo usas) */
.nav a.btn-whatsapp {
  background-color: #696368 !important;
  color: #ffffff !important;
  border: none !important;
  text-align: center;
  font-weight: 600;
  width: 100%;
  margin-top: 0.5rem;
}

.nav a.btn-whatsapp:hover {
  background-color: #8cbb9d !important;
}

/* --------- HEADER / TOPBAR --------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #FFFFFF;
  border-bottom: 1px solid #E3E8F0;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
  gap: 1rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.logo-text {
  font-weight: 700;
  font-size: 1.05rem;
  color: #1A73E8;
}

/* NAV DESKTOP */
.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav a {
  font-size: 0.95rem;
  text-decoration: none;
  color: #0A2540;
  font-weight: 500;
  position: relative;
}

/* subrayado azul al pasar el mouse (desktop) */
.nav a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  background-color: #1A73E8;
  transition: width 0.2s ease;
}

.nav a:not(.btn):hover::after {
  width: 100%;
}

/* Botón menú (móvil) */
.nav-toggle {
  display: none;
  border: none;
  background: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Icono tipo “burbuja” para el hamburguesa */
.nav-toggle-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid #E3E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .12);
  background-color: #FFFFFF;
}

.nav-toggle-icon span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background-color: #111827;
  position: relative;
}

.nav-toggle-icon span::before,
.nav-toggle-icon span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background-color: #111827;
}

.nav-toggle-icon span::before {
  top: -5px;
}

.nav-toggle-icon span::after {
  top: 5px;
}

/* === LINK ACTIVO CON RAYITA AZUL (desktop) === */
.nav a.active {
  position: relative;
  font-weight: 600;
  color: #0A2540;
}

.nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background-color: #1A73E8;
  border-radius: 10px;
}

/* --------- RESPONSIVE --------- */

/* Móviles / tablets */
@media (max-width: 768px) {
  .topbar .container {
    padding-block: 0.6rem;
  }

  .nav-toggle {
    display: block;
  }

  /* MENÚ MÓVIL TIPO BURBUJA A LA DERECHA */
  .nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1rem;
    left: auto;
    background-color: #FFFFFF;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1rem;
    gap: 0.4rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
    border: 1px solid #E3E8F0;
    display: none;               /* oculto por defecto */
    min-width: 180px;
    z-index: 60;
  }

  /* cuando el JS le agrega la clase .nav-open */
  .nav.nav-open {
    display: flex;
  }

  .nav a {
    width: 100%;
    display: block;
    font-size: 0.9rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
  }

  /* link activo en móvil (pastillita verde) */
  .nav a.active {
    background-color: #25D366;
    color: #FFFFFF;
    font-weight: 600;
  }

  .nav a.active::after {
    display: none; /* quitamos la rayita en móvil */
  }

  .nav a.btn-whatsapp {
    margin-top: 0.3rem;
    text-align: center;
    align-self: stretch;
  }
}
