/* =====================================================================
   MUMTOBE - HOME.CSS
   Portada personalizada (front-page.php). Encolado SOLO en is_front_page().
   No modifica el CSS del tema padre Zeen ni de WooCommerce.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. FONT FACE
   ------------------------------------------------------------------- */
/*
 * Patrick Hand SC alojada localmente desde assets/fonts/. Unico archivo
 * disponible por ahora: PatrickHandSC-Regular.ttf (no hay WOFF2/WOFF
 * todavia). Cuando se aporte una version .woff2, anadirla como primera
 * fuente en el "src" para reducir peso. NO cargar desde Google Fonts.
 */
@font-face {
  font-family: "Patrick Hand SC";
  src: url("../fonts/PatrickHandSC-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* ---------------------------------------------------------------------
   2. VARIABLES
   ------------------------------------------------------------------- */
:root {
  /* Color */
  --mtb-ink: #151515;
  --mtb-muted: #777777;
  --mtb-paper: #ffffff;
  --mtb-soft: #f8f7f5;

  --mtb-mint: #87cfbf;
  --mtb-pink: #e7adb9;
  --mtb-yellow: #f5dd67;

  /* Tipografia */
  --mtb-font-display: "Patrick Hand SC", handwriting;
  --mtb-font-body:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;

  /* Layout */
  --mtb-container: 1280px;
  --mtb-gap: 24px;
  --mtb-radius: 24px;
  --mtb-radius-sm: 12px;

  /* Sombra suave, uso puntual */
  --mtb-shadow: 0 12px 32px rgba(21, 21, 21, 0.08);
}

/* ---------------------------------------------------------------------
   3. RESET
   ------------------------------------------------------------------- */
/* Reset minimo del body de la home. Nada global de elementos: la interfaz
   sigue aislada bajo .mtb-site para no afectar a plugins en wp_footer(). */
body.mtb-home {
  margin: 0;
  padding: 0;
}

.mtb-site,
.mtb-site *,
.mtb-site *::before,
.mtb-site *::after {
  box-sizing: border-box;
}

.mtb-site {
  margin: 0;
  padding: 0;
  color: var(--mtb-ink);
  background: var(--mtb-paper);
  font-family: var(--mtb-font-body);
  line-height: 1.5;
  overflow-x: hidden;
}

.mtb-site img {
  max-width: 100%;
  height: auto;
  display: block;
}

.mtb-site ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mtb-site a {
  color: inherit;
  text-decoration: none;
}

.mtb-site button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.mtb-container {
  width: 100%;
  max-width: var(--mtb-container);
  margin-inline: auto;
  padding-inline: var(--mtb-gap);
}

/* ---------------------------------------------------------------------
   4. ACCESIBILIDAD
   ------------------------------------------------------------------- */
.mtb-site .screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mtb-skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  z-index: 1000;
  padding: 12px 20px;
  background: var(--mtb-ink);
  color: var(--mtb-paper);
  border-radius: 0 0 var(--mtb-radius-sm) 0;
  transition: top 0.15s ease;
}

.mtb-skip-link:focus {
  top: 0;
}

.mtb-site a:focus-visible,
.mtb-site button:focus-visible,
.mtb-site input:focus-visible {
  outline: 3px solid var(--mtb-ink);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .mtb-site * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------------------------------------------------------------------
   5. TIPOGRAFIA
   ------------------------------------------------------------------- */
.mtb-site h1,
.mtb-site h2,
.mtb-site h3,
.mtb-display {
  font-family: var(--mtb-font-display);
  font-weight: 400; /* Nunca 700/800/900 sobre Patrick Hand SC */
  line-height: 1.15;
  margin: 0 0 0.4em;
}

.mtb-site h1 {
  font-size: clamp(2.2rem, 5vw + 1rem, 4.2rem);
}

.mtb-site h2 {
  font-size: clamp(1.8rem, 3vw + 1rem, 2.8rem);
}

.mtb-site h3 {
  font-size: clamp(1.3rem, 1.5vw + 1rem, 1.8rem);
}

.mtb-site p {
  margin: 0 0 1em;
  color: var(--mtb-ink);
}

.mtb-kicker {
  display: inline-block;
  font-family: var(--mtb-font-display);
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--mtb-ink);
  margin-bottom: 0.5em;
}

.mtb-muted {
  color: var(--mtb-muted);
}

.mtb-section-head {
  max-width: 640px;
  margin-bottom: clamp(24px, 4vw, 48px);
}

/* ---------------------------------------------------------------------
   6. BOTONES
   ------------------------------------------------------------------- */
.mtb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--mtb-font-body);
  font-weight: 600;
  font-size: 0.95rem;
  min-height: 44px;
  transition:
    transform 0.15s ease,
    background-color 0.15s ease;
}

