/* =========================================================
   TecnoOrdeño — Hoja de estilos única
   Minimalista. Sin dependencias externas.
   Las únicas imágenes del sitio son las de los productos.
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --ink:        #101a24;
  --ink-soft:   #3c4a57;
  --ink-mute:   #6b7885;
  --line:       #e2e0da;
  --line-soft:  #eceae4;
  --paper:      #ffffff;
  --paper-alt:  #f7f6f2;
  --paper-deep: #0f1b26;

  --blue:       #1a4f74;
  --blue-dark:  #133c59;
  --blue-tint:  #eaf1f6;

  --green:      #2f6f4b;
  --green-tint: #eaf3ee;

  --amber:      #a86a12;
  --amber-tint: #fdf4e4;

  --wasap:      #13c1a2;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1120px;
  --wrap-narrow: 720px;
  --r: 10px;
  --r-lg: 14px;

  color-scheme: light;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.15;
  letter-spacing: -.022em;
  font-weight: 700;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(1.95rem, 1.35rem + 2.7vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2rem); }
h3 { font-size: 1.13rem; letter-spacing: -.012em; }
p  { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .4em; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ---------- 3. Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: clamp(52px, 6.5vw, 88px); }
.section--alt { background: var(--paper-alt); border-block: 1px solid var(--line-soft); }
.section--tight { padding-block: clamp(34px, 4vw, 52px); }

.section__head { max-width: 60ch; margin-bottom: clamp(26px, 3.5vw, 42px); }

.eyebrow {
  display: block;
  margin: 0 0 12px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--blue);
}

.lead { font-size: clamp(1.02rem, .98rem + .28vw, 1.16rem); color: var(--ink-soft); }
.muted { color: var(--ink-mute); font-size: .92rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 12px 18px;
}
.skip-link:focus { left: 0; }

/* Visible solo para lectores de pantalla y para Google */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- 4. Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.93);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner { display: flex; align-items: center; gap: 20px; min-height: 66px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.03rem; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand__mark { width: 29px; height: 29px; flex: none; }
.brand__tag {
  display: block; font-size: .65rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-mute); margin-top: -3px;
}

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav__link {
  display: block; padding: 9px 12px; border-radius: 8px;
  font-size: .94rem; font-weight: 550; color: var(--ink-soft); text-decoration: none;
}
.nav__link:hover { background: var(--paper-alt); color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--blue); background: var(--blue-tint); }

.nav-toggle {
  display: none; margin-left: auto;
  width: 42px; height: 42px; padding: 0;
  background: none; border: 1px solid var(--line); border-radius: 9px;
  color: var(--ink); cursor: pointer;
}
.nav-toggle svg { margin: auto; }

/* ---------- 5. Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 21px;
  border: 1px solid transparent; border-radius: var(--r);
  font: inherit; font-size: .96rem; font-weight: 650; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.btn svg { flex: none; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); color: #fff; }
.btn--ghost { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--paper-alt); border-color: #cfccc4; color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #eef1f4; color: var(--ink); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--sm { padding: 9px 15px; font-size: .88rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 6. Hero (solo texto) ---------- */
.hero { padding-block: clamp(52px, 7vw, 96px) clamp(34px, 4.5vw, 56px); }
.hero h1 { margin-bottom: .4em; max-width: 18ch; }
.hero .lead { max-width: 58ch; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 20px; padding: 6px 13px 6px 9px;
  background: var(--green-tint); border: 1px solid #cfe3d7; border-radius: 999px;
  font-size: .8rem; font-weight: 650; color: #22563a;
}
.hero__kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }
.hero__cta { margin-top: 26px; }
.hero__note { margin-top: 16px; font-size: .86rem; color: var(--ink-mute); }

/* ---------- 7. Barra de confianza (texto) ---------- */
.datos {
  display: flex; flex-wrap: wrap; gap: 0 40px;
  margin: 0; padding: 22px 0;
  list-style: none;
  border-block: 1px solid var(--line);
}
.datos li { margin: 0; padding: 6px 0; }
.datos b { display: block; font-size: .95rem; font-weight: 650; }
.datos span { display: block; font-size: .84rem; color: var(--ink-mute); }

