:root {
  --navy: #0b2a4a;
  --navy-light: #123a63;
  --orange: #f47920;
  --gray: #f5f6f8;
  --text: #1c2733;
}
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Arial, sans-serif; }
body { background: var(--gray); color: var(--text); }

.topbar {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
}
.logo-img { height: 68px; background: #fff; border-radius: 8px; padding: 4px 10px; display: block; }

.search { display: flex; }
.search input {
  padding: 10px 14px;
  width: 280px;
  border: none;
  border-radius: 4px 0 0 4px;
  font-size: 14px;
}
.search button {
  padding: 10px 18px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  font-weight: bold;
  cursor: pointer;
}
.search button:hover { background: #d96a15; }

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 55%, var(--orange) 130%);
  color: #fff;
  text-align: center;
  padding: 90px 20px 100px;
}
.hero h1 { font-size: 38px; line-height: 1.25; margin-bottom: 14px; }
.hero p { font-size: 16px; opacity: .9; margin-bottom: 28px; }
.hero-search { justify-content: center; }
.hero-search input { width: 380px; }

.trust-bar {
  background: #fff;
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 22px 20px;
  flex-wrap: wrap;
  border-bottom: 1px solid #eee;
}
.trust-bar div { text-align: center; }
.trust-bar strong { display: block; color: var(--navy); font-size: 16px; }
.trust-bar span { color: #778; font-size: 12px; }

.browse { padding: 40px 32px; max-width: 1200px; margin: 0 auto; }
.browse-alt { background: #fff; max-width: 100%; margin-top: 0; padding-top: 40px; padding-bottom: 40px; }
.browse-alt .tile-grid, .browse-alt h2 { max-width: 1200px; margin-left: auto; margin-right: auto; }
.browse h2 { color: var(--navy); font-size: 20px; margin-bottom: 18px; }

.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fff;
  border: 1px solid #e4e8ee;
  border-left: 4px solid var(--orange);
  border-radius: 6px;
  padding: 16px 18px;
  text-decoration: none;
  transition: box-shadow .15s ease, transform .15s ease;
}
.tile:hover { box-shadow: 0 4px 12px rgba(11,42,74,.1); transform: translateY(-2px); }
.tile-name { color: var(--navy); font-weight: bold; font-size: 15px; text-transform: capitalize; }
.tile-count { color: #889; font-size: 12px; }

.tile-icon { width: 32px; height: 32px; color: var(--orange); margin-bottom: 6px; }
.tile-icon svg { width: 100%; height: 100%; display: block; }

.tile-grid-brand { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.tile-brand { align-items: center; justify-content: center; text-align: center; padding: 18px; }
.tile-logo { max-width: 100%; max-height: 40px; object-fit: contain; margin-bottom: 8px; }

.results { padding: 32px; max-width: 1200px; margin: 0 auto; }
.results h2 { margin-bottom: 20px; color: var(--navy); font-size: 20px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }

.card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(11,42,74,.08);
  border-top: 3px solid var(--orange);
  transition: transform .15s ease;
  display: block;
  text-decoration: none;
  color: inherit;
}
.card:hover { transform: translateY(-3px); }

.card-img {
  background: #fff;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-img img { max-width: 100%; max-height: 100%; object-fit: contain; }

.card-body { padding: 14px 16px; }
.tag { color: var(--navy); font-size: 11px; font-weight: bold; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.card h3 { font-size: 15px; color: var(--text); margin-bottom: 6px; line-height: 1.3; }
.card .price { color: var(--orange); font-weight: bold; font-size: 17px; }

footer { text-align: center; padding: 24px; color: #99a; }

/* Product detail page */
.product { padding: 32px; max-width: 1000px; margin: 0 auto; }
.product-main { display: flex; gap: 40px; background: #fff; border-radius: 8px; padding: 28px; box-shadow: 0 2px 8px rgba(11,42,74,.08); }
.product-img { flex: 0 0 320px; display: flex; align-items: center; justify-content: center; }
.product-img img { max-width: 100%; max-height: 320px; object-fit: contain; }
.product-info { flex: 1; }
.product-info h1 { font-size: 24px; color: var(--navy); margin-bottom: 10px; line-height: 1.3; }
.product-price { color: var(--orange); font-weight: bold; font-size: 26px; margin-bottom: 18px; }

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th { text-align: left; color: var(--navy); font-size: 13px; padding: 8px 0; width: 160px; vertical-align: top; border-top: 1px solid #eee; }
.spec-table td { padding: 8px 0; font-size: 14px; color: var(--text); border-top: 1px solid #eee; }

.spec-block { margin-top: 24px; background: #fff; border-radius: 8px; padding: 24px 28px; box-shadow: 0 2px 8px rgba(11,42,74,.08); }
.spec-block h2 { font-size: 16px; color: var(--navy); margin-bottom: 14px; }

.chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list li { background: var(--gray); border: 1px solid #e0e4ea; padding: 6px 12px; border-radius: 20px; font-size: 13px; color: var(--text); }

.model-table { width: 100%; border-collapse: collapse; }
.model-table th { text-align: left; background: var(--gray); padding: 8px 12px; font-size: 12px; color: var(--navy); text-transform: uppercase; }
.model-table td { padding: 8px 12px; font-size: 14px; border-top: 1px solid #eee; }

.cart-link { color: #fff; text-decoration: none; font-weight: bold; font-size: 14px; background: var(--orange); padding: 10px 18px; border-radius: 4px; margin-left: 12px; }
.cart-link:hover { background: #d96a15; }

.add-to-cart-form { display: flex; gap: 10px; margin-top: 18px; align-items: center; }
.qty-input { width: 60px; padding: 8px; border: 1px solid #ccd; border-radius: 4px; font-size: 14px; }
.btn-cart { background: var(--orange); color: #fff; border: none; padding: 10px 20px; border-radius: 4px; font-weight: bold; cursor: pointer; }
.btn-cart:hover { background: #d96a15; }

.cart-page, .checkout-page, .result-page { padding: 32px; max-width: 900px; margin: 0 auto; }
.cart-page h1, .checkout-page h1 { color: var(--navy); margin-bottom: 20px; }
.empty-cart { color: #667; }
.empty-cart a { color: var(--orange); }

.cart-items { display: flex; flex-direction: column; gap: 12px; }
.cart-item { display: flex; align-items: center; gap: 16px; background: #fff; border-radius: 8px; padding: 14px; box-shadow: 0 2px 8px rgba(11,42,74,.08); }
.cart-item-img { width: 60px; height: 60px; object-fit: contain; }
.cart-item-info { flex: 1; }
.cart-item-info a { color: var(--navy); font-weight: bold; text-decoration: none; }
.cart-item-qty { color: #778; font-size: 13px; }
.cart-item-price { color: var(--orange); font-weight: bold; }
.btn-remove { background: none; border: 1px solid #ddd; color: #778; padding: 6px 12px; border-radius: 4px; cursor: pointer; font-size: 12px; }
.btn-remove:hover { border-color: var(--orange); color: var(--orange); }

.cart-total { display: flex; justify-content: space-between; font-size: 20px; font-weight: bold; color: var(--navy); padding: 18px 0; border-top: 2px solid #eee; margin-top: 16px; }
.btn-checkout { display: inline-block; background: var(--orange); color: #fff; text-decoration: none; padding: 14px 28px; border-radius: 6px; font-weight: bold; margin-top: 10px; border: none; cursor: pointer; font-size: 15px; }
.btn-checkout:hover { background: #d96a15; }

.checkout-grid { display: flex; gap: 32px; flex-wrap: wrap; }
.checkout-form { flex: 1; min-width: 280px; display: flex; flex-direction: column; gap: 14px; background: #fff; padding: 24px; border-radius: 8px; box-shadow: 0 2px 8px rgba(11,42,74,.08); }
.checkout-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--navy); font-weight: bold; }
.checkout-form input, .checkout-form textarea { padding: 10px; border: 1px solid #ccd; border-radius: 4px; font-size: 14px; font-family: inherit; }

.checkout-summary { flex: 0 0 280px; background: #fff; padding: 24px; border-radius: 8px; box-shadow: 0 2px 8px rgba(11,42,74,.08); align-self: flex-start; }
.checkout-summary h2 { font-size: 16px; color: var(--navy); margin-bottom: 14px; }
.summary-line { display: flex; justify-content: space-between; font-size: 13px; color: var(--text); margin-bottom: 8px; }
.summary-total { display: flex; justify-content: space-between; font-weight: bold; color: var(--navy); border-top: 1px solid #eee; padding-top: 10px; margin-top: 10px; font-size: 16px; }

.result-page { text-align: center; padding: 80px 32px; }
.result-page h1 { color: var(--navy); margin-bottom: 12px; }
.result-page p { color: #667; margin-bottom: 24px; }

.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25D366;
  color: #fff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  text-decoration: none;
  z-index: 999;
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

.account-link { color: #fff; text-decoration: none; font-size: 14px; margin-left: 16px; opacity: .9; }
.account-link:hover { opacity: 1; text-decoration: underline; }

.auth-page { max-width: 420px; margin: 60px auto; padding: 0 20px; }
.auth-page h1 { color: var(--navy); margin-bottom: 20px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; background: #fff; padding: 28px; border-radius: 8px; box-shadow: 0 2px 8px rgba(11,42,74,.08); }
.auth-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--navy); font-weight: bold; }
.auth-form input { padding: 10px; border: 1px solid #ccd; border-radius: 4px; font-size: 14px; }
.auth-form .optional { color: #99a; font-weight: normal; }
.auth-error { background: #fdecea; color: #b3261e; padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; font-size: 14px; }
.auth-switch { text-align: center; margin-top: 16px; font-size: 14px; color: #667; }
.auth-switch a { color: var(--orange); font-weight: bold; }

.account-page { max-width: 700px; margin: 0 auto; padding: 32px; }
.account-page h1 { color: var(--navy); margin-bottom: 16px; }
.account-page h2 { color: var(--navy); font-size: 18px; margin: 28px 0 14px; }
.account-info { background: #fff; padding: 20px 24px; border-radius: 8px; box-shadow: 0 2px 8px rgba(11,42,74,.08); }
.aliado-badge { color: var(--orange); font-weight: bold; margin-top: 8px; }
.btn-logout { display: inline-block; margin-top: 14px; color: #b3261e; text-decoration: none; font-size: 13px; font-weight: bold; }

.orders-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(11,42,74,.08); }
.orders-table th { text-align: left; background: var(--gray); padding: 10px 14px; font-size: 12px; color: var(--navy); text-transform: uppercase; }
.orders-table td { padding: 10px 14px; font-size: 14px; border-top: 1px solid #eee; }

.allies-hero { padding: 60px 20px 50px; }
.allies-page { max-width: 1000px; margin: 0 auto; padding: 0 32px 50px; }
.allies-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: -40px; margin-bottom: 40px; }
.benefit-card { background: #fff; border-radius: 8px; padding: 22px; box-shadow: 0 4px 14px rgba(11,42,74,.12); border-top: 3px solid var(--orange); }
.benefit-card h3 { color: var(--navy); margin-bottom: 8px; font-size: 17px; }
.benefit-card p { color: #667; font-size: 14px; line-height: 1.5; }

.allies-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.allies-box { background: #fff; padding: 26px; border-radius: 8px; box-shadow: 0 2px 8px rgba(11,42,74,.08); }
.allies-box h2 { color: var(--navy); font-size: 18px; margin-bottom: 8px; }
.allies-box p { color: #667; font-size: 14px; margin-bottom: 16px; }
.allies-form { display: flex; flex-direction: column; gap: 12px; }
.allies-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--navy); font-weight: bold; }
.allies-form input { padding: 10px; border: 1px solid #ccd; border-radius: 4px; font-size: 14px; }
.allies-form .optional { color: #99a; font-weight: normal; }

.verify-ok { background: #e8f5ea; color: #1e7d32; padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; font-size: 14px; }
.verify-fail { background: #fdecea; color: #b3261e; padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; font-size: 14px; }

.aliado-pending, .aliado-cta { color: #886; font-size: 14px; margin-top: 8px; }
.aliado-cta a, .aliado-pending a { color: var(--orange); font-weight: bold; }

.shipping-options { border-top: 1px solid #eee; padding-top: 14px; margin-top: 4px; }
.shipping-title { font-size: 13px; color: var(--navy); font-weight: bold; margin-bottom: 10px; }
.shipping-option { flex-direction: row !important; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #ddd; border-radius: 6px; margin-bottom: 8px; cursor: pointer; font-weight: normal !important; }
.shipping-option:has(input:checked) { border-color: var(--orange); background: #fff7f0; }
.shipping-option input { width: auto; }
.shipping-option span { flex: 1; font-size: 14px; color: var(--text); }
.shipping-option span em { color: #889; font-style: normal; font-size: 12px; }
.shipping-option strong { color: var(--orange); }

.lang-switch { color: #fff; font-size: 13px; margin-left: 16px; white-space: nowrap; }
.lang-switch a { color: #fff; text-decoration: none; }
.lang-switch a:hover { text-decoration: underline; }

.coverage { background: #f4f6f8; padding: 40px 16px; }
.coverage-inner { max-width: 1300px; margin: 0 auto; display: flex; gap: 40px; align-items: center; justify-content: center; flex-wrap: wrap; }
.coverage-text { flex: 1; min-width: 280px; }
.coverage-text h2 { font-size: 24px; color: #123a63; margin: 0 0 12px; }
.coverage-text p { font-size: 15px; color: #444; line-height: 1.5; margin: 0 0 20px; }
.offices { display: flex; gap: 24px; flex-wrap: wrap; }
.office { background: #fff; border-radius: 8px; padding: 14px 18px; box-shadow: 0 1px 3px rgba(0,0,0,.08); min-width: 200px; }
.office strong { display: block; font-size: 15px; color: #123a63; margin-bottom: 4px; }
.office span, .office a { font-size: 13px; color: #666; text-decoration: none; }
.office a:hover { color: #f5a623; text-decoration: underline; }
.coverage-map { flex: 1; min-width: 260px; max-width: 420px; text-align: center; }
.coverage-map img { width: 100%; height: auto; max-width: 380px; }
.coverage-map small { display: block; color: #999; font-size: 11px; margin-top: 6px; }
@media (max-width: 700px) { .coverage-inner { flex-direction: column; } }

.coverage-banner { background: #123a63; color: #fff; text-align: center; padding: 12px 16px; font-size: 14px; }

.how-it-works { max-width: 1000px; margin: 0 auto; padding: 40px 16px; text-align: center; }
.how-it-works h2 { font-size: 22px; color: #123a63; margin-bottom: 28px; }
.how-it-works .steps { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.how-it-works .step { flex: 1; min-width: 220px; max-width: 280px; }
.how-it-works .step-icon { font-size: 36px; display: block; margin-bottom: 10px; }
.how-it-works .step h3 { font-size: 16px; color: #123a63; margin: 0 0 6px; }
.how-it-works .step p { font-size: 13px; color: #666; margin: 0; line-height: 1.4; }

.flags-strip { background: #f4f6f8; text-align: center; padding: 24px 16px; }
.flags-strip p { font-size: 13px; color: #666; text-transform: uppercase; letter-spacing: .5px; margin: 0 0 12px; }
.flags-strip .flags { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.flags-strip .flags img { width: 36px; height: auto; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.2); }

.payment-badges { text-align: center; padding: 28px 16px; }
.payment-badges p { font-size: 13px; color: #666; margin: 0 0 12px; }
.payment-badges .badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.payment-badges .badge { background: #f0f2f4; color: #123a63; font-weight: 700; font-size: 13px; padding: 8px 16px; border-radius: 6px; }

.footer-coverage { background: #f4f6f8; padding: 40px 16px; }
.footer-coverage-inner { max-width: 1100px; margin: 0 auto; display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.footer-copy { text-align: center; padding: 16px; color: #999; font-size: 12px; margin: 0; }

.footer-offices { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; padding: 24px 16px 0; }

.featured { max-width: 1200px; margin: 0 auto; padding: 40px 16px; }
.featured h2 { text-align: center; font-size: 22px; color: #123a63; margin-bottom: 24px; }
.featured-more { text-align: center; margin-top: 24px; }
.btn-ver-tienda { display: inline-block; background: #123a63; color: #fff; text-decoration: none; padding: 12px 28px; border-radius: 6px; font-weight: 700; font-size: 14px; }
.btn-ver-tienda:hover { background: #f5a623; color: #123a63; }

.featured .grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .featured .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .featured .grid { grid-template-columns: 1fr; } }

.featured .grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .featured .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .featured .grid { grid-template-columns: 1fr; } }

.coverage-maps { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.coverage-maps .coverage-map { flex: 1; min-width: 280px; max-width: 380px; }
.map-credit { width: 100%; text-align: center; color: #999; font-size: 11px; margin-top: 10px; }
