/* =========================================================
   THOT FACTURA POS - HOME
   Escritorio y secciones principales.
   Las adaptaciones a tabletas y móviles están en responsive.css.
   ========================================================= */

/* HERO: dos columnas, altura controlada e imagen integrada */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(108deg, #062b59 0%, #08477f 54%, #087fba 100%);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 82% 45%, rgba(48,177,255,.12), transparent 44%),
    linear-gradient(90deg, rgba(1,19,43,.10), transparent 78%);
}
.hero__glow {
  position: absolute;
  z-index: -1;
  top: -190px;
  right: -110px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,.035);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  align-items: center;
  gap: clamp(16px, 1.4vw, 24px);
  min-height: 0;
  padding-top: 24px;
  padding-bottom: 24px;
}
.hero__copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding: 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 9px 17px;
  border-radius: 30px;
  background: #078bc7;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .35px;
}
.hero h1 {
  max-width: 680px;
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(38px, 3.05vw, 56px);
  line-height: 1.04;
  letter-spacing: -1.6px;
  font-weight: 900;
}
.hero h1 span { display: block; color: #50d5ff; }
.hero__description {
  max-width: 650px;
  margin: 0 0 22px;
  color: rgba(255,255,255,.95);
  font-size: clamp(14px, 1.02vw, 17px);
  line-height: 1.65;
}
.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 21px;
}
.hero__actions .button { min-height: 52px; padding: 0 20px; font-size: 13px; }
.hero__actions .button--red { gap: 12px; }
.play {
  display: inline-grid;
  place-items: center;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  border-radius: 50%;
  background: #fff;
  color: var(--red);
  font-size: 10px;
}
.hero__actions .button b { margin-left: 3px; }
.hero__benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: #fff;
  font-size: 12px;
  font-weight: 750;
}
.hero-art {
  position: relative;
  z-index: 1;
  justify-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100%;
  height: clamp(320px, 21vw, 390px);
  margin: 0;
  overflow: hidden;
  background: transparent;
}
.hero-art__composition {
  display: block;
  width: 108%;
  height: 108%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  transform: translateX(-2%);
  filter: none;
  /* Suaviza el perímetro para fundir la imagen con el azul del banner. */
  -webkit-mask-image: radial-gradient(ellipse 88% 88% at 52% 48%, #000 56%, rgba(0,0,0,.96) 72%, rgba(0,0,0,.65) 86%, transparent 100%);
  mask-image: radial-gradient(ellipse 88% 88% at 52% 48%, #000 56%, rgba(0,0,0,.96) 72%, rgba(0,0,0,.65) 86%, transparent 100%);
}

/* MÓDULOS */
.module-strip {
  position: relative;
  z-index: 3;
  background: #fff;
  box-shadow: 0 8px 24px rgba(6, 41, 87, .055);
}
.module-strip__grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  padding-top: 15px;
  padding-bottom: 15px;
}
.module-tile {
  display: flex;
  min-width: 0;
  min-height: 124px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 13px 8px 11px;
  border: 1px solid #edf2f8;
  border-radius: 13px;
  background: linear-gradient(180deg, #fbfdff 0%, #f0f5fb 100%);
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.module-tile:hover {
  transform: translateY(-4px);
  border-color: #d6e8fa;
  box-shadow: 0 12px 24px rgba(6, 41, 87, .10);
}
.module-tile img {
  width: 40px;
  height: 40px;
  margin-bottom: 9px;
  object-fit: contain;
}
.module-tile strong {
  color: var(--navy);
  font-size: 11px;
  line-height: 1.3;
}
.module-tile small {
  margin-top: 5px;
  color: #68778a;
  font-size: 10px;
  line-height: 1.35;
}

/* CONOCE THOT / MISIÓN / VISIÓN */
.about-home { padding: 68px 0 72px; background: #fff; }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr) minmax(0, .85fr) minmax(150px, .55fr);
  gap: 20px;
  align-items: stretch;
}
.about-intro { padding: 8px 0; }
.about-intro .kicker { margin-bottom: 8px; }
.about-intro h2 {
  margin: 0 0 15px;
  color: var(--navy);
  font-size: clamp(25px, 2.3vw, 34px);
}
.about-intro h2 em { color: #0878c7; font-style: normal; }
.about-intro p { margin-bottom: 16px; color: #3e4e63; font-size: 13px; line-height: 1.7; }
.purpose { padding: 23px 20px; border-radius: 16px; }
.purpose--mission { background: linear-gradient(145deg, #eaf4ff, #dcecff); }
.purpose--vision { background: linear-gradient(145deg, #e8fbf3, #d8f3e7); }
.purpose-icon { display: block; margin-bottom: 14px; color: #0968b6; font-size: 32px; line-height: 1; }
.purpose--vision .purpose-icon { color: #00a879; }
.purpose h3 { margin: 0 0 10px; color: var(--navy); font-size: 17px; }
.purpose p { margin: 0; color: #3d5065; font-size: 12px; line-height: 1.65; }
.about-toucan { display: flex; align-items: center; justify-content: center; min-width: 0; overflow: hidden; }
.about-toucan img { width: 100%; max-height: 260px; object-fit: contain; object-position: center bottom; }

/* IMPLEMENTACIÓN */
.implementation { background: #f4f8fc; }
.implementation-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 50px;
  align-items: center;
}
.implementation h2, .contact h2 {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: clamp(28px, 3vw, 42px);
}
.implementation p, .contact-copy > p { color: var(--muted); font-size: 14px; line-height: 1.75; }
.implementation .button { margin-top: 7px; min-height: 48px; font-size: 12px; }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.service-grid article {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  padding: 22px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-align: center;
}
.service-grid img { width: 43px; height: 43px; margin-bottom: 11px; object-fit: contain; }
.service-grid b { color: var(--navy); font-size: 12px; }
.service-grid small { margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.45; }

/* CONTACTO Y FORMULARIO */
.contact { background: #fff; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .85fr);
  gap: 55px;
  align-items: start;
}
.contact-copy { padding: 10px 0; }
.company-data { display: flex; flex-direction: column; gap: 6px; margin: 22px 0; color: #46576d; font-size: 13px; }
.company-data b { color: var(--navy); font-size: 15px; }
.company-data a { color: #075ba5; }
.contact-copy .button { min-height: 48px; font-size: 12px; }
.contact-form {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(4, 29, 61, .10);
}
.contact-form h3 { margin: 0 0 6px; color: var(--navy); font-size: 24px; }
.contact-form > p { margin-bottom: 17px; color: var(--muted); font-size: 13px; }
.contact-form label { display: block; margin: 12px 0 5px; color: #41536a; font-size: 12px; font-weight: 800; }
.contact-form input, .contact-form select, .contact-form textarea {
  display: block;
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid #dce5ef;
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
}
.contact-form textarea { min-height: 90px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  border-color: #087bc8;
  box-shadow: 0 0 0 3px rgba(8, 123, 200, .10);
}
.contact-form .button { margin-top: 15px; min-height: 48px; font-size: 12px; }
.contact-form > small { display: block; margin-top: 10px; color: #78879a; font-size: 11px; line-height: 1.5; }

/* SECCIONES COMPLEMENTARIAS */
.simple-links { padding: 48px 0; background: #f6f9fc; }
.simple-links--alt { background: #fff; }
.simple-links .container { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.simple-links h2 { margin: 0 0 9px; color: var(--navy); font-size: clamp(22px, 2.2vw, 30px); }
.simple-links p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.simple-links .text-link { flex: 0 0 auto; }

/* PIE DE PÁGINA */
.footer { padding: 32px 0; background: #061e3b; color: #fff; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.footer img { width: 205px; max-height: 60px; object-fit: contain; object-position: left center; }
.footer p { margin: 5px 0 0; color: #b8c9dd; font-size: 12px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; }
.footer nav a:hover { color: var(--cyan); }
.footer-company { display: flex; flex-direction: column; text-align: right; color: #d7e2ef; font-size: 11px; line-height: 1.7; }
.footer-company small { margin-top: 7px; color: #9db1c8; }

/* Preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .module-tile, .button { transition: none; }
  html { scroll-behavior: auto; }
}
