/* ============================================
   HEADER.CSS – DogNavi Clean Premium Build
   ============================================ */

/* ----------------------------
   HEADER GENERAL
   ---------------------------- */

header {
  width: 100%;
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #617e67;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 14px rgba(0,0,0,0.06);
}

/* Logo */
.logo-container {
  display: flex;
  align-items: center;
  z-index: 1001; /* ✅ AGREGADO: Para estar sobre el menú */
}

.logo-container img {
  height: 60px;
  width: auto;
}

/* ----------------------------
   NAV DESKTOP
   ---------------------------- */

nav#mainNav {
  display: flex;
  gap: 2rem;
}

nav#mainNav a {
  color: #ffffff;
  text-decoration: none;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  transition: 0.25s ease;
}

nav#mainNav a:hover {
  color: #FFB347;
}

/* ----------------------------
   HAMBURGUESA (MOBILE)
   ---------------------------- */

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001; /* ✅ AGREGADO: Crítico para visibilidad */
  padding: 8px; /* ✅ AGREGADO: Área de click más grande */
  background: none; /* ✅ AGREGADO: Sin fondo */
  border: none; /* ✅ AGREGADO: Sin borde */
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: #ffffff;
  border-radius: 3px;
  transition: all 0.3s ease; /* ✅ CAMBIADO: De 0.3s a all 0.3s */
  display: block; /* ✅ AGREGADO: Asegurar display correcto */
}

/* ✅ AGREGADO: Animación hamburguesa a X */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ----------------------------
   NAV MÓVIL (SLIDE-DOWN)
   ---------------------------- */

@media (max-width: 860px) {

  .menu-toggle {
    display: flex !important; /* ✅ CAMBIADO: Agregado !important */
  }

  nav#mainNav {
    position: fixed; /* ✅ CAMBIADO: De absolute a fixed */
    top: 0; /* ✅ CAMBIADO: De 100% a 0 */
    left: 0; /* ✅ AGREGADO: Para cubrir toda la pantalla */
    right: 0;
    width: 100%;
    height: 100vh; /* ✅ AGREGADO: Pantalla completa */
    background: #617e67;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* ✅ AGREGADO: Centrar verticalmente */
    padding: 2rem 0;
    gap: 2rem; /* ✅ CAMBIADO: De 1.6rem a 2rem */
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transform: translateX(-100%); /* ✅ CAMBIADO: Slide desde izquierda */
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s ease; /* ✅ CAMBIADO: Agregado all */
    z-index: 1000; /* ✅ AGREGADO: Debajo del logo y hamburguesa */
  }

  nav#mainNav.active {
    transform: translateX(0); /* ✅ CAMBIADO: De translateY a translateX */
    opacity: 1;
    pointer-events: all;
  }

  nav#mainNav a {
    font-size: 1.4rem; /* ✅ CAMBIADO: De 1.25rem a 1.4rem */
    color: #ffffff !important;
  }
}

/* ----------------------------
   TRUST BAR (Premium)
   ---------------------------- */

.trust-bar {
  background: linear-gradient(180deg, #FFE9C8 0%, #FFF4E5 100%);
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.trust-pill {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: #FFF4D7;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid #FFDCA3;
  color: #4e6556;
}

.trust-pill .icon {
  background: #FFE3A8;
  padding: 6px;
  border-radius: 50%;
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .trust-bar {
    padding: 1.4rem 1rem;
  }
}

/* ----------------------------
   HERO (BANNER)
   ---------------------------- */

.hero {
  position: relative;
  width: 100%;
  min-height: 70vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff;
  max-width: 700px;
  padding: 2rem;
}

.hero-content h1 {
  font-size: 3rem;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 3px 6px rgba(0,0,0,0.4);
}

.hero-content .subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  color: #f2f2f2;
  text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.social-proof {
  margin: 1rem 0 2rem;
  font-size: 0.95rem;
  color: #e8e8e8;
  text-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

/* ----------------------------
   RESPONSIVE HERO
   ---------------------------- */

@media (max-width: 860px) {
  .hero h1 {
    font-size: 2.1rem;
  }
  .hero .subtitle {
    font-size: 1rem;
  }
}

/* ============================================
   FIX GLOBAL – Asegurar un solo tono de verde
   ============================================ */

#header,
#header *:not(.trust-bar):not(.trust-pill) {
  border: none !important;
}

#header {
  border-bottom: none !important;
  box-shadow: 0 2px 14px rgba(0,0,0,0.06) !important;
}