.elementor-kit-6{--e-global-color-primary:#6EC1E4;--e-global-color-secondary:#54595F;--e-global-color-text:#7A7A7A;--e-global-color-accent:#61CE70;--e-global-typography-primary-font-family:"Roboto";--e-global-typography-primary-font-weight:600;--e-global-typography-secondary-font-family:"Roboto Slab";--e-global-typography-secondary-font-weight:400;--e-global-typography-text-font-family:"Roboto";--e-global-typography-text-font-weight:400;--e-global-typography-accent-font-family:"Roboto";--e-global-typography-accent-font-weight:500;background-color:#FFFFFF;font-family:"Atkinson Hyperlegible", Sans-serif;}.elementor-kit-6 e-page-transition{background-color:#FFBC7D;}.elementor-section.elementor-section-boxed > .elementor-container{max-width:1140px;}.e-con{--container-max-width:1140px;}.elementor-widget:not(:last-child){--kit-widget-spacing:20px;}.elementor-element{--widgets-spacing:20px 20px;--widgets-spacing-row:20px;--widgets-spacing-column:20px;}{}h1.entry-title{display:var(--page-title-display);}.site-header .site-branding{flex-direction:column;align-items:stretch;}.site-header{padding-inline-end:0px;padding-inline-start:0px;}.site-footer .site-branding{flex-direction:column;align-items:stretch;}@media(max-width:1024px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:1024px;}.e-con{--container-max-width:1024px;}}@media(max-width:767px){.elementor-kit-6{background-image:url("https://casamodu.mx/wp-content/uploads/2026/03/Untitled-2-01-scaled.png");background-repeat:no-repeat;background-size:cover;}.elementor-section.elementor-section-boxed > .elementor-container{max-width:767px;}.e-con{--container-max-width:767px;}}
/* Start custom CSS *//* =========================
   DESKTOP HEADER
========================= */

/* Estado inicial */
.header-custom {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 999;
  background: transparent;
  transition: all 0.3s ease;
  padding: 25px 40px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Scroll */
.header-custom.scrolled {
  position: fixed;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  padding: 10px 20px;
}

/* Logo */
.logo-dark {
  display: none;
}

.header-custom.scrolled .logo-light {
  display: none;
}

.header-custom.scrolled .logo-dark {
  display: block;
}

/* Animación */
.logo img {
  transition: all 0.3s ease;
}

.header-custom.scrolled .logo img {
  transform: scale(0.8);
}

/* Menú */
.header-custom.scrolled .menu a {
  font-size: 14px;
  opacity: 0.9;
}


/* =========================
   MOBILE HEADER (HERO → COMPACT)
========================= */
@media (max-width: 767px) {

  /* 🔝 ESTADO INICIAL (GRANDE Y NEGRO) */
  .header-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    padding: 35px 35px;

    background: #000;
    backdrop-filter: none;

    z-index: 9999;
    transition: all 0.3s ease;
  }

  /* CONTENEDOR */
  .header-custom .e-con-inner {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 10px;
  }

  /* 🔥 FORZAR LOGO CORRECTO */
  .logo-dark {
    display: flex !important;
    justify-content: center;
  }

  .logo-light {
    display: none !important;
  }

  .logo-dark img {
    max-height: 34px;
    width: auto;
  }

  /* ICONOS VISIBLES */
  .header-icons {
    display: flex !important;
    gap: 20px;
  }

  .header-icons img {
    width: 22px;
  }

  /* MENÚ CENTRADO ARRIBA */
  .elementor-menu-toggle {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100000;
  }

  /* =========================
     ⬇️ SCROLL (COMPACTO)
  ========================= */

  .header-custom.scrolled {
    height: 65px;
    padding: 15px 15px;

    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
  }

  /* layout horizontal */
  .header-custom.scrolled .e-con-inner {
    flex-direction: row;
    justify-content: center;
  }

  /* ocultar iconos */
  .header-custom.scrolled .header-icons {
    display: none !important;
  }

  /* 🔥 FIX TRANSFORM (muy importante) */
  .header-custom.scrolled .logo {
    transform: none !important;
  }

  /* logo más pequeño */
  .header-custom.scrolled .logo-dark img {
    max-height: 22px;
  }

  /* menú a la izquierda */
  .header-custom.scrolled .elementor-menu-toggle {
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
  }

  /* OFFSET */
  body {
    padding-top: 140px;
  }
  
   /* 🔥 SOLO CUANDO ESTÁ EN SCROLL */
  .header-custom.scrolled .elementor-nav-menu--dropdown {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh !important;

    background: rgba(0,0,0,0.96);
    backdrop-filter: blur(10px);

    display: flex !important;
    align-items: center;
    justify-content: center;

    z-index: 99999;
  }

  /* 🔥 LISTA CENTRADA */
  .header-custom.scrolled .elementor-nav-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
  }

  /* 🔥 LINKS */
  .header-custom.scrolled .elementor-nav-menu a {
    font-size: 22px;
    color: #fff !important;
    text-align: center;
  }
  
    .header-custom.scrolled .elementor-nav-menu--dropdown {
    position: fixed !important;
    inset: 0 !important; /* 👈 cubre toda la pantalla */

    width: 100vw !important;
    height: 100vh !important;

    background-color: rgba(0,0,0,0.97) !important;
    backdrop-filter: blur(10px) !important;

    display: flex !important;
    align-items: center;
    justify-content: center;

    z-index: 999999 !important;

    opacity: 1 !important;
    visibility: visible !important;

    /* 🔥 CLAVE: Elementor fix */
    max-height: none !important;
    overflow: visible !important;
  }

  /* 🔥 CONTENEDOR INTERNO DEL MENÚ */
  .header-custom.scrolled .elementor-nav-menu--dropdown .elementor-nav-menu {
    background: transparent !important;
  }

    /* 🔥 BOTÓN (hamburguesa / X) SIEMPRE ARRIBA */
  .header-custom .elementor-menu-toggle {
    position: fixed !important;
 

    z-index: 1000000 !important; /* 👈 MÁS ALTO QUE TODO */
  }

  /* 🔥 HACER VISIBLE EL ICONO */
  .header-custom .elementor-menu-toggle svg {
    fill: #fff !important;
    width: 26px;
    height: 26px;
  }
  
   .header-custom.scrolled .logo img {
    transform: none !important;
  }
  
   .header-custom .logo-dark img {
    max-height: 34px;
  }

  .header-custom.scrolled .logo-dark img {
    max-height: 22px;
  }

}/* End custom CSS */