/* Tía Ecuador — estilo alineado a tia.com.ec (Magento / Omnipro) */
@import url("https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;500;700&display=swap");

:root {
  --tia-red: #e4002b;
  --tia-red-dark: #c40024;
  --tia-blue: #0066cc;
  --tia-text: #333;
  --tia-muted: #757575;
  --tia-border: #e0e0e0;
  --tia-bg: #f5f5f5;
  --tia-font: "Ubuntu", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-x: clip;
}

.tia-shell,
.tia-shell *,
.tia-shell *::before,
.tia-shell *::after {
  box-sizing: border-box;
}

.tia-shell {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  background: var(--tia-bg);
  color: var(--tia-text);
  font-family: var(--tia-font);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Header ── */
.tia-header {
  background: #fff;
  border-bottom: 1px solid #eee;
}
.tia-header__row {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.tia-icon-btn {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tia-text);
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 4px;
}
.tia-icon-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}
.tia-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.tia-logo img {
  height: 36px;
  width: auto;
  max-width: 168px;
  object-fit: contain;
  display: block;
}
.tia-search {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  height: 42px;
  border: 1px solid #ccc;
  border-radius: 999px;
  background: #fff;
  padding: 0 6px 0 16px;
}
.tia-search input {
  flex: 1;
  min-width: 0;
  height: 40px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--tia-text);
}
.tia-search input:focus {
  outline: none;
}
.tia-search button {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--tia-blue);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.tia-search button svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
}
.tia-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.tia-cart {
  position: relative;
}
.tia-cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--tia-blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

/* ── Nav + entrega ── */
.tia-nav {
  background: var(--tia-red);
  color: #fff;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}
.tia-nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
}
.tia-nav a,
.tia-nav span {
  display: inline-block;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
}
.tia-nav span.on,
.tia-nav a.on {
  background: var(--tia-red-dark);
  font-weight: 700;
}
.tia-delivery {
  background: #fff;
  border-bottom: 1px solid var(--tia-border);
  text-align: center;
  padding: 9px 16px;
  font-size: 13px;
  color: #444;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.tia-delivery span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.tia-delivery svg {
  width: 16px;
  height: 16px;
  stroke: var(--tia-red);
  fill: none;
  stroke-width: 2;
}

/* ── Breadcrumb ── */
.tia-breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 16px;
  font-size: 12px;
  color: var(--tia-muted);
  overflow-wrap: anywhere;
}
.tia-breadcrumb a,
.tia-breadcrumb span {
  color: inherit;
}
.tia-breadcrumb strong {
  color: var(--tia-red);
  font-weight: 700;
}

/* ── Promo ribbon ── */
.tia-promo-ribbon {
  max-width: 1280px;
  margin: 0 auto 12px;
  padding: 0 16px;
}
.tia-promo-ribbon__inner {
  background: linear-gradient(90deg, var(--tia-red-dark), var(--tia-red));
  color: #fff;
  text-align: center;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.tia-promo-ribbon__inner strong {
  font-weight: 700;
}

/* ── PDP ── */
.tia-main {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px 48px;
  min-width: 0;
}
.tia-pdp {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 28px;
  background: #fff;
  border: 1px solid var(--tia-border);
  padding: 24px;
  max-width: 100%;
  min-width: 0;
}
.tia-info {
  min-width: 0;
}
.tia-gallery {
  text-align: center;
}
.tia-gallery__frame {
  border: 1px solid #eee;
  background: #fff;
  padding: 16px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tia-gallery__frame img {
  max-width: 100%;
  max-height: 420px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.tia-gallery__label {
  margin-top: 10px;
  font-size: 11px;
  color: var(--tia-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tia-info__sku {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--tia-muted);
}
.tia-info__title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}
.tia-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.tia-tag {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 2px;
  text-transform: uppercase;
}
.tia-tag--deal {
  background: var(--tia-red);
  color: #fff;
}
.tia-tag--club {
  background: #fff;
  color: var(--tia-red);
  border: 1px solid var(--tia-red);
}
.tia-tag--ship {
  background: #fff8e1;
  color: #8a6d00;
  border: 1px solid #e6c200;
}
.tia-price-block {
  padding: 14px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin-bottom: 16px;
}
.tia-price-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 6px;
}
.tia-price-line--now {
  margin-bottom: 0;
}
.tia-price-lbl {
  font-size: 13px;
  color: var(--tia-muted);
  min-width: 7.5rem;
}
.tia-price-old {
  font-size: 18px;
  color: var(--tia-muted);
  text-decoration: line-through;
  font-weight: 500;
}
.tia-p2-prices {
  display: inline-block;
  margin-top: 4px;
  font-size: 13px;
}
.tia-p2-prices .tia-price-old {
  font-size: 14px;
  margin-right: 6px;
}
.tia-p2-prices .tia-price-now {
  font-size: 16px;
}
.tia-price-now {
  font-size: 32px;
  font-weight: 700;
  color: var(--tia-red);
  line-height: 1;
}
.tia-price-note {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--tia-muted);
}
.tia-specs {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.tia-specs li {
  position: relative;
  padding: 6px 0 6px 16px;
  font-size: 13px;
  color: #555;
  border-bottom: 1px solid #f3f3f3;
}
.tia-specs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tia-red);
}
.tia-stock {
  margin-bottom: 18px;
  padding: 12px 14px;
  background: #fafafa;
  border: 1px solid #eee;
}
.tia-stock__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 8px;
}
.tia-stock__row strong {
  color: var(--tia-red);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}
