:root {
  --ink: #142033;
  --muted: #617089;
  --line: #dfe6ef;
  --soft: #f4f7fb;
  --paper: #ffffff;
  --navy: #0d3768;
  --navy-2: #174f8f;
  --accent: #e7a318;
  --ok: #2f7557;
  --shadow: 0 14px 36px rgba(22, 45, 78, .10);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 10px 14px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(223,230,239,.85);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { text-decoration: none; display: inline-flex; align-items: baseline; gap: 9px; }
.wordmark strong { font-size: 1.55rem; letter-spacing: .08em; color: var(--navy); }
.wordmark span { font-size: .78rem; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a { text-decoration: none; color: #34445b; font-weight: 650; font-size: .94rem; }
.main-nav a:hover { color: var(--navy); }
.nav-cta { padding: 10px 15px; border-radius: 999px; background: var(--navy); color: white !important; }
.menu-button { display: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fff; }

.hero { padding: 76px 0 46px; background: radial-gradient(circle at 84% 12%, #e7f0fa 0, rgba(231,240,250,0) 34%), linear-gradient(180deg, #fff, #f7f9fc); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 58px; align-items: center; }
.eyebrow { margin: 0 0 12px; color: var(--navy-2); font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(2.25rem, 5vw, 4.45rem); line-height: 1.03; letter-spacing: -.045em; }
.hero-copy { margin: 22px 0 0; max-width: 680px; font-size: 1.12rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { border: 0; border-radius: 12px; padding: 13px 18px; font-weight: 750; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: #082c56; }
.btn-secondary { background: #fff; color: var(--navy); border: 1px solid #cfd9e6; }
.btn-secondary:hover { background: #f6f9fc; }
.btn-small { padding: 10px 13px; font-size: .9rem; border-radius: 10px; }
.hero-panel { background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 26px; }
.hero-panel h2 { margin: 0 0 18px; font-size: 1.18rem; }
.hero-points { display: grid; gap: 16px; }
.hero-point { display: grid; grid-template-columns: 42px 1fr; gap: 13px; align-items: start; }
.hero-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: #edf4fb; color: var(--navy); font-weight: 850; }
.hero-point strong { display: block; margin-bottom: 3px; }
.hero-point span { display: block; color: var(--muted); font-size: .92rem; }

.stats-strip { border-block: 1px solid var(--line); background: #fff; }
.stats-grid { min-height: 92px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; }
.stat { padding: 16px 24px; border-right: 1px solid var(--line); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 1.45rem; color: var(--navy); }
.stat span { color: var(--muted); font-size: .9rem; }

.section { padding: 72px 0; }
.section-soft { background: var(--soft); }
.section-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 30px; }
.section-head h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.55rem); letter-spacing: -.03em; }
.section-head p { margin: 0; max-width: 640px; color: var(--muted); }

.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.brand-card { min-height: 190px; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 9px 26px rgba(22,45,78,.06); }
.brand-card.dark { background: #0f223d; color: #fff; border-color: #0f223d; }
.brand-card img { max-height: 58px; max-width: 210px; object-fit: contain; object-position: left center; }
.brand-card.dark img { filter: none; }
.brand-card h3 { margin: 18px 0 6px; }
.brand-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.brand-card.dark p { color: #c8d5e5; }
.brand-count { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--navy-2); }
.brand-card.dark .brand-count { color: #9fc1e9; }
.logo-pair { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.logo-pair img { max-width: 155px; max-height: 52px; }

.catalog-layout { display: grid; grid-template-columns: 255px 1fr; gap: 28px; align-items: start; }
.filters { position: sticky; top: 94px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.filters h3 { margin: 0 0 17px; }
.filter-field { margin-bottom: 15px; }
.filter-field label { display: block; margin-bottom: 7px; font-size: .82rem; font-weight: 800; color: #45566d; }
.filter-field input, .filter-field select { width: 100%; border: 1px solid #cfd8e5; border-radius: 10px; padding: 10px 11px; background: #fff; color: var(--ink); }
.filter-actions { display: flex; gap: 8px; }
.catalog-main { min-width: 0; }
.catalog-toolbar { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 18px; color: var(--muted); }
.catalog-toolbar strong { color: var(--ink); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: 17px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; transition: transform .18s ease, box-shadow .18s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-media { aspect-ratio: 4 / 3; background: linear-gradient(150deg, #f8fafc, #eef3f8); padding: 18px; display: grid; place-items: center; }
.product-media img { width: 100%; height: 100%; object-fit: contain; }
.product-body { padding: 17px; display: flex; flex-direction: column; flex: 1; }
.product-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .76rem; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.product-title { margin: 10px 0 8px; font-size: 1.04rem; line-height: 1.3; }
.product-title a { text-decoration: none; }
.product-title a:hover { color: var(--navy); }
.product-description { margin: 0; color: var(--muted); font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product-bottom { margin-top: auto; padding-top: 16px; }
.price-label { color: var(--muted); font-size: .75rem; }
.price { display: block; margin: 1px 0 3px; font-size: 1.45rem; line-height: 1.15; color: var(--navy); font-weight: 850; letter-spacing: -.02em; }
.price-pending { display: inline-block; color: #8a5a00; background: #fff6d8; border-radius: 999px; padding: 4px 8px; font-size: .72rem; font-weight: 800; margin-top: 5px; }
.delivery-note { color: var(--ok); font-size: .78rem; font-weight: 700; margin: 8px 0 13px; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.no-results { border: 1px dashed #bdc9d8; border-radius: 16px; padding: 36px; text-align: center; color: var(--muted); }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 26px; }
.pagination button { border: 1px solid var(--line); background: #fff; border-radius: 9px; min-width: 38px; padding: 8px 10px; }
.pagination button.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.conditions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.info-card { border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: #fff; }
.info-card h3 { margin: 0 0 9px; }
.info-card p { margin: 0; color: var(--muted); }

.cta-section { background: var(--navy); color: #fff; }
.cta-grid { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.cta-grid h2 { margin: 0 0 8px; font-size: clamp(1.8rem, 3.5vw, 3rem); }
.cta-grid p { margin: 0; color: #cbd9e9; max-width: 720px; }
.cta-section .btn-secondary { border-color: transparent; }

.site-footer { background: #0a1d35; color: #d9e3ef; padding: 44px 0 25px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 35px; }
.site-footer h3, .site-footer h4 { margin: 0 0 12px; color: #fff; }
.site-footer p, .site-footer a { color: #adbed1; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-links { display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 18px; font-size: .82rem; color: #8fa3ba; }

/* Product detail */
.breadcrumbs { padding-top: 24px; font-size: .85rem; color: var(--muted); }
.breadcrumbs a { text-decoration: none; }
.product-page { padding: 35px 0 75px; }
.product-detail { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); gap: 48px; align-items: start; }
.detail-media { border: 1px solid var(--line); border-radius: 22px; background: #f7f9fc; min-height: 500px; padding: 30px; display: grid; place-items: center; position: sticky; top: 96px; }
.detail-media img { width: 100%; max-height: 520px; object-fit: contain; }
.detail-brand { color: var(--navy-2); font-weight: 850; text-transform: uppercase; letter-spacing: .1em; font-size: .77rem; }
.detail-title { margin: 8px 0 13px; font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.04em; line-height: 1.08; }
.detail-code { color: var(--muted); margin-bottom: 23px; }
.detail-price-box { border-block: 1px solid var(--line); padding: 20px 0; margin: 20px 0; }
.detail-price { font-size: 2.15rem; font-weight: 900; color: var(--navy); }
.detail-note { color: var(--muted); font-size: .86rem; }
.detail-description { color: #405068; font-size: 1rem; }
.detail-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 22px 0; }
.fact { border: 1px solid var(--line); border-radius: 13px; padding: 13px; }
.fact span { display: block; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
.fact strong { display: block; margin-top: 4px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.source-link { margin-top: 20px; font-size: .85rem; color: var(--muted); }
.source-link a { color: var(--navy-2); }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(7,24,44,.66); display: none; align-items: center; justify-content: center; padding: 18px; }
.modal-backdrop.open { display: flex; }
.modal { width: min(560px, 100%); max-height: 92vh; overflow: auto; background: #fff; border-radius: 20px; padding: 24px; box-shadow: 0 25px 80px rgba(0,0,0,.28); }
.modal-head { display: flex; justify-content: space-between; gap: 14px; align-items: start; }
.modal-head h2 { margin: 0; }
.modal-close { border: 0; background: #eef2f7; width: 36px; height: 36px; border-radius: 50%; font-size: 1.25rem; }
.modal p { color: var(--muted); }
.modal label { display: block; font-size: .82rem; font-weight: 800; margin: 13px 0 6px; }
.modal input, .modal textarea { width: 100%; border: 1px solid #cbd6e3; border-radius: 10px; padding: 11px; }
.modal textarea { min-height: 125px; resize: vertical; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.toast { position: fixed; z-index: 150; right: 20px; bottom: 20px; background: #102947; color: #fff; border-radius: 11px; padding: 12px 16px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: .2s; }
.toast.show { opacity: 1; transform: translateY(0); }

.legal-page { padding: 55px 0 80px; }
.legal-page h1 { font-size: clamp(2.1rem, 4vw, 3.5rem); }
.legal-page h2 { margin-top: 34px; }
.legal-page p, .legal-page li { color: #405068; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { border-bottom: 1px solid var(--line); padding: 12px; text-align: left; vertical-align: top; }
th { color: var(--navy); background: #f4f7fb; }

@media (max-width: 980px) {
  .hero-grid, .product-detail { grid-template-columns: 1fr; }
  .detail-media { position: static; min-height: 380px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .brand-grid, .conditions-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 720px) {
  .header-inner { min-height: 64px; }
  .wordmark span { display: none; }
  .menu-button { display: block; }
  .main-nav { display: none; position: absolute; left: 16px; right: 16px; top: 64px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .main-nav.open { display: flex; }
  .hero { padding-top: 48px; }
  .hero-grid { gap: 34px; }
  .section { padding: 55px 0; }
  .section-head { align-items: start; flex-direction: column; }
  .brand-grid, .conditions-grid, .product-grid, .footer-grid, .cta-grid { grid-template-columns: 1fr; }
  .cta-grid { align-items: start; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 14px 12px; }
  .stat:first-child { padding-left: 12px; }
  .detail-facts { grid-template-columns: 1fr; }
  .detail-media { min-height: 320px; }
  .card-actions { grid-template-columns: 1fr; }
  .catalog-toolbar { align-items: start; flex-direction: column; }
}

/* Identidad Julio Tobía */
.site-topbar { background: #0a1d35; color: #dce8f4; font-size: .78rem; }
.topbar-inner { min-height: 32px; display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.site-topbar a { color: #fff; text-decoration: none; }
.site-topbar a:hover { text-decoration: underline; }
.header-inner { min-height: 86px; }
.wordmark { align-items: center; gap: 12px; }
.wordmark img { width: min(390px, 45vw); height: 68px; object-fit: contain; object-position: left center; }
.store-badge { display: inline-flex; align-items: center; white-space: nowrap; border: 1px solid #cbd9e7; border-radius: 999px; padding: 6px 10px; color: var(--navy) !important; background: #f5f9fc; font-size: .68rem !important; font-weight: 800; letter-spacing: .08em !important; text-transform: uppercase; }
.footer-logo { width: min(390px, 100%); max-height: 76px; object-fit: contain; object-position: left center; filter: brightness(0) invert(1); opacity: .96; margin-bottom: 12px; }

@media (max-width: 900px) {
  .topbar-inner { justify-content: center; flex-wrap: wrap; gap: 4px 14px; padding: 6px 0; }
  .topbar-inner span:last-child { display: none; }
  .wordmark img { width: min(320px, 58vw); }
  .store-badge { display: none; }
}

@media (max-width: 720px) {
  .site-topbar { display: none; }
  .header-inner { min-height: 72px; }
  .wordmark img { width: min(270px, 72vw); height: 56px; }
  .main-nav { top: 72px; }
}
