/* ==========================================================================
   impresionlowcost — hoja de estilo base

   La paleta sale del logotipo original (impresion_low_cost_logo.pdf):
   tinta #060B10, cian #01B2F7, magenta #FB1987 y amarillo #FDD906 sobre papel.
   El logotipo es negro con perfilado blanco, asi que la web va sobre papel
   claro, como el trabajo que sale de la imprenta.
   ========================================================================== */

:root {
  /* Tinta */
  --ink:     #060B10;
  --ink-800: #1A222C;
  --text:    #0E1620;
  --text-2:  #48535F;
  --text-3:  #6C7784;

  /* Papel */
  --paper:   #F4F5F7;
  --surface: #FFFFFF;
  --line:    #DEE3E9;
  --line-2:  #EBEEF1;

  /* Cuatricromia */
  --cyan:      #01B2F7;
  --cyan-ink:  #0B66B3;  /* cian legible como texto sobre papel */
  --magenta:   #FB1987;
  --yellow:    #FDD906;
  --yellow-2:  #F0CC00;

  --radius:    14px;
  --radius-sm: 10px;
  --maxw:      880px;

  --shadow-sm: 0 1px 2px rgba(6, 11, 16, .05);
  --shadow:    0 10px 30px -18px rgba(6, 11, 16, .35);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  /* La "K" de la marca de registro, sobre papel, es tinta */
  --logo-key: var(--ink);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 4vw, 3rem);
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --- Fondo: reticula de montaje + tinte de tinta ------------------------ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(6, 11, 16, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 11, 16, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 10%, transparent 72%);
          mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 10%, transparent 72%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(56rem 26rem at 12% -12%, rgba(1, 178, 247, .16), transparent 62%),
    radial-gradient(46rem 22rem at 94% 4%, rgba(253, 217, 6, .20), transparent 64%);
}

/* --- Marcas de corte (hoja de imprenta) --------------------------------- */
.crop { position: fixed; inset: clamp(.75rem, 2.5vw, 1.5rem); z-index: 0; pointer-events: none; }
.crop span { position: absolute; width: 22px; height: 22px; opacity: .7; }
.crop span::before,
.crop span::after { content: ""; position: absolute; background: #C4CBD4; }
.crop span::before { width: 22px; height: 1px; }
.crop span::after  { width: 1px;  height: 22px; }
.crop span:nth-child(1) { top: 0; left: 0; }
.crop span:nth-child(2) { top: 0; right: 0; }
.crop span:nth-child(3) { bottom: 0; left: 0; }
.crop span:nth-child(4) { bottom: 0; right: 0; }
.crop span:nth-child(2)::before, .crop span:nth-child(2)::after { right: 0; }
.crop span:nth-child(3)::before, .crop span:nth-child(3)::after { bottom: 0; }
.crop span:nth-child(4)::before, .crop span:nth-child(4)::after { bottom: 0; right: 0; }

/* --- Estructura --------------------------------------------------------- */
.page {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: clamp(2rem, 6vw, 3.25rem);
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero { display: flex; flex-direction: column; gap: 1.75rem; margin-block: auto; }

/* --- Logotipo ----------------------------------------------------------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
}
.brand img {
  display: block;
  height: 64px;
  width: auto;
}
.brand__tld {
  padding: .2rem .5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-3);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .02em;
}

/* --- Selector de idioma ------------------------------------------------- */
.lang { display: flex; align-items: center; gap: .25rem; font-size: .8125rem; font-weight: 700; }
.lang a {
  color: var(--text-3);
  text-decoration: none;
  padding: .35rem .6rem;
  border-radius: 8px;
  letter-spacing: .06em;
  transition: color .15s ease, background-color .15s ease;
}
.lang a:hover { color: var(--text); background: rgba(6, 11, 16, .05); }
.lang a[aria-current="true"] { color: var(--text); background: var(--surface); box-shadow: var(--shadow-sm); }
.lang span { color: var(--line); }

/* --- Estado ------------------------------------------------------------- */
.status {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  align-self: flex-start;
  margin: 0;
  padding: .4rem .85rem .4rem .7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-2);
}
.status .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(1, 178, 247, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(1, 178, 247, 0); }
  100% { box-shadow: 0 0 0 0 rgba(1, 178, 247, 0); }
}

/* --- Tipografia --------------------------------------------------------- */
h1 {
  margin: 0;
  font-size: clamp(2.25rem, 7vw, 4rem);
  line-height: 1.12;
  letter-spacing: -.035em;
  font-weight: 800;
  color: var(--ink);
  text-wrap: balance;
}
/* Banda amarilla: el mismo recurso que la banda "Low Cost" del logotipo */
h1 em {
  position: relative;
  display: inline-block;
  font-style: normal;
  padding: 0 .14em;
}
h1 em::before {
  content: "";
  position: absolute;
  inset: .12em -.06em .1em;
  z-index: -1;
  border-radius: 4px;
  background: var(--yellow);
  transform: skewX(-7deg);
}

