/*
 * AdelantTa — Custom CSS
 * ======================
 * Estilo ejecutivo / corporativo RRHH
 * Colores: Navy #334155 · Brand #EA8C00
 */

/* Smooth scroll global */
html {
  scroll-behavior: smooth;
}

/* ============================================================
   TIPOGRAFÍA — gradiente para headings destacados
============================================================ */

.text-brand-gradient {
  background: linear-gradient(135deg, #EA8C00, #C27300);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   BADGES — etiquetas de sección
============================================================ */

.section-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background-color: #FEF3DC;
  color: #C27300;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-badge-light {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background-color: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.7);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.15);
}

/* ============================================================
   HERO — fondo ejecutivo profesional
============================================================ */

.hero-executive {
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(234, 140, 0, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 10% 80%, rgba(234, 140, 0, 0.04) 0%, transparent 55%),
    #FFFFFF;
}

/* Patrón de puntos muy sutil */
.hero-pattern {
  background-image: radial-gradient(circle, #CBD5E1 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.04;
}

/* ============================================================
   SERVICE CARD — panel hero oscuro de áreas
============================================================ */

.service-card {
  position: relative;
}

.area-row {
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.area-row:hover {
  background-color: rgba(234, 140, 0, 0.08) !important;
  border-color: rgba(234, 140, 0, 0.2) !important;
}

/* ============================================================
   ANIMACIONES DE ENTRADA — Scroll triggered
============================================================ */

[data-animate] {
  opacity: 0;
  transition:
    opacity  0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate="up"]    { transform: translateY(24px); }
[data-animate="left"]  { transform: translateX(-24px); }
[data-animate="right"] { transform: translateX(24px); }
[data-animate="scale"] { transform: scale(0.95); }

[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

/* Delays */
[data-delay="100"] { transition-delay: 0.10s; }
[data-delay="150"] { transition-delay: 0.15s; }
[data-delay="180"] { transition-delay: 0.18s; }
[data-delay="200"] { transition-delay: 0.20s; }
[data-delay="250"] { transition-delay: 0.25s; }
[data-delay="260"] { transition-delay: 0.26s; }
[data-delay="300"] { transition-delay: 0.30s; }
[data-delay="320"] { transition-delay: 0.32s; }
[data-delay="350"] { transition-delay: 0.35s; }
[data-delay="400"] { transition-delay: 0.40s; }

/* ============================================================
   PAIN CARDS — tarjetas de dolor (sección situación)
============================================================ */

.pain-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.pain-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -12px rgba(234, 140, 0, 0.12);
  border-color: rgba(234, 140, 0, 0.15) !important;
}

/* ============================================================
   BENEFIT BLOCKS — bloques de beneficio (sección servicio)
============================================================ */

.benefit-block {
  transition: background-color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.benefit-block:hover {
  transform: translateX(4px);
}

/* ============================================================
   AREA CARDS — grid de áreas (sección oscura)
============================================================ */

.area-card {
  transition: background-color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.area-card:hover {
  transform: translateY(-3px);
}

/* ============================================================
   NAV LINK — hover con indicador
============================================================ */

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #EA8C00;
  border-radius: 2px;
  transition: width 0.2s ease;
}

.nav-link:hover::after {
  width: 60%;
}

/* ============================================================
   BOTONES CTA — efecto sutil
============================================================ */

.btn-cta-primary {
  position: relative;
  overflow: hidden;
}

.btn-cta-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 50%);
  pointer-events: none;
}

/* ============================================================
   LOGO MARQUEE — carrusel infinito de clientes
============================================================ */

@keyframes marquee-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* Contenedor con fade en los bordes */
.marquee-wrap {
  overflow: hidden;
  -webkit-mask: linear-gradient(
    to right,
    transparent 0%,
    #000 12%,
    #000 88%,
    transparent 100%
  );
  mask: linear-gradient(
    to right,
    transparent 0%,
    #000 12%,
    #000 88%,
    transparent 100%
  );
}

/* Pista animada */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-left 28s linear infinite;
}

.marquee-track--reverse {
  animation: marquee-right 36s linear infinite;
}

/* Pausa al hacer hover */
.marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}

/* Cada logo */
.marquee-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 210px;
  height: 88px;
  padding: 0 28px;
}

.marquee-item img {
  max-height: 56px;
  width: auto;
  object-fit: contain;
  /* mezcla el blanco del fondo de los JPGs con el fondo blanco de la sección */
  mix-blend-mode: multiply;
  filter: grayscale(100%) opacity(0.55);
  transition: filter 0.3s ease;
}

.marquee-item img:hover {
  filter: grayscale(0%) opacity(1);
}

/* ============================================================
   PAPER ILLUSTRATIONS — estilo blueprint / papel de ingeniería
============================================================ */

/* Fondo papel con cuadrícula sutil */
.paper-bg {
  background-color: #FDFAF5;
  background-image:
    linear-gradient(rgba(234,140,0,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(234,140,0,0.07) 1px, transparent 1px);
  background-size: 40px 40px;
}

