/* ═══════════════════════════════════════════════════
   Desarrollo y People Analytics – dpa.css
   Hereda variables de styles.css
════════════════════════════════════════════════════ */

/* ── Hero ──────────────────────────────────────── */
.dpa-hero {
  position: relative;
  min-height: 100vh;
  background: url('../images/banner desarrollo y people analytics.jpg') center top/cover no-repeat;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.dpa-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(43,3,63,.97) 0%,
    rgba(43,3,63,.72) 42%,
    rgba(43,3,63,.18) 100%);
}
.dpa-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font); font-size: .75rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ta-yellow);
  background: rgba(255,205,0,.12);
  border: 1px solid rgba(255,205,0,.3);
  padding: .4rem 1.1rem; border-radius: 50px;
  margin-bottom: 1.25rem; width: fit-content;
}
.dpa-hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900; font-family: var(--font);
  color: #fff; line-height: 1.05; margin-bottom: 1rem;
}
.dpa-hero-accent {
  background: linear-gradient(90deg, #ffcd00, #f48818);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dpa-hero-sub {
  font-size: 1.05rem; font-weight: 300;
  color: rgba(255,255,255,.78);
  max-width: 580px; line-height: 1.78;
}

/* ── Soluciones (minicards) ────────────────────── */
.dpa-soluciones { background: #fff; }

.minicard-wrapper {
  position: relative;
  z-index: 1;
}
.minicard-wrapper:hover { z-index: 10; }
.minicard-card {
  background: linear-gradient(135deg, #ffcd00 0%, #f48818 100%);
  border-radius: 20px;
  padding: 2.2rem 2rem 2rem;
  box-shadow: 0 10px 36px rgba(255,205,0,.22);
  transition: box-shadow .3s, transform .3s, border-radius .3s;
  display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: .9rem;
}
.minicard-wrapper:hover .minicard-card {
  box-shadow: 0 16px 48px rgba(255,205,0,.38);
  transform: translateY(-4px);
  border-radius: 20px 20px 0 0;
}
.minicard-icon {
  width: 80px; height: 80px;
  background: rgba(43,3,63,.13);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; color: var(--ta-dark);
  transition: transform .3s;
}
.minicard-wrapper:hover .minicard-icon { transform: scale(1.08); }
.minicard-title {
  font-family: var(--font); font-size: 1.05rem; font-weight: 700;
  color: var(--ta-dark); line-height: 1.3; margin: 0;
}
.minicard-desc {
  font-size: .88rem; font-weight: 400;
  color: rgba(43,3,63,.72); line-height: 1.7; margin: 0;
}
.minicard-dropdown {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--ta-dark2);
  border-radius: 0 0 20px 20px;
  box-shadow: 0 20px 48px rgba(35,2,45,.22);
  max-height: 0; overflow: hidden;
  transition: max-height .4s cubic-bezier(.4,0,.2,1), opacity .3s ease;
  opacity: 0; z-index: 10;
}
.minicard-wrapper:hover .minicard-dropdown {
  max-height: 260px;
  opacity: 1;
}
.minicard-dropdown ul {
  list-style: none; padding: 1.1rem 1.5rem 1.25rem; margin: 0;
  display: flex; flex-direction: column; gap: .1rem;
}
.minicard-dropdown ul li {
  display: flex; align-items: center; gap: .55rem;
  font-size: .87rem; font-weight: 400; color: rgba(255,255,255,.82);
  padding: .45rem 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.minicard-dropdown ul li:last-child { border: none; }
.minicard-dropdown ul li i { color: var(--ta-yellow); font-size: .95rem; flex-shrink: 0; }

/* ── Metodología: Infinity loop ─────────────────── */
.dpa-metodologia { background: var(--ta-dark2); }

.dpa-infinity-outer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* SVG container: the SVG fills this and nodes are overlaid */
.dpa-infinity-svg-container {
  position: relative;
  width: 100%;
  max-width: 720px;
  padding: 2.5rem 4rem; /* lateral padding for side nodes */
}
.dpa-infinity-svg {
  width: 100%; height: auto; display: block;
}

/* Animated traveling dot path (hidden – only for animateMotion reference) */
.dpa-inf-hidden-path { display: none; }

/* ── Nodes (overlaid as HTML on SVG) ── */
.dpa-node {
  position: absolute;
  display: flex; flex-direction: column; align-items: center;
  cursor: pointer;
  transform: translate(-50%, -50%);
  z-index: 5;
  transition: transform .2s;
}
.dpa-node:hover { transform: translate(-50%, -50%) scale(1.1); }

.dpa-node-dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255,205,0,.55);
  border: 2px solid var(--ta-yellow);
  box-shadow: 0 0 0 5px rgba(255,205,0,.15), 0 0 18px rgba(255,205,0,.35);
  transition: all .3s;
  position: relative;
}
.dpa-node-dot::after {
  content: '';
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255,205,0,.3);
  animation: dpaPulse 2s ease-in-out infinite;
}
.dpa-node.active .dpa-node-dot {
  background: var(--ta-yellow);
  box-shadow: 0 0 0 6px rgba(255,205,0,.25), 0 0 28px rgba(255,205,0,.6);
}
@keyframes dpaPulse {
  0%,100% { transform: scale(1); opacity: .6; }
  50%      { transform: scale(1.4); opacity: 0; }
}

