/* Trabajadores IA — home: hero, selector de region, tarjetas de servicios,
   pasos de trabajo y franja final. Se apoya en las variables de tia-base.css. */

/* ── Hero ──────────────────────────────────────────────── */
.tia-hero {
  padding: 56px 0 48px;
  text-align: center;
}

.tia-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.tia-hero-title {
  font-size: clamp(30px, 8.5vw, 56px);
  color: #fff;
  margin-bottom: 16px;
}

.tia-hero-title span { color: var(--tia-blue-light); }

.tia-hero-sub {
  max-width: 620px;
  margin: 0 auto 28px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
}

.tia-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 540px) {
  .tia-hero-actions {
    flex-direction: row;
    justify-content: center;
  }
  .tia-hero-actions .tia-btn { min-width: 180px; }
}

@media (min-width: 768px) {
  .tia-hero { padding: 96px 0 80px; }
  .tia-hero-sub { font-size: 18px; }
}

/* ── Selector de region ────────────────────────────────── */
.tia-region-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 36px;
}

.tia-region {
  display: inline-flex;
  max-width: 100%;
  padding: 4px;
  gap: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.tia-region-tab {
  min-width: 0;
  min-height: 40px;
  padding: 8px 18px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.tia-region-tab:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }

.tia-region-tab--active,
.tia-region-tab--active:hover {
  background: var(--tia-blue);
  color: #fff;
  box-shadow: 0 6px 18px rgba(26, 107, 255, 0.35);
}

.tia-region-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

@media (max-width: 360px) {
  .tia-region-tab { padding: 8px 12px; font-size: 13px; }
}

/* ── Grupos y cuadricula de tarjetas ───────────────────── */
.tia-svc-group + .tia-svc-group { margin-top: 48px; }

.tia-svc-group-title {
  font-size: 20px;
  color: #fff;
  margin-bottom: 18px;
}

.tia-svc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

@media (min-width: 640px) {
  .tia-svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}

@media (min-width: 1080px) {
  .tia-svc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* Si una fila del home tiene 3 tarjetas, ocupan todo el ancho */
  .tia-svc-grid[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.tia-precio {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--tia-line);
  min-height: 74px;
}

.tia-precio-main {
  font-family: var(--tia-font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--tia-ink);
  overflow-wrap: anywhere;
}

.tia-precio-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--tia-ink-mist);
}

.tia-precio-extra {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--tia-blue);
  overflow-wrap: anywhere;
}

/* ── Tarjeta premium de servicio (home) ────────────────── */
/* Vidrio suave sobre el fondo azul, borde fino con brillo degradado y sombra profunda */
.tia-svc-card {
  position: relative;
  isolation: isolate;
  overflow: visible;
  color: #fff;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.035) 55%, rgba(26, 107, 255, 0.06) 100%);
  border: none;
  border-radius: 22px;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow:
    0 24px 60px rgba(3, 10, 24, 0.45),
    0 2px 6px rgba(3, 10, 24, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease;
}

/* Borde de 1px con degradado (mascara: solo se pinta el contorno) */
.tia-svc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.38) 0%, rgba(77, 143, 255, 0.22) 40%, rgba(255, 255, 255, 0.05) 70%, rgba(77, 143, 255, 0.3) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.75;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.tia-svc-card .tia-card-body {
  gap: 10px;
  padding: 26px 22px 22px;
}

/* Icono fino arriba */
.tia-svc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  width: 46px;
  height: 46px;
  margin-bottom: 6px;
  border-radius: 14px;
  color: #9fc0ff;
  background: linear-gradient(145deg, rgba(77, 143, 255, 0.22), rgba(26, 107, 255, 0.06));
  border: 1px solid rgba(159, 192, 255, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 6px 18px rgba(26, 107, 255, 0.18);
}

/* Etiqueta pequena */
.tia-svc-badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(159, 192, 255, 0.9);
}

/* Nombre grande */
.tia-svc-card .tia-card-title {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

/* Descripcion en gris */
.tia-svc-card .tia-card-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(226, 233, 245, 0.68);
}

/* Precio protagonista, con "pago unico", "/ mes" o "por semana" mas pequeno al lado */
.tia-svc-card .tia-precio {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 8px;
  row-gap: 2px;
  min-height: 0;
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tia-svc-card .tia-precio-main {
  font-size: clamp(24px, 7vw, 28px);
  letter-spacing: -0.03em;
  color: #fff;
}

.tia-svc-card .tia-precio-label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(226, 233, 245, 0.6);
}

.tia-svc-card .tia-precio-extra {
  flex-basis: 100%;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 600;
  color: #9fc0ff;
}

/* Boton con degradado azul y flecha */
.tia-svc-card .tia-svc-btn {
  margin-top: 14px;
  gap: 10px;
  min-height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #3d86ff 0%, #1a6bff 45%, #0d4ecc 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  letter-spacing: 0.01em;
}

