/* Mega Menú @420Crea v1.3.0 — Preset estilo mockup */
.mm420crea-wrap{
  /* Defaults (premium médico). Se sobrescriben desde los controles del widget. */
  --mm-bg: rgba(31,74,122,.10);
  --mm-bg-2: rgba(31,74,122,.14);
  --mm-bg-3: rgba(31,74,122,.20);
  --mm-blur: 22px;
  --mm-sat: 135%;
  --mm-border-a: .18;
  --mm-glow: .12;
  --mm-top: 0px;
  width: 100%;
  z-index: 99999;
  font-family: inherit;
}

/* Fixed / Sticky */
.mm420crea-wrap.is-fixed{ position: fixed; top: var(--mm-top); left: 0; right: 0; }
.mm420crea-wrap.is-sticky{ position: sticky; top: var(--mm-top); }

.mm420crea-shell{
  width: min(1260px, calc(100% - 24px));
  margin: 0 auto;
  border-radius: 24px;
  padding: 10px;
  position: relative;
}

.mm420crea-wrap.is-glass .mm420crea-shell{
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04)),
    radial-gradient(1200px 700px at 25% 15%, rgba(56,160,255,.18), rgba(255,255,255,0) 60%),
    radial-gradient(900px 520px at 80% 85%, rgba(0,214,195,.10), rgba(255,255,255,0) 65%),
    radial-gradient(900px 520px at 20% 0%, rgba(255,255,255,.14), rgba(255,255,255,0) 60%),
    radial-gradient(1100px 720px at 85% 110%, rgba(0,0,0,.10), rgba(0,0,0,0) 55%),
    var(--mm-bg);
  border: 1px solid rgba(255,255,255,var(--mm-border-a));
  backdrop-filter: blur(var(--mm-blur)) saturate(var(--mm-sat));
  -webkit-backdrop-filter: blur(var(--mm-blur)) saturate(var(--mm-sat));
  box-shadow:
    0 28px 80px rgba(0,0,0,.22),
    0 0 calc(60px * var(--mm-glow)) rgba(120,170,255,.18);
  overflow: hidden;
}

/* Shine + gradient like the mockup */
.mm420crea-wrap.is-glass .mm420crea-shell:before{
  content:"";
  position:absolute;
  inset:-40% -10%;
  background:
    radial-gradient(closest-side at 18% 18%, rgba(255,255,255,.22), rgba(255,255,255,0) 62%),
    radial-gradient(closest-side at 78% 14%, rgba(255,255,255,.16), rgba(255,255,255,0) 60%),
    radial-gradient(closest-side at 74% 92%, rgba(120,170,255,.16), rgba(255,255,255,0) 62%),
    linear-gradient(120deg, rgba(255,255,255,.10), rgba(255,255,255,0) 46%, rgba(255,255,255,.08));
  transform: rotate(-8deg);
  pointer-events:none;
  mix-blend-mode: soft-light;
  opacity: .75;
}
.mm420crea-wrap.is-glass .mm420crea-shell:after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,0) 42%, rgba(0,0,0,.07));
  pointer-events:none;
  opacity: .75;
}

.mm420crea-bar{
  position: relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 8px 10px;
  border-radius: 18px;
  z-index: 2;
}

/* Brand */
.mm420crea-logo{ display:flex; align-items:center; gap:10px; text-decoration:none !important; }
.mm420crea-logo img{ display:block; filter: drop-shadow(0 6px 14px rgba(0,0,0,.18)); }
.mm420crea-logo-text{ font-weight:800; color:#f7fbff; text-shadow: 0 6px 18px rgba(0,0,0,.25); }

/* Menus */
.mm420crea-menus{ flex:1; min-width:0; position: relative; z-index: 2; }
.mm420crea-nav{ display:none; }
.mm420crea-menu{ list-style:none; margin:0; padding:0; display:flex; gap:18px; align-items:center; }
.mm420crea-menu a{
  text-decoration:none;
  color: rgba(255,255,255,.92);
  font-weight: 700;
  opacity: .92;
  white-space:nowrap;
  text-shadow: 0 10px 24px rgba(0,0,0,.28);
}
.mm420crea-menu .current-menu-item > a{ opacity: 1; }

.mm420crea-actions{ display:flex; align-items:center; gap:10px; position: relative; z-index: 2; }

/* CTA + Burger = glass pills */
.mm420crea-cta,
.mm420crea-burger{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.22);
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,0) 55%),
    var(--mm-bg-2);
  backdrop-filter: blur(calc(var(--mm-blur) * .65)) saturate(var(--mm-sat));
  -webkit-backdrop-filter: blur(calc(var(--mm-blur) * .65)) saturate(var(--mm-sat));
  box-shadow: 0 14px 40px rgba(0,0,0,.16);
}