.mtb-btn:hover {
  transform: translateY(-2px);
}

/* Especificidad explicita: .mtb-site a { color: inherit } (7) tiene mas
   peso que .mtb-btn--primary sola y dejaba el texto invisible sobre el
   fondo oscuro. Se refuerza con .mtb-site + estado para ganar la cascada. */
.mtb-site .mtb-btn--primary,
.mtb-site .mtb-btn--primary:visited {
  background: var(--mtb-ink);
  color: var(--mtb-paper);
}

.mtb-site .mtb-btn--primary:hover,
.mtb-site .mtb-btn--primary:focus-visible {
  background: #000;
  color: var(--mtb-paper);
}

.mtb-btn--ghost {
  background: transparent;
  color: var(--mtb-ink);
  border: 2px solid var(--mtb-ink);
}

.mtb-btn--pink {
  background: var(--mtb-pink);
  color: var(--mtb-ink);
}

.mtb-btn--mint {
  background: var(--mtb-mint);
  color: var(--mtb-ink);
}

.mtb-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ---------------------------------------------------------------------
   7. HEADER
   ------------------------------------------------------------------- */
.mtb-header {
  position: relative;
  background: var(--mtb-paper);
  border-bottom: 1px solid rgba(21, 21, 21, 0.08);
}

.mtb-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
}

.mtb-logo {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.mtb-logo__img {
  height: 40px;
  width: auto;
  display: block;
}

.mtb-nav {
  display: none;
}

.mtb-nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
}

.mtb-nav__list a {
  font-family: var(--mtb-font-display);
  font-weight: 400;
  font-size: 0.95rem;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease;
}

.mtb-nav__list a:hover {
  border-color: var(--mtb-mint);
}

.mtb-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.mtb-search {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.mtb-search input[type="search"] {
  width: clamp(84px, 26vw, 160px);
  min-width: 0;
  height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(21, 21, 21, 0.15);
  border-radius: 999px;
  background: var(--mtb-soft);
  color: var(--mtb-ink);
  font-family: var(--mtb-font-body);
  font-size: 0.85rem;
  appearance: none;
}

.mtb-search input[type="search"]::placeholder {
  color: var(--mtb-muted);
}

.mtb-search .mtb-icon-btn {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.mtb-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.mtb-icon-btn:hover {
  background: var(--mtb-soft);
}

.mtb-icon-btn svg {
  width: 22px;
  height: 22px;
}

.mtb-cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--mtb-pink);
  color: var(--mtb-ink);
  font-size: 0.65rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.mtb-menu-toggle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mtb-menu-toggle svg {
  width: 26px;
  height: 26px;
}

/* Menu movil: boton accesible con aria-expanded + atributo "hidden" nativo.
   Sin animacion: evita que los enlaces reciban foco estando cerrado. */
.mtb-nav--mobile {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--mtb-paper);
  border-bottom: 1px solid rgba(21, 21, 21, 0.08);
  box-shadow: var(--mtb-shadow);
}

.mtb-nav--mobile[hidden] {
  display: none;
}

.mtb-nav--mobile .mtb-nav__list {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 8px var(--mtb-gap) 20px;
}

.mtb-nav--mobile .mtb-nav__list a {
  display: block;
  width: 100%;
  padding: 14px 0;
  border-bottom: 1px solid rgba(21, 21, 21, 0.06);
}

/* ---------------------------------------------------------------------
   8. HERO
   ------------------------------------------------------------------- */
.mtb-hero {
  position: relative;
  padding-block: clamp(32px, 6vw, 72px);
  overflow: hidden;
}

