/* Umarti Origen: estilos compartidos (marca, encabezado, botones, pie) */
:root {
  --bg: #faf6ef;
  --surface: #ffffff;
  --ink: #1f1a14;
  --muted: #6b6155;
  --line: #e6ddcf;
  --terra: #b4532a;
  --terra-dark: #8f3f1d;
  --olive: #4f6b3a;
  --sky: #2f6f8f;
  --sand: #efe4d2;
  --radius: 18px;
  --max: 1120px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.15; font-weight: 600; }

/* ===== Encabezado ===== */
.wrap-wide { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.logo { display: inline-flex; align-items: center; gap: 9px; font-family: "Fraunces", serif; font-weight: 700; text-decoration: none; letter-spacing: -0.015em; white-space: nowrap; color: var(--ink); flex: none; }
.logo-ico { height: 46px; width: auto; display: block; }
.logo-txt { display: flex; flex-direction: column; line-height: 0.95; font-size: 1.32rem; }
.logo-txt b { font-weight: 700; }
.logo-txt b + b { color: var(--terra); }
.logo-foot .logo-ico { height: 58px; }
.logo-foot .logo-txt { font-size: 1.6rem; }

/* Fila superior: logo, buscador, cuenta y carrito */
.topbar { display: flex; align-items: center; gap: 24px; height: 68px; }
.search {
  flex: 1; max-width: 560px; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; height: 44px;
}
.search:focus-within { border-color: var(--terra); box-shadow: 0 0 0 3px rgba(180, 83, 42, 0.12); }
.search svg { flex: none; color: var(--muted); }
.search input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 0.95rem; color: var(--ink); outline: none; min-width: 0; }
.search input::placeholder { color: #9a8f82; }
.user-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-link {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 0.92rem; font-weight: 500;
  padding: 8px 12px; border-radius: 999px; position: relative;
}
.icon-link:hover { background: var(--sand); }
.badge {
  position: absolute; top: 0; left: 24px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--terra); color: #fff; font-size: 0.7rem; font-weight: 600; line-height: 18px; text-align: center;
}
.menu-toggle { display: none; background: none; border: 0; padding: 8px; margin-left: -8px; cursor: pointer; color: var(--ink); }

