/* === QUIEN SOY V2 — Estilos adicionales === */

/* KPI Section */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center
}

.kpi-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 16px;
  position: relative;
  overflow: hidden
}

.kpi-box::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: 16px;
  background: conic-gradient(from 0deg, rgba(163, 230, 53, 0), rgba(163, 230, 53, .45), rgba(6, 182, 212, .35), rgba(163, 230, 53, .45), rgba(163, 230, 53, 0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .2;
  pointer-events: none;
  animation: spin 14s linear infinite
}

.kpi-number {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  background: linear-gradient(90deg, var(--lime), #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1
}

.kpi-label {
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px
}

/* Timeline V2 */
.tl2 {
  position: relative;
  padding: 32px 0
}

.tl2::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand), var(--lime), var(--accent));
  border-radius: 999px;
  transform: translateX(-50%);
  box-shadow: 0 0 20px rgba(34, 197, 94, .3)
}

.tl2-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  box-sizing: border-box
}

.tl2-item:nth-child(odd) {
  left: 0;
  text-align: right;
  padding-right: 60px
}

.tl2-item:nth-child(even) {
  left: 50%;
  text-align: left;
  padding-left: 60px
}

.tl2-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--lime);
  border: 3px solid var(--bg);
  border-radius: 50%;
  top: 28px;
  box-shadow: 0 0 12px rgba(34, 197, 94, .5);
  z-index: 2
}

.tl2-item:nth-child(odd) .tl2-dot {
  right: -10px
}

.tl2-item:nth-child(even) .tl2-dot {
  left: -10px
}

.tl2-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(34, 197, 94, .10);
  transition: transform .3s ease, box-shadow .3s ease
}

.tl2-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 42px rgba(163, 230, 53, .22), 0 8px 24px rgba(6, 182, 212, .12)
}

.tl2-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: 16px;
  background: conic-gradient(from 0deg, rgba(163, 230, 53, 0), rgba(163, 230, 53, .45), rgba(6, 182, 212, .35), rgba(163, 230, 53, .45), rgba(163, 230, 53, 0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .28;
  pointer-events: none;
  animation: spin 14s linear infinite
}

.tl2-card:hover::before {
  opacity: 1;
  animation-duration: 6s
}

.tl2-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px
}

.tl2-item:nth-child(odd) .tl2-head {
  justify-content: flex-end
}

.tl2-date {
  font-size: 14px;
  font-weight: 700;
  color: var(--lime);
  background: rgba(74, 222, 128, .15);
  padding: 4px 12px;
  border-radius: 999px
}

.badge-active {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #22c55e, #06b6d4);
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .5px
}

.badge-fund {
  font-size: 11px;
  font-weight: 700;
  color: #eaf7ef;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .5px
}

.badge-free {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .5px
}

.badge-hired {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #22c55e, #06b6d4);
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .5px
}

.tl2-title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: #fff
}

.tl2-company {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--brand);
  font-weight: 600
}

.tl2-desc {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6
}

.tl2-desc ul {
  padding-left: 0;
  margin: 8px 0 0;
  list-style: none
}

.tl2-desc li {
  position: relative;
  padding-left: 20px;
  margin: 6px 0
}

.tl2-desc li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--lime))
}

.tl2-item:nth-child(odd) .tl2-desc ul {
  text-align: left
}

/* IA Level Bar */
.ia-bar {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px
}

.ia-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap
}

.ia-track {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12)
}

.ia-fill {
  height: 100%;
  border-radius: 999px;
  width: 0%;
  transition: width 1.2s cubic-bezier(.22, .61, .36, 1);
  background: linear-gradient(90deg, var(--brand), var(--lime), var(--accent))
}

.ia-pct {
  font-size: 13px;
  font-weight: 800;
  color: var(--lime);
  min-width: 36px
}

/* Tech Stack */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  transition: all .3s ease
}

.tech-badge:hover {
  background: rgba(163, 230, 53, .12);
  border-color: var(--lime);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(34, 197, 94, .2)
}

.tech-badge i {
  font-size: 18px;
  color: var(--lime)
}

/* Generic info carousel (stack + trust) */
.info-carousel {
  position: relative;
  overflow: hidden;
  padding: 0 38px;
}

.info-wrap {
  overflow: hidden;
}

.info-slides {
  display: flex;
  transition: transform .5s cubic-bezier(.25, .8, .25, 1);
}

.info-slide {
  min-width: 100%;
  box-sizing: border-box;
}

.tech-grid--slide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  justify-content: center;
  padding: 4px 2px 10px;
}

.trust-grid--slide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  justify-content: center;
  padding: 6px 2px 10px;
}

.info-prev,
.info-next {
  position: absolute;
  top: 44%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, .55);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .2);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  transition: opacity .2s, background .2s;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
}

.info-prev:hover,
.info-next:hover {
  background: rgba(34, 197, 94, .65);
}

.info-prev {
  left: 0;
}

.info-next {
  right: 0;
}

.info-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.info-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .2);
  cursor: pointer;
  padding: 0;
}

.info-dot.is-active {
  background: var(--lime);
  border-color: var(--lime);
  box-shadow: 0 0 8px rgba(163, 230, 53, .55);
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px
}

.folio-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform .4s ease, box-shadow .4s ease;
  cursor: pointer;
  position: relative
}