.tia-svc-arrow {
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.tia-svc-card .tia-svc-btn:hover .tia-svc-arrow,
.tia-svc-card .tia-svc-btn:focus-visible .tia-svc-arrow {
  transform: translateX(4px);
}

/* Tarjeta destacada ("Mas elegido") */
.tia-svc-card--destacado {
  background: linear-gradient(160deg, rgba(77, 143, 255, 0.18) 0%, rgba(255, 255, 255, 0.05) 55%, rgba(26, 107, 255, 0.12) 100%);
  box-shadow:
    0 28px 70px rgba(3, 10, 24, 0.5),
    0 0 0 1px rgba(77, 143, 255, 0.25),
    0 0 40px rgba(26, 107, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.tia-svc-card--destacado::before {
  opacity: 1;
  background: linear-gradient(145deg, rgba(159, 192, 255, 0.75) 0%, rgba(77, 143, 255, 0.45) 45%, rgba(255, 255, 255, 0.1) 75%, rgba(77, 143, 255, 0.6) 100%);
}

.tia-svc-destacado {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 1;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #3d86ff, #0d4ecc);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 18px rgba(26, 107, 255, 0.45);
  white-space: nowrap;
}

/* Al pasar el mouse: sube un poco y el borde brilla */
@media (hover: hover) {
  .tia-svc-card:hover {
    transform: translateY(-6px);
    box-shadow:
      0 32px 70px rgba(3, 10, 24, 0.5),
      0 0 34px rgba(26, 107, 255, 0.25),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }
  .tia-svc-card:hover::before { opacity: 1; }
}

@media (min-width: 768px) {
  .tia-svc-card .tia-card-body { padding: 30px 26px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .tia-svc-card,
  .tia-svc-card:hover,
  .tia-svc-arrow,
  .tia-svc-card .tia-svc-btn:hover .tia-svc-arrow { transition: none; transform: none; }
}

/* ── Como trabajamos ───────────────────────────────────── */
.tia-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  list-style: none;
  counter-reset: tia-paso;
}

.tia-step {
  position: relative;
  padding: 22px 20px 22px 72px;
  border-radius: var(--tia-radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  counter-increment: tia-paso;
}

.tia-step::before {
  content: counter(tia-paso);
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--tia-blue);
  color: #fff;
  font-family: var(--tia-font-display);
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 6px 18px rgba(26, 107, 255, 0.4);
}

.tia-step-title {
  font-size: 17px;
  color: #fff;
  margin-bottom: 6px;
}

.tia-step-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 768px) {
  .tia-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}

@media (min-width: 1080px) {
  .tia-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tia-step { padding: 76px 22px 24px; }
  .tia-step::before { top: 24px; left: 22px; }
}

/* ── Franja final ──────────────────────────────────────── */
.tia-cta-band {
  padding: 40px 0 64px;
}

.tia-cta-box {
  max-width: 860px;
  margin: 0 auto;
  padding: 36px 22px;
  text-align: center;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--tia-blue) 0%, var(--tia-blue-dark) 100%);
  box-shadow: 0 20px 50px rgba(26, 107, 255, 0.3);
}

.tia-cta-title {
  font-size: clamp(22px, 6vw, 32px);
  color: #fff;
  margin-bottom: 10px;
}

.tia-cta-text {
  max-width: 560px;
  margin: 0 auto 24px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
}

/* Boton blanco dentro de la franja azul */
.tia-cta-box .tia-btn--light {
  color: var(--tia-blue);
  background: #fff;
  box-shadow: 0 10px 28px rgba(10, 22, 40, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tia-cta-box .tia-btn--light:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(10, 22, 40, 0.3);
}

@media (max-width: 539px) {
  .tia-cta-box .tia-btn { width: 100%; }
}

@media (min-width: 768px) {
  .tia-cta-band { padding: 56px 0 96px; }
  .tia-cta-box { padding: 56px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .tia-cta-box .tia-btn--light,
  .tia-cta-box .tia-btn--light:hover { transition: none; transform: none; }
}

/* Precio: "IVA incluido" (LATAM) y etiqueta del primer mes incluido */
.tia-precio-iva {
  font-size: 12px;
  font-weight: 500;
  color: var(--tia-ink-mist);
}

.tia-precio-tag {
  align-self: flex-start;
  max-width: 100%;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--tia-blue);
  background: rgba(26, 107, 255, 0.08);
  border: 1px solid rgba(26, 107, 255, 0.2);
  overflow-wrap: anywhere;
}

.tia-det-precio .tia-precio-tag { align-self: center; }

.tia-svc-card .tia-precio-iva,
.tia-svc-card .tia-precio-tag { flex-basis: 100%; }

.tia-svc-card .tia-precio-iva { color: rgba(226, 233, 245, 0.6); }

.tia-svc-card .tia-precio-tag {
  flex-basis: auto;
  color: #cfe0ff;
  background: rgba(77, 143, 255, 0.14);
  border-color: rgba(159, 192, 255, 0.3);
}

/* Precio "Desde" (Software a la medida, App nativa) */
.tia-precio-desde {
  flex-basis: 100%;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tia-ink-mist);
}

.tia-svc-card .tia-precio-desde { color: rgba(226, 233, 245, 0.7); }
