/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Template: astra
Author: Brainstorm Force
Author URI: https://wpastra.com/about/?utm_source=theme_preview&utm_medium=author_link&utm_campaign=astra_theme
Description: The Astra WordPress theme is lightning-fast and highly customizable. It has over 1 million downloads and the only theme in the world with 5,700+ five-star reviews! It’s ideal for professional web designers, solopreneurs, small businesses, eCommerce, membership sites and any type of website. It offers special features and templates so it works perfectly with all page builders like Spectra, Elementor, Beaver Builder, etc. Fast performance, clean code, mobile-first design and schema markup are all built-in, making the theme exceptionally SEO-friendly. It’s fully compatible with WooCommerce, SureCart and other eCommerce plugins and comes with lots of store-friendly features and templates. Astra also provides expert support for free users. A dedicated team of fully trained WordPress experts are on hand to help with every aspect of the theme. Try the live demo of Astra: https://zipwp.org/themes/astra/
Tags: custom-menu,custom-logo,entertainment,one-column,two-columns,left-sidebar,e-commerce,right-sidebar,custom-colors,editor-style,featured-images,full-width-template,microformats,post-formats,rtl-language-support,theme-options,threaded-comments,translation-ready,blog
Version: 4.9.1.1743887743
Updated: 2025-04-05 18:15:43

*/

/* ===========================
   NAVBAR – Limpieza + fixes (drop‑in)
   =========================== */

/* 0) Sugerencia: asegurá que el wrapper de la navbar tenga position:relative;
   así el menú mobile (absolute) se ancla a ese contenedor y no al <body>. */
.navbar { position: relative; z-index: 1000; }

/* 1) Ítems de navegación (desktop y mobile comparten) */
.nav-item { position: relative; }

.nav-item a {
  position: relative;
  font-weight: 500;
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* subrayado animado */
.nav-item a::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: 90%;
  height: 2px;
  background: #000;
  transition: transform 0.3s ease;
  border-radius: 50px;
  opacity: 0.8;
}

.nav-item a:hover::after,
.nav-item a.active::after,
.nav-item a:focus-visible::after { /* accesibilidad: teclado */
  transform: translateX(-50%) scaleX(1);
}

.nav-item a.active {
  font-weight: 600;
  color: #1D1D1B;
}

/* 2) Menú mobile (contenedor) 
   Notas:
   - Cambié width:100vw -> 100% para evitar scroll horizontal en móviles.
   - Agregué -webkit-backdrop-filter y fondo semitransparente como fallback,
     requisito en Safari iOS para que se vea el blur. */
.e-con.e-flex.menu-mobile {
  display: flex;                /* visible pero "cerrado" por opacity/transform */
  flex-direction: column;
  width: 100%;                  /* antes 100vw: puede causar overflow */
  box-sizing: border-box;
  padding: 0;
  text-align: center;

  position: absolute;           /* se ancla al padre .navbar (ver regla 0) */
  top: 100%;
  left: 0;
  right: 0;

  z-index: 9999;

  /* Efectos */
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity   280ms ease-out;
  will-change: transform, opacity;

  /* Blur + fallback */
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  background-color: rgba(243, 244, 246, 0.4);

  border-radius: 0;
}

.e-con.e-flex.menu-mobile.active {
  transform: translateY(0) scaleY(1);
  opacity: 1;
  pointer-events: auto;
  overflow: hidden;             /* si necesitás recortar el blur */
  /* Reforzamos blur/fondo en estado abierto */
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  background-color: rgba(243, 244, 246, 0.4);
}

/* 3) Normalización de headings dentro del menú mobile */
.menu-mobile .elementor-heading-title {
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

/* 4) Contenedor con efecto blur fijo (barra o card centrada) */
.navbar-blur {
  z-index: 9999;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  background-color: rgba(243, 244, 246, 0.4); /* fallback */
}

/* 5) Toggle */
.menu-toggle { border: 0; cursor: pointer; }

/* 6) Accesibilidad / reduce motion */
@media (prefers-reduced-motion: reduce){
  .e-con.e-flex.menu-mobile { transition: none; }
}

/* 7) Si usás anclas, evitá que la navbar tape el inicio de sección */
:target { scroll-margin-top: 96px; } /* ajustá al alto real de tu navbar */

/* === Guard rails navbar mobile (estado cerrado por defecto) === */
.e-con.e-flex.menu-mobile {
  position: absolute !important;
  top: 100% !important; left: 0 !important; right: 0 !important;
  transform: translateY(-20px) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: 9999;
}

.e-con.e-flex.menu-mobile.active {
  transform: translateY(0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Evitar recortes del subrayado y asegurar capa arriba */
.nav-item, .nav-item a { overflow: visible; }
.nav-item a { position: relative; z-index: 1; }

/* (opcional) si querés recuperar el blur cuando todo esté estable:
.e-con.e-flex.menu-mobile,
.e-con.e-flex.menu-mobile.active {
  background-color: rgba(243,244,246,.4);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}
*/
