/* ============================================================
   MOOVAE THEME — Header & Footer
   ============================================================ */

/* ── Reset / base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

/* ============================================================
   HEADER
   ============================================================ */
.moovae-header-outer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  padding: 1.1rem 1.5rem;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  pointer-events: none;
  box-sizing: border-box;
}

.moovae-navbar {
  pointer-events: all;
  display: flex !important;
  flex: 0 0 auto !important;
  width: auto !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.25rem;
  background: rgba(10,10,10,0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  padding: 0.45rem 0.6rem 0.45rem 0.9rem;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.moovae-navbar.mn-scrolled {
  background: rgba(8,8,8,0.92);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

/* Brand */
.moovae-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
  padding: 0.2rem 0.5rem 0.2rem 0.2rem;
}
.moovae-brand .wp-block-site-logo,
.moovae-brand .wp-block-site-logo a {
  display: flex;
  align-items: center;
}
.moovae-brand .wp-block-site-logo img,
.moovae-brand img,
.moovae-brand svg {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}
/* Ocultar texto del sitio en desktop — solo icono como en el React */
.moovae-brand-title,
.moovae-brand .wp-block-site-title {
  display: none;
}

/* Nav container — evitar que tome width:100% del tema WP */
.moovae-nav {
  width: auto !important;
  flex: 0 0 auto !important;
}

/* Nav links */
.moovae-nav-links,
.moovae-nav ul,
.moovae-nav .wp-block-navigation__container {
  display: flex !important;
  align-items: center !important;
  gap: 0.25rem !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  flex: 0 0 auto !important;
  flex-wrap: nowrap !important;
}
/* Reset cualquier estilo de la plantilla en los nav items */
.moovae-nav li,
.moovae-nav li.current-menu-item,
.moovae-nav li.current-menu-ancestor,
.moovae-nav li.current_page_item,
.moovae-nav .wp-block-navigation-item {
  background: none !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.moovae-nav .wp-block-navigation-item__content,
.moovae-nav a,
.moovae-nav li a,
.moovae-nav-links a,
.moovae-nav-links li a {
  color: rgba(255,255,255,0.7) !important;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem !important;
  border-radius: 60px;
  text-decoration: none !important;
  background: none !important;
  box-shadow: none !important;
  display: block;
  overflow: hidden;
  position: relative;
  transition: color 0.2s ease, background 0.2s ease;
}
.moovae-nav .wp-block-navigation-item__content:hover,
.moovae-nav a:hover,
.moovae-nav-links a:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.08) !important;
}
.moovae-nav .wp-block-navigation-item__label {
  display: block;
}

/* ── Hover text slide effect ── */
.mn-label-mask {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 1.2em;
  line-height: 1.2;
}
.mn-label-original,
.mn-label-clone {
  display: block;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.mn-label-clone {
  margin-top: 0; /* sits just below original in the column */
}
.moovae-nav .wp-block-navigation-item__content:hover .mn-label-original,
.moovae-nav .wp-block-navigation-item__content:hover .mn-label-clone {
  transform: translateY(-100%);
}

/* Mobile toggle */
.moovae-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.4rem;
  background: none;
  border: none;
  flex-shrink: 0;
}
.moovae-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.moovae-mobile-toggle.mn-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.moovae-mobile-toggle.mn-open span:nth-child(2) { opacity: 0; }
.moovae-mobile-toggle.mn-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.moovae-mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(5,5,5,0.97);
  z-index: 9998;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 5rem 2rem 3rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.moovae-mobile-menu.mn-visible {
  display: flex;
  opacity: 1;
  pointer-events: all;
}
.moovae-mobile-menu .moovae-nav-links {
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.moovae-mobile-menu .wp-block-navigation__container {
  flex-direction: column !important;
  align-items: center !important;
  gap: 0.5rem !important;
}
.moovae-mobile-menu .wp-block-navigation-item__content {
  font-size: 1.5rem !important;
  color: rgba(255,255,255,0.8) !important;
}
.moovae-mobile-contact {
  text-align: center;
}
.moovae-mobile-contact p {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}
.moovae-mobile-contact a {
  color: #fff;
  font-size: 1.1rem;
  text-decoration: none;
}
.moovae-mobile-social {
  display: flex;
  gap: 1.5rem;
}
.moovae-mobile-social a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}
.moovae-mobile-social a:hover { color: #fff; }

/* Push page content below fixed header */
body { padding-top: 80px; }
body.admin-bar { padding-top: calc(80px + 32px); }
.moovae-header-outer { top: 0; }
body.admin-bar .moovae-header-outer { top: 32px; }

/* Desktop: ocultar toggle */
.moovae-mobile-toggle { display: none; }

@media (max-width: 768px) {
  body { padding-top: 70px; }
  .moovae-nav { display: none; }
  .moovae-mobile-toggle { display: flex; }
  .moovae-navbar { padding: 0.5rem 1rem; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.moovae-footer {
  background-color: #050505;
  background-image: url('https://moovae.io/blog/wp-content/uploads/2026/04/footer_glow.jpg');
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
  border-top: 1px solid rgba(255,255,255,0.07);
  color: #fff;
  padding: 0;
  width: 100%;
}

.moovae-footer-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 5rem 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Top — contact */
.moovae-footer-top {
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 2.5rem;
}
.moovae-footer-contact-label {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}
.moovae-footer-email {
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 3.2rem);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: opacity 0.2s;
}
.moovae-footer-email:hover { opacity: 0.75; }

/* Middle — social links */
.moovae-footer-social {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-bottom: 3rem;
  margin-bottom: 0;
}

/* ── Social hover text slide ── */
.moovae-social-link {
  color: rgba(255,255,255,0.6);
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 500;
  display: inline-block;
  overflow: hidden;
  position: relative;
}
.moovae-social-link:hover { color: #fff; }
.mn-social-mask {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 1.2em;
  line-height: 1.2;
}
.mn-social-original,
.mn-social-clone {
  display: block;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.moovae-social-link:hover .mn-social-original,
.moovae-social-link:hover .mn-social-clone {
  transform: translateY(-100%);
}

/* Bottom — SVG logo + copyright */
.moovae-footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  text-align: center;
}
.moovae-footer-svg {
  width: 60%;
  max-width: 700px;
  height: auto;
  opacity: 0.85;
}
.moovae-footer-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 1rem;
  flex-wrap: wrap;
}
.moovae-footer-copyright {
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
}
.moovae-footer-policy {
  display: flex;
  gap: 1.5rem;
}
.moovae-footer-policy a {
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.2s;
}
.moovae-footer-policy a:hover { color: rgba(255,255,255,0.8); }

@media (max-width: 640px) {
  .moovae-footer-inner { padding: 3rem 1.25rem 2rem; }
  .moovae-footer-svg { width: 85%; }
  .moovae-footer-info { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .moovae-footer-social { gap: 1.25rem; }
}
