@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colores del logo */
  --navy: #121829;
  --orange: #fb5e00;
  --red: #e72a24;

  --navy-80: #2a3045;
  /* Naranja oscuro para texto pequeño y hover: 4.9:1 sobre blanco (WCAG AA).
     El naranja de marca (3.1:1) solo en texto grande, botones e íconos. */
  --orange-dark: #c44800;
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --line: #e4e6eb;
  --text: #121829;
  --muted: #5b6172;

  --radius: 14px;
  --max: 1140px;
  --shadow: 0 1px 2px rgba(18, 24, 41, .06), 0 8px 24px rgba(18, 24, 41, .06);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 768px) { .container { padding: 0 32px; } }

.sprite { position: absolute; }

.icon { width: 20px; height: 20px; flex: none; }

/* Etiqueta pequeña sobre los títulos, con la línea roja del logo */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--orange-dark);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tag::before {
  content: "";
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--red);
}
.tag-light { color: #ffb27f; }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--orange); color: #fff; }
.btn-accent:hover { background: var(--orange-dark); }
.btn-ghost { border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: .9rem; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* Encabezado */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.logo img { width: 150px; height: auto; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.nav a {
  color: var(--muted);
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
}
.nav a:hover { color: var(--navy); }

/* Menú en celular: panel que se abre con #menu (:target) */
.menu-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--navy);
}
.menu-toggle .icon { width: 24px; height: 24px; }
.menu-close,
.header-inner:has(.nav:target) .menu-open { display: none; }
.header-inner:has(.nav:target) .menu-close { display: grid; }

@media (max-width: 899px) {
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    padding: 8px 16px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(18, 24, 41, .12);
  }
  .nav:target { display: flex; }
  .nav a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    color: var(--navy);
    font-size: 1rem;
  }
  .nav a:last-child { border-bottom: 0; }
}
@media (min-width: 900px) {
  .nav { display: flex; gap: 28px; }
  .menu-toggle,
  .header-inner:has(.nav:target) .menu-close { display: none; }
  .logo img { width: 168px; }
}

/* Portada */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 72px;
  background:
    radial-gradient(600px 400px at 90% 10%, rgba(251, 94, 0, .10), transparent 70%),
    radial-gradient(500px 360px at 0% 100%, rgba(18, 24, 41, .06), transparent 70%);
}
.hero-inner {
  display: grid;
  gap: 40px;
  align-items: center;
}
h1 {
  font-size: clamp(2.3rem, 6vw, 4rem);
  font-weight: 800;
  max-width: 13ch;
}
h1 span { color: var(--orange); }
.lead {
  margin: 20px 0 32px;
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.1rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  font-size: .92rem;
  font-weight: 600;
}
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.hero-art { display: flex; justify-content: center; }
.rollup { width: min(220px, 60vw); height: auto; }
@media (min-width: 900px) { .rollup { width: 300px; } }
.rollup-shadow { fill: rgba(18, 24, 41, .12); }
.rollup-banner { fill: #fff; stroke: var(--line); stroke-width: 2; }
.rollup-top { fill: var(--navy); }
.rollup-t1, .rollup-t2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  text-anchor: middle;
}
.rollup-t1 { fill: #fff; font-size: 26px; letter-spacing: 1px; }
.rollup-t2 { fill: var(--orange); font-size: 26px; letter-spacing: 1px; }
.rollup-line { fill: var(--line); }
.rollup-dot { fill: var(--orange); opacity: .9; }
.rollup-cta { fill: var(--red); }
.rollup-bar { fill: #9aa0ad; }
.rollup-base { fill: var(--navy-80); }

@media (min-width: 900px) {
  .hero { padding: 88px 0 104px; }
  .hero-inner { grid-template-columns: 1.3fr 1fr; }
}

/* Secciones */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 40px; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; }
.section-sub { margin: 12px 0 0; color: var(--muted); font-size: 1.05rem; }
@media (min-width: 900px) { .section { padding: 96px 0; } }

/* Modelos */
.models {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.model {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: box-shadow .2s ease, transform .2s ease;
}
.model:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.model-img { aspect-ratio: 4 / 3; }
.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #f5f6f8, #eceef2);
  color: #8a90a0;
  font-size: .8rem;
  font-weight: 600;
}
.placeholder svg {
  width: 56px;
  height: 56px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .55;
}
.model-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 20px; }
.model-body h3 { font-size: 1.15rem; font-weight: 700; }
.model-body p { margin: 0; color: var(--muted); font-size: .93rem; flex: 1; }
.link-arrow {
  margin-top: 8px;
  color: var(--orange-dark);
  font-weight: 700;
  font-size: .93rem;
  text-decoration: none;
}
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; }

/* Cómo trabajamos */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.step-n {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
}
.steps li:nth-child(2) .step-n { background: var(--orange); }
.steps h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: .93rem; }

/* Para imprentas */
.section-dark {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}
.section-dark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: var(--red);
}
.trade {
  display: grid;
  gap: 32px;
  align-items: center;
}
.trade-copy h2 { max-width: 18ch; }
.trade-copy p:not(.tag) { margin: 16px 0 28px; max-width: 54ch; color: #c9ccd6; font-size: 1.05rem; }
.trade-mascot { width: 180px; justify-self: center; }
@media (min-width: 768px) {
  .trade { grid-template-columns: 1fr auto; }
  .trade-mascot { width: 220px; }
}

/* Otros productos */
.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 600px) { .products { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .products { grid-template-columns: repeat(6, 1fr); } }
.product {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  height: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .2s ease, transform .2s ease;
}
.product:hover { border-color: var(--orange); box-shadow: var(--shadow); transform: translateY(-2px); }
.product-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  color: var(--orange);
}
.product-name { font-weight: 700; }
.product-cta { color: var(--orange-dark); font-size: .85rem; font-weight: 700; }
.product-cta::after { content: " →"; }

/* Ubicación y contacto */
.contact {
  display: grid;
  gap: 20px;
}
@media (min-width: 768px) { .contact { grid-template-columns: 1fr 1fr; } }
.contact-card {
  padding: 32px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.contact-card h2 { font-size: 1.6rem; margin-bottom: 20px; }
.address { margin: 0 0 8px; font-style: normal; font-weight: 600; }
.address-ref { margin: 0 0 24px; color: var(--muted); font-size: .9rem; }
.hours {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: .93rem;
}
.hours dd { margin: 0; }
.contact-list { margin: 0; padding: 0; list-style: none; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list .icon { color: var(--orange); }
.contact-list a { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--orange-dark); }
.contact-list small { margin-left: 6px; color: var(--muted); font-weight: 500; }

/* Pie */
.site-footer { padding: 32px 0 96px; border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: .88rem;
}
.footer-inner p { margin: 0; }

/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
  transition: transform .15s ease;
}
.whatsapp-float:hover { transform: scale(1.06); }

/* Página 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.notfound h1, .notfound .lead, .notfound img { margin-left: auto; margin-right: auto; }
.notfound img { margin-bottom: 24px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .model, .product, .whatsapp-float { transition: none; }
}
