/* ============================================================
 * SynckPro · Home — Hero réplica WebPros + trusted bar
 * Cargado automáticamente por index.php como home.css
 * ============================================================ */

/* Compensa el header fijo transparente */
#synck-content { padding-top: 0; }

.home-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 108svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0c0d10;
  color: #fff;
  overflow: hidden;
  margin-top: calc(var(--synck-header-h) * -1);
  padding-top: var(--synck-header-h);
}

.home-hero__media,
.home-hero__media video,
.home-hero__overlay {
  position: absolute;
  inset: 0;
}

.home-hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Velo oscuro como en el template (rgba 13,4,22,.65) */
.home-hero__overlay {
  background: linear-gradient(rgba(13, 4, 22, .65), rgba(13, 4, 22, .65));
  pointer-events: none;
}

.home-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: grid;
  gap: 36px;
  justify-items: center;
  padding-top: 40px;
  padding-bottom: 72px;
}

.home-hero__title {
  margin: 0;
  display: grid;
  gap: 18px;
  justify-items: center;
  font-weight: 500;
  letter-spacing: -0.8px;
  line-height: 1.1;
}

.home-hero__line {
  font-size: clamp(30px, 5vw, 58px);
}

.home-hero__highlight {
  display: inline-block;
  background: var(--synck-core);
  color: #fff;
  font-size: clamp(32px, 5.4vw, 62px);
  padding: 4px 22px 8px;
  line-height: 1.15;
}

/* Stats 27M | 60M | 650K */
.home-hero__stats {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  row-gap: 12px;
}

.home-hero__stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 0 28px;
  font-size: 22px;
}
.home-hero__stat + .home-hero__stat { border-left: 1px solid rgba(255, 255, 255, .45); }
.home-hero__stat strong { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; }
.home-hero__stat span { opacity: .95; font-weight: 400; }

/* Icono mouse inferior */
.home-hero__mouse {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  opacity: .6;
  color: #fff;
}

/* Remix Icons en el home (la fuente se carga siempre desde index.php) */
.home-hero__mouse > i { font-size: 26px; }
.home-eyebrow > i { font-size: 16px; }
.home-pillar__icon > i { font-size: 32px; line-height: 1; }
.home-ai__eyebrow > i { font-size: 16px; }
.home-ai__link > i { font-size: 20px; }
.home-white__icon > i { font-size: 24px; line-height: 1; }
.home-blog__featured-link > i { font-size: 20px; }
.home-blog__more > i { font-size: 18px; }

/* ---------- Trusted bar ---------- */
.home-trusted {
  background: #fff;
  border-bottom: 1px solid var(--synck-gray-300);
}

.home-trusted__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.home-trusted__heading {
  margin: 0;
  flex-shrink: 0;
  font-family: var(--synck-mono);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--synck-gray-600);
  line-height: 1.6;
  max-width: 29ch;
}

.home-trusted__logos {
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.home-trusted__logos img {
  height: 26px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
}

@media (max-width: 900px) {
  .home-trusted__inner { flex-direction: column; gap: 16px; text-align: center; }
  .home-trusted__logos {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
  }
  .home-trusted__logos img { max-width: 30%; height: 24px; }
}

@media (max-width: 560px) {
  .home-hero__stat { padding: 0 16px; font-size: 18px; }
  .home-hero__stat strong { font-size: 22px; }
}

/* ---------- Pilares / Servicios ---------- */
.home-pillars {
  background: #fff;
  padding: 80px 0 120px;
}

.home-pillars__inner {
  display: grid;
  gap: 40px;
}

.home-pillars__head {
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
}

.home-eyebrow {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--synck-mono);
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--synck-gray-900);
}
.home-eyebrow svg { color: var(--synck-core); }

.home-pillars__title {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 600;
  letter-spacing: -0.5px;
}

.home-pillars__sub {
  margin: 0;
  max-width: 68ch;
  color: var(--synck-gray-600);
  font-size: 17px;
}

.home-pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.home-pillar {
  position: relative;
  border: 1px solid var(--synck-gray-300);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  display: flex;
}

.home-pillar__curves {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  opacity: .7;
  pointer-events: none;
}

.home-pillar__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
  flex: 1;
}