/* ---------- 8. Avisos ---------- */
.callout {
  padding: 22px 24px;
  background: var(--amber-tint);
  border: 1px solid #ecd9b4;
  border-left: 4px solid var(--amber);
  border-radius: var(--r);
}
.callout h3 { margin-bottom: .35em; font-size: 1.03rem; }
.callout p { font-size: .95rem; color: #55483a; }
.callout--blue { background: var(--blue-tint); border-color: #cbdded; border-left-color: var(--blue); }
.callout--blue p { color: var(--ink-soft); }

/* =========================================================
   9. PRODUCTOS — el componente principal del sitio
   Al pasar el ratón sobre la tarjeta aparecen los dos
   canales de contacto. En móvil (sin hover) se ven siempre.
   ========================================================= */
.productos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
  margin: 0; padding: 0; list-style: none;
}

.producto {
  position: relative;
  display: flex; flex-direction: column;
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease;
}

/* Caja cuadrada + contain: las fotos de producto vienen con proporciones
   muy distintas (terminales verticales, placas apaisadas) y así todas se
   ven enteras y con el mismo aire, como en cualquier catálogo. */
.producto__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
}
.producto__media img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 16px;
}

/* Marcador mientras no haya foto real */
.producto__media .ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; height: 100%; padding: 16px; text-align: center;
  background: repeating-linear-gradient(-45deg, #f2f0ea 0 10px, #eeece5 10px 20px);
  color: var(--ink-mute); font-family: var(--mono); font-size: .68rem; line-height: 1.5;
}

.producto__body { padding: 18px 20px 20px; }
.producto__body h3 { margin-bottom: .3em; font-size: 1.04rem; }
.producto__body p { font-size: .89rem; color: var(--ink-mute); line-height: 1.5; }

/* Acciones de contacto */
.producto__acciones {
  display: flex; flex-direction: column; gap: 8px;
  padding: 0 20px 20px;
}
.producto__acciones .btn { width: 100%; padding: 10px 14px; font-size: .89rem; }

