:root {
  --cyan: #1f9fc2;
  --cyan-dark: #1188aa;
  --blue: #063f9c;
  --blue-soft: #3a83f4;
  --lime: #9cd02c;
  --ink: #0b1220;
  --text: #3f4b5f;
  --muted: #7b8798;
  --line: #dfe6ef;
  --surface: #f4f7fa;
  --white: #ffffff;
  --danger: #e74c3c;
  --shadow: 0 16px 40px rgba(15, 33, 52, 0.12);
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--white); font-size: 16px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

svg {
  width: 1.35em;
  height: 1.35em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ══════════════ BANNER PROVISIONAL ══════════════ */
.provisional-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: #fff3cd;
  border-bottom: 2px solid #f0c040;
  color: #7a5800;
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.provisional-banner svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  stroke: #c48c00;
}
.provisional-banner span { flex: 1; line-height: 1.4; }
.provisional-banner strong { color: #5c4000; }
.provisional-banner button {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,0.08);
  color: #7a5800;
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
}
.provisional-banner button:hover { background: rgba(0,0,0,0.16); }

/* ══════════════ SECCIÓN PROVISIONAL EN INICIO ══════════════ */
.provisional-section {
  background: linear-gradient(135deg, #e8f4fd 0%, #f0f8ff 100%);
  border-top: 3px solid var(--cyan);
  border-bottom: 1px solid var(--line);
  padding: 28px 5vw;
}
.provisional-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.provisional-icon-wrap {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--cyan);
  display: grid;
  place-items: center;
}
.provisional-icon-wrap svg {
  width: 28px;
  height: 28px;
  stroke: var(--white);
}
.provisional-text { flex: 1; }
.provisional-text h3 {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 18px;
  font-weight: 900;
}
.provisional-text p {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 700;
}
.provisional-text strong { color: var(--blue); }

/* ══════════════ HEADER ══════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--cyan);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.header-main {
  max-width: 1360px;
  min-height: 116px;
  margin: 0 auto;
  padding: 10px 28px 8px;
  display: grid;
  grid-template-columns: 160px minmax(220px, 620px) auto;
  align-items: center;
  gap: 28px;
}
.brand { width: 108px; justify-self: center; }
.brand img {
  display: block;
  width: 108px;
  height: 98px;
  object-fit: contain;
  background: var(--white);
}

.search { position: relative; width: 100%; z-index: 90; }
.search input {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 25px;
  padding: 0 58px 0 26px;
  color: var(--ink);
  background: rgba(255,255,255,0.96);
  outline: none;
  font-weight: 700;
}
.search input::placeholder { color: #7d8898; }
.search button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border: 0; background: transparent;
  display: grid; place-items: center;
}
.search-suggestions {
  position: absolute;
  left: 12px; right: 12px;
  top: calc(100% + 8px);
  z-index: 120;
  display: none;
  min-height: 0;
  max-height: 360px;
  overflow: auto;
  border: 1px solid #cfd9e6;
  border-radius: 14px;
  background: var(--white);
  color: var(--text);
  box-shadow: 0 24px 44px rgba(15, 33, 52, 0.18);
}
.search-suggestions.is-open { display: block; }
.suggestion-button {
  width: 100%;
  min-height: 58px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  color: var(--text);
  text-align: left;
}
.suggestion-button:last-child { border-bottom: 0; }
.suggestion-button:hover, .suggestion-button:focus-visible { background: var(--surface); }
.suggestion-button img, .suggestion-icon {
  width: 48px; height: 42px;
  display: grid; place-items: center;
  object-fit: contain;
  border-radius: 4px;
  background: #eef5fb;
  color: var(--blue);
  font-weight: 900;
}
.suggestion-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.suggestion-copy strong {
  display: block;
  color: var(--blue);
  font-size: 14px;
  line-height: 1.2;
}
.suggestion-copy small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  color: var(--white);
}
.icon-action {
  position: relative;
  min-width: 96px;
  border: 0; background: transparent;
  color: var(--white);
  text-transform: uppercase;
  font-weight: 900;
  line-height: 1.35;
  display: grid; place-items: center; gap: 3px;
}
.icon-action svg { width: 34px; height: 34px; stroke-width: 2.4; }
.icon-action span { font-size: 15px; }
.count {
  position: absolute;
  top: -6px; right: 0;
  min-width: 22px; height: 22px;
  padding: 0 6px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: #3c80ff;
  color: var(--white);
  font-size: 12px;
}
.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 4px;
  background: transparent;
  color: var(--white);
}
.menu-toggle span {
  display: block;
  width: 22px; height: 2px;
  margin: 3px auto;
  background: var(--white);
}

.main-nav {
  max-width: 1030px;
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: var(--white);
  text-transform: uppercase;
  font-weight: 900;
}
.main-nav a, .nav-menu-button, .mobile-nav-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--white);
  font-weight: 900;
  text-transform: uppercase;
}
.main-nav a:hover, .nav-menu-button:hover, .mobile-nav-action:hover,
.main-nav a.is-active, .main-nav a:focus-visible,
.nav-menu-button:focus-visible, .mobile-nav-action:focus-visible {
  border-bottom-color: rgba(255,255,255,0.86);
}
.mobile-nav-action { display: none; }
.nav-menu-button svg { width: 15px; height: 15px; }

.mega-menu {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%) translateY(-10px);
  width: min(92vw, 1260px);
  padding: 28px 8vw;
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 40px;
  background: #1288ab;
  color: var(--white);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: 0.2s ease;
}
.mega-menu.is-open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega-heading {
  margin: 0 0 10px;
  display: block;
  color: var(--white);
  font-size: 18px; font-weight: 900;
  text-decoration: underline;
}
.mega-menu a {
  display: block;
  margin: 8px 0;
  color: #d7f1f9;
  font-size: 18px; font-weight: 800; line-height: 1.45;
}
.mega-menu a:not(.mega-heading)::before { content: "• "; color: #a8d6e6; }
.mega-menu a:hover { color: var(--white); }

/* ══════════════ VISTAS ══════════════ */
.view { display: none; }
.view.is-active { display: block; }

