/* ============================================================
   IMPULSO DIGITAL GT -- Pagina de pruebas (reskin)
   Estilos especificos de esta pagina, construidos sobre
   los tokens y utilidades de css/styles.css
   ============================================================ */

/* ---------- Aviso de version en pruebas ---------- */
.preview-bar {
  pointer-events: auto;
  background: var(--teal-700);
  color: var(--paper);
  font-size: .8rem;
  font-weight: 600;
  text-align: center;
  padding: 8px var(--gut);
}
.preview-bar a { color: var(--paper); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 560px) {
  .preview-bar { font-size: .72rem; }
}

/* ---------- Hero ---------- */
.hero2 {
  padding: clamp(170px, 24vw, 230px) 0 0;
  overflow: hidden;
}
.hero2__top {
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.hero2__top .badge--solid {
  background: var(--coral);
  color: var(--coral-ink);
  border-color: transparent;
}

/* ---------- Insignia giratoria (estilo Webfolio) ---------- */
.spin-badge {
  position: relative;
  width: 108px;
  height: 108px;
  flex: none;
}
.spin-badge__ring {
  width: 100%;
  height: 100%;
  animation: spin-slow 18s linear infinite;
}
.spin-badge__ring text {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  fill: var(--teal-700);
}
.spin-badge__center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--coral);
}
.spin-badge__center svg { width: 26px; height: 26px; }
@keyframes spin-slow {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .spin-badge__ring { animation: none; }
}
@media (max-width: 640px) {
  .spin-badge { display: none; }
}
.hero2__title {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.16;
  font-size: clamp(2.4rem, 6.4vw, 4.8rem);
  text-wrap: balance;
  max-width: 18ch;
}
.hero2__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-top: clamp(24px, 4vw, 40px);
  padding-bottom: clamp(40px, 7vw, 80px);
  border-bottom: 1px solid var(--line);
}
.hero2__row .lead { margin: 0; flex: 2 1 360px; }
.hero2__actions { display: flex; flex-wrap: wrap; gap: 14px; flex: 1 1 260px; justify-content: flex-end; }

@media (max-width: 760px) {
  .hero2__row { padding-bottom: 32px; }
  .hero2__actions { justify-content: flex-start; }
}

/* ---------- Marquee de servicios incluidos ---------- */
.marquee {
  border-top: 1px solid var(--line);
  overflow: hidden;
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  gap: clamp(28px, 4vw, 56px);
  white-space: nowrap;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
  will-change: transform;
}
.marquee__track span {
  font-family: var(--font-display);
  font-size: clamp(.95rem, 1.4vw, 1.25rem);
  font-weight: 600;
  color: var(--ink-500);
  letter-spacing: -0.01em;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ---------- Tira de numeros ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 4vw, 48px);
}
.stats__item { display: flex; flex-direction: column; gap: 6px; }
.stats__num {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--teal-700);
}
.stats__label { font-size: .92rem; color: var(--ink-500); max-width: 22ch; }

@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Servicios: grid de tarjetas (01-04) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2.5vw, 24px);
}
@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(26px, 3.5vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .3s ease, transform .3s ease;
}
.service-card:hover {
  border-color: var(--coral);
  transform: translateY(-4px);
}
.service-card__n {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 3.4vw, 3rem);
  line-height: 1;
  color: var(--coral);
}
.service-card h3 { margin: 6px 0 0; }
.service-card p { margin: 0; max-width: 42ch; color: var(--ink-500); }
@media (prefers-reduced-motion: reduce) {
  .service-card { transition: none; }
  .service-card:hover { transform: none; }
}

/* ---------- Quienes somos: collage ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.about-collage {
  position: relative;
  aspect-ratio: 4 / 3.4;
}
.about-collage img {
  position: absolute;
  height: auto;
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  object-fit: cover;
}
.about-collage__a {
  width: 78%;
  aspect-ratio: 16/9;
  top: 0;
  left: 0;
}
.about-collage__b {
  width: 46%;
  aspect-ratio: 4/3;
  right: 0;
  top: 30%;
}
.about-collage__c {
  width: 42%;
  aspect-ratio: 4/3;
  left: 8%;
  bottom: 0;
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-collage { order: 2; aspect-ratio: 4/3.2; margin-top: 12px; }
}

@media (min-width: 640px) {
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Ejemplos / showcase ---------- */
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 2.5vw, 28px);
}
.showcase-card {
  display: block;
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .45s cubic-bezier(.16,1,.3,1), box-shadow .45s cubic-bezier(.16,1,.3,1);
}
.showcase-card img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.showcase-card__tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: var(--paper);
  color: var(--ink-900);
  font-size: .82rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--r-pill);
}
.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
  border-color: var(--coral);
}
@media (prefers-reduced-motion: reduce) {
  .showcase-card { transition: none; }
  .showcase-card:hover { transform: none; }
}

/* ---------- Light mode ---------- */
@media (prefers-color-scheme: light) {
  .preview-bar { color: #ffffff; }
  .marquee__track span { color: var(--ink-400); }
  .showcase-card__tag { background: var(--teal-700); color: #ffffff; }
}