.home-pillar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid #ece9f7;
  background: linear-gradient(180deg, rgba(1, 87, 254, .16), rgba(255, 234, 214, .3));
  color: var(--synck-gray-900);
  margin-bottom: 12px;
}

.home-pillar__eyebrow {
  margin: 0;
  font-family: var(--synck-mono);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--synck-core-700);
}
.home-pillar__eyebrow.is-infra { color: #e8590c; }
.home-pillar__eyebrow.is-support { color: #3b5bdb; }

.home-pillar__title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0;
}

.home-pillar__desc {
  margin: 0;
  color: var(--synck-gray-600);
  font-size: 16px;
}

.home-pillar__chips {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.home-pillar__chips li {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--synck-gray-300);
  border-radius: 999px;
  padding: 6px 14px;
  background: #fff;
}
.home-pillar__chips img {
  height: 20px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
}

.home-pillar__btn {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--synck-gray-300);
  border-radius: 10px;
  background: #fff;
  color: var(--synck-gray-900);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 20px;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.home-pillar__btn:hover {
  background: var(--synck-gray-100);
  border-color: var(--synck-gray-900);
}

@media (max-width: 1023px) {
  .home-pillars__grid { grid-template-columns: 1fr; }
  .home-pillars { padding: 64px 0 80px; }
  .home-pillar__btn { align-self: stretch; }
}

/* ---------- IA integrada (sección oscura) ---------- */
.home-ai {
  position: relative;
  background: #06070d;
  color: #fff;
  overflow: hidden;
  padding: 96px 0 120px;
}

.home-ai__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 32px;
}

.home-ai__head {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.home-ai__arc {
  width: min(560px, 90%);
  height: auto;
  margin-bottom: -8px;
  /* El webp trae su propio fondo oscuro: screen funde los píxeles oscuros
     y la máscara elíptica elimina el rectángulo en los 4 bordes */
  mix-blend-mode: screen;
  filter: blur(1px);
  -webkit-mask-image: radial-gradient(ellipse 68% 62% at 50% 52%, #000 42%, transparent 68%);
  mask-image: radial-gradient(ellipse 68% 62% at 50% 52%, #000 42%, transparent 68%);
}

.home-ai__chip {
  margin: 0;
  font-family: var(--synck-mono);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  color: #c9b8ff;
  background: rgba(1, 87, 254, .12);
  box-shadow: inset 0 0 0 1px rgba(1, 87, 254, .35);
}

.home-ai__title {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 600;
  letter-spacing: -0.5px;
}

.home-ai__card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border: 1px solid #23252e;
  border-radius: 24px;
  overflow: hidden;
  background: #0a0b12;
}

.home-ai__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.home-ai__copy {
  display: grid;
  gap: 16px;
  padding: 40px;
  align-content: start;
}

.home-ai__eyebrow {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--synck-mono);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #c9b8ff;
}

.home-ai__subtitle {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
  letter-spacing: -0.3px;
}

.home-ai__text {
  margin: 0;
  color: #9aa0ae;
  font-size: 16px;
}

.home-ai__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--synck-core-400);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}
.home-ai__link:hover { text-decoration: underline; }

.home-ai__video {
  position: relative;
  flex: 1;
  min-height: 220px;
  overflow: hidden;
}
.home-ai__video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Difumina los 4 bordes del video contra el fondo de la card */
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%),
    linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%),
    linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-composite: intersect;
}
/* Velo extra que funde el video con la card en los bordes */
.home-ai__video::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, #0a0b12 0%, transparent 28%, transparent 72%, #0a0b12 100%),
    linear-gradient(to right, #0a0b12 0%, transparent 14%, transparent 86%, #0a0b12 100%);
  pointer-events: none;
}