.mm420crea-cta{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 10px 14px;
  font-weight: 800;
  color: rgba(255,255,255,.94);
  text-decoration:none !important;
  text-shadow: 0 12px 26px rgba(0,0,0,.28);
}

.mm420crea-burger{
  width: 46px; height: 46px;
  display:inline-flex; align-items:center; justify-content:center;
  cursor:pointer;
}
.mm420crea-burger span{
  display:block; width: 18px; height:2px;
  background: rgba(255,255,255,.94);
  border-radius:2px;
  box-shadow: 0 10px 20px rgba(0,0,0,.22);
}
.mm420crea-burger span:nth-child(1){ transform: translateY(-4px); }
.mm420crea-burger span:nth-child(3){ transform: translateY(4px); }

/* Responsive menus visibility */
@media (min-width: 1025px){ .mm420crea-nav--desktop{ display:block; } }
@media (min-width: 768px) and (max-width: 1024px){
  .mm420crea-nav--tablet{ display:block; }
  .mm420crea-wrap:not(.menu-wrap) .mm420crea-menu{ overflow-x:auto; scrollbar-width:none; }
  .mm420crea-wrap:not(.menu-wrap) .mm420crea-menu::-webkit-scrollbar{ display:none; }
  .mm420crea-wrap.menu-wrap .mm420crea-menu{ flex-wrap:wrap; row-gap:8px; }
}
@media (max-width: 767px){
  .mm420crea-nav--mobile{ display:block; }
  .mm420crea-wrap.mobile-burger-only .mm420crea-nav--mobile{ display:none; }
  .mm420crea-wrap.mobile-burger-only .mm420crea-menus{ display:none; }
}

/* Compact mode */
.mm420crea-wrap.has-compact.is-compact .mm420crea-shell{ padding: 8px; border-radius: 22px; }
.mm420crea-wrap.has-compact.is-compact .mm420crea-bar{ padding: 6px 8px; }
.mm420crea-wrap.has-compact.is-compact .mm420crea-cta{ padding: 9px 12px; }
.mm420crea-wrap.has-compact.is-compact .mm420crea-burger{ width: 44px; height: 44px; }

/* Overlay */
.mm420crea-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.25);
  /* IMPORTANTE: debe quedar POR DEBAJO del panel del mega menú.
     Si queda encima, bloquea clics y scroll en móvil. */
  z-index: 1;
}

/* Mega menu — attached to shell, like mockup */
.mm420crea-mega{
  position: relative;
  width: 100%;
  /* Por encima del overlay */
  z-index: 2;
  margin-top: 10px;
  max-height: calc(100vh - var(--mm-bar-h, 72px) - 24px);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.mm420crea-mega__inner{
  border-radius: 22px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,0) 55%),
    radial-gradient(900px 520px at 15% 10%, rgba(255,255,255,.12), rgba(255,255,255,0) 62%),
    var(--mm-bg-2);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(calc(var(--mm-blur) * .8)) saturate(var(--mm-sat));
  -webkit-backdrop-filter: blur(calc(var(--mm-blur) * .8)) saturate(var(--mm-sat));
  box-shadow: 0 26px 80px rgba(0,0,0,.22);
  position: relative;
  overflow: hidden;
}
.mm420crea-mega__inner:before{
  content:"";
  position:absolute;
  inset:-30% -10%;
  background:
    radial-gradient(closest-side at 25% 15%, rgba(255,255,255,.20), rgba(255,255,255,0) 60%),
    radial-gradient(closest-side at 80% 40%, rgba(120,170,255,.14), rgba(255,255,255,0) 58%),
    linear-gradient(120deg, rgba(255,255,255,.10), rgba(255,255,255,0) 44%);
  transform: rotate(-10deg);
  pointer-events:none;
  mix-blend-mode: soft-light;
  opacity: .7;
}