.mtb-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.mtb-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.mtb-hero__text {
  max-width: 480px;
  margin-inline: auto;
}

.mtb-hero__media {
  position: relative;
  z-index: 1;
  background: var(--mtb-soft);
  border-radius: var(--mtb-radius);
}

.mtb-hero__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--mtb-radius);
}

.mtb-hero__blob {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  filter: blur(2px);
}

.mtb-hero__blob--mint {
  width: 160px;
  height: 160px;
  background: var(--mtb-mint);
  top: -40px;
  right: -40px;
  opacity: 0.6;
}

.mtb-hero__blob--yellow {
  width: 120px;
  height: 120px;
  background: var(--mtb-yellow);
  bottom: -20px;
  left: -20px;
  opacity: 0.7;
}

.mtb-hero__cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 1.5em;
}

/* ---------------------------------------------------------------------
   9. BENEFICIOS
   ------------------------------------------------------------------- */
.mtb-benefits {
  padding-block: clamp(24px, 4vw, 48px);
  background: var(--mtb-soft);
}

.mtb-benefits__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.mtb-benefit {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.mtb-benefit svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--mtb-ink);
}

.mtb-benefit strong {
  display: block;
  font-size: 0.95rem;
}

.mtb-benefit span {
  color: var(--mtb-muted);
  font-size: 0.85rem;
}

/* ---------------------------------------------------------------------
   10. CATEGORIAS
   ------------------------------------------------------------------- */
.mtb-categories {
  padding-block: clamp(40px, 6vw, 88px);
}

.mtb-categories__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.mtb-category-card {
  position: relative;
  display: block;
  border-radius: var(--mtb-radius);
  overflow: hidden;
  background: var(--mtb-soft);
  aspect-ratio: 3 / 4;
}

.mtb-category-card:nth-child(2) {
  background: var(--mtb-pink);
}

.mtb-category-card:nth-child(3) {
  background: var(--mtb-mint);
}

.mtb-category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mtb-category-card__label {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 2;
  font-family: var(--mtb-font-display);
  font-size: 1.6rem;
  color: var(--mtb-ink);
  background: rgba(255, 255, 255, 0.85);
  padding: 6px 18px;
  border-radius: 999px;
}

/* ---------------------------------------------------------------------
   11. PRODUCTOS
   ------------------------------------------------------------------- */
.mtb-products {
  padding-block: clamp(40px, 6vw, 88px);
  background: var(--mtb-soft);
}

.mtb-products__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.mtb-product-card {
  background: var(--mtb-paper);
  border-radius: var(--mtb-radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mtb-product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--mtb-soft);
}

.mtb-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mtb-product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--mtb-yellow);
  color: var(--mtb-ink);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.mtb-product-card__body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.mtb-product-card__title {
  font-family: var(--mtb-font-display);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.25;
}

.mtb-product-card__price {
  font-size: 0.9rem;
  color: var(--mtb-muted);
}

.mtb-product-card__price ins {
  text-decoration: none;
  color: var(--mtb-ink);
  font-weight: 700;
  margin-left: 6px;
}

.mtb-product-card__price del {
  color: var(--mtb-muted);
}

.mtb-product-card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
}

.mtb-product-card__cta svg {
  width: 16px;
  height: 16px;
}

.mtb-products__footer {
  margin-top: clamp(24px, 4vw, 40px);
  text-align: center;
}

/* ---------------------------------------------------------------------
   12. EDITORIAL
   ------------------------------------------------------------------- */
.mtb-editorial {
  padding-block: clamp(40px, 6vw, 88px);
}

.mtb-editorial__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

.mtb-editorial__media {
  background: var(--mtb-soft);
  border-radius: var(--mtb-radius);
}