/* ══════════════ HERO ══════════════ */
.hero {
  position: relative;
  min-height: clamp(430px, 45vw, 650px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #f8fbfe;
}
.hero-image {
  position: absolute;
  inset: 36px 4vw;
  width: calc(100% - 8vw);
  height: calc(100% - 72px);
  object-fit: cover; object-position: center;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.18), rgba(245,249,252,0.9) 48%, rgba(255,255,255,0.22));
}
.hero-copy {
  position: relative; z-index: 1;
  justify-self: end;
  width: min(660px, 86vw);
  margin-right: min(9vw, 160px);
  padding: 36px;
  color: var(--blue);
  text-align: center;
  background: rgba(205,218,228,0.58);
  backdrop-filter: blur(2px);
}
.hero-copy p { margin: 0 0 8px; color: #0faed3; font-size: clamp(22px,3.1vw,42px); font-family: Georgia, serif; }
.hero-copy h1 { margin: 0; color: var(--white); text-shadow: 0 2px 12px rgba(0,38,91,0.22); font-size: clamp(34px,4.7vw,66px); font-family: Georgia, serif; font-weight: 700; line-height: 1.05; }
.hero-copy span { display: block; margin-top: 12px; font-size: clamp(20px,2.8vw,34px); color: var(--blue); font-family: Georgia, serif; }
.hero-actions, .detail-actions, .service-actions, .card-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
}
.hero-actions { justify-content: center; margin-top: 24px; }

/* ══════════════ BOTONES ══════════════ */
.primary-link, .secondary-link, .primary-button, .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 4px;
  font-weight: 900;
  text-transform: uppercase;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.primary-link, .primary-button { border: 0; background: var(--blue-soft); color: var(--white); }
.secondary-link, .secondary-button { border: 1px solid var(--line); background: var(--white); color: var(--blue); }
.primary-link:hover, .primary-button:hover,
.secondary-link:hover, .secondary-button:hover { transform: translateY(-1px); }
.primary-link:hover, .primary-button:hover { background: var(--blue); }
.secondary-link:hover, .secondary-button:hover { border-color: var(--blue-soft); color: var(--blue-soft); }