/* Fila de módulos: Tienda, Mercados Globales, Herramientas */
.modules { display: flex; gap: 12px; padding-bottom: 12px; position: relative; }
.module { border-radius: 14px; padding: 8px 10px 8px; }
.module-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0 6px 6px; margin-bottom: 6px; border-bottom: 2px solid currentColor;
}
.m-shop  { background: #f8ebe2; color: var(--terra-dark); flex: 1 1 auto; }
.m-world { background: #e4eef4; color: var(--sky); flex: 1 1 auto; }
.m-tools { background: #e8eedf; color: var(--olive); flex: 1 1 auto; }
.module-items { display: flex; flex-wrap: nowrap; gap: 2px; list-style: none; }
.nav-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px;
  border: 0; border-radius: 10px; background: transparent; cursor: pointer;
  font: inherit; font-size: 0.92rem; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.nav-btn:hover, .has-menu.open > .nav-btn { background: rgba(255, 255, 255, 0.75); }
.nav-btn svg { transition: transform .2s; }
.has-menu.open > .nav-btn svg { transform: rotate(180deg); }
.nav-btn.publish {
  background: #e3a33b; color: var(--ink); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.06em; text-transform: uppercase; margin-left: auto;
}
.nav-btn.publish:hover, .has-menu.open > .nav-btn.publish { background: #d18f22; }
.m-shop .module-items { align-items: center; }

/* Desplegables */
.has-menu { position: relative; }
.has-menu.mega { position: static; }
.dropdown {
  display: none; position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; min-width: 280px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 40px rgba(31, 26, 20, 0.12); padding: 10px; color: var(--ink);
}
.has-menu.open > .dropdown { display: block; }
.has-menu:last-child > .dropdown { left: auto; right: 0; }
.dropdown a.item { display: block; text-decoration: none; padding: 10px 12px; border-radius: 10px; }
.dropdown a.item:hover { background: var(--bg); }
.dropdown a.item strong { display: block; font-size: 0.95rem; font-weight: 600; }
.dropdown a.item span { display: block; font-size: 0.85rem; color: var(--muted); }

.mega-panel { left: 20px; right: 20px; top: 100%; padding: 28px 28px 20px; }
.mega-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px 28px; }
.mega-grid .cat { display: block; font-weight: 600; text-decoration: none; color: var(--terra-dark); margin-bottom: 8px; font-size: 0.95rem; }
.mega-grid ul { list-style: none; display: grid; gap: 4px; }
.mega-grid ul a { text-decoration: none; color: var(--muted); font-size: 0.9rem; }
.mega-grid a:hover { color: var(--ink); text-decoration: underline; }
.mega-foot { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.9rem; }
.mega-foot a { font-weight: 600; color: var(--terra); text-decoration: none; }
.mega-foot span { color: var(--muted); }

.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--terra); color: #fff; }
.btn-primary:hover { background: var(--terra-dark); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

/* Etiqueta pequeña sobre títulos */
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--terra); margin-bottom: 18px;
}

/* Pie */
footer { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 0.92rem; color: var(--muted); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.foot .logo { color: var(--ink); }
.eco { display: flex; gap: 20px; flex-wrap: wrap; list-style: none; }
.eco li strong { color: var(--ink); font-weight: 600; }

/* Encabezado en tablet y celular */
@media (max-width: 1180px) {
  .topbar { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; gap: 10px 12px; }
  .menu-toggle { display: inline-flex; }
  .search { order: 4; flex-basis: 100%; max-width: none; }
  .icon-link span:not(.badge) { display: none; }
  .modules {
    display: none; flex-direction: column; gap: 12px; padding-top: 4px; padding-bottom: 16px;
    max-height: calc(100vh - 130px); overflow-y: auto;
  }
  .site-header.nav-open .modules { display: flex; }
  .module { padding: 12px; }
  .module-items { flex-direction: column; align-items: stretch !important; gap: 2px; }
  .m-shop .module-items > li:last-child { margin-left: 0; margin-top: 6px; }
  .nav-btn { width: 100%; justify-content: space-between; height: 44px; }
  .nav-btn.publish { justify-content: center; }
  .has-menu, .has-menu.mega { position: static; }
  .dropdown, .mega-panel {
    position: static; box-shadow: none; border: 0; margin: 4px 0 8px; padding: 8px; min-width: 0;
  }
  .mega-panel { padding: 16px; }
  .mega-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
}
@media (max-width: 520px) {
  .mega-grid { grid-template-columns: 1fr; }
}

/* Pie: información legal y consumidor */
.foot-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.86rem; }
.foot-legal nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-legal nav a { color: var(--muted); }
.foot-consumo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.btn-arrep { display: inline-block; background: var(--ink); color: #fff !important; text-decoration: none; font-weight: 700; font-size: 0.9rem; padding: 10px 18px; border-radius: 999px; }
.btn-arrep:hover { background: var(--terra-dark); }
.def-cons { color: var(--muted); max-width: 300px; line-height: 1.35; }

/* ---------- Franja de presentación (Blog, Recursos) ---------- */
.pres-banner { position: relative; overflow: hidden; border-radius: 26px; margin: 18px 0 26px; min-height: 240px; display: flex; align-items: center; background: var(--pb-bg, #f3ebdf); }
.pres-banner > img { position: absolute; top: 0; right: 0; width: 66%; height: 100%; object-fit: cover; object-position: var(--pb-pos, center);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.5) 20%, #000 48%); mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.5) 20%, #000 48%); }
.pres-banner .pb-txt { position: relative; z-index: 1; padding: 32px 40px; max-width: 520px; }
.pres-banner .pb-txt h1 { font-size: clamp(2.3rem, 4.8vw, 3.4rem); letter-spacing: -0.02em; line-height: 1.05; margin-top: 6px; }
.pres-banner .pb-txt p { color: #4a4036; font-size: 1.02rem; margin-top: 10px; }
@media (max-width: 760px) {
  .pres-banner { flex-direction: column; align-items: stretch; min-height: 0; border-radius: 20px; }
  .pres-banner > img { position: relative; width: 100%; height: 160px; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
  .pres-banner .pb-txt { padding: 0 22px 22px; margin-top: -20px; }
}

/* ---------- Ecosistema Umarti (pie) ---------- */
.eco-band { display: flex; align-items: center; gap: 18px; background: #0d1f30; color: #fff; border-radius: 22px; padding: 14px 18px; flex: 1; min-width: 0; }
.eco-tit { font-size: 0.72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8fd9d6; line-height: 1.4; flex: none; }
.eco-tit b { color: #fff; font-size: 0.95rem; letter-spacing: .06em; }
.eco-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; flex: 1; }
.eco-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; color: #fff; text-decoration: none; transition: background .2s; }
a.eco-item:hover { background: rgba(255,255,255,.08); }
.eco-av { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid #1fb5b0; }
.eco-av-ico { display: grid; place-items: center; background: #faf6ef; border-color: #e3a33b; }
.eco-av-ico img { width: 34px; height: auto; }
.eco-txt { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.eco-name b { display: block; font-size: 0.92rem; }
.eco-logo { height: 30px; width: auto; display: block; }
.eco-txt small { color: #a9bccb; font-size: 0.76rem; margin-top: 3px; }
.eco-txt em { font-style: normal; align-self: flex-start; font-size: 0.68rem; font-weight: 700; color: #0d1f30; background: #e3a33b; padding: 2px 8px; border-radius: 999px; margin-top: 5px; }
@media (max-width: 1000px) { .eco-band { flex-direction: column; align-items: flex-start; } .eco-items { grid-template-columns: repeat(2, 1fr); width: 100%; } .eco-tit br { display: none; } }
@media (max-width: 520px) { .eco-items { grid-template-columns: 1fr; } }
.foot-top { align-items: center; flex-wrap: nowrap; gap: 32px; }
.foot-marca { flex: none; }
.foot-marca p { margin-top: 8px; color: var(--muted); font-weight: 600; font-size: 0.92rem; }
.foot-copy { color: var(--muted); }
.foot-copy a { color: var(--muted); }
.eco-items { gap: 6px; }
.eco-chip { display: inline-flex; align-items: center; gap: 6px; background: #fff; border-radius: 8px; padding: 3px 7px; align-self: flex-start; }
.eco-chip img { height: 24px; width: auto; display: block; }
.eco-chip-origen { background: #faf6ef; }
.eco-chip-origen img { height: 22px; }
.eco-chip-origen span { display: flex; flex-direction: column; font-family: "Fraunces", Georgia, serif; line-height: .95; font-size: 0.74rem; }
.eco-chip-origen b:first-child { color: var(--ink); }
.eco-chip-origen b:last-child { color: var(--terra); }
.eco-av-origen { border-color: #e3a33b; object-position: center top; }
@media (max-width: 1100px) { .foot-top { flex-direction: column; align-items: stretch; } }
.eco-band { flex-direction: column; align-items: stretch; gap: 8px; padding: 14px 18px 12px; }
.eco-tit br { display: none; }
.eco-tit b { font-size: 0.72rem; letter-spacing: .14em; }
.eco-item { padding: 6px 8px; gap: 10px; }
.eco-av { width: 46px; height: 46px; }
.eco-chip img { height: 26px; }
.eco-txt small { font-size: 0.74rem; }
.mega-more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.mega-more span { font-size: 0.72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.mega-more a { text-decoration: none; color: var(--ink); font-size: 0.88rem; font-weight: 600; background: var(--sand); padding: 6px 12px; border-radius: 999px; }
.mega-more a:hover { background: #e6d6bd; color: var(--terra-dark); }
.mega-more + .mega-foot { margin-top: 16px; }

/* Accesos Mi tienda / Mi empresa en la etiqueta del módulo */
.module-label { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.mi-link { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; color: inherit; font-weight: 700; letter-spacing: 0.12em; padding: 0 6px; margin: 0 -6px 0 0; line-height: inherit; border-radius: 999px; }
.mi-link::before { content: ""; width: 11px; height: 11px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E") center/contain no-repeat; }
.mi-link:hover { background: rgba(255,255,255,.8); }
.mi-link[aria-current="page"] { background: #fff; }
.module-label { align-items: center; min-height: 26px; }

/* Ver en inglés (Google Translate) */
.lang-btn { border: 0; background: none; color: inherit; font: inherit; font-size: 0.92rem; font-weight: 500; cursor: pointer; }
.ver-en .lang-btn { background: var(--sand); }
#gt-el, iframe.skiptranslate, .goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame, .VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; }
html.ver-en body { top: 0 !important; position: static !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

/* Módulo Viajes (cuarto grupo de la botonera) */
.m-travel { background: #fbefd5; color: #8a5e0c; flex: 1 1 auto; }
.ml-link { color: inherit; text-decoration: none; }
.ml-link:hover { text-decoration: underline; }
@media (min-width: 981px) {
  .modules { gap: 10px; }
  .module { padding: 8px 8px; }
  .nav-btn { padding: 0 10px; }
}
.eco-chip-pro img { height: 36px !important; }