.home-ai__rows {
  border-left: 1px solid #23252e;
  display: grid;
  align-content: stretch;
}
.home-ai__row {
  padding: 32px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.home-ai__row + .home-ai__row { border-top: 1px solid #23252e; }

.home-ai__row-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--synck-mono);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
}
.home-ai__row-title::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--synck-core-400);
}
.home-ai__row-title.is-infra::before { background: #ff6b1a; }
.home-ai__row-title.is-support::before { background: #4d86ff; }

.home-ai__row-desc {
  margin: 0;
  color: #9aa0ae;
  font-size: 15.5px;
}

.home-ai__glow {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
}

@media (max-width: 1023px) {
  .home-ai { padding: 64px 0 80px; }
  .home-ai__card { grid-template-columns: 1fr; }
  .home-ai__rows { border-left: 0; border-top: 1px solid #23252e; }
  .home-ai__copy { padding: 24px; }
  .home-ai__row { padding: 24px; }
}

/* ---------- Marca blanca ---------- */
.home-white {
  background: #fff;
  padding: 120px 0 80px;
}

.home-white__inner {
  display: grid;
  gap: 40px;
}

.home-white__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: end;
}

.home-white__head-left {
  display: grid;
  gap: 16px;
  align-content: start;
}
.home-white__head-left .home-eyebrow svg { color: var(--synck-core); }

.home-white__title {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.12;
}

.home-white__sub {
  margin: 0;
  color: var(--synck-gray-600);
  font-size: 17px;
  align-self: end;
}

.home-white__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--synck-gray-300);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.home-white__card {
  padding: 32px 28px;
  display: grid;
  gap: 16px;
  align-content: start;
}
.home-white__card + .home-white__card { border-left: 1px solid var(--synck-gray-300); }

.home-white__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--synck-core);
  color: #fff;
}

.home-white__card-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.home-white__card-desc {
  margin: 0;
  color: var(--synck-gray-600);
  font-size: 15.5px;
}

.home-white__cta {
  display: flex;
  justify-content: center;
}

.home-white__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--synck-core);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  padding: 15px 36px;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color .2s ease;
}
.home-white__btn:hover { background: var(--synck-core-700); }

@media (max-width: 1023px) {
  .home-white { padding: 80px 0 64px; }
  .home-white__head { grid-template-columns: 1fr; }
  .home-white__grid { grid-template-columns: 1fr 1fr; }
  .home-white__card:nth-child(3) { border-left: 0; }
  .home-white__card:nth-child(n+3) { border-top: 1px solid var(--synck-gray-300); }
}

@media (max-width: 640px) {
  .home-white__grid { grid-template-columns: 1fr; }
  .home-white__card + .home-white__card { border-left: 0; }
  .home-white__card:nth-child(n+2) { border-top: 1px solid var(--synck-gray-300); }
  .home-white__btn { width: 100%; }
}

/* ---------- Blog / Industry Insights (estructura estática;
   el loop dinámico se conectará a $blogPosts en home.php) ---------- */
.home-blog {
  background: #fff;
  padding: 40px 0 120px;
}

.home-blog__inner {
  display: grid;
  gap: 40px;
}

.home-blog__divider {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--synck-gray-300);
}

.home-blog__head {
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
}
.home-blog__head .home-eyebrow svg { color: var(--synck-core); }

.home-blog__title {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 600;
  letter-spacing: -0.5px;
}

.home-blog__grid {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 24px;
  align-items: stretch;
}

.home-blog__featured {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 64px;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(6, 11, 38, .88) 20%, rgba(10, 36, 112, .72) 60%, rgba(1, 87, 254, .55) 100%),
    url("../img/db-cover.jpg") center / cover no-repeat,
    #060b26;
}

.home-blog__featured-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.5px;
  line-height: 1.2;
  max-width: 16ch;
}

.home-blog__featured-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}
.home-blog__featured-link:hover { text-decoration: underline; }

.home-blog__list {
  display: grid;
  gap: 24px;
  align-content: stretch;
}

.home-blog__empty {
  margin: 0;
  color: var(--synck-gray-500);
  font-size: 15px;
}

.home-blog__card {
  background: #f6f6f4;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-blog__cat {
  margin: 0;
  font-family: var(--synck-mono);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--synck-core);
}

.home-blog__card-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
}

.home-blog__date {
  margin: 0;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--synck-gray-600);
}

.home-blog__more {
  margin-top: auto;
  padding-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--synck-gray-900);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.home-blog__more:hover { color: var(--synck-core); }

@media (max-width: 1023px) {
  .home-blog { padding: 24px 0 80px; }
  .home-blog__grid { grid-template-columns: 1fr; }
  .home-blog__featured { gap: 32px; }
}