.dpa-node-label {
  font-family: var(--font); font-size: .68rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.6);
  text-align: center; line-height: 1.3;
  background: rgba(25,1,38,.75);
  border: 1px solid rgba(255,205,0,.15);
  padding: .28rem .65rem; border-radius: 6px;
  margin-top: .5rem;
  white-space: nowrap;
  transition: color .3s, border-color .3s;
  backdrop-filter: blur(4px);
}
.dpa-node.active .dpa-node-label {
  color: var(--ta-yellow);
  border-color: rgba(255,205,0,.4);
}

/* Node absolute positions (% of .dpa-infinity-svg-container) */
/* 6 nodes distributed evenly around the figure-8 */
.dpa-node--0 { left: 30%; top: 10%; }   /* left loop,  top         */
.dpa-node--1 { left: 70%; top: 10%; }   /* right loop, top         */
.dpa-node--2 { left: 91%; top: 50%; }   /* right loop, far right   */
.dpa-node--3 { left: 70%; top: 87%; }   /* right loop, bottom      */
.dpa-node--4 { left: 30%; top: 87%; }   /* left loop,  bottom      */
.dpa-node--5 { left:  9%; top: 50%; }   /* left loop,  far left    */

/* ── Description panel ── */
.dpa-node-descs {
  width: 100%; max-width: 620px;
  text-align: center;
  min-height: 110px;
}
.dpa-node-desc {
  display: none;
  animation: dpaDescIn .4s ease;
}
.dpa-node-desc.active { display: block; }
@keyframes dpaDescIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.dpa-node-desc h4 {
  font-family: var(--font); font-size: 1.1rem; font-weight: 700;
  color: var(--ta-yellow); margin-bottom: .6rem;
}
.dpa-node-desc p {
  font-size: .95rem; font-weight: 300;
  color: rgba(255,255,255,.68); line-height: 1.82; margin: 0;
}