/* ══════════════ SECCIÓN ══════════════ */
.section { width: min(1620px, 90vw); margin: 0 auto; padding: 58px 0; }
.section-heading h2 { margin: 0; color: #05080f; font-size: clamp(24px,3vw,30px); font-weight: 900; }
.section-line { position: relative; height: 2px; margin-top: 18px; background: var(--line); }
.section-line::before { content: ""; position: absolute; left: 0; top: 0; width: 125px; height: 4px; background: #6563ff; }

/* ══════════════ GRIDS ══════════════ */
.category-grid {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 20px;
}
.category-card {
  display: grid; grid-template-rows: 180px auto auto; gap: 12px;
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  background: var(--white);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.category-card:hover, .product-card:hover, .service-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow);
}
.category-card img { width: 100%; height: 180px; object-fit: cover; }
.category-card strong { padding: 0 18px; color: var(--blue); font-size: 21px; font-weight: 900; }
.category-card span { padding: 0 18px 20px; color: var(--text); font-weight: 800; line-height: 1.45; }

.home-cta {
  width: min(1620px, 90vw); margin: 0 auto 58px;
  padding: 34px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--surface);
}
.home-cta h2 { margin: 0 0 8px; color: var(--ink); font-size: 28px; }
.home-cta p { max-width: 780px; margin: 0; color: var(--text); font-size: 19px; font-weight: 800; line-height: 1.5; }