.tia-stock__bar {
  height: 6px;
  background: #fdd;
  overflow: hidden;
}
.tia-stock__bar i {
  display: block;
  height: 100%;
  background: var(--tia-red);
  transition: width 0.4s ease;
}
.tia-lead label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}
.tia-phone {
  display: flex;
  gap: 8px;
}
.tia-phone .tia-cc {
  flex: 0 0 52px;
  width: 52px;
  height: 44px;
  padding: 0 2px;
  border: 1px solid #ccc;
  border-radius: 3px;
  text-align: center;
  font-size: 13px;
  background: #fafafa;
}
.tia-phone input[type="tel"] {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 0 12px;
  font-size: 16px;
  font-family: inherit;
}
.tia-phone input:focus {
  outline: none;
  border-color: var(--tia-red);
  box-shadow: 0 0 0 2px rgba(228, 0, 43, 0.12);
}
.tia-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--tia-muted);
  line-height: 1.55;
}
.tia-btn-primary {
  margin-top: 14px;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 3px;
  background: var(--tia-red);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
}
.tia-btn-primary:hover {
  background: var(--tia-red-dark);
}
.tia-btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.tia-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.tia-step {
  background: #fff;
  border: 1px solid var(--tia-border);
  padding: 14px 12px;
  text-align: center;
  font-size: 12px;
  color: #555;
}
.tia-step b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: var(--tia-red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.tia-footer {
  max-width: 1280px;
  margin: 24px auto 0;
  padding: 20px 16px;
  background: #fff;
  border: 1px solid var(--tia-border);
  text-align: center;
}
.tia-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  font-size: 12px;
  color: var(--tia-blue);
  margin-bottom: 10px;
}
.tia-footer__links span {
  margin: 0;
}
.tia-footer__copy {
  font-size: 11px;
  color: var(--tia-muted);
  line-height: 1.65;
}

/* Page 2 success */
.tia-p2-card {
  background: #fff;
  border: 1px solid var(--tia-border);
  padding: 24px 20px;
  text-align: center;
}
.tia-p2-check {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--tia-red);
  display: grid;
  place-items: center;
}
.tia-p2-check svg {
  width: 28px;
  height: 28px;
  stroke: #fff;
  stroke-width: 3;
  fill: none;
}
.tia-p2-title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.tia-p2-desc {
  margin: 0;
  font-size: 14px;
  color: #555;
  line-height: 1.65;
}
.tia-p2-desc strong {
  color: var(--tia-red);
}
.tia-p2-product {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid #eee;
  text-align: left;
  background: #fafafa;
  min-width: 0;
}
.tia-p2-product > div {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.tia-p2-product img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #eee;
}
.tia-p2-product strong {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  line-height: 1.4;
}
.tia-p2-product span {
  font-size: 12px;
  color: var(--tia-muted);
}
.tia-p2-rows {
  margin-top: 12px;
  background: #fff;
  border: 1px solid var(--tia-border);
  padding: 4px 16px;
}
.tia-p2-row {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
  text-align: left;
  font-size: 14px;
  color: #555;
  min-width: 0;
}
.tia-p2-row > div {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.tia-p2-row:last-child {
  border-bottom: 0;
}
.tia-p2-num {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--tia-red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.tia-p2-row strong {
  display: block;
  color: var(--tia-text);
  margin-bottom: 2px;
}
.tia-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: #fff;
  border-top: 1px solid #e5e5e5;
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.08);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}
.tia-dock__inner {
  max-width: 640px;
  margin: 0 auto;
}
.tia-dock__note {
  margin: 8px 0 0;
  font-size: 12px;
  color: #888;
  text-align: center;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .tia-pdp {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .tia-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .tia-header__row {
    flex-wrap: wrap;
    row-gap: 8px;
    padding: 10px 12px;
  }
  .tia-search {
    flex: 1 1 100%;
    order: 3;
    min-width: 0;
  }
  .tia-menu {
    order: 0;
  }
  .tia-logo {
    order: 1;
    min-width: 0;
  }
  .tia-logo img {
    max-width: min(120px, 36vw);
  }
  .tia-actions {
    order: 2;
    margin-left: auto;
    flex-shrink: 0;
  }
}

@media (max-width: 640px) {
  .tia-main {
    padding: 0 12px 120px;
  }
  .tia-promo-ribbon {
    padding: 0 12px;
  }
  .tia-promo-ribbon__inner {
    font-size: 14px;
    padding: 10px 12px;
  }
  .tia-breadcrumb {
    padding: 10px 12px;
    font-size: 11px;
  }
  .tia-pdp {
    padding: 12px;
    gap: 16px;
  }
  .tia-gallery__frame {
    min-height: 200px;
    padding: 10px;
  }
  .tia-info__title {
    font-size: 17px;
  }
  .tia-price-lbl {
    min-width: 0;
    flex: 0 0 auto;
  }
  .tia-price-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .tia-price-now {
    font-size: 26px;
  }
  .tia-stock__row {
    flex-wrap: wrap;
    gap: 4px 8px;
  }
  .tia-stock__row strong {
    font-size: 15px;
  }
  .tia-step {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
  }
  .tia-step b {
    margin: 0;
    flex: 0 0 auto;
  }
  .tia-p2-card {
    padding: 20px 14px;
  }
  .tia-p2-title {
    font-size: 18px;
  }
  .tia-p2-rows {
    padding: 4px 12px;
  }
  .tia-delivery {
    padding: 9px 12px;
    font-size: 12px;
  }
  .tia-nav a,
  .tia-nav span {
    padding: 10px 14px;
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  .tia-phone .tia-cc {
    flex: 0 0 48px;
    width: 48px;
    font-size: 12px;
  }
  .tia-phone input[type="tel"] {
    font-size: 16px;
    padding: 0 8px;
  }
}
