/* UNIOPOS S.A.S. — estilos vanilla, mobile-first */

:root {
  --blue: #1400FF;
  --blue-dark: #0f00c9;
  --orange: #FF9800;
  --orange-dark: #E08600;
  --black: #020000;
  --gray-text: #4a4a4a;
  --gray-border: #e2e2e5;
  --gray-bg: #f5f5f7;
  --white: #ffffff;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

a { color: var(--blue); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
.strip :focus-visible {
  outline-color: var(--orange);
}

/* El header sticky tapa los titulos al saltar por ancla */
#servicios,
#facturacion,
#trabajos,
#cotizador,
#respaldo,
#contacto {
  scroll-margin-top: 5rem;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: var(--white);
  padding: .75rem 1rem;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

/* Botones */
.btn {
  display: inline-block;
  padding: .8rem 1.4rem;
  border-radius: .5rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--orange);
  color: var(--black);
}
.btn-primary:hover { background: var(--orange-dark); }
.btn-secondary {
  background: var(--white);
  color: var(--blue);
  border-color: var(--blue);
}
.btn-secondary:hover { background: var(--gray-bg); }
.btn-sm { padding: .5rem .9rem; font-size: .9rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .75rem;
  padding-bottom: .75rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--black);
}
.brand-logo { border-radius: .35rem; }
.brand-name { font-weight: 700; font-size: 1.1rem; color: var(--black); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle.js-ready { display: flex; }
.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
}

.site-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: .9rem;
  padding: 1rem 0 .5rem;
  margin-top: .75rem;
  border-top: 1px solid var(--gray-border);
}
.site-nav.nav-collapsed { display: none; }
.site-nav a {
  text-decoration: none;
  color: var(--black);
  font-weight: 500;
}
.site-nav a:hover { color: var(--blue); }

@media (min-width: 800px) {
  .nav-toggle.js-ready { display: none; }
  .site-nav,
  .site-nav.nav-collapsed {
    display: flex;
    flex-direction: row;
    width: auto;
    align-items: center;
    border: none;
    margin-top: 0;
    padding: 0;
  }
}

/* Hero */
.hero {
  background: var(--gray-bg);
  padding: 3rem 0;
}
.hero-inner { text-align: center; }
.badge {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--gray-border);
  color: var(--blue);
  font-size: .85rem;
  font-weight: 600;
  padding: .4rem .9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: 1.9rem;
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}
.hero-sub {
  color: var(--gray-text);
  font-size: 1.05rem;
  max-width: 42rem;
  margin: 0 auto 1.75rem;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  align-items: center;
}

@media (min-width: 640px) {
  .hero h1 { font-size: 2.6rem; }
  .hero-actions { flex-direction: row; justify-content: center; }
}

/* Franja */
.strip {
  background: var(--black);
  color: var(--white);
  padding: 2.5rem 0;
}
.strip h2 { color: var(--white); }
.strip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.strip-list li {
  padding-left: 1.4rem;
  position: relative;
}
.strip-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: .5rem;
  height: .5rem;
  background: var(--orange);
  border-radius: 50%;
}

@media (min-width: 800px) {
  .strip-list { grid-template-columns: repeat(3, 1fr); }
}

/* Secciones generales */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--gray-bg); }
.section-intro {
  color: var(--gray-text);
  max-width: 42rem;
  margin-bottom: 2rem;
}

/* Tarjetas */
.cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: .75rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--gray-text);
}
.card ul li { margin-bottom: .35rem; }
.card .price {
  font-weight: 700;
  margin-top: auto;
}
.card .btn { align-self: flex-start; }

.tag {
  display: inline-block;
  background: var(--orange);
  color: var(--black);
  font-size: .8rem;
  font-weight: 700;
  padding: .25rem .7rem;
  border-radius: 999px;
  width: fit-content;
}