.btn--mail { background: var(--blue); color: #fff; }
.btn--mail:hover { background: var(--blue-dark); color: #fff; }
.btn--wallapop { background: var(--wasap); color: #06322a; }
.btn--wallapop:hover { background: #0fae92; color: #06322a; }

/* Con ratón: las acciones se superponen a la tarjeta al pasar por encima */
@media (hover: hover) and (min-width: 761px) {
  .producto__acciones {
    position: absolute; inset: 0;
    justify-content: center; align-items: stretch;
    gap: 10px; padding: 24px;
    background: rgba(15, 27, 38, .93);
    opacity: 0; visibility: hidden;
    transition: opacity .18s ease, visibility .18s ease;
  }
  .producto__acciones::before {
    content: attr(data-titulo);
    display: block; margin-bottom: 6px;
    color: #fff; font-size: .95rem; font-weight: 650; line-height: 1.35;
    text-align: center; text-wrap: balance;
  }
  .producto:hover .producto__acciones,
  .producto:focus-within .producto__acciones { opacity: 1; visibility: visible; }
  .producto:hover { border-color: var(--blue); box-shadow: 0 10px 30px -18px rgba(16,26,36,.5); }
}

/* Pista visual de que la tarjeta es interactiva */
.productos-nota {
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 26px;
  font-size: .89rem; color: var(--ink-mute);
}
.productos-nota svg { flex: none; color: var(--blue); }
@media (hover: none), (max-width: 760px) { .productos-nota { display: none; } }

/* ---------- 10. Tarjetas y listas ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.card h3 { margin-bottom: .4em; }
.card p { font-size: .94rem; color: var(--ink-soft); }

.steps { counter-reset: paso; display: grid; }
.step {
  display: grid; grid-template-columns: 58px 1fr; gap: 18px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num {
  counter-increment: paso;
  font-size: 1.9rem; font-weight: 700; line-height: 1;
  color: var(--line); letter-spacing: -.03em;
}
.step__num::before { content: "0" counter(paso); }
.step h3 { margin-bottom: .3em; }
.step p { font-size: .95rem; color: var(--ink-soft); }
.step__meta {
  display: inline-block; margin-top: 10px; padding: 3px 10px;
  background: var(--paper-alt); border: 1px solid var(--line);
  border-radius: 999px; font-size: .78rem; font-weight: 600; color: var(--ink-mute);
}

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  position: relative; padding-left: 29px; margin-bottom: .65em;
  font-size: .96rem; color: var(--ink-soft);
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6f4b' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.checklist--tight li { margin-bottom: .35em; font-size: .92rem; }
.checklist--cols { columns: 2; column-gap: 34px; }
.checklist--cols li { break-inside: avoid; }
.checklist--no li::before {
  background: #f7ebeb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a05252' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tags li {
  margin: 0; padding: 6px 13px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  font-size: .85rem; color: var(--ink-soft);
}
.section--alt .tags li { background: #fff; }

/* ---------- 11. FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item > summary {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 19px 0; cursor: pointer; list-style: none;
  font-size: 1.02rem; font-weight: 650; color: var(--ink);
}
.faq__item > summary::-webkit-details-marker { display: none; }
.faq__item > summary::after {
  content: ""; flex: none; margin-left: auto; margin-top: 4px;
  width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7885' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .18s ease;
}
.faq__item[open] > summary::after { transform: rotate(45deg); }
.faq__item[open] > summary { color: var(--blue); }
.faq__answer { padding: 0 44px 20px 0; }
.faq__answer p { font-size: .96rem; color: var(--ink-soft); }

/* ---------- 12. Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 48px); align-items: start; }

.channel {
  display: flex; align-items: flex-start; gap: 15px;
  padding: 19px; margin-bottom: 12px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  text-decoration: none; color: inherit;
  transition: border-color .16s ease, background-color .16s ease;
}
.channel:hover { border-color: var(--blue); background: var(--blue-tint); color: inherit; }
.channel__icon {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; flex: none;
  border-radius: 9px; background: var(--paper-alt); color: var(--blue);
}
.channel b { display: block; font-size: 1rem; font-weight: 650; }
.channel span { display: block; font-size: .88rem; color: var(--ink-mute); }
.channel--wallapop .channel__icon { background: #e9fbf5; color: #0d9c82; }
.channel--mail .channel__icon { background: var(--blue-tint); color: var(--blue); }
.channel--wa .channel__icon { background: #e7f7ea; color: #1f9d3f; }

.form { display: grid; gap: 15px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .88rem; font-weight: 650; color: var(--ink-soft); }
.field .hint { font-size: .8rem; font-weight: 400; color: var(--ink-mute); }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 13px;
  font: inherit; font-size: .95rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 9px;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px var(--blue-tint);
}
.field textarea { min-height: 130px; resize: vertical; }
.form__legal { font-size: .8rem; color: var(--ink-mute); }
.form__legal a { color: var(--ink-soft); }

/* ---------- 13. CTA final ---------- */
.cta-band { background: var(--paper-deep); color: #fff; }
.cta-band .wrap { padding-block: clamp(46px, 5.5vw, 72px); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #aebac6; }

/* ---------- 14. Pie ---------- */
.site-footer {
  background: var(--paper-alt);
  border-top: 1px solid var(--line);
  padding-block: 44px 28px;
  font-size: .9rem;
}
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 30px; }
.footer h4 {
  margin-bottom: 12px; font-size: .77rem; font-weight: 700;
  letter-spacing: .11em; text-transform: uppercase; color: var(--ink-mute);
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .45em; }
.footer a { color: var(--ink-soft); text-decoration: none; }
.footer a:hover { color: var(--blue); text-decoration: underline; }
.footer p { font-size: .89rem; color: var(--ink-mute); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center;
  margin-top: 34px; padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: .81rem; color: var(--ink-mute);
}
.footer__disclaimer { margin-top: 14px; font-size: .77rem; line-height: 1.55; color: var(--ink-mute); }

/* ---------- 15. Migas y páginas interiores ---------- */
.crumbs { padding-block: 18px 0; font-size: .83rem; color: var(--ink-mute); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.crumbs a { color: var(--ink-mute); text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }

.page-head { padding-block: clamp(32px, 4vw, 52px) clamp(24px, 3vw, 38px); }
.page-head h1 { margin-bottom: .35em; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.6em; }
.prose > :first-child { margin-top: 0; }

/* ---------- 16. Responsive ---------- */
@media (max-width: 980px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav {
    position: fixed; inset: 66px 0 auto; z-index: 49;
    display: none; padding: 12px 22px 20px;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 28px -14px rgba(16,26,36,.3);
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { padding: 12px 14px; font-size: 1rem; }
  .nav__list .btn { margin-top: 10px; }
  .nav-toggle { display: flex; }

  .grid--2, .grid--3, .contact-grid { grid-template-columns: 1fr; }
  .productos { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
  .checklist--cols { columns: 1; }
  .step { grid-template-columns: 44px 1fr; gap: 14px; }
  .step__num { font-size: 1.5rem; }
  .datos { gap: 0 28px; }
  .brand__tag { display: none; }
  .btn-row .btn { width: 100%; }
}

@media (max-width: 460px) {
  .productos { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- 17. Impresión ---------- */
@media print {
  .site-header, .nav-toggle, .cta-band, .site-footer, .producto__acciones { display: none; }
  body { font-size: 12pt; }
}
