
:root {
  --blue: #123e72;
  --blue-dark: #09294d;
  --orange: #ed8b32;
  --white: #ffffff;
  --light: #f4f6f9;
  --text: #252c35;
  --muted: #707985;
  --border: #e4e8ed;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background: var(--white);
}

a { text-decoration: none; color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.topbar {
  background: var(--blue-dark);
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
}

.topbar span {
  color: #ffb15d;
  margin-left: 22px;
}
.navbar {
  width: 100%;
  height: 130px;
  background: #0557a8; /* Mismo azul exacto del fondo de tu logo */
  padding: 0 50px 0 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.brand {
  height: 100%;
  display: flex;
  align-items: center;
}

.brand img {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #ffffff;
}
.nav-links a {
  color: #ffffff;
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
  transition: 0.2s;
}

.nav-links a:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.cart-button {
  border: 2px solid #ffffff;
  color: #ffffff;
  background: transparent;
  border-radius: 7px;
  padding: 11px 16px;
  font-weight: 700;
  font-size: 12px;
  transition: 0.2s;
}

.cart-button:hover {
  background: #ffffff;
  color: #0557a8;
}

#cartCount {
  background: var(--orange);
  color: white;
  border-radius: 50%;
  padding: 3px 7px;
  margin-left: 5px;
}

.hero {
  min-height: 480px;
  background:
    linear-gradient(90deg, rgba(5,29,55,.88), rgba(5,29,55,.15)),
    url("img/portada.jpg") center/cover,
    var(--blue);
  display: flex;
  align-items: center;
  padding: 60px max(calc((100% - 1150px)/2), 7%);
  color: white;
}

.hero-content { max-width: 570px; }

.eyebrow {
  font-size: 11px;
  color: var(--orange);
  font-weight: 800;
  letter-spacing: 2px;
}

.hero h1 {
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.12;
  margin: 18px 0;
}

.hero p {
  line-height: 1.8;
  font-size: 15px;
  margin-bottom: 28px;
}

.btn-primary {
  display: inline-block;
  border: 0;
  background: var(--orange);
  color: white;
  border-radius: 5px;
  padding: 15px 23px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .5px;
  transition: .2s;
}

.btn-primary:hover {
  background: #d8761c;
  transform: translateY(-2px);
}

.benefits {
  max-width: 1200px;
  margin: 35px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 15px;
}

.benefits div {
  background: var(--light);
  border-radius: 8px;
  padding: 20px 12px;
  text-align: center;
  font-size: 21px;
}

.benefits strong, .benefits small {
  display: block;
  margin-top: 9px;
}

.benefits strong { font-size: 12px; color: var(--blue); }
.benefits small { font-size: 10px; color: var(--muted); }

.categories, .catalog {
  max-width: 1200px;
  padding: 45px 20px;
  margin: auto;
}

.categories h2, .section-heading h2 {
  font-size: 27px;
  color: var(--blue-dark);
  margin: 10px 0 25px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 15px;
}

.category-grid button {
  border: 1px solid var(--border);
  background: white;
  color: var(--blue);
  padding: 25px 10px;
  border-radius: 7px;
  font-weight: 800;
  transition: .2s;
}

.category-grid button:hover {
  background: var(--blue);
  color: white;
}

.catalog { background: #fff; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 22px;
}

#productTotal { font-size: 12px; color: var(--muted); }

.catalog-tools {
  display: flex;
  gap: 12px;
  margin-bottom: 25px;
}

.catalog-tools input, .catalog-tools select {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 13px;
  background: white;
  outline-color: var(--blue);
}

.catalog-tools input { flex: 1; min-width: 0; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 20px;
}

.product-card {
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
  background: white;
  transition: .25s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,.09);
}

.product-image {
  height: 210px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image-missing {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 20px;
}

.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category {
  color: var(--orange);
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 800;
}

.product-info h3 {
  color: var(--blue-dark);
  font-size: 13px;
  line-height: 1.5;
  margin: 9px 0;
}

.product-size {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 12px;
}

.product-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--blue);
  margin-top: auto;
  margin-bottom: 13px;
}

.add-cart {
  border: none;
  background: var(--blue);
  color: white;
  padding: 12px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
}

.add-cart:hover { background: var(--orange); }

.promo {
  background: var(--blue-dark);
  color: white;
  padding: 70px 8%;
  text-align: center;
}

.promo h2 { font-size: 32px; margin: 15px 0; }
.promo p { margin-bottom: 25px; color: #d6deea; }

footer {
  background: #071c34;
  color: white;
  padding: 45px 7% 15px;
}

.footer-content {
  max-width: 1150px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 30px;
}

.footer-logo {
  width: 150px;
  max-height: 75px;
  object-fit: contain;
}

.footer-content h3 { margin-bottom: 15px; font-size: 14px; }
.footer-content p, .footer-content a {
  display: block;
  font-size: 12px;
  color: #d3dbe6;
  margin: 10px 0;
}

.copyright {
  text-align: center;
  border-top: 1px solid #29415d;
  margin-top: 35px;
  padding-top: 18px;
  color: #9aabba;
  font-size: 10px;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 20;
  display: none;
  justify-content: flex-end;
}

.cart-overlay.active { display: flex; }

.cart-panel {
  width: min(430px,100%);
  height: 100%;
  background: white;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
}

.cart-header button {
  background: none;
  border: 0;
  font-size: 22px;
}

.cart-items { flex: 1; overflow-y: auto; padding: 15px 0; }

.cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding: 15px 0;
  gap: 10px;
}

.cart-row strong { font-size: 12px; }
.cart-row small { display: block; margin-top: 5px; color: var(--muted); }

.cart-row button {
  border: 1px solid var(--border);
  background: white;
  padding: 5px 9px;
  border-radius: 4px;
}

.cart-bottom { border-top: 1px solid var(--border); padding-top: 20px; }
.cart-total { font-size: 16px; margin-bottom: 18px; }
.cart-total strong { color: var(--blue); }
.full { width: 100%; text-align: center; }

@media(max-width:900px) {
  .product-grid { grid-template-columns: repeat(3,1fr); }
  .benefits { grid-template-columns: repeat(2,1fr); }
  .nav-links { gap: 13px; }
}

@media(max-width:600px) {
  .topbar { font-size: 9px; line-height: 1.8; }
  .topbar span { display: block; margin: 0; }
  .navbar { flex-wrap: wrap; justify-content: space-between; gap: 10px; }
  .brand img { width: 125px; }
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    font-size: 10px;
  }
  .cart-button { font-size: 10px; }
  .hero { min-height: 400px; }
  .hero h1 { font-size: 39px; }
  .benefits { gap: 8px; padding: 0 12px; }
  .benefits div { padding: 15px 5px; }
  .benefits small { font-size: 9px; }
  .category-grid { grid-template-columns: repeat(2,1fr); }
  .categories h2, .section-heading h2 { font-size: 21px; }
  .catalog-tools { flex-direction: column; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .product-image { height: 145px; }
  .product-info { padding: 11px; }
  .product-info h3 { font-size: 11px; }
  .product-price { font-size: 16px; }
  .add-cart { font-size: 9px; padding: 10px 5px; }
  .promo h2 { font-size: 24px; }
  .footer-content { grid-template-columns: 1fr; gap: 20px; }
}