/* Tabs bar like mockup */
.mm420crea-tabs{
  display:flex;
  gap: 10px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  overflow-x:auto;
  scrollbar-width:none;
  position: relative;
}
.mm420crea-tabs::-webkit-scrollbar{ display:none; }

.mm420crea-tab{
  appearance:none; border:0; cursor:pointer;
  display:inline-flex; align-items:center; gap:8px;
  padding: 12px 14px;
  border-radius: 16px;
  background: transparent;
  color: rgba(255,255,255,.90);
  font-weight: 800;
  white-space:nowrap;
  opacity: .86;
  text-shadow: 0 10px 24px rgba(0,0,0,.28);
}
.mm420crea-tab.is-active{
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.16);
  opacity: 1;
}

/* Panels */
.mm420crea-panels{ margin-top: 14px; position: relative; }
.mm420crea-panel{ display:none; }
.mm420crea-panel.is-active{ display:block; }

.mm420crea-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 1024px){ .mm420crea-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px){ .mm420crea-grid{ grid-template-columns: 1fr; } }

.mm420crea-card{
  border-radius: 20px;
  padding: 16px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 18px 55px rgba(0,0,0,.16);
}
.mm420crea-card__head{ display:flex; gap: 10px; align-items:center; }
.mm420crea-card__img{
  width: 46px; height: 46px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
}
.mm420crea-card__title{
  margin:0;
  font-size: 16px;
  font-weight: 900;
  color: rgba(255,255,255,.92);
  text-shadow: 0 12px 26px rgba(0,0,0,.28);
}
.mm420crea-card__links{ list-style:none; padding: 10px 0 0; margin:0; }
.mm420crea-card__links a{
  color: rgba(255,255,255,.90);
  text-decoration:none;
  font-weight: 700;
  opacity:.92;
}
.mm420crea-card__links li{
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,.10);
}
.mm420crea-card__links li:first-child{ border-top: 0; }

/* Dots (desactivados por defecto para mega menú único) */
.mm420crea-dots{
  display:none;
  gap: 10px;
  justify-content:center;
  padding: 12px 0 2px;
}
.mm420crea-dot{
  width: 10px; height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.30);
  box-shadow: 0 10px 20px rgba(0,0,0,.22);
}
.mm420crea-dot.is-active{ background: rgba(255,255,255,.80); }

.mm420crea-close{
  position:absolute; right: 10px; top: 10px;
  width: 40px; height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.10);
  cursor:pointer;
  font-size: 24px;
  line-height: 1;
  color: rgba(255,255,255,.92);
}

/* Prevent scroll when mega open */
html.mm420crea-no-scroll, html.mm420crea-no-scroll body{ overflow:hidden !important; }

/* Fullscreen HTML panel */
.mm420crea-fs{
  position: fixed;
  inset: var(--mm-bar-h) 0 0 0;
  z-index: 10002;
  display:none;
}
.mm420crea-fs.is-open{ display:block; }
.mm420crea-fs__inner{
  height: 100%;
  padding: 18px;
  background: rgba(255,255,255, calc(var(--mm-opacity) * .08));
  border-top: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(calc(var(--mm-blur) * 1px)) saturate(140%);
  -webkit-backdrop-filter: blur(calc(var(--mm-blur) * 1px)) saturate(140%);
}
.mm420crea-fs__close{
  position: absolute;
  right: 14px;
  top: 14px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.mm420crea-fs__content{
  height: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 12px 28px;
  border-radius: 22px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 18px 55px rgba(0,0,0,.16);
}
.mm420crea-fs__title{
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 900;
  color: rgba(255,255,255,.92);
}

/* HTML block content (new) */
.mm420crea-card__html{ padding: 10px 0 0; }
.mm420crea-card__html .mm420crea-list{ list-style:none; padding:0; margin:0; }
.mm420crea-card__html .mm420crea-list li{
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,.10);
}
.mm420crea-card__html .mm420crea-list li:first-child{ border-top:0; }
.mm420crea-card__html .mm420crea-list a{
  color: rgba(255,255,255,.90);
  text-decoration:none;
  font-weight: 700;
  opacity:.92;
}

/* ============================
   UrologíaMH — PANEL LISTAS (mhmm-*)
   Pensado para pegar HTML en bloques del mega menú.
   ============================ */