.folio-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 50px rgba(34, 197, 94, .25)
}

.folio-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  filter: brightness(.9);
  transition: filter .3s ease;
  flex: 0 0 100%
}

.folio-card:hover .folio-img {
  filter: brightness(1)
}

/* Carousel */
.folio-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 16px 16px 0 0
}

.folio-slides {
  display: flex;
  transition: transform .5s cubic-bezier(.25, .8, .25, 1)
}

.folio-prev,
.folio-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, .55);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .2);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  opacity: 0;
  transition: opacity .3s, background .3s;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px)
}

.folio-carousel:hover .folio-prev,
.folio-carousel:hover .folio-next {
  opacity: 1
}

.folio-prev:hover,
.folio-next:hover {
  background: rgba(34, 197, 94, .6)
}

.folio-prev {
  left: 10px
}

.folio-next {
  right: 10px
}

.folio-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3
}

.folio-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
  border: 1px solid rgba(255, 255, 255, .3);
  cursor: pointer;
  transition: all .3s ease
}

.folio-dots .dot.active {
  background: var(--lime);
  box-shadow: 0 0 8px rgba(163, 230, 53, .6);
  transform: scale(1.2)
}

.folio-info {
  padding: 16px
}

.folio-info h3 {
  margin: 0 0 4px;
  font-size: 16px;
  color: #fff
}

.folio-info p {
  margin: 0;
  font-size: 13px;
  color: var(--muted)
}

.folio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px
}

.folio-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(163, 230, 53, .12);
  color: var(--lime);
  border: 1px solid rgba(163, 230, 53, .2)
}

/* Trust Strip */
.trust-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center
}

.trust-logo {
  padding: 10px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  transition: all .3s ease;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
  min-height: 56px;
  display: grid;
  place-items: center
}

.trust-logo:hover {
  background: rgba(163, 230, 53, .08);
  border-color: rgba(163, 230, 53, .3)
}

/* Innovation Section */
.inno-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px
}

.inno-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease
}

.inno-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(34, 197, 94, .18)
}

.inno-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(34, 197, 94, .15), rgba(6, 182, 212, .15));
  display: inline-grid;
  place-items: center;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, .12)
}

.inno-icon i {
  font-size: 26px;
  color: var(--lime)
}

.inno-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #fff
}

.inno-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6
}

/* Formation V2 */
.form2-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px
}

.form2-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform .3s ease
}

.form2-item:hover {
  transform: translateX(4px)
}

.form2-year {
  font-size: 13px;
  font-weight: 700;
  color: var(--lime);
  background: rgba(74, 222, 128, .15);
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap
}

.form2-info h4 {
  margin: 0 0 2px;
  font-size: 15px;
  color: var(--text)
}

.form2-info p {
  margin: 0;
  font-size: 13px;
  color: var(--muted)
}

.form2-cat {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px
}

/* About Hero V2 */
.about2-hero {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: center
}

.about2-photo {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative
}

.about2-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover
}

.about2-intro h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -.02em
}

.about2-intro h1 .name {
  color: var(--brand)
}

.about2-intro .tagline {
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 16px;
  line-height: 1.6
}

.about2-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 16px
}

.a2-stat {
  text-align: center
}

.a2-stat-val {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--lime), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent
}

.a2-stat-lbl {
  font-size: 13px;
  color: var(--muted)
}

/* Section Headers V2 */
.sh2 {
  text-align: center;
  margin-bottom: 40px
}

.sh2 h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 36px);
  background: linear-gradient(90deg, #fff, var(--lime));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent
}

.sh2 p {
  margin: 0;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto
}

.sh2-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--lime);
  background: rgba(74, 222, 128, .12);
  border: 1px solid rgba(74, 222, 128, .2);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px
}

/* Animated reveal */
.rv {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease
}

.rv.is-v {
  opacity: 1;
  transform: none
}

/* Responsive */
@media(max-width:960px) {
  .about2-hero {
    grid-template-columns: 1fr
  }

  .about2-photo {
    max-width: 300px;
    margin: 0 auto
  }

  .kpi-strip {
    grid-template-columns: repeat(2, 1fr)
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .inno-grid {
    grid-template-columns: 1fr
  }

  .tl2::before {
    left: 20px
  }

  .tl2-item {
    width: 100%;
    left: 0 !important;
    text-align: left !important;
    padding-left: 60px !important;
    padding-right: 20px !important
  }

  .tl2-dot {
    left: 10px !important;
    right: auto !important
  }

  .tl2-item:nth-child(odd) .tl2-head {
    justify-content: flex-start
  }

  .tl2-item:nth-child(odd) .tl2-desc ul {
    text-align: left
  }

  .tech-grid--slide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-grid--slide {
    grid-template-columns: 1fr;
  }

  .tech-badge {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media(max-width:640px) {
  .kpi-strip {
    grid-template-columns: 1fr 1fr
  }

  .portfolio-grid {
    grid-template-columns: 1fr
  }

  .about2-stats {
    justify-content: center
  }

  .info-carousel {
    padding: 0 24px;
  }

  .tech-grid--slide {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .tech-badge {
    font-size: 13px;
    padding: 9px 12px;
  }

  .info-prev,
  .info-next {
    width: 30px;
    height: 30px;
    font-size: 18px;
    top: 42%;
  }
}