.page-title {
  min-height: 92px; margin-bottom: 28px;
  padding: 0 min(5vw, 95px);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface);
}
.page-title h2 { margin: 0; color: #05080f; font-size: 31px; font-weight: 900; }
.page-title span { color: var(--text); font-size: 18px; font-weight: 800; }

.catalog-tools { margin-bottom: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-tabs button, .catalog-tools select {
  min-height: 40px; border: 1px solid var(--line); border-radius: 4px;
  background: var(--white); color: var(--text); font-weight: 800;
}
.filter-tabs button { padding: 0 15px; }
.filter-tabs button.is-active, .filter-tabs button:hover {
  border-color: var(--blue-soft); background: var(--blue-soft); color: var(--white);
}
.catalog-tools select { padding: 0 12px; }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(210px, 1fr)); gap: 20px; }
.product-card {
  position: relative;
  display: grid; grid-template-rows: 240px auto;
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  background: var(--white);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.product-media {
  position: relative; display: block;
  background: linear-gradient(180deg, #ffffff, #f4f8fb);
  overflow: hidden;
}
.product-media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.badge {
  position: absolute; top: 18px; left: 18px; z-index: 1;
  min-width: 44px; padding: 4px 10px;
  border-radius: 4px; background: var(--blue-soft); color: var(--white);
  text-align: center; font-weight: 900;
}
.product-body { padding: 18px 20px 20px; display: grid; gap: 10px; }
.product-category { margin: 0; color: var(--muted); font-size: 13px; font-weight: 900; text-transform: uppercase; }
.product-title { min-height: 48px; margin: 0; color: var(--blue-soft); font-size: 18px; font-weight: 900; line-height: 1.25; text-transform: uppercase; }
.price-now { color: #0277b6; font-size: 21px; font-weight: 900; }
.price-before { color: #8a93a1; font-size: 18px; font-weight: 900; text-decoration: line-through; }
.add-cart {
  width: max-content; padding: 0;
  border: 0; border-bottom: 1px solid var(--ink);
  background: transparent; color: #05080f; font-weight: 900; text-transform: uppercase;
}
.add-cart:hover { color: var(--blue-soft); border-bottom-color: var(--blue-soft); }
.wish-button {
  width: 38px; height: 38px;
  border: 1px solid var(--line); border-radius: 4px;
  background: rgba(255,255,255,0.92); color: var(--blue);
  display: grid; place-items: center;
}
.wish-button.is-active { background: #eef4ff; color: var(--danger); }
.compact-card { grid-template-rows: 210px auto; }

/* ══════════════ SERVICIOS ══════════════ */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  display: grid; grid-template-rows: 260px auto;
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  background: var(--white);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.service-card img { width: 100%; height: 260px; object-fit: cover; }
.service-card-body { padding: 22px; display: grid; gap: 12px; }
.service-card-body p { margin: 0; color: var(--muted); font-size: 13px; font-weight: 900; text-transform: uppercase; }
.service-card-body h3 { margin: 0; color: var(--blue); font-size: 22px; }
.service-card-body span, .lead { color: var(--text); font-size: 18px; font-weight: 800; line-height: 1.5; }

/* ══════════════ GALERÍA ══════════════ */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item {
  position: relative; min-height: 230px;
  border: 0; border-radius: 8px; padding: 0;
  overflow: hidden; background: #eef3f8;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.72));
  color: var(--white); text-align: left; font-weight: 900;
}

/* ══════════════ DETALLE ══════════════ */
.detail-layout { display: grid; grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr); gap: 48px; align-items: start; }
.detail-image { border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.detail-image img { display: block; width: 100%; max-height: 620px; object-fit: contain; padding: 24px; }
.detail-info h1 { margin: 6px 0 18px; color: var(--blue); font-size: clamp(28px,4vw,46px); line-height: 1.1; }
.detail-info p { font-size: 19px; font-weight: 800; line-height: 1.55; }
.detail-info ul { margin: 20px 0; padding-left: 20px; color: var(--text); font-size: 18px; font-weight: 800; line-height: 1.7; }

/* ══════════════ SOBRE / CONTACTO ══════════════ */
.about-content, .contact-layout { width: min(1680px, 92vw); margin: 0 auto 64px; background: var(--surface); }
.about-content { padding: 28px 24px; color: var(--text); font-size: 21px; font-weight: 800; line-height: 1.62; }
.about-content h3 { color: #298ed2; }
.about-content li { margin: 18px 0; }
.contact-layout { display: grid; grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.1fr); gap: 40px; padding: 34px 50px 48px; }
.contact-info { text-align: center; font-size: 21px; font-weight: 800; line-height: 1.65; }
.contact-info h3, .contact-info strong { color: #298ed2; }
.contact-info a { color: var(--blue); }
.contact-buttons { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.contact-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.contact-form label, .modal-card label { display: grid; gap: 7px; color: var(--text); font-weight: 800; }
.wide { grid-column: 1 / -1; }
.contact-form input, .contact-form select, .contact-form textarea, .modal-card input {
  width: 100%; border: 1px solid var(--line); border-radius: 4px;
  padding: 12px 13px; background: var(--white); color: var(--ink); outline-color: var(--cyan);
}
.contact-form textarea { resize: vertical; }
.empty-state { grid-column: 1/-1; margin: 0; padding: 42px; color: var(--muted); text-align: center; font-size: 19px; font-weight: 800; background: var(--surface); }

/* ══════════════ FOOTER ══════════════ */
.site-footer { background: var(--white); border-top: 1px solid var(--line); }
.footer-grid { width: min(1620px, 90vw); margin: 0 auto; padding: 70px 0; display: grid; grid-template-columns: 1.7fr 0.8fr 0.8fr 1.3fr; gap: 62px; }
.footer-grid h3 { margin: 0 0 28px; color: #05080f; font-size: 20px; font-weight: 900; text-transform: uppercase; }
.footer-grid p, .footer-grid a { color: var(--blue); font-size: 21px; font-weight: 900; line-height: 1.55; }
.footer-grid a { display: block; margin: 8px 0; }
.footer-contact { display: grid; justify-items: start; gap: 10px; }
.footer-logo { width: 96px; height: 92px; object-fit: contain; }
.payment-row { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 16px; }
.payment-row span { min-width: 92px; min-height: 36px; padding: 6px 10px; display: grid; place-items: center; border-radius: 4px; background: var(--blue); color: var(--white); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.payment-row span:nth-child(2) { background: var(--white); color: var(--blue); border: 1px solid var(--line); }
.payment-row span:nth-child(3) { background: #f12735; }
.copyright { padding: 16px min(5vw, 100px); border-top: 1px solid var(--line); color: var(--blue); font-weight: 900; }

/* ══════════════ DRAWERS / MODALS BASE ══════════════ */
.drawer, .modal {
  position: fixed; inset: 0; z-index: 60;
  display: none;
  background: rgba(5,8,15,0.54);
  backdrop-filter: blur(2px);
}
.drawer.is-open, .modal.is-open { display: block; }

/* ══════════════ DRAWER PANEL ══════════════ */
.drawer-panel {
  width: min(440px, 96vw);
  height: 100%;
  margin-left: auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--white);
  box-shadow: -8px 0 40px rgba(6,15,30,0.18);
  animation: slideIn 0.28s cubic-bezier(.32,.72,0,1) both;
}
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* CABECERA DRAWER */
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  min-height: 76px;
  background: var(--ink);
  color: var(--white);
}
.drawer-head-info {
  display: flex;
  align-items: center;
  gap: 14px;
}
.drawer-head-icon-wrap {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.drawer-head-icon-wrap svg { width: 22px; height: 22px; stroke: var(--white); }
.wish-icon-wrap { background: rgba(231,76,60,0.25); }
.wish-icon-wrap svg { stroke: #ff8080; }
.drawer-head h2 { margin: 0; font-size: 18px; font-weight: 900; color: var(--white); }
.drawer-subtitle { display: block; margin-top: 2px; font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.55); }

/* BOTÓN CERRAR DRAWER */
.drawer-close-btn {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: background 0.15s;
}
.drawer-close-btn:hover { background: rgba(255,255,255,0.18); }
.drawer-close-btn svg { width: 16px; height: 16px; stroke-width: 2.5; }

/* CUERPO DRAWER */
.drawer-body { overflow-y: auto; padding: 12px 0; }

/* ESTADO VACÍO */
.drawer-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 28px;
  gap: 12px;
  color: var(--muted);
  text-align: center;
}
.drawer-empty svg { width: 48px; height: 48px; stroke: var(--line); }
.drawer-empty p { margin: 0; font-size: 17px; font-weight: 800; color: var(--text); }
.drawer-empty span { font-size: 14px; font-weight: 700; }

/* ══════════════ ITEM DE DRAWER (carrito y wishlist) ══════════════ */
.ditem {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}
.ditem:last-child { border-bottom: 0; }
.ditem:hover { background: #fafcff; }

.ditem-img {
  display: block;
  width: 80px; height: 72px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.ditem-img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }

.ditem-body { display: grid; gap: 4px; min-width: 0; }
.ditem-cat { margin: 0; font-size: 11px; font-weight: 900; text-transform: uppercase; color: var(--muted); letter-spacing: 0.03em; }
.ditem-name { margin: 0; font-size: 14px; font-weight: 800; color: var(--blue); line-height: 1.35; }
.ditem-name a { color: inherit; }
.ditem-name a:hover { color: var(--blue-soft); }
.ditem-price { font-size: 13px; font-weight: 900; color: var(--muted); }

/* CONTROLES CARRITO */
.ditem-controls { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ditem-qty {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.ditem-qty button {
  width: 30px; height: 30px;
  border: 0; background: var(--surface);
  color: var(--blue); font-size: 16px; font-weight: 900;
  transition: background 0.12s;
}
.ditem-qty button:hover { background: var(--line); }
.ditem-qty strong {
  min-width: 32px; height: 30px;
  display: grid; place-items: center;
  background: var(--white);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-size: 14px; font-weight: 900;
  color: var(--ink);
}

/* CONTROLES WISHLIST */
.ditem-add-cart {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border: 1px solid var(--blue-soft);
  border-radius: 6px;
  background: transparent;
  color: var(--blue-soft);
  font-size: 12px; font-weight: 900; text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.ditem-add-cart:hover { background: var(--blue-soft); color: var(--white); }
.ditem-add-cart.is-in-cart { background: var(--blue-soft); color: var(--white); }
.ditem-add-cart svg { width: 14px; height: 14px; }

/* BOTÓN ELIMINAR (compartido) */
.ditem-remove {
  width: 30px; height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  display: grid; place-items: center;
  transition: border-color 0.15s, color 0.15s;
}
.ditem-remove:hover { border-color: var(--danger); color: var(--danger); }
.ditem-remove svg { width: 14px; height: 14px; }

/* FOOTER DRAWER */
.drawer-footer {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
}
.drawer-quote-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fffbe6;
  border: 1px solid #f0c040;
}
.drawer-quote-note svg { flex-shrink: 0; width: 16px; height: 16px; stroke: #c48c00; margin-top: 1px; }
.drawer-quote-note span { font-size: 12px; font-weight: 700; color: #7a5800; line-height: 1.45; }

/* CTA BUTTONS DRAWER */
.drawer-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  background: #25d366;
  color: var(--white);
  font-size: 15px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: background 0.15s, transform 0.12s;
}
.drawer-cta-btn:hover { background: #1db954; transform: translateY(-1px); }
.drawer-cta-btn svg { width: 20px; height: 20px; }

.drawer-cta-wish {
  background: var(--blue-soft);
}
.drawer-cta-wish:hover { background: var(--blue); }

.drawer-cta-danger { background: var(--danger); }
.drawer-cta-danger:hover { background: #c0392b; }

/* ══════════════ MODAL AUTH ══════════════ */
.modal { place-items: center; }
.modal.is-open { display: grid; }

.auth-modal {
  width: min(420px, 94vw);
  border-radius: 14px;
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(6,15,30,0.28);
  display: grid;
  gap: 0;
  padding-bottom: 0;
  animation: popIn 0.22s cubic-bezier(.32,.72,0,1) both;
}
@keyframes popIn {
  from { transform: scale(0.92) translateY(12px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}

/* Cabecera modal auth */
.auth-modal-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 32px 24px 20px;
  background: linear-gradient(135deg, var(--ink) 0%, #1a2a4a 100%);
  text-align: center;
}
.auth-modal-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.2);
  display: grid; place-items: center;
  margin-bottom: 6px;
}
.auth-modal-avatar svg { width: 28px; height: 28px; stroke: var(--white); }
.auth-modal-titles h2 { margin: 0; color: var(--white); font-size: 22px; font-weight: 900; }
.auth-subtitle { margin: 4px 0 0; font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.55); }

.auth-close-pos {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
}

/* Tabs auth */
.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.auth-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 50px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 14px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: color 0.15s, border-color 0.15s;
}
.auth-tabs button svg { width: 16px; height: 16px; }
.auth-tabs button.is-active { color: var(--blue); border-bottom-color: var(--blue-soft); background: var(--white); }
.auth-tabs button:not(.is-active):hover { color: var(--text); background: #eef2f7; }

/* Campos */
.auth-fields { padding: 20px 24px 0; display: grid; gap: 16px; }
.field-label { display: block; font-size: 13px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.field-wrap svg {
  position: absolute;
  left: 13px;
  width: 17px; height: 17px;
  stroke: var(--muted);
  pointer-events: none;
}
.field-wrap input {
  width: 100%;
  height: 46px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 0 14px 0 40px;
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s;
}
.field-wrap input:focus { border-color: var(--blue-soft); }
.register-only,
.auth-modal:not(.is-register) .register-only {
  display: none !important;
}
.auth-modal.is-register .register-only {
  display: grid !important;
}

/* Acciones auth */
.auth-actions { padding: 20px 24px 24px; display: grid; gap: 10px; }
.auth-note { margin: 0; font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; line-height: 1.45; }

/* Vista usuario logueado */
.auth-user-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 24px 8px;
  gap: 12px;
}
.auth-user-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--line);
  display: grid; place-items: center;
}
.auth-user-avatar svg { width: 34px; height: 34px; stroke: var(--blue); }
.auth-welcome {
  margin: 0;
  font-size: 18px; font-weight: 900; color: var(--ink);
  text-align: center;
}

/* ══════════════ MODAL IMAGEN ══════════════ */
.image-modal-card {
  position: relative;
  width: min(980px, 92vw);
  max-height: 88vh;
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
}
.image-modal-card img { display: block; width: 100%; max-height: 88vh; object-fit: contain; }
.image-close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 38px; height: 38px;
  border: 0; border-radius: 50%;
  background: var(--white);
  color: var(--ink); font-size: 32px; line-height: 1;
}

/* ══════════════ WHATSAPP + TOAST ══════════════ */
.whatsapp {
  position: fixed; right: 28px; bottom: 28px; z-index: 50;
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 900;
}
.whatsapp svg { width: 60px; height: 60px; padding: 12px; border-radius: 50%; background: #39c34a; color: var(--white); fill: none; stroke-width: 1.8; }
.whatsapp span { padding: 12px 16px; border-radius: 4px; background: var(--white); box-shadow: 0 5px 16px rgba(0,0,0,0.16); }

.toast {
  position: fixed; left: 50%; bottom: 30px; z-index: 80;
  transform: translateX(-50%) translateY(120px);
  max-width: min(460px, 90vw);
  padding: 13px 20px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white); font-weight: 800;
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
  transition: transform 0.22s cubic-bezier(.32,.72,0,1);
}
.toast.is-visible { transform: translateX(-50%) translateY(0); }

/* ══════════════ RESPONSIVE ══════════════ */
@media (max-width: 1180px) {
  .header-main { grid-template-columns: 110px 1fr auto; gap: 18px; }
  .header-actions { gap: 10px; }
  .icon-action { min-width: 72px; }
  .icon-action span { font-size: 12px; }
  .main-nav { gap: 14px; font-size: 14px; }
  .category-grid, .product-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-copy { margin-right: 5vw; }
}

@media (max-width: 820px) {
  .site-header { position: relative; }
  .header-main { min-height: auto; grid-template-columns: 82px 1fr auto; padding: 8px 14px; }
  .brand, .brand img { width: 72px; }
  .brand img { height: 72px; }
  .search input { height: 42px; }
  .search-suggestions { left: 0; right: 0; max-height: 300px; }
  .icon-action { display: none; }
  .menu-toggle { display: block; }
  .main-nav {
    display: none; width: 100%; max-width: none; min-height: 0;
    padding: 8px 18px 16px;
    flex-direction: column; align-items: stretch; gap: 6px;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a, .nav-menu-button, .mobile-nav-action { justify-content: space-between; }
  .mobile-nav-action { display: inline-flex; }
  .mega-menu {
    position: static; width: 100%; transform: none;
    grid-template-columns: 1fr;
    padding: 18px 26px;
    opacity: 1; visibility: visible;
    display: none; max-height: 70vh; overflow: auto;
  }
  .mega-menu.is-open { display: grid; transform: none; }
  .hero { min-height: 560px; }
  .hero-image { inset: 0; width: 100%; height: 100%; }
  .hero-copy { justify-self: center; width: min(92vw, 560px); margin: 0; padding: 26px 18px; }
  .catalog-tools, .home-cta, .page-title { align-items: stretch; flex-direction: column; }
  .page-title { min-height: 84px; justify-content: center; gap: 8px; }
  .category-grid, .product-grid, .service-grid, .gallery-grid,
  .footer-grid, .contact-layout, .contact-form, .detail-layout { grid-template-columns: 1fr; }
  .contact-layout { padding: 24px 18px 30px; }
  .contact-buttons { align-items: stretch; flex-direction: column; }
  .footer-grid { gap: 32px; padding: 44px 0; }
  .whatsapp { right: 18px; bottom: 18px; }
  .whatsapp span { display: none; }
  .provisional-inner { flex-direction: column; text-align: center; }
  .drawer-panel { width: 100%; }
}

@media (max-width: 540px) {
  .header-main { grid-template-columns: 72px 1fr 42px; }
  .search { min-width: 0; }
  .search input { padding-left: 14px; }
  .suggestion-button { grid-template-columns: 40px 1fr; min-height: 54px; }
  .suggestion-button img, .suggestion-icon { width: 40px; height: 36px; }
  .section { width: 92vw; padding: 40px 0; }
  .product-card { grid-template-rows: 210px auto; }
  .ditem { grid-template-columns: 64px 1fr; }
  .ditem-controls { grid-column: 2; flex-direction: row; flex-wrap: wrap; }
  .ditem-img { width: 64px; height: 60px; }
  .provisional-banner { padding: 10px 14px; font-size: 13px; }
}