.mtb-editorial__media img {
  border-radius: var(--mtb-radius);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.mtb-editorial__content {
  text-align: center;
}

/* ---------------------------------------------------------------------
   13. NEWBORN (CESTA A TU MANERA)
   ------------------------------------------------------------------- */
.mtb-newborn {
  position: relative;
  margin-block: clamp(40px, 6vw, 88px);
  padding: clamp(32px, 6vw, 64px) var(--mtb-gap);
  border-radius: var(--mtb-radius);
  background: linear-gradient(
    135deg,
    var(--mtb-pink) 0%,
    var(--mtb-yellow) 55%,
    var(--mtb-mint) 100%
  );
  text-align: center;
  overflow: hidden;
}

.mtb-newborn__inner {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin-inline: auto;
}

.mtb-newborn__shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  z-index: 1;
}

.mtb-newborn__shape--1 {
  width: 140px;
  height: 140px;
  top: -50px;
  left: -30px;
}

.mtb-newborn__shape--2 {
  width: 100px;
  height: 100px;
  bottom: -30px;
  right: -20px;
}

/* ---------------------------------------------------------------------
   14. BLOG
   ------------------------------------------------------------------- */
.mtb-blog {
  padding-block: clamp(40px, 6vw, 88px);
}

.mtb-blog__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.mtb-blog-card__media {
  aspect-ratio: 16 / 10;
  border-radius: var(--mtb-radius-sm);
  overflow: hidden;
  background: var(--mtb-soft);
  margin-bottom: 12px;
}

.mtb-blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mtb-blog-card__date {
  font-size: 0.8rem;
  color: var(--mtb-muted);
  margin-bottom: 4px;
  display: block;
}

.mtb-blog-card__title {
  font-family: var(--mtb-font-display);
  font-weight: 400;
  font-size: 1.3rem;
  margin: 0 0 8px;
}

/* ---------------------------------------------------------------------
   15. FOOTER
   ------------------------------------------------------------------- */
.mtb-footer {
  background: var(--mtb-paper);
  color: var(--mtb-ink);
  padding-block: clamp(32px, 5vw, 56px);
  border-top: 1px solid rgba(21, 21, 21, 0.08);
}

.mtb-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.mtb-footer__logo-img {
  height: 36px;
  width: auto;
  display: block;
  margin-bottom: 8px;
}

.mtb-footer a {
  color: var(--mtb-muted);
}

.mtb-footer a:hover {
  color: var(--mtb-ink);
}

.mtb-footer__col h3 {
  font-family: var(--mtb-font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mtb-ink);
  margin-bottom: 12px;
}

.mtb-footer__col ul li {
  margin-bottom: 8px;
}

