:root {
  --navy: #061d43;
  --blue: #0877d8;
  --cyan: #27c5e8;
  --ice: #eaf7ff;
  --ink: #10233f;
  --muted: #66758b;
  --line: #e3edf5;
  --white: #fff;
  --shadow: 0 18px 50px rgba(3, 32, 75, 0.11);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial;
  color: var(--ink);
  background: #f7fbff;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.topbar {
  background: #04142f;
  color: #d7eaff;
  text-align: center;
  padding: 9px 16px;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.topbar b {
  color: #66dcff;
}
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: 1180px;
  margin: auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 900;
  letter-spacing: -0.04em;
  font-size: 20px;
}
.brand img {
  width: 58px;
  height: 48px;
  object-fit: contain;
}
.navlinks {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.navlinks a {
  color: #52627a;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}
.navlinks a:hover {
  color: var(--blue);
}
.cartbtn,
.primary,
.secondary {
  border: 0;
  border-radius: 12px;
  padding: 12px 17px;
  font-weight: 800;
  transition: 0.2s;
}
.cartbtn {
  background: var(--navy);
  color: white;
  position: relative;
}
.cartcount {
  background: #29c7ec;
  color: #04204a;
  border-radius: 20px;
  padding: 2px 7px;
  margin-left: 5px;
  font-size: 11px;
}
.hero {
  background: radial-gradient(
    circle at 80% 20%,
    #164b85 0,
    #092b5a 35%,
    #061a3b 75%
  );
  color: white;
  overflow: hidden;
  position: relative;
}
.hero:after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border: 1px solid #ffffff17;
  border-radius: 50%;
  right: -100px;
  top: -180px;
  box-shadow:
    0 0 0 50px #ffffff08,
    0 0 0 100px #ffffff05;
}
.hero-inner {
  max-width: 1180px;
  margin: auto;
  padding: 70px 22px 76px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 1;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7ce4ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.eyebrow:before {
  content: "";
  width: 24px;
  height: 2px;
  background: #31d2f2;
}
.hero h1 {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  margin: 18px 0;
}
.hero h1 span {
  color: #57d8fa;
}
.hero p {
  color: #c4d7ef;
  line-height: 1.75;
  max-width: 520px;
  font-size: 16px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.primary {
  background: linear-gradient(135deg, #1daee8, #0874d3);
  color: white;
  box-shadow: 0 10px 24px #0877d84a;
}
.primary:hover,
.secondary:hover,
.cartbtn:hover {
  transform: translateY(-2px);
}
.secondary {
  background: #ffffff14;
  color: white;
  border: 1px solid #ffffff38;
}
.hero-visual {
  position: relative;
}
.hero-visual img {
  width: 100%;
  max-height: 390px;
  object-fit: contain;
  border-radius: 22px;
  filter: drop-shadow(0 24px 36px #0008);
}
.trustrow {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 32px;
  color: #d2e5f9;
  font-size: 12px;
}
.trustrow span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.trustrow b {
  color: #66dfff;
}
.section {
  max-width: 1180px;
  margin: auto;
  padding: 70px 22px;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.kicker {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.section h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  letter-spacing: -0.045em;
  color: var(--navy);
  margin: 8px 0;
}
.sub {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}
.tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.search {
  flex: 1;
  min-width: 210px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  padding: 12px 15px;
  outline: none;
}
.search:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #55bce9;
  box-shadow: 0 0 0 3px #0b8bda18;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter {
  border: 1px solid var(--line);
  background: white;
  color: #62728a;
  border-radius: 30px;
  padding: 10px 15px;
  font-size: 12px;
  font-weight: 800;
}
.filter.active {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}
.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.product {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: 0.25s;
  display: flex;
  flex-direction: column;
}
.product:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.product-img {
  height: 178px;
  background: linear-gradient(145deg, #edf8ff, #d9efff);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}
.product-icon {
  font-size: 62px;
  filter: drop-shadow(0 8px 12px #174d7725);
}
.product-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ffffffdb;
  color: #1264a6;
  padding: 6px 9px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 900;
}
.product-info {
  padding: 17px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-info h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 16px;
}
.product-info p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  min-height: 37px;
}
.price {
  font-size: 23px;
  font-weight: 900;
  color: var(--navy);
  margin: 14px 0 10px;
}
.price small {
  font-size: 11px;
  color: #7a8ba0;
  font-weight: 600;
}
.product-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.product-actions select {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 6px;
  background: #fff;
  color: #43536b;
  font-size: 11px;
}
.add {
  background: #e9f6ff;
  color: #0873c7;
  border: 0;
  border-radius: 9px;
  padding: 9px 12px;
  font-weight: 900;
}
.add:hover {
  background: #d4efff;
}
.features {
  background: white;
  border-block: 1px solid var(--line);
}
.featuregrid {
  max-width: 1180px;
  margin: auto;
  padding: 34px 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  display: flex;
  gap: 13px;
  align-items: center;
}
.feature-icon {
  width: 45px;
  height: 45px;
  border-radius: 13px;
  background: var(--ice);
  display: grid;
  place-items: center;
  font-size: 21px;
}
.feature strong {
  display: block;
  color: var(--navy);
  font-size: 13px;
}
.feature small {
  color: var(--muted);
  font-size: 11px;
}
.delivery {
  background: linear-gradient(120deg, #e9f7ff, #f5fbff);
}
.delivery-inner {
  max-width: 1180px;
  margin: auto;
  padding: 56px 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  align-items: center;
}
.delivery-card {
  background: white;
  border: 1px solid #dcecf8;
  border-radius: 20px;
  padding: 25px;
  box-shadow: var(--shadow);
}
.delivery-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.delivery-row:last-child {
  border: 0;
}
.free {
  color: #07885d;
  font-weight: 900;
}
.fee {
  color: #0874d3;
  font-weight: 900;
}
.contact {
  background: var(--navy);
  color: white;
}
.contact-inner {
  max-width: 1180px;
  margin: auto;
  padding: 55px 22px;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
}
.contact h2 {
  color: white;
  margin: 7px 0;
}
.contact p {
  color: #c1d3e9;
  font-size: 13px;
}
.contact .primary {
  white-space: nowrap;
}
.footer {
  background: #03132c;
  color: #a8bdd6;
  padding: 25px 22px;
  text-align: center;
  font-size: 11px;
}
.footer img {
  width: 90px;
  vertical-align: middle;
  margin-right: 12px;
}
.overlay {
  position: fixed;
  inset: 0;
  background: #06172dcc;
  z-index: 30;
  display: none;
  justify-content: flex-end;
}
.overlay.open {
  display: flex;
}
.drawer {
  width: min(510px, 100%);
  height: 100%;
  background: #f8fbff;
  overflow: auto;
  padding: 22px;
  box-shadow: -20px 0 60px #0003;
}
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
}
.drawer-head h2 {
  margin: 0;
  color: var(--navy);
}
.close {
  border: 0;
  background: #eaf2f8;
  border-radius: 10px;
  padding: 9px 12px;
  font-weight: 900;
}
.cartitems {
  padding: 15px 0;
}
.cartitem {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.cartitem strong {
  font-size: 13px;
  color: var(--navy);
}
.cartitem small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}
.qty {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qty button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 7px;
  width: 27px;
  height: 27px;
}
.remove {
  border: 0;
  background: none;
  color: #cf5660;
  font-size: 11px;
  margin-top: 6px;
}
.totalbox {
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 16px;
  margin: 15px 0;
}
.totalrow {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
}
.totalrow.grand {
  border-top: 1px solid var(--line);
  margin-top: 7px;
  padding-top: 13px;
  font-size: 18px;
  font-weight: 900;
  color: var(--navy);
}
.field {
  display: grid;
  gap: 6px;
  margin: 12px 0;
}
.field label {
  font-size: 11px;
  font-weight: 800;
  color: #53647b;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  padding: 11px 12px;
  outline: none;
}
.field textarea {
  min-height: 65px;
  resize: vertical;
}
.hint {
  font-size: 10px;
  color: #77869a;
  line-height: 1.5;
}
.full {
  width: 100%;
  margin-top: 9px;
}
.empty {
  text-align: center;
  color: var(--muted);
  padding: 35px 10px;
}
.empty b {
  display: block;
  color: var(--navy);
  margin-bottom: 7px;
}
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #06254c;
  color: white;
  padding: 12px 18px;
  border-radius: 12px;
  z-index: 50;
  opacity: 0;
  transition: 0.25s;
  pointer-events: none;
  font-size: 12px;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (max-width: 900px) {
  .products {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-inner {
    grid-template-columns: 1fr 0.8fr;
    gap: 15px;
  }
  .navlinks {
    gap: 12px;
  }
  .featuregrid {
    grid-template-columns: 1fr 1fr;
  }
  .delivery-inner {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .nav {
    padding: 9px 15px;
    gap: 10px;
  }
  .brand {
    font-size: 17px;
  }
  .brand img {
    width: 45px;
    height: 40px;
  }
  .navlinks {
    display: none;
  }
  .cartbtn {
    margin-left: auto;
    padding: 10px 12px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 48px 20px 48px;
  }
  .hero-visual {
    max-width: 420px;
    margin: auto;
  }
  .hero-visual img {
    max-height: 250px;
  }
  .hero h1 {
    font-size: 43px;
  }
  .section {
    padding: 52px 16px;
  }
  .section-head {
    display: block;
  }
  .products {
    gap: 10px;
  }
  .product-img {
    height: 135px;
  }
  .product-info {
    padding: 12px;
  }
  .product-info h3 {
    font-size: 14px;
  }
  .product-info p {
    font-size: 11px;
  }
  .price {
    font-size: 19px;
  }
  .product-actions {
    flex-direction: column;
  }
  .product-actions select,
  .add {
    width: 100%;
    padding: 9px;
  }
  .featuregrid {
    grid-template-columns: 1fr;
    padding: 25px 18px;
  }
  .contact-inner {
    display: block;
    padding: 42px 20px;
  }
  .contact .primary {
    margin-top: 10px;
  }
  .topbar {
    font-size: 10px;
  }
  .filters {
    width: 100%;
  }
  .filter {
    padding: 8px 11px;
  }
}
@media print {
  body * {
    visibility: hidden !important;
  }
  #deliveryNote,
  #deliveryNote * {
    visibility: visible !important;
  }
  #deliveryNote {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    padding: 24px;
    background: white !important;
    color: #111 !important;
    display: block !important;
  }
  .no-print {
    display: none !important;
  }
}

/* Selector de ubicación */
.location-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.location-search input {
  min-width: 0;
}
.location-search button {
  border: 0;
  border-radius: 10px;
  background: #0877d8;
  color: #fff;
  padding: 0 15px;
  font-weight: 800;
}
.map-wrap {
  height: 260px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #eaf3f8;
  position: relative;
}
.map-help {
  font-size: 10px;
  color: #718198;
  line-height: 1.5;
}
.leaflet-container {
  font: inherit;
  z-index: 1;
}
.selected-address {
  font-size: 11px;
  color: #08734f;
  background: #e9f8f1;
  border-radius: 9px;
  padding: 9px 11px;
  display: none;
}
.auth-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: #04142fbd;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.auth-backdrop.open {
  display: flex;
}
.auth-card {
  width: min(430px, 100%);
  background: white;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 25px 80px #0005;
  position: relative;
}
.auth-card h2 {
  color: var(--navy);
  margin: 0 0 8px;
}
.auth-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.auth-actions {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}
.auth-actions button {
  width: 100%;
}
.auth-close {
  position: absolute;
  right: 15px;
  top: 15px;
  border: 0;
  background: #edf4f9;
  border-radius: 9px;
  padding: 8px 11px;
}
.auth-form {
  display: grid;
  gap: 10px;
  margin-top: 15px;
}
.auth-form input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.auth-form .primary {
  width: 100%;
}
.accountbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.accountbar button {
  border: 0;
  background: #eaf6ff;
  color: #075c9f;
  border-radius: 10px;
  padding: 10px;
  font-weight: 800;
  font-size: 12px;
}
