/* ===== Ajolotitos Styles (Fix) ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&display=swap');
:root { --aj-purple:#5c32a8; --aj-blue:#6ec1e4; --aj-pink:#f7a8d8; --aj-yellow:#f5c542; --aj-ink:#1f2330; }
body, .entry-content { font-family:'Poppins',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif; }
.site-header,.ast-primary-header-bar { background:linear-gradient(90deg,#f7a8d8 0%, rgba(247,168,216,.25) 8%, rgba(110,193,228,.35) 100%); border-bottom:0; }

.aj-force-full{ width:100vw; margin-left:50%; transform:translateX(-50%); }
.aj-wrap{ max-width:1200px; margin:0 auto; padding:0 20px; }

.aj-hero{ background: radial-gradient(1200px 500px at right -200px top -100px, rgba(110,193,228,.25), transparent),
                         linear-gradient(180deg, rgba(247,168,216,.3), rgba(110,193,228,.2));
          padding: 64px 0; border-bottom:4px solid var(--aj-yellow); }
.aj-hero-inner{ display:grid; grid-template-columns: 1.1fr .9fr; gap:32px; align-items:center; }
.aj-badge{ display:inline-block; background:var(--aj-yellow); color:#2b2b2b; padding:6px 10px; border-radius:999px; font-weight:800; font-size:.9rem; margin-bottom:8px; }
.aj-hero h1{ font-size:48px; margin:0 0 10px; color:var(--aj-purple); font-weight:800; }
.aj-hero p{ font-size:18px; color:#2b2b35; margin:0 0 18px; }
.aj-btns{ display:flex; gap:14px; flex-wrap:wrap; }
.aj-btn{ padding:12px 18px; border-radius:14px; font-weight:700; display:inline-flex; align-items:center; gap:8px; text-decoration:none; box-shadow:0 8px 18px rgba(0,0,0,.06); transition:transform .15s; }
.aj-btn-primary{ background:var(--aj-purple); color:#fff; }
.aj-btn-ghost{ background:#fff; border:2px solid rgba(0,0,0,.06); }

/* HERO: imagen sin fondo ni bordes del contenedor */
.aj-hero-img{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Asegurar que la propia <img> no tenga fondo ni recortes */
.aj-hero-img img{
  display: block;
  max-width: 100%;
  height: auto;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Por si Gutenberg/tema mete fondo en figure */
.aj-hero .wp-block-image,
.aj-hero .wp-block-image figure{
  background: transparent !important;
}

.aj-section{ padding:48px 0; }
.aj-section.alt{ background:#fff; }
.aj-sec-header{ display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin-bottom:18px; }
.aj-sec-header h2{ margin:0; color:#1c2140; font-size:28px; }
.aj-pill-tabs{ display:flex; gap:8px; flex-wrap:wrap; }
.aj-pill{ background:#eef2ff; color:#4f46e5; padding:6px 10px; border-radius:999px; font-weight:700; font-size:.85rem; }

.aj-cards{ display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:18px; }
.aj-card{ background:#fff; border-radius:18px; padding:14px; box-shadow:0 10px 30px rgba(0,0,0,.06); border:1px solid rgba(0,0,0,.04); }

.woocommerce ul.products li.product, .woocommerce-page ul.products li.product{ background:#fff; border-radius:18px; padding:12px; box-shadow:0 10px 30px rgba(0,0,0,.05); border:1px solid rgba(0,0,0,.04); }
.woocommerce ul.products li.product a img{ border-radius:14px; }
.woocommerce ul.products li.product .price{ color:var(--aj-purple); font-weight:800; }
footer.site-footer{ background:#211e2e; color:#fff; }
footer a{ color:#fff; }
/* ===== Forzar ancho completo en la portada Ajolotitos ===== */
/* 1) Romper el max-width del contenedor de Astra SOLO en esta plantilla */
body.page-template-page-templatesajolotitos-home-php .site,
body.page-template-page-templatesajolotitos-home-php .site-content,
body.page-template-page-templatesajolotitos-home-php .ast-container,
body.page-template-page-templatesajolotitos-home-php .content-area,
body.page-template-page-templatesajolotitos-home-php .site-main,
body.page-template-page-templatesajolotitos-home-php .entry-content {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* 2) Asegurar que nuestras secciones ocupen todo el viewport */
body.page-template-page-templatesajolotitos-home-php .aj-hero,
body.page-template-page-templatesajolotitos-home-php .aj-section {
  width: 100vw !important;
  margin-left: 50% !important;
  transform: translateX(-50%) !important;
}

/* 3) Quitar márgenes/espacios extra que mete el theme alrededor del contenido */
body.page-template-page-templatesajolotitos-home-php .entry-header,
body.page-template-page-templatesajolotitos-home-php .ast-page-builder-template .site-content .entry-header {
  display: none !important;
}
body.page-template-page-templatesajolotitos-home-php .entry-content {
  margin: 0 !important;
  padding: 0 !important;
}

/* ——— Ampliaciones por si la clase de body no coincide ——— */
body.home .site,
body.home .site-content,
body.home .ast-container,
body.home .content-area,
body.home .site-main,
body.home .entry-content {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Extender nuestras secciones al viewport */
body.home .aj-hero,
body.home .aj-section {
  width: 100vw !important;
  margin-left: 50% !important;
  transform: translateX(-50%) !important;
}

/* Quitar cabecera de página/márgenes en home */
body.home .entry-header { display: none !important; }
body.home .entry-content { margin: 0 !important; padding: 0 !important; }

/* Casos de Astra con “separate container” */
.ast-separate-container .site-content .ast-container { max-width: 100% !important; padding-left: 0 !important; padding-right: 0 !important; }
.ast-separate-container .site-content .ast-article-post,
.ast-separate-container .site-content .ast-article-single { padding: 0 !important; }

/* 🔥 Forzar ancho completo sí o sí en la portada Ajolotitos */
body.page-template-page-templatesajolotitos-home-php .site,
body.page-template-page-templatesajolotitos-home-php .site-content,
body.page-template-page-templatesajolotitos-home-php .ast-container,
body.page-template-page-templatesajolotitos-home-php .content-area,
body.page-template-page-templatesajolotitos-home-php .site-main,
body.page-template-page-templatesajolotitos-home-php .entry-content,
body.page-template-page-templatesajolotitos-home-php .aj-force-full {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
}

/* Quitar márgenes y padding que mete Astra */
body.page-template-page-templatesajolotitos-home-php .ast-container,
body.page-template-page-templatesajolotitos-home-php .site-content {
    padding: 0 !important;
    margin: 0 !important;
}

/* Evitar que el header empuje contenido */
body.page-template-page-templatesajolotitos-home-php .site-main {
    padding-top: 0 !important;
}

/* Quitar la barra lateral SOLO en esta plantilla */
body.page-template-page-templatesajolotitos-home-php .sidebar-main,
body.page-template-page-templatesajolotitos-home-php .widget-area {
  display: none !important;
}
body.page-template-page-templatesajolotitos-home-php .content-area {
  width: 100% !important;
  float: none !important;
}

/* Quitar sidebars de Astra (izq/der) y dar todo el ancho al contenido */
.ast-right-sidebar .content-area,
.ast-left-sidebar .content-area {
  width: 100% !important;
}
.ast-right-sidebar .secondary,
.ast-left-sidebar .secondary {
  display: none !important;
}

/* Romper el layout “flex” del contenedor de Astra en la home */
body.home .site-content .ast-container {
  display: block !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
/* Quitar cualquier padding/margen alrededor del artículo */
body.home .entry-header { display: none !important; }
body.home .entry-content,
body.home .site-main,
body.home .content-area,
body.home .site,
body.home .site-content {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Asegurar que nuestras secciones ocupen todo el viewport */
body.home .aj-hero,
body.home .aj-section,
body.page-template-page-templatesajolotitos-home-php .aj-hero,
body.page-template-page-templatesajolotitos-home-php .aj-section {
  width: 100vw !important;
  margin-left: 50% !important;
  transform: translateX(-50%) !important;
}

/* Prevención de scroll horizontal por el 100vw */
html, body { overflow-x: hidden; }

/* ===== Header Ajolotitos ===== */
.site-header, .ast-primary-header-bar {
  background: linear-gradient(90deg,#f7a8d8 0%, rgba(247,168,216,.25) 8%, rgba(110,193,228,.35) 100%) !important;
  border: 0 !important;
  min-height: 72px;
  padding: 10px 24px;
}
.site-branding img.custom-logo { max-height: 44px !important; }

/* Menú tipo “píldoras” */
.main-header-menu > .menu-item > a {
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 14px;
}
.main-header-menu > .menu-item > a:hover {
  background: rgba(255,255,255,.6);
}
.main-header-menu > .current-menu-item > a,
.main-header-menu > .current_page_item > a {
  background: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}

/* CTA y carrito */
.main-header-menu > .aj-cta > a {
  background: #5c32a8;
  color: #fff !important;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}
.main-header-menu > .aj-cta > a:hover { background: #47258a; }

.main-header-menu > .aj-cart > a {
  font-weight: 800;
  display: inline-flex; align-items: center; gap: 8px;
}
.aj-cart-count {
  display: inline-block;
  min-width: 20px; height: 20px; line-height: 20px;
  background: #211e2e; color: #fff; border-radius: 10px;
  font-size: 12px; text-align: center; padding: 0 6px;
}

/* Sticky opcional */
.ast-primary-header-bar { position: sticky; top: 0; z-index: 999; backdrop-filter: blur(6px); }

/* ===== Footer Ajolotitos ===== */
.aj-footer { background:#211e2e; color:#fff; margin-top: 40px; }
.aj-footer a { color:#fff; text-decoration: none; }
.aj-footer-wrap {
  max-width: 1200px; margin: 0 auto; padding: 36px 20px;
  display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.aj-foot-col h4 { margin: 0 0 10px; font-size: 18px; }
.aj-foot-text { opacity: .9; margin: 12px 0 0; line-height: 1.5; }
.aj-foot-menu, .aj-foot-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.aj-foot-menu li a:hover, .aj-foot-list li a:hover { text-decoration: underline; }

.aj-foot-social { display: flex; gap: 10px; margin-top: 10px; }
.aj-foot-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 999px; background: rgba(255,255,255,.1);
  font-weight: 800;
}
.aj-foot-social a:hover { background: rgba(255,255,255,.22); }

.aj-foot-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; gap: 10px; justify-content: space-between; align-items: center;
  padding: 14px 20px; max-width: 1200px; margin: 0 auto;
}
.aj-foot-bottom a { text-decoration: underline; }

@media (max-width: 680px){
  .aj-foot-bottom { flex-direction: column; gap: 6px; text-align: center; }
}
/* ===== Footer morado compacto ===== */
.aj-footer-bar{
  background: #5c32a8;
  color: #fff;
}
.aj-footer-row{
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
}
.aj-foot-brand{
  font-weight: 900;
  letter-spacing: .5px;
}
.aj-foot-menu{
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 22px; justify-content: center;
}
.aj-foot-menu a{ color:#fff; text-decoration: none; font-weight: 700; }
.aj-foot-menu a:hover{ text-decoration: underline; }
.aj-foot-icon{
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.15);
  display:flex; align-items:center; justify-content:center;
  font-weight: 800;
}

/* Responsivo footer */
@media (max-width: 680px){
  .aj-footer-row{
    grid-template-columns: 1fr; gap: 10px; text-align: center;
  }
  .aj-foot-menu{ justify-content: center; }
}

/* ===== Banner "Nuestra causa" (versión mockup) ===== */
.aj-cause-cta{
  background: linear-gradient(180deg, #e9f4ff 0%, #dff0ff 100%);
  padding: 18px 0 22px;      /* compacta */
  border-top: 1px solid rgba(0,0,0,.06);
  border-bottom: 6px solid #f5c542; /* línea amarilla más gruesa */
  position: relative;
  overflow: hidden;
}
.aj-cause-grid{
  display: grid; gap: 16px; align-items: center;
  grid-template-columns: 1.4fr .6fr;
}
.aj-cause-text h2{
  margin: 0 0 8px; color:#4a2d95; font-weight:800; font-size: clamp(20px,3vw,28px);
}
.aj-cause-text p{ margin:0 0 12px; line-height:1.5; }
.aj-cause-text .aj-more{
  border-radius: 999px; padding: 10px 16px; font-weight:800;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}
/* .aj-cause-art img {
  width: 160px;            /* un poco más grande, puedes ajustar */
  height: 160px;
  object-fit: cover;
  border-radius: 50%;      /* mantiene el círculo */
  border: none;            /* sin borde blanco */
  background: none;        /* sin fondo */
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);  /* sombra suave para resaltar */
} */


@media (max-width: 860px){
  .aj-cause-grid{ grid-template-columns: 1fr; text-align:left; }
  .aj-cause-art{ order:-1; margin-bottom:8px; }
}
/* Respiro antes del banner, debajo del grid de productos */
.woocommerce ul/products { margin-bottom: 20px !important; }

/* Ajustes del avatar del banner */
.aj-cause-art img { margin-right: 6px; }

/* Evitar que nada se superponga al footer bar */
.aj-footer-bar { position: relative; z-index: 2; }

/* --- Neutralizar el hack de 100vw/translate en las secciones de abajo --- */
.aj-bottom-cause.aj-force-full,
.aj-footer-bar.aj-force-full {
  width: 100% !important;
  margin-left: 0 !important;
  transform: none !important;
}

/* asegurar wrapper centrado y con padding normal */
.aj-bottom-cause .aj-wrap,
.aj-footer-bar .aj-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* por si alguna regla previa estira secciones genéricas con 100vw */
body.home .aj-bottom-cause,
body.home .aj-footer-bar {
  width: 100% !important;
  margin-left: 0 !important;
  transform: none !important;
}
/* ====== FINO-AJUSTES PARA IGUALAR MOCKUP ====== */

/* 1) Header más sólido y nítido */
.site-header, .ast-primary-header-bar{
  min-height: 80px;
  padding: 12px 24px;
  box-shadow: 0 6px 24px rgba(0,0,0,.06);
}
.site-branding img.custom-logo{ max-height: 48px !important; }

/* Menú tipo píldoras con mejor contraste */
.main-header-menu > .menu-item > a{
  font-weight: 800;
  letter-spacing:.2px;
  border-radius: 999px;
  padding: 10px 16px;
}
.main-header-menu > .menu-item > a:hover{
  background: rgba(255,255,255,.65);
}

/* 2) Héroe más protagonista */
.aj-wrap{ max-width: 1160px; } /* un pelín más ancho */
.aj-hero{ padding: clamp(48px, 7vw, 88px) 0; }
.aj-hero-inner{ grid-template-columns: 1.05fr .95fr; gap: clamp(20px, 4vw, 48px); }
.aj-hero h1{
  font-size: clamp(40px, 6.2vw, 66px);
  letter-spacing:-.4px;
}
.aj-hero p{ font-size: clamp(16px, 1.8vw, 19px); }
.aj-btn{ transform: translateZ(0); }
.aj-btn:hover{ transform: translateY(-1px); }
.aj-hero-img{
  max-width: 360px; /* controla el cuadro del logo/imagen */
  margin-left: auto;
}

/* 3) Productos: título, chips y cards */
.aj-sec-header h2{ font-size: clamp(26px, 3.2vw, 34px); }
.aj-pill{ background:#ede9fe; color:#4f46e5; font-weight:800; }
.woocommerce ul.products{ gap: 18px !important; }
.woocommerce ul.products li.product{
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
  transition: transform .15s ease, box-shadow .15s ease;
}
.woocommerce ul.products li.product:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,.08);
}
.woocommerce ul.products li.product a img{ border-radius: 14px; }

/* 4) Banner “Nuestra causa” (mockup) más compacto y limpio */
.aj-bottom-cause{
  background: linear-gradient(180deg, #e9f4ff 0%, #dff0ff 100%);
  padding: 20px 0 22px;
}
.aj-bottom-grid{
  display: grid; align-items: center; gap: 16px;
  grid-template-columns: 1.35fr .65fr;
}
.aj-bottom-copy h2{
  margin: 0 0 8px;
  color:#4a2d95;
  font-weight: 800;
  font-size: clamp(20px,3vw,28px);
}
.aj-bottom-copy p{ margin: 0 0 12px; line-height: 1.5; color:#1f2330; }
.aj-bottom-cta{
  border-radius: 999px; padding: 10px 16px; font-weight:800;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}
.aj-bottom-accent{ height: 6px; background:#f5c542; }

/* Responsivo del banner */
@media (max-width: 860px){
  .aj-bottom-grid{ grid-template-columns: 1fr; text-align:left; }
  .aj-bottom-art{ order:-1; margin-bottom:8px; justify-content:flex-start; }
}

/* 5) Footer morado (barra compacta) */
.aj-footer-bar{ background:#5c32a8; color:#fff; }
.aj-footer-row{
  display:grid; grid-template-columns:auto 1fr auto;
  align-items:center; gap: 14px; padding: 12px 16px;
}
.aj-foot-brand{ font-weight: 900; letter-spacing:.5px; font-size: 14px; }
.aj-foot-menu{ display:flex; gap: 22px; justify-content:center; }
.aj-foot-menu a{ color:#fff; font-weight:800; text-decoration:none; }
.aj-foot-menu a:hover{ text-decoration:underline; }
.aj-foot-icon{
  width:32px; height:32px; border-radius:50%;
  background: rgba(255,255,255,.15);
  display:flex; align-items:center; justify-content:center; font-weight:800;
}

/* 6) Proteger el centrado de las secciones bajas (parche que ya aplicamos) */
.aj-bottom-cause.aj-force-full,
.aj-footer-bar.aj-force-full{
  width: 100% !important;
  margin-left: 0 !important;
  transform: none !important;
}
.aj-bottom-cause .aj-wrap,
.aj-footer-bar .aj-wrap{
  max-width: 1160px; margin: 0 auto; padding: 0 20px;
}
/* Oculta el footer de Astra solo en la portada con nuestra plantilla */
body.page-template-page-templatesajolotitos-home-php .site-footer,
body.home.page-template-page-templatesajolotitos-home-php .site-footer {
  display: none !important;
}
/* Banner inferior (Nuestra causa) — agrandar el avatar */
.aj-bottom-art img{
  width: 220px;   /* antes ~140px */
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
  border: 12px solid rgba(255,255,255,.65);
}

/* Ajuste del layout para darle más aire al avatar */
.aj-bottom-grid{
  display: grid;
  gap: clamp(16px,3vw,28px);
  grid-template-columns: 1.2fr .8fr; /* texto : imagen */
  align-items: center;
}

/* Botón del banner un poquito más pro */
.aj-bottom-cta{
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(0,0,0,.10);
}

/* Responsive */
@media (max-width: 900px){
  .aj-bottom-grid{ grid-template-columns: 1fr; text-align: left; }
  .aj-bottom-art{ display: grid; justify-content: start; }
  .aj-bottom-art img{ width: 180px; height: 180px; }
}
/* ===== Fix: versión final imágenes de banners + hover ===== */

/* Banner intermedio "Nuestra causa" (arriba del footer morado):
   círculo limpio SIN borde blanco ni fondo */
.aj-cause-art { display: grid; justify-content: center; }
.aj-cause-art img{
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: none;           /* sin aro */
  background: none;       /* sin fondo */
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
  transition: transform .18s ease, box-shadow .18s ease;
  will-change: transform;
}
.aj-cause-art img:hover{
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
}

/* Banner inferior (franja azul clara justo encima del footer morado):
   avatar grande CON aro blanco (como el mockup) */
.aj-bottom-art img{
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 12px solid rgba(255,255,255,.65); /* aro blanco */
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
  transition: transform .18s ease, box-shadow .18s ease;
  will-change: transform;
}
.aj-bottom-art img:hover{
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 16px 36px rgba(0,0,0,.22);
}

/* Layout del banner inferior: dar más aire al avatar */
.aj-bottom-grid{
  display: grid;
  gap: clamp(16px,3vw,28px);
  grid-template-columns: 1.2fr .8fr; /* texto : imagen */
  align-items: center;
}

/* Responsive */
@media (max-width: 900px){
  .aj-bottom-grid{ grid-template-columns: 1fr; text-align: left; }
  .aj-bottom-art{ display: grid; justify-content: start; }
  .aj-bottom-art img{ width: 180px; height: 180px; }
}
/* ==== Header estilo mockup (logo centrado, link izq., botón der.) ==== */

/* Convierte la barra en grid: [izq] [logo] [der] */
.ast-primary-header-bar .ast-container{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

/* Logo centrado */
.site-branding{
  grid-column: 2;
  justify-self: center;
}

/* Menú principal ocupa la columna izquierda */
.ast-primary-header-bar .main-header-bar-navigation{
  grid-column: 1;
}

/* Colocar el botón agregado (li.aj-donate) a la derecha visualmente */
.ast-primary-header-bar .main-header-menu{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}
.ast-primary-header-bar .main-header-menu > li.aj-donate{
  margin-left: auto; /* empuja hacia la derecha */
}

/* Estilos de los 2 elementos para que se vean igual al mockup */
.main-header-menu > li.aj-left-link > a{
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  background: transparent;
  color: #1f2330;
  opacity: .85;
}
.main-header-menu > li.aj-left-link > a:hover{
  background: rgba(255,255,255,.65);
}

/* Botón amarillo “Apadrina una playera” */
.main-header-menu > li.aj-donate > a{
  background: #f5c542;
  color: #211e2e !important;
  font-weight: 900;
  padding: 4px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}
.main-header-menu > li.aj-donate > a:hover{
  filter: brightness(.95);
}

/* Ajustes generales de “píldoras” del menú (como en tu mockup) */
.main-header-menu > .menu-item > a{
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
}
.main-header-menu > .menu-item > a:hover{
  background: rgba(255,255,255,.6);
}

/* Opcional: ocultar carrito si quieres que se vea idéntico a la imagen */
.main-header-menu > .aj-cart{ display:none !important; }

/* Responsive: cuando no quepa, deja el logo centrado y apila */
@media (max-width: 920px){
  .ast-primary-header-bar .ast-container{
    grid-template-columns: 1fr auto 1fr;
  }
  .main-header-menu > li.aj-donate > a{ padding: 8px 12px; }
  .site-branding img.custom-logo{ max-height: 40px !important; }
}
/* === Header centrado estilo mockup === */

/* 1) Convierto la barra en grid de 3 columnas: [izq] [logo] [der] */
.ast-primary-header-bar .ast-container,
.main-header-bar .ast-container{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  margin-right: auto;
}

/* 2) Logo exactamente al centro */
.site-branding{
  grid-column: 2;
  justify-self: center;
}
.site-branding img.custom-logo{ max-height: 44px !important; }

/* 3) La navegación ocupa el ancho total (por detrás del logo) */
.ast-primary-header-bar .main-header-bar-navigation{
  grid-column: 1 / -1;
  margin: 0 auto !important;   /* quita sesgos a la izquierda */
  width: 100%;
}

/* 4) El UL del menú funciona como barra con extremos */
.main-header-menu{
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0;
  justify-content: center;      /* centra el bloque base */
}

/* 5) Primer y último ítem se “pegan” a los extremos */
.main-header-menu > li:first-child{  margin-right: auto; }
.main-header-menu > li:last-child{   margin-left:  auto; }

/* 6) Pastillas y botones como en el mockup */
.main-header-menu > .menu-item > a{
  font-weight: 800;
  border-radius: 999px;
  padding: 8px 14px;
}
.main-header-menu > .menu-item > a:hover{
  background: rgba(255,255,255,.65);
}

/* Botón amarillo (si el último es “Apadrina una playera”) */
.main-header-menu > li:last-child > a{
  background: #f5c542;
  color: #211e2e !important;
  font-weight: 900;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}

/* 7) Quita posibles márgenes heredados que empujan a la izquierda */
#primary-menu,
.ast-builder-menu-1 .menu-item,
.ast-builder-menu-1{
  margin-left: 0 !important;
}

/* Responsive: conserva el logo centrado y ajusta paddings */
@media (max-width: 920px){
  .site-branding img.custom-logo{ max-height: 40px !important; }
  .main-header-menu > li:last-child > a{ padding: 8px 12px; }
}
/* === AJ • Header centrado (parche seguro y aislado) === */

/* 1) Asegura que el contenedor del header esté centrado
      y NO herede grids globales. Solo header. */
header.site-header .ast-primary-header-bar > .ast-container,
header.site-header .main-header-bar > .ast-container{
  display: flex !important;
  align-items: center !important;
  justify-content: center !important; /* centra el bloque del menú/logotipo */
  gap: 12px !important;
  max-width: 1160px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 2) Logo centrado visualmente (no lo empujamos a los lados) */
header.site-header .site-branding{
  margin: 0 !important;
  order: 0;            /* no forzamos posiciones raras */
  align-self: center;  /* por si algún tema lo estira */
}

/* 3) Navegación centrada y sin auto-márgenes que empujen */
header.site-header .main-header-bar-navigation{
  margin: 0 !important;
  width: auto !important;
  display: flex !important;
  justify-content: center !important;
}
header.site-header .main-header-menu{
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* Evita que primer/último li usen márgenes automáticos que desbalancean */
header.site-header .main-header-menu > li:first-child,
header.site-header .main-header-menu > li:last-child{
  margin: 0 !important;
}

/* 4) Mantén tu estilo de “píldoras” tal cual */
header.site-header .main-header-menu > .menu-item > a{
  font-weight: 800;
  border-radius: 999px;
  padding: 8px 14px;
}

/* 5) Desktop tweaks opcionales (no toca mobile) */
@media (min-width: 921px){
  /* Si tu header tenía algún grid anterior, lo anulamos solo aquí */
  header.site-header .ast-primary-header-bar > .ast-container{
    grid-template-columns: none !important;
  }
}
/* === Botones del header más delgados === */
/* Morado: "Comprar" */
header.site-header .main-header-menu > .aj-cta > a{
  padding: 6px 12px !important;   /* ↓ alto y un poco el ancho */
  font-size: 14px !important;     /* opcional: tipografía un poco menor */
  line-height: 1.2 !important;
}

/* Amarillo: "Apadrina una playera" */
header.site-header .main-header-menu > li.aj-donate > a{
  padding: 6px 12px !important;   /* antes 8px 14px */
  font-size: 14px !important;
  line-height: 1.2 !important;
}

/* (opcional) Pastillas del resto del menú un pelín más finas */
header.site-header .main-header-menu > .menu-item > a{
  padding: 6px 12px !important;   /* si no quieres tocar los demás, borra esta regla */
}



