/* Nunky template: home page. */
@import url("../pages/index.css");

/* Home-only adjustments formerly embedded in index.html. */
/* Cambios solicitados en "index arreglos.docx" (20-08-2026). Alcance: index.html. */
.hero.hero-home-refined .hero-request-copy {
  max-width: 680px !important;
  margin-top: 1.25rem !important;
  color: rgba(234,246,255,.78) !important;
  font-size: var(--type-lead-size) !important;
  line-height: 1.65 !important;
}
.hero.hero-home-refined .hero-concept-line {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .55rem;
  max-width: 760px;
  font-size: clamp(.88rem, .94vw, 1rem) !important;
}
.hero.hero-home-refined .hero-concept-line > span { display: inline; }
.hero.hero-home-refined .hero-video-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}
.hero.hero-home-refined .hero-video-wrap .hero-actions-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  margin: 0;
  justify-content: flex-start;
}
.smart-company-accent,
.smart-company-highlight {
  background: linear-gradient(110deg,#22d3ee 0%,#60a5fa 48%,#a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  font-weight: 800;
}
.smart-company-inline { color: #6d28d9 !important; }
.organizational-evolution-visual {
  display: grid;
  gap: 18px;
}
.organizational-evolution-image-card.secondary-ice {
  background: #fff;
  box-shadow: 0 20px 54px rgba(15,23,42,.12);
}
.organizational-evolution-image-card.secondary-ice img { background: #fff; }

.smart-company-model-section {
  position: relative;
  overflow: hidden;
  padding: clamp(78px,8vw,118px) 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(34,211,238,.13), transparent 30%),
    radial-gradient(circle at 88% 88%, rgba(109,40,217,.18), transparent 32%),
    linear-gradient(180deg,#07111f 0%,#0b1220 100%);
  color: #f8fafc;
}
.smart-company-equation {
  max-width: 1160px;
  margin: 0 auto clamp(34px,4.5vw,58px);
  padding: clamp(20px,2.6vw,34px);
  border: 1px solid rgba(143,244,255,.17);
  border-radius: 26px;
  background: rgba(255,255,255,.045);
  box-shadow: 0 28px 70px rgba(0,0,0,.20);
}
.smart-company-equation img {
  display: block;
  width: 100%;
  height: auto;
}
.smart-company-model-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 20px;
}
.smart-company-model-card {
  display: flex;
  flex-direction: column;
  min-height: 290px;
  padding: clamp(24px,2.6vw,34px);
  border: 1px solid rgba(143,244,255,.16);
  border-radius: 24px;
  background: linear-gradient(155deg,rgba(255,255,255,.09),rgba(255,255,255,.035));
  box-shadow: 0 24px 58px rgba(0,0,0,.16);
}
.smart-company-model-card h3 { margin: 0 0 14px; }
.smart-company-model-card h3 a {
  color: #fff;
  text-decoration: none;
  font-size: clamp(1.25rem,1.7vw,1.65rem);
}
.smart-company-model-card p {
  margin: 0 0 26px;
  color: rgba(226,238,247,.76);
}
.smart-company-model-link {
  margin-top: auto;
  color: #8ff4ff;
  font-weight: 800;
  text-decoration: none;
}
.smart-company-model-link:hover,
.smart-company-model-link:focus-visible { text-decoration: underline; }

.home-metrics-section {
  padding: clamp(58px,6.8vw,88px) 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(34,211,238,.10), transparent 36%),
    linear-gradient(180deg,#081422 0%,#07111f 100%);
}
.home-metrics-section .home-metrics-capsules {
  width: min(100%,980px);
  max-width: 980px !important;
  margin: 0 auto;
  grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  gap: clamp(14px,2vw,22px) !important;
}
.home-metrics-section .metric-card {
  min-height: 128px !important;
  padding: 1.35rem 1.15rem !important;
  text-align: center;
  background: rgba(255,255,255,.065) !important;
  border: 1px solid rgba(143,244,255,.14) !important;
  border-radius: 20px !important;
  box-shadow: 0 18px 44px rgba(0,0,0,.16) !important;
}
.home-metrics-section .metric-value {
  font-size: clamp(1.55rem,2.2vw,2.05rem) !important;
  color: #fff !important;
}
.home-metrics-section .metric-label {
  max-width: 15rem;
  margin-inline: auto;
  color: rgba(234,246,255,.84) !important;
  font-size: clamp(.92rem,1vw,1.04rem) !important;
  line-height: 1.4 !important;
}

@media (max-width:1120px) {
  .hero.hero-home-refined .hero-video-wrap .hero-actions-bottom { justify-content: center; }
  .smart-company-model-grid { grid-template-columns: 1fr; }
  .smart-company-model-card { min-height: 0; }
}
@media (max-width:640px) {
  .hero.hero-home-refined .hero-video-wrap .hero-actions-bottom { display: grid; grid-template-columns: 1fr; }
  .hero.hero-home-refined .hero-video-wrap .hero-actions-bottom .btn { width: 100%; }
  .hero.hero-home-refined .hero-concept-line { display: block; }
  .hero.hero-home-refined .hero-concept-line > span { display: block; margin-bottom: .35rem; }
  .organizational-evolution-visual { overflow: visible !important; }
  .organizational-evolution-image-card,
  .organizational-evolution-image-card.secondary-ice { width: 100% !important; max-width: 100% !important; }
  .home-metrics-section .home-metrics-capsules { grid-template-columns: 1fr !important; }
}


/* =========================================================
   HOME — evolución visual controlada (Prompt Maestro 2026-09-09)
========================================================= */
.hero.hero-home-refined .hero-title-cyan {
  color: #67e8f9 !important;
  -webkit-text-fill-color: #67e8f9 !important;
  background: none !important;
}
.hero.hero-home-refined .hero-video-microcopy {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  align-self: flex-start;
  margin: 0 0 -2px;
  color: rgba(234,246,255,.88) !important;
  font-size: clamp(.8rem,.9vw,.92rem) !important;
  line-height: 1.3 !important;
  font-weight: 700;
  letter-spacing: .045em;
}
.hero-video-microcopy-mark {
  width: .48rem;
  height: .48rem;
  border: 1.5px solid #67e8f9;
  border-radius: 2px;
  transform: rotate(45deg);
}
.hero.hero-home-refined .hero-secondary-action {
  display: grid;
  gap: .52rem;
  min-width: min(100%, 300px);
  flex: 1 1 300px;
}
.hero.hero-home-refined .hero-secondary-action .btn { width: 100%; }
.hero.hero-home-refined .hero-secondary-action p {
  margin: 0;
  padding-inline: .25rem;
  color: rgba(234,246,255,.62) !important;
  font-size: clamp(.72rem,.78vw,.82rem) !important;
  line-height: 1.42 !important;
  text-align: center;
}
.hero-cta-arrow { font-size: 1.22em; line-height: 1; }

.smart-company-model-card { position: relative; }
.smart-company-model-card .principle-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1.15rem;
  border: 1px solid rgba(103,232,249,.38);
  border-radius: 16px;
  background: radial-gradient(circle at 30% 25%,rgba(103,232,249,.15),transparent 58%),rgba(255,255,255,.035);
  box-shadow: inset 0 0 0 1px rgba(167,139,250,.08);
  color: #8ff4ff;
}
.smart-company-model-card .principle-icon svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (min-width:1121px) {
  .smart-company-model-card:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 52px;
    right: -21px;
    width: 20px;
    height: 1px;
    background: linear-gradient(90deg,rgba(103,232,249,.72),rgba(96,165,250,.22));
  }
  .smart-company-model-card:not(:last-child)::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 48px;
    right: -21px;
    width: 7px;
    height: 7px;
    border-top: 1.5px solid rgba(103,232,249,.72);
    border-right: 1.5px solid rgba(103,232,249,.72);
    transform: rotate(45deg);
  }
}
@media (max-width:640px) {
  .hero.hero-home-refined .hero-video-microcopy { align-self: center; text-align: center; }
  .hero.hero-home-refined .hero-secondary-action { min-width: 0; width: 100%; }
}