.mm420crea-wrap .mhmm-panel{ width:100%; }
.mm420crea-wrap .mhmm-grid-1{ display:grid; grid-template-columns: 1fr; gap: 12px; }

.mm420crea-wrap .mhmm-card{
  border-radius: 22px;
  padding: 16px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(calc(var(--mm-blur) * .7)) saturate(var(--mm-sat));
  -webkit-backdrop-filter: blur(calc(var(--mm-blur) * .7)) saturate(var(--mm-sat));
  box-shadow: 0 18px 55px rgba(0,0,0,.16), inset 0 0 0 1px rgba(255,255,255,.06);
}

.mm420crea-wrap .mhmm-title{
  font-size: 18px;
  font-weight: 900;
  color: rgba(255,255,255,.92);
  margin: 2px 0 14px;
  text-shadow: 0 12px 26px rgba(0,0,0,.28);
}

.mm420crea-wrap .mhmm-item{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 18px;
  margin-bottom: 12px;
  text-decoration:none !important;
  color: rgba(255,255,255,.92);
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,0) 55%),
    rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 14px 40px rgba(0,0,0,.14);
}
.mm420crea-wrap .mhmm-item:hover{ border-color: rgba(255,255,255,.18); }

.mm420crea-wrap .mhmm-item img{
  width: 44px;
  height: 44px;
  display:block;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.22));
}

.mm420crea-wrap .mhmm-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.32);
  box-shadow: 0 10px 20px rgba(0,0,0,.22);
  flex: 0 0 auto;
}

.mm420crea-wrap .mhmm-mini{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 6px;
}
.mm420crea-wrap .mhmm-miniItem{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 14px 12px;
  border-radius: 18px;
  text-decoration:none !important;
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 14px 40px rgba(0,0,0,.14);
}
.mm420crea-wrap .mhmm-miniItem img{ width: 22px; height: 22px; }

.mm420crea-wrap .mhmm-ico--svg{
  width: 22px;
  height: 22px;
  display:inline-flex;
  color: rgba(255,255,255,.88);
}
.mm420crea-wrap .mhmm-ico--svg svg{ width: 22px; height: 22px; }

.mm420crea-wrap .mhmm-social{
  display:flex;
  gap: 12px;
  margin-top: 14px;
}
.mm420crea-wrap .mhmm-social a{ display:inline-flex; }
.mm420crea-wrap .mhmm-social img{ width: 46px; height: 46px; }

/* Mobile: menos márgenes + full width real */
@media (max-width: 768px){
  .mm420crea-shell{ width: calc(100% - 16px); padding: 8px; border-radius: 22px; }
  .mm420crea-mega{ margin-top: 8px; }
  .mm420crea-mega__inner{ padding: 10px; border-radius: 20px; }
  .mm420crea-panels{ margin-top: 12px; }
  .mm420crea-wrap .mhmm-card{ padding: 12px; border-radius: 20px; }
  .mm420crea-wrap .mhmm-item{ padding: 12px; border-radius: 16px; margin-bottom: 10px; }
  .mm420crea-wrap .mhmm-mini{ gap: 10px; }
  .mm420crea-wrap .mhmm-social img{ width: 44px; height: 44px; }
}

/* === 420CreaStack Swiper Desktop Fix v0.3.3 === */
.cstack-spec-carousel .swiper{
  overflow: hidden;
}

.cstack-spec-carousel .swiper-wrapper{
  display: flex !important;
}

.cstack-spec-carousel .swiper-slide{
  width: auto !important;
  flex: 0 0 auto !important;
  max-width: none !important;
}


.mm420crea-widget svg,
.mm420crea-widget i,
.mm420crea-panel svg,
.mm420crea-panel i{
  width:1em !important;
  height:1em !important;
  max-width:1em !important;
  max-height:1em !important;
  display:inline-block;
  vertical-align:middle;
}
.mm420crea-widget .elementor-icon,
.mm420crea-panel .elementor-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:1.2em;
  height:1.2em;
}


/* v1.3.5 icon visibility hardening */
.mm420crea-widget .elementor-icon svg,
.mm420crea-panel .elementor-icon svg,
.mm420crea-widget svg,
.mm420crea-panel svg{
  fill: currentColor;
  stroke: currentColor;
  opacity: 1;
}
.mm420crea-widget .elementor-icon i,
.mm420crea-panel .elementor-icon i{
  font-size: 1em;
  line-height: 1;
}