.lead {
  margin: 0;
  max-width: 62ch;
  font-size: clamp(1.0625rem, 2.2vw, 1.1875rem);
  color: var(--text-2);
  text-wrap: pretty;
}

/* --- Que imprimimos ------------------------------------------------------ */
.what { display: grid; gap: .9rem; }
.what h2,
.faq h2 {
  margin: 0;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .625rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.products li {
  position: relative;
  padding: .8rem 1rem .85rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: .875rem;
  line-height: 1.45;
  color: var(--text-3);
  overflow: hidden;
}
.products li::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--cyan);
}
.products li:nth-child(2)::before { background: var(--magenta); }
.products li:nth-child(3)::before { background: var(--yellow); }
.products li:nth-child(4)::before { background: var(--ink); }
.products b {
  display: block;
  margin-bottom: .15rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.015em;
}

/* Solo imprimimos, no disenamos: la nota que evita malentendidos */
.note {
  margin: 0;
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--text-3);
}

/* --- Preguntas frecuentes ------------------------------------------------ */
.faq { display: grid; gap: .9rem; }
.faq dl {
  margin: 0;
  display: grid;
  gap: 1rem 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.faq dt {
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text);
}
.faq dd {
  margin: .25rem 0 0;
  font-size: .875rem;
  line-height: 1.5;
  color: var(--text-3);
}

/* --- Servicios / ventajas ----------------------------------------------- */
.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .625rem;
}
.features li {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .5rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: .9375rem;
  color: var(--text-2);
}
.features li::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 2px;
  background: var(--cyan);
}
.features li:nth-child(2)::before { background: var(--magenta); }
.features li:nth-child(3)::before { background: var(--yellow); }
.features li:nth-child(4)::before { background: var(--ink); }

/* --- Llamada a la accion ------------------------------------------------ */
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.cta__text { margin: 0; font-size: .9375rem; color: var(--text-2); flex: 1 1 16rem; }
.cta__text strong { display: block; color: var(--text); font-size: 1rem; font-weight: 700; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--yellow);
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 800;
  letter-spacing: -.01em;
  text-decoration: none;
  border: 1px solid rgba(6, 11, 16, .08);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { background: var(--yellow-2); transform: translateY(-1px); box-shadow: 0 10px 22px -12px rgba(6, 11, 16, .55); }
.btn:active { transform: translateY(0); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn--ghost:hover { background: var(--paper); box-shadow: none; }

/* --- Regla de cuatricromia ---------------------------------------------- */
.rule {
  height: 3px;
  border: 0;
  margin: 0;
  border-radius: 2px;
  background: linear-gradient(90deg,
    var(--cyan) 0 25%, var(--magenta) 25% 50%, var(--yellow) 50% 75%, var(--ink) 75% 100%);
}

/* --- Pie ---------------------------------------------------------------- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  padding-top: 1.25rem;
  font-size: .8125rem;
  color: var(--text-3);
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--cyan-ink); text-decoration: none; font-weight: 600; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* --- Foco visible ------------------------------------------------------- */
:where(a, button):focus-visible {
  outline: 2px solid var(--cyan-ink);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --- Entrada ------------------------------------------------------------ */
.hero > * { animation: rise .6s cubic-bezier(.22, 1, .36, 1) backwards; }
.hero > :nth-child(1) { animation-delay: .04s; }
.hero > :nth-child(2) { animation-delay: .10s; }
.hero > :nth-child(3) { animation-delay: .16s; }
.hero > :nth-child(4) { animation-delay: .22s; }
.hero > :nth-child(5) { animation-delay: .28s; }
.hero > :nth-child(6) { animation-delay: .34s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* --- Movil -------------------------------------------------------------- */
@media (max-width: 560px) {
  .crop { display: none; }
  .brand img { height: 50px; }
  .products { grid-template-columns: 1fr; }
  .faq dl { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: stretch; }
  .cta__text { flex: 0 1 auto; }
  .btn { justify-content: center; }
}

/* --- Impresion (somos imprenta) ----------------------------------------- */
@media print {
  body { background: #fff; padding: 0; }
  body::before, body::after, .crop, .lang { display: none; }
  .status, .features li, .products li, .cta { box-shadow: none; }
  .btn { background: none; color: var(--ink); border-color: var(--ink); }
}