/* Mantiene la jerarquía de los dos CTA sin que el texto auxiliar estire el botón principal. */
.hero.hero-home-refined .hero-video-wrap .hero-actions-bottom {
  align-items: flex-start;
}
.hero.hero-home-refined .hero-video-wrap .hero-actions-bottom > .btn-primary {
  flex: 0 1 220px;
}
@media (max-width:640px) {
  .hero.hero-home-refined .hero-video-wrap .hero-actions-bottom > .btn-primary { width: 100%; }
}


/* =========================================================
   HOME — Correcciones Fase 2 · 2026-09-10
   Alcance deliberadamente limitado a los cuatro puntos
   solicitados para la Home.
========================================================= */

/* 01 · Hero: contraste cromático inequívoco entre las dos partes. */
.hero.hero-home-refined .hero-title-wide .hero-title-row.hero-title-cyan {
  color: #67e8f9 !important;
  -webkit-text-fill-color: #67e8f9 !important;
  background: none !important;
}

.hero.hero-home-refined .hero-title-wide .hero-title-row:not(.hero-title-cyan) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: none !important;
}

/* 02 · Sustitución visual del antiguo bloque conceptual por AIFIRST-SMART.png. */
.hero.hero-home-refined .hero-concept-visual {
  width: min(100%, 760px);
  margin: 22px 0 0;
}

