/* Mamitahaya — puente Elementor ↔ design system
 * Elementor 4.x (markup optimizado) ya no usa `.e-con-inner`.
 * Layout se aplica al propio `.e-con`; se mantiene fallback a `.e-con-inner`.
 */

.mamitahaya-theme {
  --widgets-spacing: 12px 12px;
  --mh-content: min(1180px, calc(100% - 2.5rem));
  background-color: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
}

.mamitahaya-theme .elementor-element {
  max-width: 100%;
}

.mamitahaya-theme .elementor-widget-heading .elementor-heading-title {
  font-family: var(--font-display) !important;
  color: var(--color-text);
  letter-spacing: -0.02em;
  line-height: var(--leading-tight) !important;
  margin: 0 0 0.75rem !important;
  font-weight: 700 !important;
}

.mamitahaya-theme .elementor-widget-heading h1.elementor-heading-title {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem) !important;
}
.mamitahaya-theme .elementor-widget-heading h2.elementor-heading-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem) !important;
}
.mamitahaya-theme .elementor-widget-heading h3.elementor-heading-title {
  font-size: clamp(1.25rem, 2vw, 1.625rem) !important;
}

.mamitahaya-theme .elementor-widget-text-editor,
.mamitahaya-theme .elementor-widget-text-editor p {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-text-muted);
}

.mamitahaya-theme .elementor-widget-text-editor p { margin: 0 0 1rem; }
.mamitahaya-theme .elementor-widget-text-editor p:last-child { margin-bottom: 0; }
.mamitahaya-theme .elementor-widget:not(:last-child) { margin-bottom: 0 !important; }

.mamitahaya-theme .elementor-button,
.mamitahaya-theme .elementor-button-link {
  font-family: var(--font-body) !important;
  font-size: var(--text-small) !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  border-radius: var(--radius-btn) !important;
  padding: 0.875rem 1.75rem !important;
}

.mamitahaya-theme .elementor-widget-image img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: auto;
  max-height: 40rem;
  object-fit: cover;
  display: block;
}

.mamitahaya-theme .mh-media .elementor-widget-image img,
.mamitahaya-theme .mh-card .elementor-widget-image img {
  aspect-ratio: 4 / 5;
  max-height: none;
  object-fit: cover;
}

.mamitahaya-theme .mh-media--landscape .elementor-widget-image img {
  aspect-ratio: 4 / 3;
  max-height: 28rem;
}

/* Secciones full-bleed */
.mamitahaya-theme .e-con.mh-section,
.mamitahaya-theme .mh-section.e-con {
  padding-block: clamp(3rem, 8vw, 5rem) !important;
  width: 100% !important;
}

.mamitahaya-theme .mh-section--sand.e-con,
.mamitahaya-theme .mh-section--warm.e-con {
  background-color: var(--color-sand) !important;
}

.mamitahaya-theme .mh-section--surface.e-con {
  background-color: var(--color-surface) !important;
}

.mamitahaya-theme .mh-page-hero.e-con {
  background-color: var(--color-sand) !important;
  border-bottom: 1px solid var(--color-border);
  padding-block: clamp(2.75rem, 7vw, 4.5rem) !important;
}

.mamitahaya-theme .mh-page-hero .elementor-widget-text-editor p {
  max-width: 42rem;
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
}

.mamitahaya-theme .mh-eyebrow .elementor-heading-title,
.mamitahaya-theme .elementor-element.mh-eyebrow .elementor-heading-title {
  font-size: 0.6875rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--color-brand) !important;
  margin-bottom: 0.75rem !important;
}

.mamitahaya-theme .mh-num .elementor-heading-title,
.mamitahaya-theme .elementor-element.mh-num .elementor-heading-title {
  color: var(--color-brand) !important;
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  margin: 0.2rem 0 0 !important;
}

/* Layout helpers: target .e-con and optional .e-con-inner */
.mamitahaya-theme .e-con.mh-boxed,
.mamitahaya-theme .e-con.mh-boxed > .e-con-inner,
.mamitahaya-theme .e-con.mh-stack,
.mamitahaya-theme .e-con.mh-stack > .e-con-inner {
  width: var(--mh-content) !important;
  max-width: 1180px;
  margin-inline: auto !important;
  padding-inline: 0 !important;
  box-sizing: border-box;
}

.mamitahaya-theme .e-con.mh-stack,
.mamitahaya-theme .e-con.mh-stack > .e-con-inner {
  display: flex !important;
  flex-direction: column !important;
  gap: 2rem !important;
}

