/* ==========================================================================
   Solo para la página de inicio (/, /en/, /de/): agencia digital
   Servicios en tres pilares, ilustración del titular (web + agentes de IA),
   sección de EVA y proceso de trabajo. Las páginas legales no cargan este
   archivo, así que nada de aquí las afecta.
   ========================================================================== */

/* ---------- Subtítulo de sección ---------- */

.seccion__lead {
  max-width: 580px;
  margin-top: 16px;
  color: var(--texto-2);
  font-size: 18px; line-height: 1.6;
}

/* ---------- Ilustración del titular: web + agente de texto + agente de voz ---------- */

.collage--agencia { aspect-ratio: 1 / .9; }
/* La web arriba, el agente de texto a la izquierda y el de voz abajo a la derecha */
.collage--agencia .collage__web { top: 0; left: 7%; width: 89%; z-index: 1; }
.collage--agencia .llamada { position: absolute; right: 0; bottom: 0; z-index: 3; }
.collage--agencia .chat { position: absolute; left: 0; bottom: 16%; z-index: 2; width: 56%; }

.llamada {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 18px;
  background: var(--oscuro); color: #fff;
  box-shadow: var(--sombra-l);
}
.llamada__icono {
  position: relative;
  display: grid; place-items: center; flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #22c55e; color: #fff;
}
.llamada__icono .icono { width: 18px; height: 18px; }
.llamada__icono::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  animation: llamada 2s infinite;
}
@keyframes llamada {
  0% { box-shadow: 0 0 0 0 rgb(34 197 94 / .55); }
  70%, 100% { box-shadow: 0 0 0 12px rgb(34 197 94 / 0); }
}
.llamada__texto { display: flex; flex-direction: column; line-height: 1.25; white-space: nowrap; }
.llamada__texto b { font-size: 13.5px; font-weight: 800; }
.llamada__texto small { color: #aab3c5; font-size: 11.5px; font-weight: 600; }
.onda { display: flex; align-items: center; gap: 3px; height: 26px; margin-left: 4px; }
.onda i {
  width: 3px; height: 100%;
  border-radius: 3px;
  background: #8ea4ff;
  transform: scaleY(.3);
  animation: onda 1.2s ease-in-out infinite;
}
.onda i:nth-child(2n) { animation-delay: -.3s; }
.onda i:nth-child(3n) { animation-delay: -.6s; }
.onda i:nth-child(4n) { animation-delay: -.9s; }
@keyframes onda { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }

.chat {
  border-radius: 20px;
  background: var(--superficie);
  box-shadow: var(--sombra-l);
  overflow: hidden;
  font-size: 12.5px;
}
.chat__cab {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--borde);
}
.chat__avatar {
  display: grid; place-items: center; flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--acento), #7a5cff);
  color: #fff;
}
.chat__avatar .icono { width: 16px; height: 16px; }
.chat__nombre { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.chat__nombre b { font-size: 13px; font-weight: 800; }
.chat__nombre small {
  display: flex; align-items: center; gap: 5px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  color: var(--texto-2); font-size: 11px; font-weight: 600;
}
.chat__nombre small i { flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--verde); }
.chat__cuerpo { display: flex; flex-direction: column; gap: 6px; padding: 12px; background: #f5f3ee; }
.burbuja {
  max-width: 86%;
  margin: 0; padding: 8px 11px;
  border-radius: 14px;
  font-weight: 500; line-height: 1.38;
  animation: burbuja .45s cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: calc(.5s + var(--i, 0) * .65s);
}
.burbuja--cliente { align-self: flex-start; border-bottom-left-radius: 4px; background: var(--superficie); color: var(--tinta); box-shadow: var(--sombra-s); }
.burbuja--agente { align-self: flex-end; border-bottom-right-radius: 4px; background: var(--acento); color: #fff; }
@keyframes burbuja { from { opacity: 0; transform: translateY(8px) scale(.97); } }

/* ---------- Servicios: tres pilares ---------- */

.pilares {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.pilar {
  display: flex; flex-direction: column; gap: 14px;
  padding: 32px 30px 30px;
  border-radius: var(--radio);
  background: var(--superficie);
  box-shadow: inset 0 0 0 1px var(--borde);
}
.pilar__cab { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 8px; }
.pilar__icono {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--acento-suave);
  color: var(--acento-texto);
}
.pilar__icono .icono { width: 28px; height: 28px; stroke-width: 1.8; }
.pilar__num { color: var(--texto-3); font-family: var(--fuente-display); font-size: 24px; font-style: italic; }
.pilar h3 { font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
.pilar > p { color: var(--texto-2); font-size: 16px; line-height: 1.6; }
.pilar__puntos {
  display: flex; flex-direction: column; gap: 10px;
  margin: 6px 0 8px; padding-top: 18px;
  border-top: 1px solid var(--borde);
}
.pilar__puntos li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; font-weight: 600; line-height: 1.45; }
.pilar__puntos .icono { width: 18px; height: 18px; margin-top: 1px; color: var(--verde); stroke-width: 2.6; }
.pilar__cta {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: auto; padding-top: 10px;
  color: var(--acento-texto);
  font-weight: 800;
}
.pilar__cta .icono { width: 18px; height: 18px; transition: transform .2s; }
.pilar__cta:hover .icono { transform: translateX(4px); }

.pilar--destacado { background: var(--oscuro); color: #f2f4f9; box-shadow: var(--sombra-l); }
.pilar--destacado .pilar__icono { background: rgb(255 255 255 / .1); color: #9fb2ff; }
.pilar--destacado .pilar__num { color: #6f7891; }
.pilar--destacado > p { color: #b8bfce; }
.pilar--destacado .pilar__puntos { border-color: rgb(255 255 255 / .12); }
.pilar--destacado .pilar__puntos .icono { color: #7ee2a8; }
.pilar--destacado .pilar__cta { color: #9fb2ff; }

/* ---------- EVA ---------- */

.eva {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: center;
}
.eva__texto .seccion__titulo { margin-bottom: 18px; }
.eva__intro { max-width: 520px; color: var(--texto-2); font-size: 18px; line-height: 1.6; }
.eva__puntos { display: flex; flex-direction: column; gap: 18px; margin: 30px 0 34px; }
.eva__puntos li { display: flex; align-items: flex-start; gap: 16px; }
.eva__icono {
  display: grid; place-items: center; flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--superficie);
  box-shadow: inset 0 0 0 1px var(--borde);
  color: var(--acento-texto);
}
.eva__icono .icono { width: 22px; height: 22px; }
.eva__puntos b { display: block; margin-bottom: 2px; font-size: 16.5px; font-weight: 800; }
.eva__puntos span { color: var(--texto-2); font-size: 15px; line-height: 1.55; }
.eva__acciones { display: flex; flex-wrap: wrap; gap: 12px; }
.eva__visual {
  padding: 40px;
  border-radius: 32px;
  background: linear-gradient(150deg, #dde5ff, var(--tinte));
}

.bandeja {
  border-radius: 20px;
  background: var(--superficie);
  box-shadow: var(--sombra-l);
  overflow: hidden;
  font-size: 13.5px;
}
.bandeja__cab { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--borde); }
.bandeja__marca {
  display: grid; place-items: center;
  height: 28px; padding: 0 10px;
  border-radius: 8px;
  background: var(--oscuro); color: #fff;
  font-size: 12px; font-weight: 800; letter-spacing: .08em;
}
.bandeja__titulo { font-weight: 800; }
.bandeja__equipo { display: flex; margin-left: auto; }
.bandeja__equipo i {
  display: grid; place-items: center;
  width: 26px; height: 26px;
  margin-left: -6px;
  border: 2px solid var(--superficie);
  border-radius: 50%;
  background: var(--acento-suave);
  color: var(--acento-texto);
  font-size: 10.5px; font-style: normal; font-weight: 800;
}
.bandeja__lista li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--borde); }
.bandeja__lista li.activo { background: var(--acento-suave); box-shadow: inset 3px 0 0 var(--acento); }
.bandeja__avatar {
  display: grid; place-items: center; flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 16%, #fff);
  color: var(--c);
  font-weight: 800;
}
.bandeja__msg { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.bandeja__msg b { font-weight: 800; }
.bandeja__msg span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--texto-2); }
.bandeja__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; color: var(--texto-3); font-size: 11.5px; }
.bandeja__meta em {
  display: grid; place-items: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px;
  background: var(--acento); color: #fff;
  font-size: 11px; font-style: normal; font-weight: 800;
}
.bandeja__ia { margin: 14px; padding: 14px 16px; border-radius: 16px; background: #f4f6ff; box-shadow: inset 0 0 0 1px #d9e1ff; }
.bandeja__chip {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--acento-texto);
  font-size: 11.5px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase;
}
.bandeja__chip .icono { width: 14px; height: 14px; }
.bandeja__ia p { margin: 8px 0 12px; line-height: 1.5; }
.bandeja__botones { display: flex; gap: 8px; }
.mini {
  display: inline-flex; align-items: center;
  height: 30px; padding: 0 14px;
  border-radius: 999px;
  background: var(--superficie);
  box-shadow: inset 0 0 0 1px var(--borde);
  font-size: 12.5px; font-weight: 800;
}
.mini--primario { background: var(--acento); color: #fff; box-shadow: none; }

/* ---------- Cómo trabajamos ---------- */

.proceso {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0; padding: 0;
  list-style: none;
}
.paso {
  padding: 26px 24px 28px;
  border-radius: var(--radio);
  background: var(--fondo);
  box-shadow: inset 0 0 0 1px var(--borde);
}
.paso__num {
  display: block;
  margin-bottom: 18px;
  color: var(--acento-texto);
  font-family: var(--fuente-display); font-size: 40px; font-style: italic; line-height: 1;
}
.paso h3 { margin-bottom: 8px; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.paso p { color: var(--texto-2); font-size: 15px; line-height: 1.55; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .pilares { grid-template-columns: 1fr; max-width: 640px; }
  .eva { grid-template-columns: 1fr; gap: 48px; }
  .eva__visual { width: min(100%, 620px); }
  .proceso { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .collage--agencia { aspect-ratio: 1 / 1.08; }
  .collage--agencia .collage__web { top: 0; left: 4%; width: 96%; }
  .collage--agencia .chat { bottom: 17%; width: 76%; font-size: 11.5px; }
  .chat .burbuja:nth-child(n+4) { display: none; }
  .llamada { gap: 10px; padding: 10px 12px 10px 10px; }
  .llamada__icono { width: 34px; height: 34px; }
  .onda { height: 20px; }
  .pilar { padding: 26px 22px 24px; }
  .pilar h3 { font-size: 22px; }
  .eva__visual { padding: 18px; border-radius: 24px; }
  .bandeja { font-size: 12.5px; }
  .proceso { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .burbuja, .onda i, .llamada__icono::after { animation: none; }
  .onda i { transform: scaleY(.6); }
}