.hero.hero-home-refined .hero-concept-visual img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

/* 03 · El kicker de Soluciones de IA queda centrado como pieza, no solo como texto. */
#products-catalog > .container > .section-heading .section-kicker {
  display: inline-flex !important;
  align-self: center !important;
  justify-content: center !important;
  width: auto !important;
  max-width: none !important;
  margin-right: auto !important;
  margin-left: auto !important;
  text-align: center !important;
}

/* 04 · Evolución organizativa: composición editorial alrededor del nuevo banner. */
.organizational-evolution-section {
  padding: clamp(78px, 8vw, 116px) 0;
  background:
    radial-gradient(circle at 9% 15%, rgba(103, 232, 249, .14), transparent 27%),
    radial-gradient(circle at 91% 82%, rgba(96, 165, 250, .12), transparent 29%),
    linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
}

.organizational-evolution-header {
  width: min(100%, 920px);
  margin: 0 auto clamp(28px, 4vw, 46px);
  text-align: center;
}

.organizational-evolution-header .section-kicker {
  display: inline-flex;
  justify-content: center;
  margin-inline: auto;
  text-align: center;
}

.organizational-evolution-header .section-title {
  max-width: 880px;
  margin: 12px auto 0;
  color: #0f172a;
  font-size: clamp(2.15rem, 3.5vw, 3.85rem);
  line-height: 1.04;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.organizational-evolution-context {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(100%, 1100px);
  margin: 0 auto clamp(28px, 4vw, 48px);
}

.organizational-evolution-context p {
  position: relative;
  margin: 0;
  padding: clamp(20px, 2.5vw, 28px);
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 20px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 16px 42px rgba(15, 23, 42, .07);
  color: rgba(15, 23, 42, .74);
  font-size: clamp(.98rem, 1.08vw, 1.08rem);
  line-height: 1.68;
}

.organizational-evolution-context p::before {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0891b2, #6366f1);
}

.organizational-evolution-banner {
  position: relative;
  width: min(100%, 1240px);
  margin: 0 auto clamp(30px, 4vw, 52px);
  padding: clamp(6px, .8vw, 10px);
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, .13);
  border-radius: clamp(20px, 2vw, 30px);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 28px 72px rgba(30, 64, 175, .13);
}

.organizational-evolution-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(103, 232, 249, .16);
  z-index: 1;
}

.organizational-evolution-banner img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(15px, 1.5vw, 23px);
  object-fit: contain;
}

.organizational-evolution-outcomes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(100%, 1100px);
  margin: 0 auto;
}

.organizational-evolution-outcomes .organizational-evolution-emphasis,
.organizational-evolution-outcomes .organizational-evolution-bridge {
  margin: 0;
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 44px rgba(15, 23, 42, .075);
  color: rgba(15, 23, 42, .78);
  font-size: clamp(.98rem, 1.08vw, 1.08rem);
  line-height: 1.68;
}

.organizational-evolution-outcomes .organizational-evolution-emphasis {
  border-top: 3px solid #0891b2;
  color: #102033;
  font-weight: 700;
}

.organizational-evolution-outcomes .organizational-evolution-bridge {
  border-top: 3px solid #6366f1;
}

.organizational-evolution-outcomes .organizational-evolution-bridge strong {
  color: #4f2683;
}

@media (max-width: 1120px) {
  .hero.hero-home-refined .hero-concept-visual {
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 760px) {
  .organizational-evolution-context,
  .organizational-evolution-outcomes {
    grid-template-columns: 1fr;
  }

  .organizational-evolution-header {
    text-align: left;
  }

  .organizational-evolution-header .section-kicker {
    justify-content: flex-start;
    margin-left: 0;
    text-align: left;
  }

  .organizational-evolution-header .section-title {
    margin-left: 0;
    text-align: left;
  }

  .organizational-evolution-banner {
    width: 100%;
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .hero.hero-home-refined .hero-concept-visual {
    width: 100%;
    margin-top: 18px;
  }

  .organizational-evolution-section {
    padding: 68px 0;
  }

  .organizational-evolution-context {
    margin-bottom: 24px;
  }

  .organizational-evolution-banner {
    margin-bottom: 24px;
    padding: 4px;
    border-radius: 18px;
  }

  .organizational-evolution-banner img {
    border-radius: 14px;
  }
}
