/* Inka Experience Group — estilos compartidos */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Archivo', 'Inter', ui-sans-serif, system-ui, sans-serif;
}

/* Revelado suave al hacer scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Subrayado animado para enlaces de navegación */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background-color: #E31E24;
  transition: width 0.25s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Foco visible accesible */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #E31E24;
  outline-offset: 2px;
}

/* Utilidad de imagen en escala de grises con hover a color */
.photo-mono {
  filter: grayscale(100%) contrast(1.05);
  transition: filter 0.4s ease;
}
.photo-mono:hover {
  filter: grayscale(20%) contrast(1.05);
}

/* Placeholder de respaldo cuando una imagen externa no carga */
.img-fallback {
  object-fit: contain !important;
  background-color: #171717;
  padding: 2rem;
}
.thin-scroll::-webkit-scrollbar {
  height: 6px;
}
.thin-scroll::-webkit-scrollbar-thumb {
  background-color: #E31E24;
  border-radius: 999px;
}

/* Marca de agua numérica grande (secciones "La Agencia") */
.watermark {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  color: rgba(0,0,0,0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* ============================================================
   MICRO-ANIMACIONES — aplican automáticamente en todo el sitio
   ============================================================ */

/* Suave aparición de cada página al cargar */
body {
  animation: pageFadeIn 0.5s ease;
}
@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Botones (cualquier <a> o <button> con esquinas rounded-md):
   leve elevación al pasar el mouse y "presión" al hacer clic */
a[class~="rounded-md"],
button[class~="rounded-md"] {
  transition: background-color 0.2s ease, border-color 0.2s ease,
              color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  will-change: transform;
}
a[class~="rounded-md"]:hover,
button[class~="rounded-md"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(0,0,0,0.28);
}
a[class~="rounded-md"]:active,
button[class~="rounded-md"]:active {
  transform: translateY(0) scale(0.97);
  box-shadow: none;
}

/* Tarjetas con sombra al hover: agregamos elevación suave y
   un pequeño "pop" al ícono interno */
[class~="hover:shadow-xl"] {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
[class~="hover:shadow-xl"]:hover {
  transform: translateY(-4px);
}
[class~="hover:shadow-xl"] svg {
  transition: transform 0.3s ease;
}
[class~="hover:shadow-xl"]:hover svg {
  transform: scale(1.1);
}

/* Fotografías en escala de grises: además del color al hover,
   un leve acercamiento (zoom) */
.photo-mono {
  transition: filter 0.4s ease, transform 0.5s ease;
}
.photo-mono:hover {
  transform: scale(1.02);
}

/* Campos de formulario: transición suave al enfocar */
input, textarea, select {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

/* Logo del header: leve "respiro" al pasar el mouse */
a[class~="shrink-0"]:not([class~="rounded-md"]) {
  transition: transform 0.25s ease;
  display: inline-flex;
}
a[class~="shrink-0"]:not([class~="rounded-md"]):hover {
  transform: scale(1.04);
}

/* Íconos circulares (redes sociales, contacto): rotación sutil al hover */
a[class~="rounded-full"] svg,
span[class~="rounded-full"] svg {
  transition: transform 0.3s ease;
}
a[class~="rounded-full"]:hover svg {
  transform: rotate(-8deg) scale(1.1);
}

/* Chips de selección (formulario "Personaliza tu solución") */
[data-goal-chip] {
  transition: transform 0.15s ease, border-color 0.2s ease,
              background-color 0.2s ease, color 0.2s ease;
}
[data-goal-chip]:hover {
  transform: translateY(-2px);
}
[data-goal-chip]:active {
  transform: scale(0.96);
}

/* Íconos dentro de listas de características: pequeño giro al hover del contenedor */
li:hover > svg,
li:hover svg:first-child {
  transform: scale(1.12);
}
li svg {
  transition: transform 0.25s ease;
}

/* Respeta la preferencia de "menos movimiento" del sistema operativo */
@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  a[class~="rounded-md"],
  button[class~="rounded-md"],
  [class~="hover:shadow-xl"],
  [class~="hover:shadow-xl"] svg,
  .photo-mono,
  a[class~="shrink-0"],
  a[class~="rounded-full"] svg,
  [data-goal-chip],
  li svg {
    transition: none !important;
    animation: none !important;
  }
  a[class~="rounded-md"]:hover,
  button[class~="rounded-md"]:hover,
  [class~="hover:shadow-xl"]:hover,
  .photo-mono:hover,
  a[class~="shrink-0"]:hover {
    transform: none !important;
  }
}

/* ============================================================
   BANNER PRINCIPAL — efecto "drone" sobrio: leve rotación /
   acercamiento orbital de la foto + nubes con deriva lenta
   ============================================================ */

/* Foto de fondo: recorrido orbital lento y muy sutil, como si un
   dron sobrevolara al personaje describiendo un arco suave */
@keyframes heroDroneOrbit {
  0%   { transform: scale(1.06) translate3d(0%, 0%, 0)     rotate(0deg); }
  25%  { transform: scale(1.09) translate3d(-1.1%, 0.6%, 0) rotate(0.45deg); }
  50%  { transform: scale(1.11) translate3d(0%, 1.1%, 0)    rotate(0deg); }
  75%  { transform: scale(1.09) translate3d(1.1%, 0.6%, 0)  rotate(-0.45deg); }
  100% { transform: scale(1.06) translate3d(0%, 0%, 0)     rotate(0deg); }
}
.hero-drone-photo {
  animation: heroDroneOrbit 48s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  transform-origin: 52% 42%;
  will-change: transform;
}

/* Capa de "nubes" (pura CSS, sin imagen extra) que se desplaza muy
   lentamente en sentido horizontal, como llevada por el viento */
.hero-clouds-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 42% 20% at 12% 20%, rgba(255,255,255,0.30), transparent 62%),
    radial-gradient(ellipse 32% 16% at 48% 12%, rgba(255,255,255,0.22), transparent 60%),
    radial-gradient(ellipse 38% 18% at 82% 28%, rgba(255,255,255,0.26), transparent 62%),
    radial-gradient(ellipse 28% 14% at 30% 55%, rgba(255,255,255,0.16), transparent 60%),
    radial-gradient(ellipse 30% 15% at 68% 62%, rgba(255,255,255,0.14), transparent 60%);
  background-size: 180% 100%;
  background-repeat: no-repeat;
  mix-blend-mode: screen;
  filter: blur(7px);
  animation: heroCloudsDrift 120s linear infinite;
}
@keyframes heroCloudsDrift {
  0%   { background-position: -10% 50%; }
  100% { background-position: 130% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-drone-photo,
  .hero-clouds-layer {
    animation: none !important;
    transform: none !important;
  }
}
