/* =====================================================
   RESET Y CAPA BASE DE COMPATIBILIDAD
===================================================== */
.mcp-header * { margin: 0; padding: 0; box-sizing: border-box; }

.mcp-header {
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(229, 231, 235, .8);
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
}

.mcp-header a { text-decoration: none; color: inherit; }

/* =====================================================
   CONTAINER GENERAL Y TOPBAR
===================================================== */
.mcp-container { width: min(1400px, calc(100% - 40px)); margin: auto; }

.mcp-topbar { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 18px 0; }

.mcp-logo { display: flex; align-items: center; gap: 14px; }
.mcp-logo img { max-height: 48px; width: auto; }
.mcp-logo h1 { font-size: 28px; font-weight: 800; }

.mcp-search { flex: 1; max-width: 700px; position: relative;}
.mcp-search input::placeholder { color: #000000 !important; }
.mcp-search input { width: 100%; height: 58px; border-radius: 10px; border: 50px solid #0055ff; padding: 0 70px 0 24px; font-size: 15px; background: rgb(0, 0, 0); outline: #000000 ; color: #000000 !important;}
.mcp-search button { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: var(--mcp-primary); color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; border: none; }

.mcp-actions { display: flex; align-items: center; gap: 12px; }
.mcp-icon { width: 48px; height: 48px; border-radius: 16px; background: white; border: 1px solid #eef2f7; display: flex; align-items: center; justify-content: center; position: relative; cursor: pointer; transition: .3s; }
.mcp-icon:hover { background: var(--mcp-primary); color: white; }
.mcp-badge { position: absolute; top: -3px; right: -3px; width: 18px; height: 18px; border-radius: 50%; background: var(--mcp-primary); color: white; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.mcp-cart { background: var(--mcp-primary); color: white; }

/* =====================================================
   NAVBAR & CATEGORY BUTTON
===================================================== */
.mcp-navbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.mcp-nav-left { display: flex; align-items: center; gap: 28px; flex: 1; flex-wrap: wrap; }
.mcp-category { position: relative; }
.mcp-category-btn { width: 290px; height: 56px; border-radius: 18px; background: linear-gradient(135deg, #2563eb, #3b82f6); color: white; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; cursor: pointer; box-shadow: 0 15px 30px rgba(37, 99, 235, .25); border: none; }
.mcp-category-btn .mcp-left { display: flex; align-items: center; gap: 14px; font-weight: 600; }
.mcp-category-btn i:last-child { transition: .3s; }
.mcp-category-btn.mcp-opened i:last-child { transform: rotate(180deg); }

/* =====================================================
   MENÚ CLÁSICO Y SUBMENÚS (SOLO ESCRITORIO)
===================================================== */
.mcp-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.mcp-links li { position: relative; }

/* Enlaces principales (Nivel 1) */
.mcp-links > li > a { position: relative; font-size: 15px; font-weight: 500; color: #000000; display: flex; align-items: center; gap: 6px; padding: 10px 0; }
.mcp-links > li > a::after { content: ''; position: absolute; width: 0; height: 2px; background: var(--mcp-primary); left: 0; bottom: 0; transition: .3s; }
.mcp-links > li > a:hover::after { width: 100%; }

/* Flecha para items con submenú (Nivel 1) */
.mcp-links > li.menu-item-has-children > a::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 11px; position: static; width: auto; height: auto; background: none; transition: 0.3s; margin-bottom: 2px; }
.mcp-links > li.menu-item-has-children:hover > a::after { transform: rotate(180deg); color: var(--mcp-primary); }

/* Contenedor del Submenú Dropdown */
.mcp-links .sub-menu { position: absolute; top: 100%; left: 0; background: white; min-width: 230px; padding: 12px 0; border-radius: 14px; box-shadow: 0 12px 35px rgba(0,0,0,0.1); opacity: 0; visibility: hidden; transform: translateY(15px); transition: all 0.3s ease; z-index: 100000; border: 1px solid #e5e7eb; display: flex; flex-direction: column; list-style: none; }
.mcp-links li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }

/* Enlaces dentro del Submenú */
.mcp-links .sub-menu li { display: block; width: 100%; margin: 0; }
.mcp-links .sub-menu a { display: flex; align-items: center; justify-content: space-between; padding: 10px 22px; font-size: 14px; font-weight: 500; color: #475569; transition: all 0.2s; text-decoration: none; }
.mcp-links .sub-menu a:hover { color: var(--mcp-primary); background: #f8fafc; padding-left: 28px; }
.mcp-links .sub-menu a::after { display: none !important; }

/* Flecha Sub-submenús (Nivel 2) */
.mcp-links .sub-menu li.menu-item-has-children > a::after { content: '\f054'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 10px; transition: 0.3s; display: block !important; }
.mcp-links .sub-menu li.menu-item-has-children:hover > a::after { transform: translateX(3px); color: var(--mcp-primary); }

/* Posición Sub-submenús (Nivel 3) */
.mcp-links .sub-menu .sub-menu { top: 0; left: 100%; margin-left: 8px; transform: translateX(10px); }
.mcp-links .sub-menu li:hover > .sub-menu { transform: translateX(0); }

/* =====================================================
   BOTÓN WHATSAPP
===================================================== */
.mcp-header-whatsapp-btn { margin-left: auto; display: flex; align-items: center; gap: 10px; background: #25D366; color: white !important; padding: 10px 20px; border-radius: 100px; font-size: 14px; font-weight: 700; letter-spacing: 0.2px; box-shadow: 0 6px 20px rgba(37, 211, 102, 0.25); transition: all .3s ease; cursor: pointer; }
.mcp-header-whatsapp-btn i { font-size: 17px; transition: transform .3s ease; }
.mcp-header-whatsapp-btn span { opacity: 0.95; font-weight: 500; }
.mcp-header-whatsapp-btn:hover { background: #20ba5a; box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35); transform: translateY(-2px); }
.mcp-header-whatsapp-btn:hover i { transform: scale(1.15) rotate(10deg); }

/* =====================================================
   MEGA MENU ESTRUCTURA (CATEGORÍAS)
===================================================== */
.mcp-desktop-mega-menu { position: absolute; top: 78px; left: 0; width: 1150px; background: white; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .12); opacity: 0; visibility: hidden; transform: translateY(20px); transition: .35s; z-index: 10000; }
@media(min-width: 993px) { .mcp-category:hover .mcp-desktop-mega-menu { opacity: 1; visibility: visible; transform: translateY(0); } }

.mcp-mobile-menu { display: none; background: white; margin-top: 16px; border-radius: 24px; overflow: hidden; box-shadow: 0 20px 40px rgba(0, 0, 0, .08); }
.mcp-mega-menu-inner { display: flex; min-height: 550px; }

.mcp-sidebar { width: 320px; background: #fbfcfe; border-right: 1px solid #eef2f7; padding: 18px; }
.mcp-menu-item { height: 62px; border-radius: 16px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; cursor: pointer; transition: .3s; color: #111827; }
.mcp-menu-item:hover { background: #eff6ff; color: var(--mcp-primary); }
.mcp-menu-item.mcp-active { background: linear-gradient(135deg, #2563eb, #3b82f6); color: white; }
.mcp-menu-left { display: flex; align-items: center; gap: 14px; }

.mcp-content { flex: 1; padding: 34px; }
.mcp-content-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.mcp-column h3 { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; color: #111827; margin-bottom: 16px; }
.mcp-column h3 a { transition: color .2s; }
.mcp-column h3 a:hover { color: var(--mcp-primary) !important; }
.mcp-subcat-link { display: block; font-size: 14px; color: #4b5563; margin-bottom: 12px; transition: color .2s; text-decoration: none; }
.mcp-subcat-link:hover { color: var(--mcp-primary); }

.mcp-products { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mcp-product-card { background: #f8fafc; border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; transition: all .3s ease; padding-bottom: 16px; border: 1px solid transparent; }
.mcp-product-card:hover { transform: translateY(-5px); box-shadow: 0 12px 25px rgba(0,0,0,0.06); border: 1px solid #e5e7eb; }
.mcp-product-img { width: 100%; height: 180px; overflow: hidden; background: #fff; border-bottom: 1px solid #f1f5f9; }
.mcp-product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.mcp-product-card:hover .mcp-product-img img { transform: scale(1.03); }
.mcp-product-info { padding: 16px 16px 0; display: flex; flex-direction: column; gap: 8px; }
.mcp-product-info h4 { margin: 0; font-size: 15px; font-weight: 700; color: #111827; line-height: 1.3; }
.mcp-price { color: var(--mcp-primary); font-weight: 800; font-size: 16px; }

/* =====================================================
   CYBER WOW RIBBON ANUNCIO
===================================================== */
.mcp-cyber-ribbon { width: 100%; height: 42px; overflow: hidden; position: relative; z-index: 1000; display: flex; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.mcp-cyber-ribbon-track { display: flex; align-items: center; width: max-content; animation: mcp-scrollRibbon 18s linear infinite; }
.mcp-cyber-ribbon span { color: white; font-size: 14px; font-weight: 700; letter-spacing: .5px; white-space: nowrap; padding-right: 120px; text-transform: uppercase; }
@keyframes mcp-scrollRibbon { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =====================================================
   RESPONSIVE DESIGN SYSTEM (MOBILE & TABLET)
===================================================== */
@media(max-width: 992px) {
  /* Habilitamos esta regla para ocultar completamente los enlaces clásicos en celulares */
  .mcp-links { display: none !important; }
  
  .mcp-header-whatsapp-btn { display: none; }

  .mcp-topbar { display: flex; flex-wrap: wrap; padding: 15px 0; gap: 15px; }
  .mcp-logo { flex: 1; }
  .mcp-actions { margin-left: auto; }
  .mcp-search { order: 3; flex: 0 0 100%; max-width: 100%; margin-top: 5px; }

  .mcp-desktop-mega-menu { display: none !important; }
  .mcp-mobile-menu { display: none; margin-top: 15px; }
  .mcp-mobile-menu.mcp-active { display: block !important; max-height: 65vh; overflow-y: auto; -webkit-overflow-scrolling: touch; border: 1px solid #eef2f7; }
  .mcp-mobile-menu::-webkit-scrollbar { width: 6px; }
  .mcp-mobile-menu::-webkit-scrollbar-track { background: #f8fafc; }
  .mcp-mobile-menu::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
  
  .mcp-category { width: 100%; }
  .mcp-category-btn { width: 100%; justify-content: space-between; }

  /* Ajustes Menú Mega Móvil */
  .mcp-mega-menu-inner { flex-direction: column; }
  .mcp-sidebar { width: 100%; border-right: none; border-bottom: 1px solid #eef2f7; padding: 10px; }
  .mcp-content { width: 100%; padding: 24px; }
  .mcp-content-grid { grid-template-columns: 1fr; gap: 20px; }
  .mcp-products { grid-template-columns: 1fr; gap: 15px; margin-top: 30px; }
}

@media(max-width: 576px) {
  .mcp-container { width: calc(100% - 20px); }
  .mcp-logo h1 { font-size: 22px; }
  .mcp-search input { height: 50px; }
}

.wp-block-shortcode { margin-bottom: 0 !important; }
p:empty { display: none !important; }