.mtb-footer__bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(21, 21, 21, 0.08);
  font-size: 0.8rem;
  color: var(--mtb-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

/* ---------------------------------------------------------------------
   16. RENDIMIENTO
   ------------------------------------------------------------------- */
/* Los placeholders de fondo se aplican por componente (hero, categorias,
   productos, blog, editorial), no de forma global sobre <img>. */

/* Difiere el coste de render de secciones fuera de pantalla. */
.mtb-products,
.mtb-editorial,
.mtb-newborn,
.mtb-blog {
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}

/* ---------------------------------------------------------------------
   17. TABLET (>= 768px)
   ------------------------------------------------------------------- */
@media (min-width: 768px) {
  .mtb-nav {
    display: block;
  }

  .mtb-nav--mobile,
  .mtb-menu-toggle {
    display: none;
  }

  .mtb-hero__grid {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }

  .mtb-hero__content {
    text-align: left;
  }

  .mtb-hero__text {
    margin-inline: 0;
  }

  .mtb-hero__cta {
    justify-content: flex-start;
  }

  /* hero-mumtobe-desktop.webp es 1672x941 (16:9 real); el 4/5 base es solo para hero-mumtobe-mobile.webp. */
  .mtb-hero__media img {
    aspect-ratio: 16 / 9;
  }

  .mtb-benefits__list {
    grid-template-columns: repeat(3, 1fr);
  }

  .mtb-categories__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .mtb-products__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .mtb-editorial__grid {
    grid-template-columns: 1.1fr 0.9fr;
    text-align: left;
  }

  .mtb-editorial__content {
    text-align: left;
  }

  .mtb-blog__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .mtb-footer__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------------------------------------------------------------------
   18. MOBILE (ajustes finos < 768px)
   ------------------------------------------------------------------- */
@media (max-width: 767px) {
  .mtb-categories__grid {
    grid-template-columns: 1fr 1fr;
  }

  .mtb-categories__grid .mtb-category-card:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }

  /* Categorias: mismo layout aprobado, solo un poco mas compacto */
  .mtb-categories__grid {
    gap: 16px;
  }

  /* Hero: menos aire arriba, kicker mas pegado al h1, botones equilibrados */
  .mtb-hero {
    padding-block: 20px 40px;
  }

  .mtb-hero__text .mtb-kicker {
    margin-bottom: 0.25em;
  }

  /* Beneficios: menos separacion vertical entre las 3 filas */
  .mtb-benefits__list {
    gap: 14px;
  }

  /* Productos: texto mas compacto para que quepan mas lineas sin desbordar */
  .mtb-product-card__body {
    padding: 10px 12px;
    gap: 3px;
  }

  .mtb-product-card__title {
    font-size: 1rem;
    line-height: 1.25;
  }

  .mtb-product-card__price {
    font-size: 0.9rem;
    line-height: 1.2;
  }

  /* Sufijo real de WooCommerce (p.ej. "IVA incluido"): visible pero discreto. */
  .mtb-product-card__price .woocommerce-price-suffix {
    display: block;
    font-size: 0.75rem;
    color: var(--mtb-muted);
  }

  .mtb-product-card__cta {
    font-size: 0.95rem;
  }

  /* Editorial: titulo con menos lineas, ritmo mas compacto */
  .mtb-editorial__content h2 {
    font-size: 1.6rem;
    margin-bottom: 0.3em;
  }

  .mtb-editorial__content p {
    margin-bottom: 0.75em;
  }

  /* Footer: menos protagonismo vertical, logo mas pequeno, columnas mas juntas */
  .mtb-footer {
    padding-block: clamp(24px, 4vw, 40px);
  }

  .mtb-footer__grid {
    gap: 18px;
  }

  .mtb-footer__logo-img {
    height: 28px;
    max-width: 250px;
  }

  .mtb-footer__col h3 {
    margin-bottom: 8px;
  }

  .mtb-footer__col ul li {
    margin-bottom: 6px;
  }

  /* Menu movil: panel completo debajo del header, centrado, por encima del hero. */
  .mtb-header {
    z-index: 20;
  }

  .mtb-nav--mobile {
    z-index: 50;
    text-align: center;
  }

  .mtb-nav--mobile .mtb-nav__list {
    align-items: center;
    padding: 12px var(--mtb-gap) 20px;
  }

  .mtb-nav--mobile .mtb-nav__list a {
    text-align: center;
    font-size: 1.2rem;
  }

  .mtb-nav--mobile .mtb-nav__list li:last-child a {
    border-bottom: 0;
  }

  /* Footer: todo centrado, columnas siguen apiladas (1 columna). */
  .mtb-footer__grid {
    text-align: center;
  }

  .mtb-footer__logo-img {
    margin-left: auto;
    margin-right: auto;
  }

  .mtb-footer__bottom {
    justify-content: center;
    text-align: center;
  }
}

@media (min-width: 1024px) {
  .mtb-products__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 480px) {
  .mtb-icon-btn {
    width: 40px;
    height: 40px;
  }

  .mtb-search input[type="search"] {
    width: clamp(64px, 30vw, 120px);
  }

  .mtb-instagram-link {
    display: none;
  }
}

/* Header compacto para el rango real de iPhones (~375-430px de ancho). */
@media (max-width: 430px) {
  .mtb-header__bar {
    gap: 10px;
    padding-block: 12px;
  }

  .mtb-logo__img {
    height: 36px;
  }

  .mtb-header__actions {
    gap: 6px;
  }

  .mtb-search input[type="search"] {
    width: 115px;
  }

  .mtb-icon-btn {
    width: 38px;
    height: 38px;
  }

  .mtb-menu-toggle {
    width: 38px;
    height: 38px;
  }

  .mtb-menu-toggle svg {
    width: 24px;
    height: 24px;
  }

  /* Botones del hero: dos columnas equilibradas, sin overflow. */
  .mtb-hero__cta {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .mtb-hero__cta .mtb-btn {
    flex: 1 1 0;
    justify-content: center;
    padding-inline: 16px;
  }
}

@media (max-width: 390px) {
  .mtb-search input[type="search"] {
    width: 105px;
  }
}

@media (max-width: 389px) {
  .mtb-logo__img {
    height: 32px;
  }

  .mtb-btn {
    padding: 12px 20px;
    font-size: 0.85rem;
  }
}

/* ---------------------------------------------------------------------
   19. DESKTOP GRANDE (>= 1200px)
   Pulido visual editorial/premium. Solo desktop: no toca <= 1199px.
   ------------------------------------------------------------------- */
@media (min-width: 1200px) {
  :root {
    --mtb-container: 1380px;
    --mtb-gap: 32px;
  }

  /* Header: mas presencia sin agrandarlo en exceso */
  .mtb-header__bar {
    gap: 32px;
    padding-block: 20px;
  }

  .mtb-logo__img {
    height: 46px;
  }

  .mtb-nav__list {
    gap: 36px;
  }

  .mtb-nav__list a {
    font-size: 1.05rem;
  }

  .mtb-search input[type="search"] {
    width: 220px;
  }

  /* Hero: mas escala, composicion aproximada 45/55 texto/imagen */
  .mtb-hero {
    padding-block: 96px;
  }

  .mtb-hero__grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
  }

  .mtb-hero__text {
    max-width: 560px;
  }

  .mtb-hero h1 {
    font-size: clamp(3.8rem, 3vw + 2.2rem, 4.8rem);
  }

  /* Beneficios: mas presencia horizontal, misma altura */
  .mtb-benefits__list {
    gap: 48px;
  }

  .mtb-benefit svg {
    width: 36px;
    height: 36px;
  }

  .mtb-benefit strong {
    font-size: 1rem;
  }

  .mtb-benefit span {
    font-size: 0.9rem;
  }

  /* Categorias: tarjetas con mas aire, misma logica de imagen */
  .mtb-categories {
    padding-block: 110px;
  }

  .mtb-categories__grid {
    gap: 28px;
  }

  .mtb-category-card__label {
    font-size: 1.75rem;
    padding: 8px 22px;
  }

  /* Productos: mas presencia, se mantienen 4 columnas / 8 productos */
  .mtb-products {
    padding-block: 110px;
  }

  .mtb-products__grid {
    gap: 24px;
  }

  .mtb-product-card__body {
    padding: 16px;
  }

  .mtb-product-card__title {
    font-size: 1.15rem;
  }

  .mtb-product-card__price {
    font-size: 1rem;
  }

  .mtb-product-card__cta {
    font-size: 0.85rem;
  }

  /* Editorial: bloque de transicion con mas presencia */
  .mtb-editorial {
    padding-block: 110px;
  }

  .mtb-editorial__grid {
    grid-template-columns: 1.25fr 0.95fr;
    gap: 64px;
  }

  .mtb-editorial__content h2 {
    font-size: clamp(2.4rem, 2vw + 1.6rem, 3.2rem);
  }

  /* Cesta Newborn: mismo diseno, mas altura/padding */
  .mtb-newborn {
    margin-block: 110px;
    padding-block: 72px;
  }

  /* Blog: mismo ritmo editorial que el resto de secciones grandes */
  .mtb-blog {
    padding-block: 110px;
  }

  /* Footer: mas presencia de logo, columnas y ritmo vertical */
  .mtb-footer {
    padding-block: 72px;
  }

  .mtb-footer__grid {
    gap: 40px;
  }

  .mtb-footer__logo-img {
    height: 44px;
  }

  .mtb-footer__col h3 {
    font-size: 0.95rem;
  }

  .mtb-footer__col ul li {
    margin-bottom: 12px;
  }
}

/* ---------------------------------------------------------------------
   20. DESKTOP XL (>= 1600px)
   Afinado adicional para 1920px y superiores.
   ------------------------------------------------------------------- */
@media (min-width: 1600px) {
  :root {
    --mtb-container: 1400px;
    --mtb-gap: 40px;
  }

  .mtb-hero {
    padding-block: 112px;
  }

  .mtb-newborn {
    padding-block: 88px;
  }

  .mtb-footer {
    padding-block: 80px;
  }
}
