/* CajaVecina · BancoEstado Chile — estilo alineado a nwm.bancoestado.cl (es-CL) */
@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600;700;800&display=swap");

:root {
  --tia-red: #ff9100;
  --tia-red-dark: #e83420;
  --tia-blue: #004f9e;
  --tia-navy: #2c3038;
  --tia-text: #2c3038;
  --tia-muted: #8f9ea6;
  --tia-border: #e5e7eb;
  --tia-bg: #f6f7f8;
  --tia-cream: #f9f2ea;
  --tia-font: "Nunito Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --tia-header-grad: linear-gradient(70deg, #ff9100, #e83420);
}

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（手机端对齐官网：白标 + 白底 CTA + 菜单） ── */
.tia-site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
}
.tia-topbar {
  display: none;
}
.tia-header {
  background: var(--tia-header-grad);
  border-bottom: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.tia-header__row {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 14px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.tia-icon-btn {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 8px;
  order: 3;
}
.tia-icon-btn svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
}
.tia-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  text-decoration: none;
  min-width: 0;
  order: 0;
}
.tia-header .tia-logo img {
  height: auto;
  width: 132px;
  max-width: min(132px, 38vw);
  object-fit: contain;
  object-position: left center;
  display: block;
  filter: none;
}
.tia-official img {
  height: auto;
  width: 160px;
  max-width: 200px;
  object-fit: contain;
  display: block;
  filter: none;
}
.tia-header-cta {
  flex: 0 0 auto;
  margin-left: auto;
  order: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 100px;
  background: #fff;
  color: #e83420;
  font-family: var(--tia-font);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.tia-header-cta:active {
  transform: scale(0.98);
}
.tia-header-nav {
  display: none;
}
.tia-search {
  display: none;
}
.tia-actions {
  display: none;
}
.tia-cart {
  position: relative;
}
.tia-cart-badge {
  display: none;
}

/* ── Nav + strip（次级信息条，贴合官网浅底） ── */
.tia-nav {
  display: none;
}
.tia-nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
}
.tia-nav a,
.tia-nav span {
  display: inline-block;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--tia-navy);
  text-decoration: none;
}
.tia-nav span.on,
.tia-nav a.on {
  color: var(--tia-red);
  box-shadow: inset 0 -3px 0 var(--tia-red);
}
.tia-delivery {
  background: #fff;
  border-bottom: 1px solid #eef1f4;
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  color: #2c3038;
  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-blue);
  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, #e67e00, var(--tia-red));
  color: #fff;
  text-align: center;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.tia-promo-ribbon__inner strong {
  font-weight: 800;
}

/* ── 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);
  border-radius: 16px;
  padding: 24px;
  max-width: 100%;
  min-width: 0;
  box-shadow: 0 8px 24px rgba(44, 48, 56, 0.04);
}
.tia-info {
  min-width: 0;
}
.tia-gallery {
  text-align: center;
}
.tia-gallery__frame {
  border: 1px solid #eee;
  background: var(--tia-cream);
  padding: 12px;
  min-height: 280px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.tia-gallery__frame img {
  max-width: 100%;
  max-height: 420px;
  width: auto;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}
.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: 800;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  color: var(--tia-navy);
  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: 5px 12px;
  border-radius: 999px;
  text-transform: none;
}
.tia-tag--deal {
  background: var(--tia-red);
  color: #fff;
}
.tia-tag--club {
  background: #fff;
  color: var(--tia-blue);
  border: 1px solid var(--tia-blue);
}
.tia-tag--ship {
  background: #eef5fc;
  color: var(--tia-blue);
  border: 1px solid #c7dbf0;
}
.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: 800;
  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: var(--tia-cream);
  border: 1px solid #f0e6d8;
  border-radius: 12px;
}
.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: #ffe0b2;
  overflow: hidden;
  border-radius: 999px;
}
.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: 10px;
  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: 10px;
  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(255, 145, 0, 0.18);
}
.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%;
  min-height: 44px;
  height: 48px;
  border: 0;
  border-radius: 100px;
  background: #ff9100;
  color: #fff;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
  font-family: var(--tia-font);
  font-size: 15px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  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);
  border-radius: 14px;
  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);
  border-radius: 14px;
  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 / 3 */
.tia-p2-card {
  background: #fff;
  border: 1px solid var(--tia-border);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
}
.tia-success-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 145, 0, 0.4);
  border-radius: 12px;
  padding: 0;
  background: #fff;
  text-align: left;
  box-shadow: 0 8px 24px rgba(232, 52, 32, 0.1);
}
.tia-success-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: auto;
  width: auto;
  height: 5px;
  background: var(--tia-header-grad);
}
.tia-success-head {
  padding: 28px 24px 20px 28px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 145, 0, 0.08) 0%, rgba(255, 255, 255, 0) 70%),
    #fff;
  border-bottom: 1px solid #eef1f4;
}
.tia-success-card .tia-p2-check {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--tia-red);
  box-shadow: 0 0 0 8px rgba(255, 145, 0, 0.14);
}
.tia-success-card .tia-p2-check svg {
  width: 30px;
  height: 30px;
}
.tia-success-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tia-red);
}
.tia-success-card .tia-p2-title {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--tia-navy);
  text-align: center;
}
.tia-success-amount {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 180px;
  padding: 12px 22px;
  border-radius: 10px;
  background: #fff7ed;
  border: 1px solid #ffedd5;
}
.tia-success-amount__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c2410c;
}
.tia-success-amount strong {
  font-size: 28px;
  font-weight: 800;
  color: var(--tia-navy);
  line-height: 1.1;
}
.tia-success-amount__cur {
  font-size: 12px;
  font-weight: 600;
  color: var(--tia-muted);
}
.tia-success-card .tia-p2-desc {
  margin: 0;
  padding: 18px 24px 8px 28px;
  border-radius: 0;
  background: transparent;
  border: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  text-align: left;
}
.tia-success-card .tia-p2-desc strong {
  color: var(--tia-red);
  font-weight: 700;
}
.tia-success-steps {
  list-style: none;
  margin: 8px 20px 0 24px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.tia-success-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f9fafb;
  border: 1px solid #eef1f4;
}
.tia-success-steps li span {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--tia-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.tia-success-steps li strong {
  display: block;
  font-size: 13px;
  color: var(--tia-navy);
  margin-bottom: 2px;
}
.tia-success-steps li em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--tia-muted);
  line-height: 1.45;
}
.tia-success-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  margin: 16px 20px 22px 28px;
}
.tia-success-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e5e7eb;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}
.tia-success-meta span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tia-red);
}
.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: 800;
  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;
  border-radius: 12px;
  text-align: left;
  background: var(--tia-cream);
  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: cover;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
}
.tia-p2-product strong {
  display: block;
  font-size: 13px;
  text-transform: none;
  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);
  border-radius: 14px;
  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 (min-width: 900px) {
  .tia-header__row {
    height: 64px;
    padding: 0 24px;
    gap: 16px;
  }
  .tia-header .tia-logo img {
    width: 156px;
    max-width: 156px;
  }
  .tia-header-cta {
    height: 40px;
    padding: 0 22px;
    font-size: 14px;
  }
}
@media (max-width: 360px) {
  .tia-header-cta {
    padding: 0 12px;
    font-size: 12px;
  }
  .tia-header .tia-logo img {
    width: 112px;
  }
}

@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: 8px;
  }
  .tia-info__title {
    font-size: 18px;
  }
  .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: 28px;
  }
  .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;
  }
}
