/*__filename__    : landing-reloj.css */
/*__author__      : DataHome S. de R.L. de C.V. */
/* __copyright__  : DataHome S. de R.L. de C.V. */
/*__description__ : Estilos de la landing page de reloj checador */
/* __version__    : 1.0.4 */
/* __app__        : RH */
:root {
  --dark: #2b2d30;
  --red: #e5533d;
  --orange: #f07a4a;
  --green: #5fb04a;
  --green-text: #4c9a3a;
  --blue: #2f62c4;
  --blue-dark: #244fa3;
  --blue-section: #2c5db6;
  --yellow: #f6c063;
  --yellow-dark: #eeae3f;
  --grey-bg: #e9ebef;
  --text: #222;
  --muted: #666;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.45;
  padding-bottom: 96px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 90px 0; }
.section--tight { padding-top: 20px; }
.center { text-align: center; margin-top: 44px; }

.text-green { color: var(--green); }
.text-orange { color: var(--orange); }
.text-yellow { color: var(--yellow); }

.skip-link { position: absolute; left: -9999px; top: 8px; background: #fff; color: #000; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- Placeholders (reemplazar por <img>) ---------- */
.img-placeholder {
  background: repeating-linear-gradient(45deg, #eef0f2, #eef0f2 10px, #e4e7ea 10px, #e4e7ea 20px);
  border: 1px dashed #b9bec4;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.img-placeholder::after { content: attr(data-label); font-size: 11px; color: #7a8088; text-align: center; padding: 4px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: 999px;
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
  border: 0; cursor: pointer; transition: background .2s;
}
.btn--sm { padding: 9px 22px; font-size: 13px; }
.btn--yellow { background: var(--yellow); color: #2b2d30; }
.btn--yellow:hover { background: var(--yellow-dark); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-dark); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* ---------- Títulos compartidos ---------- */
.display { font-size: clamp(28px, 3.6vw, 46px); font-weight: 600; line-height: 1.12; letter-spacing: -.015em; }
.section-title { font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; text-align: center; margin-bottom: 8px; }
.section-subtitle { text-align: center; color: #333; font-size: 16px; margin-bottom: 32px; }
.eyebrow { text-align: center; color: var(--blue); font-size: 13px; font-weight: 700; letter-spacing: .03em; margin-bottom: 8px; text-transform: uppercase; }
.eyebrow--left { text-align: left; }

/* =========================================================
   HERO / INTRO (oscuro)
   ========================================================= */
.hero { background: var(--dark); color: #fff; padding: 10px 0; }
.nav { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; padding-bottom: 24px; gap: 16px; }
.nav__logos { display: flex; gap: 22px; align-items: center; }
.nav__logos img { max-height: 36px; }
.logo-ph { width: 130px; height: 36px; background-color: rgba(255,255,255,.08); border-color: #555; }
.logo-ph--sm { width: 110px; }
.nav__tagline { font-size: 11px; letter-spacing: .03em; display: flex; align-items: center; gap: 8px; color: #ddd; }
.nav__link { font-size: 11px; letter-spacing: .03em; display: flex; align-items: center; gap: 8px; color: #ddd; background-color: #244fa3; border-radius: 4px; padding: 4px 8px; text-decoration: none; }
.nav__link:hover { background-color: #2f62c4; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green);}

.intro { background: var(--dark); color: #fff; padding: 10px 0 90px; }
.intro__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; }
.intro__alert { color: var(--red); font-size: clamp(28px, 3.2vw, 36px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 26px; }
.intro h1 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 600; line-height: 1.1; letter-spacing: -.015em; margin-bottom: 30px; }
.intro__lead { color: #cfd1d4; font-size: 16px; text-align: justify; margin-bottom: 26px; max-width: 620px; }

.video-card { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 16/9; width: 100%; }
.video-card__media { position: absolute; inset: 0; border-radius: 20px; background-color: #444; border-color: #666; }
.video-card__media::after { align-self: flex-start; margin-top: 50px; }
.video-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.65)); z-index: 1; pointer-events: none; }
.video-card__time { position: absolute; top: 14px; right: 14px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 6px; z-index: 2; }
.video-card__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%; background: var(--blue);
  display: flex; align-items: center; justify-content: center; z-index: 2; border: 0; cursor: pointer;
}
.video-card__play svg { width: 26px; height: 26px; fill: #fff; margin-left: 4px; }
.video-card figcaption { position: absolute; left: 22px; right: 22px; bottom: 18px; font-size: clamp(16px, 1.6vw, 21px); line-height: 1.25; z-index: 2; }

.reasons { margin-top: 70px; }
.reasons__title { font-size: 21px; font-weight: 500; margin-bottom: 32px; }
.reasons__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.reason > p { color: #c6c8cb; font-size: 14px; text-align: justify; margin-bottom: 18px; }
.reason h3 { font-size: 14px; font-weight: 600; color: #ddd; margin-bottom: 8px; }
.reason li { margin-bottom: 10px; }
.reason a { color: var(--yellow); font-size: 13px; text-underline-offset: 2px; }
.reason a:hover { color: #fff; }

/* =========================================================
   CUMPLE CON LA LEY + TARJETAS
   ========================================================= */
.law__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-bottom: 80px; }
.law .display { margin-bottom: 22px; }
.law__text { font-size: 16px; color: #333; margin-bottom: 22px; text-align: justify; }
.law__image { width: 100%; aspect-ratio: 600 / 440; border-radius: 16px; }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fcard { border: 2px solid #b7dbad; border-radius: 12px; padding: 22px; background: #fff; }
.fcard__icon { width: 40px; height: 40px; border-radius: 8px; background: #6fb95d; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.fcard__icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fcard__label { color: var(--green-text); font-size: 11px; letter-spacing: .04em; margin-bottom: 4px; }
.fcard h3 { font-size: 20px; font-weight: 500; line-height: 1.2; margin-bottom: 12px; text-align: justify; }
.fcard > p:last-child { color: var(--muted); font-size: 13px; text-align: justify; }

.locations__title { max-width: 760px; margin-bottom: 44px; }

/* =========================================================
   WORKER TIME MANAGEMENT
   ========================================================= */
.wtm { background: var(--grey-bg); background: linear-gradient(180deg,rgba(221, 226, 233, 1) 0%, rgba(255, 255, 255, 1) 100%); }
.wtm__hero { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; }
.wtm__icon { width: 200px; height: 190px; background-color: #fff; }
.wtm__title { font-size: clamp(34px, 4.4vw, 56px); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; margin-bottom: 10px; }
.wtm__text { font-size: 17px; max-width: 640px; margin-bottom: 16px; text-align: justify; }
.divider { border: 0; border-top: 1px solid #9aa0a8; margin: 50px 0 40px; }

.modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.module { background: #fff; border-radius: 12px; padding: 26px 16px 30px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.module__icon { width: 80px; height: 80px; margin-bottom: 14px; }
.module h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.module p { font-size: 14px; color: #333; }

/* =========================================================
   DATACHAT (azul)
   ========================================================= */
.datachat { background-image: url('../images/landing_reloj_checador/fondo_datachat.webp'); background-repeat: no-repeat; background-position: center; background-size: cover; color: #fff; padding: 90px 0; }
.datachat__grid { display: grid; grid-template-columns: 220px 1fr 1.25fr; gap: 30px; align-items: center; }
.datachat__phone { width: 100%; aspect-ratio: 260 / 440; border-radius: 26px; background-color: rgba(255,255,255,.15); border-color: rgba(255,255,255,.4); }
.datachat__phone::after, .datachat__logo::after { color: #dfe7f7; }

.badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #fff; border-radius: 999px; padding: 4px 12px 4px 4px; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.badge span { background: var(--yellow); color: #2b2d30; border-radius: 999px; padding: 2px 10px; font-size: 12px; }
.datachat__logo { width: 100%; max-width: 300px; height: 80px; margin-bottom: 18px; background-color: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); }
.datachat__text h2 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; line-height: 1.15; margin-bottom: 14px; }
.datachat__text > p:not(.badge) { font-size: 16px; margin-bottom: 20px; }

.datachat__features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dcard { border: 1px solid rgba(255,255,255,.75); border-radius: 12px; padding: 20px; }
.dcard--wide { grid-column: 1 / -1; }
.dcard__label { font-size: 11px; color: #dbe4f6; letter-spacing: .03em; margin-bottom: 6px; }
.dcard h3 { font-size: 19px; font-weight: 600; margin-bottom: 4px; text-align: justify; }
.dcard > p:last-of-type { font-size: 13px; color: #e6ecf8; text-align: justify; }
.chat { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.chat__bubble { max-width: 260px; font-size: 13px; padding: 8px 12px; border-radius: 6px; }
.chat__bubble--user { align-self: flex-end; background: #7dc06e; color: #1d3a16; border-bottom-right-radius: 0; }
.chat__bubble--bot { align-self: flex-start; background: #4a7fe0; color: #fff; border-bottom-left-radius: 0; }

/* =========================================================
   CTA BANNER
   ========================================================= */
.cta-banner { position: relative; color: #fff; text-align: center; padding: 120px 0; overflow: hidden; }
.cta-banner__bg {
  position: absolute; inset: 0; border: 0; border-radius: 0;
  background-color: #2f4f86; background-size: cover; background-position: center;
  background-image: url('../images/landing_reloj_checador/fondo_profesionales.webp'); background-repeat: no-repeat;
}
.cta-banner__bg::after { color: rgba(255,255,255,.55); align-self: flex-end; margin-bottom: 16px; }
.cta-banner__overlay { position: absolute; inset: 0; background: rgba(40, 80, 160, .82); }
.cta-banner__content { position: relative; z-index: 1; }
.cta-banner h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 600; margin-bottom: 14px; }
.cta-banner p { max-width: 860px; margin: 0 auto 32px; font-size: 16px; }

/* =========================================================
   SOPORTE
   ========================================================= */
.support .section-title { margin-bottom: 36px; }
.support__grid { display: flex; justify-content: center; gap: 46px; flex-wrap: wrap; padding-left: 0; }
.support__item { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12px; font-weight: 500; text-decoration: none; text-align: center; line-height: 1.2; }
.support__circle { width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--blue); background: #e8eefb; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.support__item:hover .support__circle { background: #d3def6; }
.support__circle svg { width: 24px; height: 24px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.divider-thin { border: 0; border-top: 1px solid #bbb; max-width: 1000px; margin: 40px auto 30px; }
.support__hours { text-align: center; font-size: 16px; }
.support__hours a { text-decoration: none; color: #244fa3; font-weight: bold; }

/* =========================================================
   BARRA FIJA + FOOTER
   ========================================================= */
.sticky-bar {
  position: fixed; left: 16px; right: 16px; bottom: 12px; z-index: 50;
  background: var(--blue); color: #fff; border-radius: 6px; padding: 14px 26px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  box-shadow: 0 6px 24px rgba(0,0,0,.2);
  max-width: var(--container);
  margin: 0 auto;
}
.sticky-bar__title { font-size: 20px; font-weight: 600; }
.sticky-bar__text p:not(.sticky-bar__title) { font-size: 13px; max-width: 560px; }
.footer { padding: 16px 0; color: #888; }
.footer__inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 11px; }
.footer a { text-decoration: none; }

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 1024px) {
  .datachat__grid { grid-template-columns: 200px 1fr; }
  .datachat__features { grid-column: 1 / -1; }
  .modules { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .intro__grid, .law__grid { grid-template-columns: 1fr; gap: 40px; }
  .reasons__grid, .cards-3 { grid-template-columns: 1fr; }
  .reason { padding-bottom: 20px; border-bottom: 1px solid #44474b; }
  .reason:last-child { border-bottom: 0; }
  .wtm__hero { grid-template-columns: 1fr; }
  .wtm__icon { width: 140px; height: 130px; }
  .nav__tagline { display: none; }
}

@media (max-width: 600px) {
  .hero { padding: 10px 0; }
  .section { padding: 60px 0; }
  .section--tight { padding-top: 10px; }
  .container { padding: 0 18px; }
  .logo-ph { width: 100px; height: 30px; }
  .logo-ph--sm { width: 84px; }
  .intro__lead, .reason > p, .fcard > p:last-child { text-align: left; }
  .modules, .datachat__features { grid-template-columns: 1fr; }
  .datachat__grid { grid-template-columns: 1fr; }
  .datachat__phone { max-width: 220px; margin: 0 auto; }
  .support__grid { gap: 16px; }
  .sticky-bar { flex-direction: column; text-align: center; left: 8px; right: 8px; bottom: 8px; padding: 12px 16px; gap: 10px; }
  .sticky-bar__title { font-size: 16px; }
  .sticky-bar__text p:not(.sticky-bar__title) { font-size: 12px; }
  body { padding-bottom: 150px; }
  .footer__inner { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