/* Aviso destacado (facturación electrónica) */
.notice-box {
  background: var(--white);
  color: var(--black);
  border-left: 4px solid var(--orange);
  border-radius: .75rem;
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.notice-box p { margin: 0 0 .75rem; }
.notice-box p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer {
  background: var(--gray-bg);
  border-top: 1px solid var(--gray-border);
  padding: 3.5rem 0 2rem;
}
.footer-cta {
  text-align: center;
  margin-bottom: 3rem;
}
.footer-cta .btn { margin: 1rem 0 .5rem; }
.wa-number { font-weight: 600; margin: 0; }

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-brand .brand { margin-bottom: .75rem; }
.footer-brand p, .footer-contact p, .footer-legal p {
  color: var(--gray-text);
  font-size: .95rem;
}
.footer-contact h3, .footer-legal h3 {
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .75rem;
}
.footer-copy {
  text-align: center;
  font-size: .85rem;
  color: var(--gray-text);
  border-top: 1px solid var(--gray-border);
  padding-top: 1.5rem;
  margin: 0;
}

/* Cotizador de tiendas en línea */
.cotizador-app {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.cotizador-field {
  border: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.cotizador-field:last-of-type { margin-bottom: 0; }
.cotizador-field legend {
  font-weight: 700;
  padding: 0;
  margin: 0 0 .75rem;
}

.cotizador-option {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1rem;
  border: 1px solid var(--gray-border);
  border-radius: .5rem;
  margin-bottom: .75rem;
  background: var(--white);
  cursor: pointer;
}
.cotizador-option:last-child { margin-bottom: 0; }
.cotizador-option:hover { border-color: var(--blue); }
.cotizador-option:has(input:checked) {
  border-color: var(--blue);
  background: color-mix(in srgb, var(--blue) 6%, var(--white));
}
.cotizador-option input[type="radio"],
.cotizador-option input[type="checkbox"] {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
  accent-color: var(--blue);
}

.cotizador-resultado {
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  border-radius: .75rem;
  padding: 1.5rem;
  text-align: center;
}
.cotizador-resultado-label {
  margin: 0 0 .5rem;
  font-weight: 600;
  color: var(--black);
}
.cotizador-rango {
  margin: 0 0 1rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--blue);
}
.cotizador-aviso {
  margin: 0 0 .75rem;
  font-size: .85rem;
  color: var(--gray-text);
}
.cotizador-mantenimiento {
  margin: 0;
  font-size: .9rem;
  color: var(--gray-text);
  border-top: 1px solid var(--gray-border);
  padding-top: .75rem;
}

.cotizador-app > .btn {
  width: 100%;
  text-align: center;
}

@media (min-width: 700px) {
  .cotizador-resultado { padding: 2rem; }
  .cotizador-rango { font-size: 2rem; }
  .cotizador-app > .btn {
    width: auto;
    align-self: center;
  }
}

/* Resumen imprimible del cotizador */
.resumen-imprimible { display: none; }

@media print {
  body > .skip-link,
  header.site-header,
  main#contenido > section:not(#cotizador),
  #cotizador > .wrap > :not(#resumenImprimible),
  footer.site-footer {
    display: none;
  }

  #resumenImprimible {
    display: block;
    padding: 2rem;
  }

  .resumen-encabezado {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  .resumen-encabezado img {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .resumen-marca-nombre {
    margin: 0;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--black);
  }
  .resumen-marca-nit {
    margin: 0;
    color: var(--black);
  }

  .resumen-fecha {
    margin: 0 0 1.5rem;
    color: var(--black);
  }

  .resumen-titulo {
    color: var(--blue);
    margin: 0 0 0.3rem;
  }

  .resumen-subtitulo {
    margin: 0 0 1.5rem;
    font-weight: 600;
    color: var(--black);
  }

  .resumen-bloque {
    margin-bottom: 1.25rem;
  }
  .resumen-bloque h3 {
    margin: 0 0 .4rem;
    font-size: 1rem;
    color: var(--black);
  }
  .resumen-bloque p {
    margin: 0 0 .25rem;
    color: var(--black);
  }

  #resumenRango {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--blue);
  }

  .resumen-aviso {
    border: 2px solid var(--black);
    border-radius: .5rem;
    padding: 1rem 1.25rem;
    margin-top: 1.5rem;
  }
  .resumen-aviso p {
    margin: 0;
    font-weight: 600;
    color: var(--black);
  }
}