/* ── Stats row ── */
.dpa-stats-row {
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 2rem 5rem;
  margin-top: 3rem; padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.dpa-stat-item { text-align: center; }
.dpa-stat-num {
  display: block; font-family: var(--font);
  font-size: 2.6rem; font-weight: 900; line-height: 1;
  background: linear-gradient(90deg, #ffcd00, #f48818);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dpa-stat-lbl {
  display: block; font-size: .78rem; font-weight: 500;
  color: rgba(255,255,255,.45);
  text-transform: uppercase; letter-spacing: .07em;
  margin-top: .3rem;
}

/* ── ¿Por qué nosotros? — dos zonas + lucecitas ─── */
.dpa-porque { padding: 0; overflow: hidden; }

.dpa-pq-outer {
  display: flex;
  min-height: 640px;
  align-items: stretch;
}

/* Zona amarilla — imagen */
.dpa-pq-left {
  flex: 0 0 42%;
  max-width: 42%;
  background: linear-gradient(160deg, #ffe566 0%, #ffcd00 40%, #f4a300 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.dpa-pq-persona {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Puntos pulsantes en el borde derecho de la imagen */
.dpa-pq-dot {
  position: absolute;
  right: -7px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,.35),
              0 0 22px 8px rgba(255,205,0,.95);
  animation: pqDotPulse 2.2s ease-in-out infinite;
  z-index: 6;
}
.dpa-pq-dot--0 { top: 54%; animation-delay: 0s; }
.dpa-pq-dot--1 { top: 67%; animation-delay: .75s; }
.dpa-pq-dot--2 { top: 80%; animation-delay: 1.5s; }

@keyframes pqDotPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 4px rgba(255,255,255,.35), 0 0 22px 8px rgba(255,205,0,.95);
  }
  50% {
    transform: scale(1.45);
    box-shadow: 0 0 0 7px rgba(255,255,255,.55), 0 0 34px 14px rgba(255,205,0,1);
  }
}

/* Zona oscura — cards */
.dpa-pq-right {
  flex: 1;
  background: var(--ta-dark2, #1a1a3e);
  display: flex;
  align-items: center;
  overflow: visible;
}

.dpa-pq-right-inner {
  padding: 5rem 4rem 5rem 5.5rem;
  width: 100%;
  overflow: visible;
}

/* Cards de diferenciación */
.dpa-pq-card {
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
  padding: 1.6rem 1.75rem 1.6rem 2rem;
  background: rgba(255,255,255,.04);
  border-left: 3px solid rgba(255,205,0,.45);
  border-radius: 0 16px 16px 0;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: visible;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.dpa-pq-card:last-child { margin-bottom: 0; }
.dpa-pq-card:hover {
  background: rgba(255,205,0,.07);
  border-color: var(--ta-yellow);
  box-shadow: 0 8px 32px rgba(255,205,0,.1);
}

/* Lucecita — línea conductora que viene desde la imagen */
.dpa-pq-card-wire {
  position: absolute;
  left: -5.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 5.5rem;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,205,0,.12) 35%,
    rgba(255,205,0,.65) 100%);
  pointer-events: none;
  overflow: visible;
}

/* Spark viajero */
.dpa-pq-spark {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 25%, #ffcd00 100%);
  box-shadow: 0 0 10px 4px rgba(255,205,0,.85),
              0 0 22px 8px rgba(255,205,0,.35);
  animation: pqSparkH 2.6s ease-in-out infinite;
}
.dpa-pq-spark--1 { animation-delay: .87s; }
.dpa-pq-spark--2 { animation-delay: 1.74s; }

@keyframes pqSparkH {
  0%   { left: 0; opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { left: calc(100% - 10px); opacity: 0; }
}

/* Número de card */
.dpa-pq-card-num {
  font-family: var(--font); font-size: 2rem; font-weight: 900;
  line-height: 1; flex-shrink: 0;
  background: linear-gradient(135deg, #ffcd00, #f48818);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-width: 2.6rem;
}

.dpa-pq-card-title {
  font-family: var(--font); font-size: 1.05rem; font-weight: 700;
  color: #fff; margin-bottom: .45rem; line-height: 1.3;
}

.dpa-pq-card-desc {
  font-size: .88rem; font-weight: 300;
  color: rgba(255,255,255,.6); line-height: 1.78;
  margin: 0;
}

/* ── CTA Final ─────────────────────────────────── */
.dpa-cta { background: var(--ta-dark); }
.dpa-cta-inner {
  background: linear-gradient(90deg,
    rgba(255,205,0,1) 0%,
    rgba(255,205,0,.95) 35%,
    rgba(244,136,24,.92) 65%,
    rgba(229,44,57,.8) 100%);
  padding: 7rem 0;
}
.dpa-cta-logo {
  height: 52px; display: block;
  margin: 0 auto 1.5rem;
  filter: brightness(0);
}
.dpa-cta-tagline {
  font-family: var(--font); font-size: .9rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(43,3,63,.65); margin-bottom: 1.25rem;
}
.dpa-cta-title {
  font-family: var(--font);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 900; color: var(--ta-dark);
  line-height: 1.2; margin-bottom: 1rem;
}
.dpa-cta-sub {
  font-size: 1rem; font-weight: 300;
  color: rgba(43,3,63,.72); line-height: 1.78;
  max-width: 540px; margin: 0 auto;
}
.dpa-cta-btn {
  display: inline-flex; align-items: center;
  background: var(--ta-dark2); color: #fff;
  font-family: var(--font); font-weight: 700; font-size: .95rem;
  padding: 1rem 2.5rem; border-radius: 50px;
  text-decoration: none; transition: var(--ta-trans);
  box-shadow: 0 6px 24px rgba(43,3,63,.3);
}
.dpa-cta-btn:hover {
  background: var(--ta-dark); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(43,3,63,.45);
}
.dpa-cta-contact {
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 1.5rem;
}
.dpa-cta-contact a,
.dpa-cta-contact span {
  display: flex; align-items: center; gap: .5rem;
  font-size: .88rem; font-weight: 500; font-family: var(--font);
  color: rgba(43,3,63,.75); text-decoration: none;
  transition: color .2s;
}
.dpa-cta-contact a:hover { color: var(--ta-dark2); }
.dpa-cta-contact i { font-size: .95rem; }

/* ── Responsive ────────────────────────────────── */
@media (max-width: 991.98px) {
  .dpa-pq-left  { flex: 0 0 38%; max-width: 38%; }
  .dpa-pq-right-inner { padding: 4rem 2.5rem 4rem 4rem; }
}
@media (max-width: 767.98px) {
  .dpa-hero-title  { font-size: 2.4rem; }
  .dpa-hero-sub    { font-size: .95rem; }
  /* stack imagen arriba, cards abajo en móvil */
  .dpa-pq-outer { flex-direction: column; }
  .dpa-pq-left  { flex: none; max-width: 100%; height: 320px; align-items: flex-end; }
  .dpa-pq-persona { object-position: center 15%; height: 320px; }
  .dpa-pq-dot   { display: none; }
  .dpa-pq-card-wire { display: none; }
  .dpa-pq-right-inner { padding: 3rem 1.5rem; }
  .dpa-pq-card  { padding: 1.25rem 1.25rem 1.25rem 1.5rem; }
  .dpa-stats-row { gap: 1.5rem 3rem; }
  .dpa-stat-num  { font-size: 2rem; }
  .dpa-cta-inner { padding: 4rem 0; }
  .dpa-cta-contact { flex-direction: column; align-items: center; gap: 1rem; }
  .dpa-node-label { font-size: .6rem; padding: .2rem .45rem; }
  .dpa-node-dot   { width: 14px; height: 14px; }
}
