/* Naviteq Marine — storefront styles
   Lenguaje visual tomado de las tiendas marinas de EE.UU. (ref: Atlantis
   Showroom): azul marino sobre gris claro, tarjetas blancas, titulos
   redondeados, cero naranja. */

:root {
  --ink:        #163340;   /* texto principal / azul petroleo */
  --deep:       #03314B;   /* azul profundo: topbar, footer, hero */
  --deep-2:     #05466F;
  --blue:       #1D75BD;   /* azul de accion: botones, links, acentos */
  --blue-dark:  #165E9A;
  --blue-soft:  #E8F1F9;
  --bg:         #F7F8FA;   /* fondo de pagina */
  --line:       #E1E6EB;
  --muted:      #5F7382;
  --white:      #fff;
  --green:      #12795A;
  --red:        #B4231F;
  --amber:      #C97A0E;
  --buy:        #F0910F;   /* acento calido: SOLO botones de compra */
  --buy-dark:   #D97F06;
  --buy-ink:    #241000;

  --r:      10px;
  --r-lg:   16px;
  --shadow:    0 1px 2px rgba(3, 49, 75, .05), 0 4px 16px rgba(3, 49, 75, .06);
  --shadow-lg: 0 8px 30px rgba(3, 49, 75, .12);
  --wrap: 1280px;

  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-head: Nunito, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

a { color: var(--blue); }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 .5em;
  color: var(--ink);
  letter-spacing: -.01em;
}
h1 { font-size: 34px; }
h2 { font-size: 26px; }
h3 { font-size: 17px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block; border: 0; border-radius: 999px;
  padding: 12px 26px; font: inherit; font-weight: 700;
  font-family: var(--font-head);
  cursor: pointer; text-decoration: none; text-align: center;
  transition: background .15s, box-shadow .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-navy { background: var(--deep); color: #fff; }
.btn-navy:hover { background: var(--deep-2); }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border: 1.5px solid rgba(255, 255, 255, .5); }
.btn-ghost:hover { background: rgba(255, 255, 255, .22); }
/* El unico elemento calido del sitio. Se reserva a "Add to Cart" y al checkout
   para que el boton que genera la venta no compita con el azul de todo lo demas. */
.btn-buy { background: var(--buy); color: var(--buy-ink); }
.btn-buy:hover { background: var(--buy-dark); }

.btn-outline { background: #fff; color: var(--blue); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--blue); }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Header ---------- */
.topbar { background: var(--deep); color: #A9C6DA; font-size: 12.5px; }
.topbar .wrap { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #DCEAF5; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar strong { color: #fff; }

.masthead { background: var(--white); border-bottom: 1px solid var(--line); }
.masthead .wrap { display: flex; align-items: center; gap: 30px; padding-top: 18px; padding-bottom: 18px; }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.logo-mark {
  width: 42px; height: 42px; flex: none; border-radius: 50%;
  background: linear-gradient(140deg, var(--blue) 0%, var(--deep) 100%);
  display: grid; place-items: center;
  color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 15px; letter-spacing: -.02em;
}
.logo-text { line-height: 1.12; }
.logo-text b { display: block; font-family: var(--font-head); font-weight: 800; font-size: 21px; color: var(--ink); }
.logo-text span { display: block; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .16em; font-weight: 600; }

.searchbar { flex: 1 1 auto; display: flex; max-width: 660px; }
.searchbar input {
  flex: 1; min-width: 0; border: 1.5px solid var(--line); border-right: 0;
  border-radius: 999px 0 0 999px; padding: 11px 20px; font: inherit; background: var(--bg);
}
.searchbar input:focus { outline: 0; border-color: var(--blue); background: #fff; }
.searchbar button {
  border: 0; border-radius: 0 999px 999px 0; background: var(--blue); color: #fff;
  font-weight: 700; font-family: var(--font-head); padding: 0 26px; cursor: pointer;
}
.searchbar button:hover { background: var(--blue-dark); }

.cart-link {
  margin-left: auto; flex: none; color: var(--ink); text-decoration: none;
  display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 14px;
  font-family: var(--font-head);
}
.cart-link:hover { color: var(--blue); }
.cart-count {
  background: var(--blue); color: #fff; border-radius: 999px;
  min-width: 23px; height: 23px; padding: 0 7px;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
}

.mainnav { background: var(--white); border-bottom: 1px solid var(--line); }
.mainnav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.mainnav .wrap::-webkit-scrollbar { display: none; }
.mainnav a {
  color: var(--ink); text-decoration: none; font-size: 13.5px; font-weight: 600;
  font-family: var(--font-head);
  padding: 13px 15px; white-space: nowrap; border-bottom: 3px solid transparent;
}
.mainnav a:hover { color: var(--blue); }
.mainnav a[aria-current] { border-bottom-color: var(--blue); color: var(--blue); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 420px at 12% -20%, rgba(29, 117, 189, .55) 0%, rgba(29, 117, 189, 0) 60%),
    linear-gradient(120deg, var(--deep) 0%, #084C77 55%, #0E6096 100%);
  color: #fff; padding: 72px 0 78px;
}
.hero h1 { color: #fff; font-size: 44px; max-width: 16ch; margin-bottom: .35em; }
.hero p { color: #CBE0F0; font-size: 17px; max-width: 54ch; margin: 0 0 30px; }
.hero .btn + .btn { margin-left: 10px; }
.hero-badges { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 36px; font-size: 13px; color: #BBD6EA; }
.hero-badges b { color: #fff; font-family: var(--font-head); font-size: 15px; display: block; }

/* ---------- Fila de garantias ---------- */
.trustbar { background: var(--white); border-bottom: 1px solid var(--line); }
.trustbar .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-top: 26px; padding-bottom: 26px; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-icon {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  background: var(--blue-soft); color: var(--blue);
  display: grid; place-items: center; font-size: 19px;
}
.trust-item b { display: block; font-family: var(--font-head); font-size: 15px; color: var(--ink); }
.trust-item span { font-size: 13px; color: var(--muted); }

/* ---------- Secciones ---------- */
main { padding: 0 0 60px; }
.section { padding-top: 46px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-head a { font-size: 14px; font-weight: 700; font-family: var(--font-head); text-decoration: none; }
.section-head a:hover { text-decoration: underline; }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.panel-pad { padding: 20px 22px; }

.crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; padding-top: 22px; }
.crumbs a { color: var(--muted); }

.layout { display: grid; grid-template-columns: 250px 1fr; gap: 32px; align-items: start; }

/* ---------- Mosaicos de categoria ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); gap: 16px; }
.cat-tile {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 16px 16px; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #C9D8E4; }
.cat-tile img { height: 96px; width: 100%; object-fit: contain; }
.cat-tile b { font-family: var(--font-head); font-size: 14px; line-height: 1.3; }
.cat-tile span { font-size: 12px; color: var(--muted); }

/* ---------- Tira de marcas ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.brand-chip {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 16px; text-align: center; text-decoration: none;
  font-family: var(--font-head); font-weight: 700; font-size: 13.5px; color: var(--ink);
  display: grid; place-items: center; min-height: 92px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.brand-chip:hover { border-color: #C9D8E4; box-shadow: var(--shadow-lg); transform: translateY(-2px); }
/* El logo se muestra en gris y toma color al pasar el mouse: asi la tira se ve
   pareja aunque cada marca tenga su propia paleta. */
.brand-chip img {
  max-height: 46px; max-width: 100%; width: auto; object-fit: contain;
  filter: grayscale(1); opacity: .78; transition: filter .18s, opacity .18s;
}
.brand-chip:hover img { filter: none; opacity: 1; }
.brand-chip.is-text { color: var(--ink); }
.brand-chip.is-text:hover { color: var(--blue); }

/* ---------- Rejilla / tarjeta de producto ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 18px; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  display: flex; flex-direction: column; overflow: hidden; position: relative;
  transition: box-shadow .16s, transform .16s, border-color .16s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: #C9D8E4; }
.card-img { display: block; padding: 20px 18px 10px; background: #fff; }
.card-img img { height: 176px; width: 100%; object-fit: contain; }
.card-body { padding: 0 17px 17px; display: flex; flex-direction: column; flex: 1; }
.card-brand { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--blue); font-weight: 800; font-family: var(--font-head); }
.card-title { font-size: 13.5px; line-height: 1.45; margin: 6px 0 8px; min-height: 3.9em; font-weight: 500; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--blue); }
.card-mpn { font-size: 11.5px; color: var(--muted); margin-bottom: 10px; }
.card-foot { margin-top: auto; }

.badge-save {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  background: var(--blue); color: #fff; font-family: var(--font-head); font-weight: 800;
  font-size: 11px; padding: 4px 10px; border-radius: 999px;
}

.price { font-family: var(--font-head); font-size: 21px; font-weight: 800; color: var(--ink); }
.price-was { font-size: 12.5px; color: var(--muted); text-decoration: line-through; margin-left: 8px; font-weight: 500; }
.save { font-size: 11.5px; color: var(--green); font-weight: 700; }

.stock { font-size: 12px; font-weight: 700; margin: 8px 0 12px; font-family: var(--font-head); }
.stock.in { color: var(--green); }
.stock.low { color: var(--amber); }

.empty { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 50px 20px; text-align: center; color: var(--muted); }

/* ---------- Filtros ---------- */
.filters { position: sticky; top: 16px; overflow: hidden; }
.filters h3 {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted); margin: 0; padding: 15px 19px 9px; font-family: var(--font-head);
}
.filters > div + h3 { border-top: 1px solid var(--line); margin-top: 4px; }
.filter-list { max-height: 300px; overflow-y: auto; padding: 0 19px 15px; }
.filter-list label { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; padding: 4px 0; cursor: pointer; }
.filter-list label:hover { color: var(--blue); }
.filter-list input { margin: 4px 0 0; flex: none; accent-color: var(--blue); }
.filter-list .n { color: var(--muted); font-size: 12px; margin-left: auto; padding-left: 6px; }

.toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; font-size: 13.5px; color: var(--muted); }
.toolbar select { font: inherit; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); }
.toolbar .spacer { margin-left: auto; }

/* ---------- Ficha de producto ---------- */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: start; }
.pdp-gallery { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; }
.pdp-gallery img { width: 100%; height: 440px; object-fit: contain; }
.pdp h1 { font-size: 27px; margin-bottom: 10px; }
.pdp-brand { font-size: 12px; text-transform: uppercase; letter-spacing: .13em; color: var(--blue); font-weight: 800; font-family: var(--font-head); }
.pdp-ids { font-size: 12.5px; color: var(--muted); margin-bottom: 20px; }
.pdp-price { font-family: var(--font-head); font-size: 34px; font-weight: 800; color: var(--ink); }
.pdp-buy { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; margin: 20px 0 24px; }
.qty-row { display: flex; align-items: center; gap: 12px; margin: 16px 0 18px; }
.qty-row label { font-size: 13.5px; font-weight: 700; font-family: var(--font-head); }
.qty-row input { width: 80px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r); font: inherit; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 13.5px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { color: var(--muted); font-weight: 600; width: 42%; background: #FAFBFC; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

/* ---------- Carrito ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 350px; gap: 30px; align-items: start; }
.cart-row { display: grid; grid-template-columns: 100px 1fr auto; gap: 18px; padding: 20px 22px; border-bottom: 1px solid var(--line); align-items: start; }
.cart-row:last-child { border-bottom: 0; }
.cart-row img { width: 100px; height: 100px; object-fit: contain; }
.cart-row .t { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.cart-row .t a { color: var(--ink); text-decoration: none; }
.cart-row .t a:hover { color: var(--blue); }
.cart-row .m { font-size: 12px; color: var(--muted); }
.cart-row input[type=number] { width: 74px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: var(--r); font: inherit; margin-top: 10px; }
.cart-row .right { text-align: right; }
.link-danger { background: none; border: 0; color: var(--red); font: inherit; font-size: 12.5px; cursor: pointer; padding: 0; text-decoration: underline; }

.summary-line { display: flex; justify-content: space-between; font-size: 14px; padding: 8px 0; }
.summary-total { display: flex; justify-content: space-between; font-family: var(--font-head); font-size: 19px; font-weight: 800; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; }

.notice { border-radius: var(--r); padding: 14px 17px; font-size: 13.5px; margin: 14px 0; }
.notice-info  { background: var(--blue-soft); border: 1px solid #C4DCF0; color: #10496F; }
.notice-warn  { background: #FDF4E4; border: 1px solid #F0D9A8; color: #7A4C07; }
.notice-error { background: #FDECEB; border: 1px solid #F3C4C1; color: #8C1A17; }

/* ---------- Newsletter ---------- */
.newsletter { background: linear-gradient(120deg, var(--deep) 0%, #0B5484 100%); color: #fff; border-radius: var(--r-lg); padding: 42px 44px; margin-top: 56px; }
.newsletter h2 { color: #fff; margin-bottom: 8px; }
.newsletter p { color: #C4DCF0; margin: 0 0 22px; max-width: 56ch; }
.news-form { display: flex; gap: 10px; max-width: 520px; flex-wrap: wrap; }
.news-form input { flex: 1 1 240px; border: 0; border-radius: 999px; padding: 13px 22px; font: inherit; }

/* ---------- Prose ---------- */
.prose { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 38px 44px; max-width: 900px; }
.prose h2 { margin-top: 34px; font-size: 20px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 7px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 16px 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 13px; text-align: left; }
.prose th { background: var(--blue-soft); }

.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; font-family: var(--font-head); }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line);
  border-radius: var(--r); font: inherit; background: #fff;
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--blue); }

/* ---------- Footer ---------- */
footer { background: var(--deep); color: #A9C6DA; font-size: 13.5px; margin-top: 56px; }
footer .wrap { padding-top: 46px; padding-bottom: 30px; }
.foot-cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 38px; }
footer h4 { color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .13em; margin-bottom: 14px; font-family: var(--font-head); }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 8px; }
footer a { color: #A9C6DA; text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }
.foot-legal { border-top: 1px solid rgba(255, 255, 255, .13); margin-top: 34px; padding-top: 20px; font-size: 12.5px; color: #7E9BB3; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .layout, .pdp, .cart-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filter-list { max-height: 210px; }
  .trustbar .wrap { grid-template-columns: 1fr; gap: 18px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .pdp-gallery img { height: 320px; }
  .hero h1 { font-size: 34px; }
}
@media (max-width: 700px) {
  .masthead .wrap { flex-wrap: wrap; gap: 14px; }
  .searchbar { order: 3; flex-basis: 100%; max-width: none; }
  .cart-link { margin-left: auto; }
  .hero { padding: 46px 0 50px; }
  .hero h1 { font-size: 29px; }
  .prose { padding: 26px 22px; }
  .newsletter { padding: 30px 24px; }
  .foot-cols { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .card-img img { height: 130px; }
}