.mamitahaya-theme .e-con.mh-split,
.mamitahaya-theme .e-con.mh-split > .e-con-inner {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: clamp(1.5rem, 4vw, 3rem) !important;
  align-items: center !important;
  width: var(--mh-content) !important;
  max-width: 1180px;
  margin-inline: auto !important;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .mamitahaya-theme .e-con.mh-split,
  .mamitahaya-theme .e-con.mh-split > .e-con-inner {
    grid-template-columns: 1fr 1fr !important;
  }
}

.mamitahaya-theme .e-con.mh-grid-3,
.mamitahaya-theme .e-con.mh-grid-3 > .e-con-inner {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1.5rem !important;
  width: var(--mh-content) !important;
  max-width: 1180px;
  margin-inline: auto !important;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .mamitahaya-theme .e-con.mh-grid-3,
  .mamitahaya-theme .e-con.mh-grid-3 > .e-con-inner {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (min-width: 960px) {
  .mamitahaya-theme .e-con.mh-grid-3,
  .mamitahaya-theme .e-con.mh-grid-3 > .e-con-inner {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

.mamitahaya-theme .e-con.mh-grid-2,
.mamitahaya-theme .e-con.mh-grid-2 > .e-con-inner {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1rem !important;
  width: var(--mh-content) !important;
  max-width: 1180px;
  margin-inline: auto !important;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .mamitahaya-theme .e-con.mh-grid-2,
  .mamitahaya-theme .e-con.mh-grid-2 > .e-con-inner {
    grid-template-columns: 1fr 1fr !important;
  }
}

.mamitahaya-theme .e-con.mh-reasons,
.mamitahaya-theme .e-con.mh-reasons > .e-con-inner {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: clamp(2rem, 5vw, 4rem) !important;
  align-items: start !important;
  width: var(--mh-content) !important;
  max-width: 1180px;
  margin-inline: auto !important;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .mamitahaya-theme .e-con.mh-reasons,
  .mamitahaya-theme .e-con.mh-reasons > .e-con-inner {
    grid-template-columns: 0.9fr 1.3fr !important;
  }
}

.mamitahaya-theme .e-con.mh-cultivo-row,
.mamitahaya-theme .e-con.mh-cultivo-row > .e-con-inner {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: clamp(1.5rem, 4vw, 2.5rem) !important;
  align-items: start !important;
  width: var(--mh-content) !important;
  max-width: 1180px;
  margin-inline: auto !important;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .mamitahaya-theme .e-con.mh-cultivo-row,
  .mamitahaya-theme .e-con.mh-cultivo-row > .e-con-inner {
    grid-template-columns: 0.9fr 1.1fr !important;
  }
}

.mamitahaya-theme .e-con.mh-split > .e-con,
.mamitahaya-theme .e-con.mh-split > .e-con-inner > .e-con,
.mamitahaya-theme .e-con.mh-grid-3 > .e-con,
.mamitahaya-theme .e-con.mh-grid-3 > .e-con-inner > .e-con,
.mamitahaya-theme .e-con.mh-grid-2 > .e-con,
.mamitahaya-theme .e-con.mh-grid-2 > .e-con-inner > .e-con,
.mamitahaya-theme .e-con.mh-reasons > .e-con,
.mamitahaya-theme .e-con.mh-reasons > .e-con-inner > .e-con,
.mamitahaya-theme .e-con.mh-cultivo-row > .e-con,
.mamitahaya-theme .e-con.mh-cultivo-row > .e-con-inner > .e-con {
  width: 100% !important;
  max-width: none !important;
}

/* Cards */
.mamitahaya-theme .e-con.mh-card {
  background: var(--color-surface) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
  height: 100%;
}

.mamitahaya-theme .e-con.mh-card,
.mamitahaya-theme .e-con.mh-card > .e-con-inner {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
  padding: 0 0 1.25rem !important;
}

.mamitahaya-theme .e-con.mh-card .elementor-widget-heading,
.mamitahaya-theme .e-con.mh-card .elementor-widget-text-editor,
.mamitahaya-theme .e-con.mh-card .elementor-widget-button {
  padding-inline: 1.25rem;
}

.mamitahaya-theme .e-con.mh-card .elementor-widget-image {
  padding: 0 !important;
  margin: 0 0 0.75rem !important;
}

.mamitahaya-theme .e-con.mh-card .elementor-widget-image img {
  border-radius: 0;
}

.mamitahaya-theme .e-con.mh-feature {
  background: var(--color-surface) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-md) !important;
}

.mamitahaya-theme .e-con.mh-feature,
.mamitahaya-theme .e-con.mh-feature > .e-con-inner {
  padding: 1.5rem !important;
  box-sizing: border-box;
}

.mamitahaya-theme .e-con.mh-reason-item,
.mamitahaya-theme .e-con.mh-step-item {
  border-bottom: 1px solid var(--color-border) !important;
}

.mamitahaya-theme .e-con.mh-reason-item,
.mamitahaya-theme .e-con.mh-reason-item > .e-con-inner,
.mamitahaya-theme .e-con.mh-step-item,
.mamitahaya-theme .e-con.mh-step-item > .e-con-inner {
  display: grid !important;
  grid-template-columns: 2.75rem 1fr !important;
  gap: 0.75rem !important;
  align-items: start !important;
  padding-block: 1rem !important;
}

.mamitahaya-theme .mh-section-header,
.mamitahaya-theme .mh-section-header > .e-con-inner {
  display: grid !important;
  gap: 0.75rem !important;
}

@media (min-width: 768px) {
  .mamitahaya-theme .mh-section-header--row,
  .mamitahaya-theme .mh-section-header--row > .e-con-inner {
    grid-template-columns: 1fr 1fr !important;
    align-items: end !important;
  }
}

/* Header/footer visibility + full-bleed handled in chrome.css */

/* Header */
.mamitahaya-theme .e-con.mh-site-header {
  background: rgba(247, 243, 236, 0.96) !important;
  border-bottom: 1px solid rgba(221, 213, 200, 0.6);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  padding-block: 0.75rem !important;
  padding-inline: 0 !important;
}

.mamitahaya-theme .e-con.mh-site-header-inner,
.mamitahaya-theme .e-con.mh-site-header-inner > .e-con-inner {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
  width: var(--mh-content) !important;
  max-width: 1180px;
  margin-inline: auto !important;
  box-sizing: border-box;
  min-height: 3.25rem;
}

.mamitahaya-theme .e-con.mh-header-logo,
.mamitahaya-theme .e-con.mh-header-logo > .e-con-inner {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
}

.mamitahaya-theme .e-con.mh-header-nav,
.mamitahaya-theme .e-con.mh-header-nav > .e-con-inner {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
  display: flex !important;
  justify-content: center !important;
}

.mamitahaya-theme .e-con.mh-header-actions,
.mamitahaya-theme .e-con.mh-header-actions > .e-con-inner {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0.65rem !important;
}

.mamitahaya-theme .mh-site-header .elementor-widget-image img,
.mamitahaya-theme .mh-header-logo-img img {
  border-radius: 0;
  max-height: 1.875rem;
  width: auto !important;
  max-width: min(200px, 46vw);
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
}

.mamitahaya-theme .mh-site-header .elementor-button {
  background: transparent !important;
  color: var(--color-text) !important;
  border-color: transparent !important;
  padding: 0.35rem 0.55rem !important;
  text-transform: none !important;
  letter-spacing: 0.02em !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

.mamitahaya-theme .mh-cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.mamitahaya-theme .mh-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.125rem;
  height: 1.125rem;
  padding: 0 0.25rem;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1;
  background: var(--color-brand);
  color: #fff;
  border-radius: 999px;
}

.mamitahaya-theme .mh-header-gtranslate .elementor-shortcode,
.mamitahaya-theme .mh-header-gtranslate {
  line-height: 1;
}

.mamitahaya-theme .mh-header-gtranslate .gt_switcher,
.mamitahaya-theme .mh-header-gtranslate .gtranslate_wrapper,
.mamitahaya-theme .mh-header-gtranslate select {
  font-family: var(--font-body) !important;
  font-size: 0.8125rem !important;
  max-width: 7.5rem;
}

.mamitahaya-theme .mh-site-header .elementor-menu-toggle {
  border: 0 !important;
  background: transparent !important;
  padding: 0.35rem !important;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mamitahaya-theme .mh-site-header .elementor-nav-menu--main .elementor-item {
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  padding: 0.35rem 0.55rem !important;
}

.mamitahaya-theme .mh-site-header .elementor-nav-menu--dropdown {
  background: var(--color-background) !important;
  border: 1px solid var(--color-border) !important;
  box-shadow: 0 12px 32px rgba(26, 24, 22, 0.12);
}

.mamitahaya-theme .mh-site-header .elementor-nav-menu--dropdown .elementor-item {
  padding: 0.9rem 1.1rem !important;
  font-size: 1.125rem !important;
  font-weight: 700 !important;
}

@media (max-width: 1024px) {
  .mamitahaya-theme .e-con.mh-header-logo { order: 1; }
  .mamitahaya-theme .e-con.mh-header-actions { order: 2; margin-left: auto; }
  .mamitahaya-theme .e-con.mh-header-nav {
    order: 3;
    flex: 0 0 auto !important;
  }

  .mamitahaya-theme .mh-header-gtranslate .gt_switcher,
  .mamitahaya-theme .mh-header-gtranslate .gtranslate_wrapper,
  .mamitahaya-theme .mh-header-gtranslate select {
    max-width: 5.75rem;
    font-size: 0.75rem !important;
  }

  .mamitahaya-theme .mh-cart-link {
    font-size: 0.8125rem;
  }
}

/* Footer */
.mamitahaya-theme .e-con.mh-site-footer {
  background-color: #1a1816 !important;
  background-image: none !important;
  padding-top: 3rem !important;
  padding-bottom: 2rem !important;
}

.mamitahaya-theme .mh-site-footer .elementor-heading-title {
  color: #fff !important;
}

.mamitahaya-theme .mh-footer-wordmark .elementor-heading-title {
  color: #e45a8c !important;
  letter-spacing: 0.2em !important;
}

.mamitahaya-theme .mh-site-footer .elementor-widget-text-editor,
.mamitahaya-theme .mh-site-footer .elementor-widget-text-editor p,
.mamitahaya-theme .mh-site-footer .elementor-widget-text-editor a,
.mamitahaya-theme .mh-site-footer a {
  color: rgba(255, 252, 248, 0.7) !important;
}

.mamitahaya-theme .mh-site-footer a:hover {
  color: #fff !important;
}

.mamitahaya-theme .mh-site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mamitahaya-theme .mh-site-footer li {
  margin: 0 0 0.5rem;
}

.mamitahaya-theme .e-con.mh-footer-grid,
.mamitahaya-theme .e-con.mh-footer-grid > .e-con-inner {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 2rem !important;
  width: var(--mh-content) !important;
  max-width: 1180px;
  margin-inline: auto !important;
  box-sizing: border-box;
}

.mamitahaya-theme .e-con.mh-footer-nav,
.mamitahaya-theme .e-con.mh-footer-nav > .e-con-inner {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1.5rem !important;
  width: 100% !important;
}

.mamitahaya-theme .e-con.mh-footer-bottom,
.mamitahaya-theme .e-con.mh-footer-bottom > .e-con-inner {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1.25rem !important;
  align-items: center !important;
  width: var(--mh-content) !important;
  max-width: 1180px;
  margin: 2rem auto 0 !important;
  padding-top: 1.25rem !important;
  border-top: 1px solid rgba(255, 252, 248, 0.12);
  box-sizing: border-box;
}

.mamitahaya-theme .mh-footer-funding-wrap img,
.mamitahaya-theme .mh-footer-funding img {
  width: 100% !important;
  max-width: 520px;
  height: auto !important;
  border-radius: 0 !important;
  max-height: none !important;
  object-fit: contain;
}

@media (min-width: 768px) {
  .mamitahaya-theme .e-con.mh-footer-grid,
  .mamitahaya-theme .e-con.mh-footer-grid > .e-con-inner {
    grid-template-columns: 1.1fr 2fr !important;
  }

  .mamitahaya-theme .e-con.mh-footer-nav,
  .mamitahaya-theme .e-con.mh-footer-nav > .e-con-inner {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .mamitahaya-theme .e-con.mh-footer-bottom,
  .mamitahaya-theme .e-con.mh-footer-bottom > .e-con-inner {
    grid-template-columns: 1fr auto !important;
  }

  .mamitahaya-theme .mh-footer-funding-wrap {
    justify-self: end;
  }
}

.mamitahaya-theme .e-con.mh-marquee {
  border-block: 1px solid var(--color-border);
  background: var(--color-surface) !important;
  padding-block: 0.875rem !important;
}

.mamitahaya-theme .mh-marquee .elementor-widget-text-editor p {
  text-align: center;
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0;
  max-width: none;
}
