/* =========================================================
   Inicio: triángulo Tecnología · Datos · Poder
   ========================================================= */
:root { --cyan-text: #0097A7; }

/* Texto */
.intro-title { font-size: clamp(2.8rem, 5.8vw, 5.2rem); line-height: 1.02; max-width: none; }
.intro-lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 30em; }
.tw { transition: color .3s; }
.tw--p { color: var(--pink); }
.js .tw--t { animation: twT 6s ease-in-out 2.6s infinite; }
.js .tw--d { animation: twD 6s ease-in-out 4.6s infinite; }
.js .tw--p { animation: twP 6s ease-in-out 6.6s infinite; }
@keyframes twT { 0%, 30%, 100% { color: var(--ink); } 6%, 24% { color: var(--royal); } }
@keyframes twD { 0%, 30%, 100% { color: var(--ink); } 6%, 24% { color: var(--cyan-text); } }
@keyframes twP { 0%, 30%, 100% { color: var(--pink); text-shadow: none; } 6%, 24% { color: var(--pink); text-shadow: 0 0 22px rgba(228,11,124,.45); } }

/* "Sigue leyendo" debajo del párrafo, alineado a la izquierda */
.intro .scroll-cue {
  position: static; transform: none; flex-direction: row; gap: .8rem; margin-top: clamp(28px, 4vw, 44px); width: max-content;
}
.intro { padding-bottom: clamp(48px, 7vw, 88px); }

/* Triángulo */
.intro-visual--tri { aspect-ratio: 480 / 440; max-width: 500px; }
.tri { width: 100%; height: 100%; display: block; overflow: visible; }
.t-fill { opacity: 0; }
.t-edge { stroke: var(--royal); stroke-width: 2.5; stroke-linecap: round; opacity: .75; }
.t-mesh { stroke: var(--lavender); stroke-width: 1.2; opacity: .55; }
.t-dot { fill: var(--lavender); }
.t-core { fill: var(--pink); }
.t-core-halo { fill: none; stroke: var(--pink); stroke-width: 2; opacity: .4; transform-box: fill-box; transform-origin: center; }
.t-v { stroke: var(--white); stroke-width: 4; }
.t-v-halo { opacity: .18; transform-box: fill-box; transform-origin: center; }
.t-vertex--t .t-v, .t-vertex--t .t-v-halo { fill: var(--royal); }
.t-vertex--d .t-v, .t-vertex--d .t-v-halo { fill: var(--cyan); }
.t-vertex--p .t-v, .t-vertex--p .t-v-halo { fill: var(--pink); }
.t-pulse { fill: var(--white); filter: drop-shadow(0 0 5px rgba(228,11,124,.9)) drop-shadow(0 0 2px rgba(40,62,139,.8)); }
.tri-chip {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  padding: .5rem 1.05rem; border-radius: 999px; font-weight: 700; font-size: .92rem; white-space: nowrap;
  background: var(--white); color: var(--ink); box-shadow: 0 12px 26px -12px rgba(20,23,58,.35);
}
.tri-chip--t { color: var(--royal); }
.tri-chip--d { background: var(--obsidian); color: var(--white); }
.tri-chip--p { background: var(--pink); color: var(--white); }

/* Construcción al entrar */
.js .t-vertex { opacity: 0; transform-box: fill-box; transform-origin: center; animation: triPop .5s cubic-bezier(.3,1.6,.5,1) forwards; }
.js .t-vertex--t { animation-delay: .3s; }
.js .t-vertex--d { animation-delay: .5s; }
.js .t-vertex--p { animation-delay: .7s; }
@keyframes triPop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
.js .t-edge { stroke-dasharray: 1; stroke-dashoffset: 1; animation: triDraw .6s ease-out forwards; animation-delay: calc(.9s + var(--i) * .35s); }
.js .t-mesh { stroke-dasharray: 1; stroke-dashoffset: 1; animation: triDraw .5s ease-out forwards; animation-delay: calc(1.6s + var(--i) * .05s); }
@keyframes triDraw { to { stroke-dashoffset: 0; } }
.js .t-fill { animation: triFade .8s ease-out 1.9s forwards; }
@keyframes triFade { to { opacity: 1; } }
.js .t-dot, .js .t-core, .js .t-core-halo { opacity: 0; transform-box: fill-box; transform-origin: center; animation: triPop .4s cubic-bezier(.3,1.6,.5,1) forwards; animation-delay: calc(1.8s + var(--i, 0) * .06s); }
.js .t-core { animation-delay: 2.2s; }
.js .t-core-halo { animation: triPop .4s 2.2s forwards, triHalo 2.6s ease-out 2.6s infinite; }
@keyframes triHalo { 0% { transform: scale(1); opacity: .45; } 100% { transform: scale(2.6); opacity: 0; } }
.js .tri-chip { opacity: 0; animation: chipIn .5s ease-out forwards; }
.js .tri-chip--t { animation-delay: .5s; }
.js .tri-chip--d { animation-delay: .7s; }
.js .tri-chip--p { animation-delay: .9s; }
@keyframes chipIn { from { opacity: 0; transform: translate(-50%, -30%); } to { opacity: 1; transform: translate(-50%, -50%); } }

/* Pulsos que recorren los lados (aparecen cuando el triángulo ya está armado) */
.t-pulses { opacity: 0; animation: triFade .4s ease-out 2.6s forwards; }

/* Encendido de cada vértice por turnos, sincronizado con el título */
.js .t-vertex--t .t-v-halo { animation: vLit 6s ease-in-out 2.6s infinite; }
.js .t-vertex--d .t-v-halo { animation: vLit 6s ease-in-out 4.6s infinite; }
.js .t-vertex--p .t-v-halo { animation: vLit 6s ease-in-out 6.6s infinite; }
@keyframes vLit { 0%, 30%, 100% { transform: scale(1); opacity: .18; } 6%, 24% { transform: scale(1.7); opacity: .45; } }

@media (max-width: 1024px) {
  .intro-visual--tri { max-width: 380px; margin: 32px auto 24px; }
}
@media (max-width: 640px) {
  .intro-visual--tri { max-width: 290px; }
  .tri-chip { font-size: .78rem; padding: .4rem .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .js .t-vertex, .js .t-dot, .js .t-core, .js .t-core-halo, .js .tri-chip, .js .t-fill, .t-pulses { animation: none; opacity: 1; }
  .js .tri-chip { transform: translate(-50%, -50%); }
  .js .t-edge, .js .t-mesh { animation: none; stroke-dashoffset: 0; }
  .js .tw--t, .js .tw--d, .js .tw--p, .js .t-v-halo { animation: none; }
  .t-pulses { display: none; }
}

/* "Tecnología, datos" en un solo renglón */
.intro-inner { grid-template-columns: 1.25fr .75fr; }
.intro-title { font-size: clamp(2.6rem, 5vw, 4.6rem); }
@media (max-width: 1024px) { .intro-inner { grid-template-columns: 1fr; } }

/* Inicio: sin altura mínima, solo el aire necesario */
.intro { min-height: 0; padding: clamp(40px, 5vw, 64px) 0 clamp(48px, 5.5vw, 72px); }
.hero-lead--cv + .hero-lead--cv { margin-top: -.4em; }

/* "poder" se resalta igual que las otras dos palabras: de azul oscuro a rosa, sin resplandor */
.tw--p { color: var(--ink); }
@keyframes twP { 0%, 30%, 100% { color: var(--ink); text-shadow: none; } 6%, 24% { color: var(--pink); text-shadow: none; } }

/* Ilustraciones provistas en "Dos miradas" */
.view2-img { width: 78%; height: 86%; object-fit: contain; display: block; }
.views2 .view2-art { aspect-ratio: auto; height: clamp(200px, 20vw, 260px); }
.view2-img { width: 82%; height: 84%; }
/* Cierre más compacto */
.closing { min-height: 0; padding: clamp(64px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); }
.views2 .view2-art { display: flex; align-items: center; justify-content: center; overflow: hidden; }
.views2 .view2-img { width: auto; height: auto; max-width: 82%; max-height: 84%; }

/* Tecnología + Personas: centrado y animado */
.tp-line {
  display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2.4vw, 28px);
  margin: clamp(40px, 5vw, 64px) 0 0; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  font-size: clamp(1.3rem, 2.8vw, 2.2rem); color: var(--ink);
}
.tp-plus {
  display: grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%;
  background: var(--pink); color: var(--white); font-size: .9em; line-height: 1; box-shadow: var(--shadow-pink);
}
.tp-word { position: relative; }
.tp-word::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.18em; height: .12em; border-radius: 99px;
  background: var(--pink); transform: scaleX(0); transform-origin: left;
}
.js .tp-word--a { opacity: 0; transform: translateX(-40px); }
.js .tp-word--b { opacity: 0; transform: translateX(40px); }
.js .tp-plus { opacity: 0; transform: scale(0) rotate(-180deg); }
.js .tp-line.is-visible .tp-word--a { animation: tpInA .7s cubic-bezier(.2,.8,.3,1) .1s forwards; }
.js .tp-line.is-visible .tp-word--b { animation: tpInB .7s cubic-bezier(.2,.8,.3,1) .1s forwards; }
.js .tp-line.is-visible .tp-plus { animation: tpPlus .6s cubic-bezier(.3,1.6,.5,1) .7s forwards, tpBeat 2.4s ease-in-out 1.6s infinite; }
.js .tp-line.is-visible .tp-word--a::after { animation: tpLine 4.8s ease-in-out 1.6s infinite; }
.js .tp-line.is-visible .tp-word--b::after { animation: tpLine 4.8s ease-in-out 4s infinite; }
@keyframes tpInA { to { opacity: 1; transform: none; } }
@keyframes tpInB { to { opacity: 1; transform: none; } }
@keyframes tpPlus { to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes tpBeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } }
@keyframes tpLine { 0% { transform: scaleX(0); transform-origin: left; } 20%, 45% { transform: scaleX(1); transform-origin: left; } 46% { transform-origin: right; } 65%, 100% { transform: scaleX(0); transform-origin: right; } }
@media (prefers-reduced-motion: reduce) {
  .js .tp-word--a, .js .tp-word--b, .js .tp-plus { opacity: 1; transform: none; animation: none !important; }
  .tp-word::after { display: none; }
}
.tp-plus { width: 1.5em; height: 1.5em; font-size: 1em; }
.tp-plus svg { width: 52%; height: 52%; display: block; fill: none; stroke: var(--white); stroke-width: 3.2; stroke-linecap: round; }

/* Cita bajo la foto del hero */
.photo-quote { margin: clamp(28px, 3vw, 40px) auto 0; max-width: 440px; text-align: center; }
.photo-quote .about-quote-mark { font-size: clamp(3.6rem, 5vw, 4.6rem); }
.photo-quote p { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.45; }
.js .hero .photo-quote { opacity: 0; transform: translateY(12px); transition: opacity .7s ease, transform .7s ease; transition-delay: 1s; }
.js .hero.is-in .photo-quote { opacity: 1; transform: none; }
/* Cita bajo la foto: más grande, del ancho de la foto */
.photo-quote { max-width: none; width: 100%; margin-top: clamp(24px, 2.6vw, 34px); }
.photo-quote .about-quote-mark { font-size: clamp(4.4rem, 6vw, 5.6rem); }
.photo-quote p { font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.35; }
/* Cita bajo la foto, dentro de una caja */
.photo-quote {
  position: relative; margin-top: clamp(36px, 3.4vw, 44px); padding: 2.4rem 1.8rem 1.6rem;
  background: var(--white); border: 1.5px solid var(--pink-100); border-radius: 20px;
  box-shadow: 0 18px 40px -26px rgba(20,23,58,.35);
}
.photo-quote::before {
  content: ""; position: absolute; left: 1.8rem; right: 1.8rem; bottom: -1.5px; height: 3px; border-radius: 3px; background: var(--pink);
}
.photo-quote .about-quote-mark {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 52px; height: 52px; margin: 0; border-radius: 50%;
  background: var(--pink); color: var(--white); font-size: 2.6rem; line-height: 1; padding-top: .35em;
  box-shadow: var(--shadow-pink);
}
.photo-quote p { font-size: clamp(1.2rem, 1.8vw, 1.55rem); }
.photo-quote { padding: 2.4rem 1.2rem 1.6rem; }
.photo-quote p { font-size: clamp(1.15rem, 1.65vw, 1.45rem); }
.photo-quote .about-quote-strong { white-space: nowrap; }
.photo-quote .about-quote-mark { font-size: 3.4rem; padding-top: .42em; }
@media (max-width: 480px) { .photo-quote .about-quote-strong { white-space: normal; } }
.photo-quote .about-quote-mark { padding-top: 0; height: 52px; line-height: 1.32; align-content: start; overflow: hidden; }
.photo-quote .about-quote-mark { line-height: 0; font-size: 0; overflow: visible; align-content: center; }
.photo-quote .about-quote-mark svg { width: 24px; height: 24px; fill: var(--white); display: block; }
.photo-quote .about-quote-mark svg { width: 26px; height: 26px; }
/* Menos espacio entre el inicio y "Pensamiento en movimiento" */
.intro { padding-bottom: clamp(24px, 2.6vw, 36px); }
.hero { padding-top: clamp(32px, 3.4vw, 48px); }
/* Fondos del inicio y del hero que se funden en blanco en la unión (sin corte recto) */
.intro {
  background:
    linear-gradient(to bottom, rgba(255,255,255,0) 60%, #fff 100%),
    radial-gradient(900px 520px at 85% 10%, rgba(228,11,124,.10), transparent 60%),
    radial-gradient(700px 460px at 0% 100%, rgba(123,131,235,.08), transparent 60%),
    var(--white);
}
.hero {
  background:
    linear-gradient(to bottom, #fff 0%, rgba(255,255,255,0) 30%),
    radial-gradient(900px 520px at 88% 10%, rgba(228,11,124,.10), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(40,62,139,.06), transparent 60%),
    var(--white);
}
/* Que las sombras de las etiquetas del triángulo no se corten en el borde del bloque */
.intro { overflow: visible; z-index: 1; }

/* Idiomas: una fila por idioma con medidor de nivel */
.langs2 { display: flex; flex-direction: column; gap: 1.35rem; }
.lang-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .5rem; }
.lang-name { font-weight: 600; color: var(--ink); font-size: 1rem; }
.lang-level { font-size: .8rem; font-weight: 500; color: var(--pink); }
.lang-meter { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.lang-meter i { height: 8px; border-radius: 99px; background: var(--pink-100); }
.lang-meter i.on { background: linear-gradient(90deg, var(--pink), #F2479E); }
.js .academy-col.is-visible .lang-meter i.on { animation: meterIn .5s ease-out both; }
.lang-meter i.on:nth-child(2) { animation-delay: .08s; }
.lang-meter i.on:nth-child(3) { animation-delay: .16s; }
.lang-meter i.on:nth-child(4) { animation-delay: .24s; }
.lang-meter i.on:nth-child(5) { animation-delay: .32s; }
@keyframes meterIn { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); transform-origin: left; } }

/* Idiomas: lista simple con separadores y nivel en pastilla */
.langs3 li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.langs3 li:first-child { padding-top: .2rem; }
.langs3 li:last-child { border-bottom: 0; }
.langs3 .lang-name { font-weight: 600; color: var(--ink); font-size: 1rem; }
.lang-pill { font-size: .78rem; font-weight: 600; color: var(--pink-700); background: var(--pink-50); border: 1px solid var(--pink-100); padding: .3em .9em; border-radius: 999px; }

/* Formación: tarjetas uniformes y prolijas */
.edu-card, .edu-card--featured {
  position: relative; overflow: hidden; border-top: 1px solid var(--line);
  padding: 1.7rem 1.8rem; gap: 0;
}
.edu-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--pink-100);
}
.edu-card--featured::before { background: var(--pink); }
.edu-years {
  align-self: flex-start; display: inline-block; margin-bottom: .9rem; padding: .25em .8em; border-radius: 999px;
  background: var(--pink-50); border: 1px solid var(--pink-100); color: var(--pink-700); font-weight: 600; font-size: .78rem; letter-spacing: .04em;
}
.edu-card h3 { margin-bottom: .35rem; line-height: 1.25; }
.edu-card .edu-inst { margin-bottom: 0; }
.edu-card--featured .edu-inst { margin-bottom: .9rem; }
.edu-card--featured .link-arrow { padding-top: .4rem; }
.edu-grid { align-items: start; }
.edu-card--featured { align-self: stretch; }
.edu-grid { align-items: stretch; }
.closing-cta { cursor: default; } .closing-cta:hover { color: var(--ink); } .closing-cta:hover span { transform: none; }
.closing-actions .closing-cta { margin: 0; }
/* Redes debajo de la cita del hero */
.hero-social { justify-content: center; margin-top: 1.2rem; gap: .7rem; }
.js .hero .hero-social { opacity: 0; transform: translateY(10px); transition: opacity .6s ease 1.3s, transform .6s ease 1.3s; }
.js .hero.is-in .hero-social { opacity: 1; transform: none; }
/* X centrado exactamente bajo la comilla: columnas laterales iguales */
.hero-social { display: grid; grid-template-columns: 1fr auto 1fr; }
.hero-social li:first-child { justify-self: end; }
.hero-social li:last-child { justify-self: start; }
/* El logo de X (no el botón) queda en el eje de la comilla */
@media (min-width: 481px) { .hero-social li:nth-child(2) a { position: relative; left: 12px; }
.hero-social li:nth-child(3) a { position: relative; left: 24px; } }

/* Cortes de cita más compactos y menos aire alrededor */
.quote-break { padding: clamp(40px, 4.6vw, 64px) 0; }
.quote-break + .section, .quote-break + section { padding-top: clamp(24px, 2.6vw, 36px); }
.section:has(+ .quote-break) { padding-bottom: clamp(24px, 2.6vw, 36px); }
@media (max-width: 640px) { .quote-break { padding: 36px 0; } }
.quote-break { padding: clamp(28px, 3vw, 40px) 0; }
@media (max-width: 640px) { .quote-break { padding: 28px 0; } }

/* Algunos encuentros: lista 2 × 2 con íconos */
.events2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.4rem; max-width: 1000px; margin: 0 auto; }
.ev { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.4rem 1.5rem; border-radius: 18px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 14px 30px -24px rgba(20,23,58,.35); }
.ev-icon { flex: 0 0 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--pink-50); border: 1px solid var(--pink-100); }
.ev-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--pink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ev h3 { font-size: 1.05rem; line-height: 1.3; margin: .1rem 0 .35rem; }
.ev p { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--muted); }
@media (max-width: 760px) { .events2 { grid-template-columns: 1fr; } }
/* Footer: mismo logotipo que el header (solo el nombre) */
.site-footer .brand-name { font-size: 1.2rem; font-weight: 600; }

/* Algunos encuentros: lista limpia sin cajas */
.events2 { display: block; max-width: 920px; border-top: 1px solid var(--line); }
.ev {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1.2fr); gap: 0 1.6rem; align-items: center;
  padding: 1.15rem .4rem; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none;
}
.ev > div { display: contents; }
.ev-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; }
.ev-icon svg { width: 22px; height: 22px; }
.ev h3 { margin: 0; font-size: 1.02rem; }
.ev p { margin: 0; font-size: .92rem; }
@media (max-width: 760px) {
  .ev { grid-template-columns: 44px 1fr; row-gap: .3rem; }
  .ev p { grid-column: 2; }
}
.ev { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
@media (max-width: 760px) { .ev { grid-template-columns: 1fr; } .ev p { grid-column: 1; } }
.kicker-noline::before, .kicker-noline::after { display: none; }

/* Formación: lista limpia, mismo formato que "Algunos encuentros" */
.edu-list { max-width: 920px; border-top: 1px solid var(--line); }
.edu-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 0 1.6rem; padding: 1.3rem .4rem; border-bottom: 1px solid var(--line); }
.edu-y { font-family: var(--font-alt); font-weight: 600; font-size: .92rem; color: var(--pink); letter-spacing: .03em; padding-top: .12rem; font-variant-numeric: lining-nums; }
.edu-main h3 { margin: 0 0 .25rem; font-size: 1.08rem; line-height: 1.3; }
.edu-main .edu-inst { margin: 0; font-size: .9rem; color: var(--muted); }
.edu-desc { margin: .6rem 0 0; font-size: .93rem; line-height: 1.6; color: var(--text); max-width: 46em; }
.edu-main .link-arrow { display: inline-flex; margin-top: .5rem; font-size: .9rem; }
@media (max-width: 640px) { .edu-row { grid-template-columns: 1fr; row-gap: .3rem; } }
.site-footer .footer-inner { justify-content: center; }

/* ===== Ajustes de móvil ===== */
@media (max-width: 640px) {
  /* Red de nodos del hero: tapaba el nombre y el texto */
  .hero-network { display: none; }
  /* Palabras flotantes: no entran a los costados de la frase */
  .quote-break .data-rain { display: none; }
  /* Línea de tiempo vertical: la línea quedaba corrida a la izquierda */
  .eras::before, .eras::after { display: none; }
  .eras { gap: 2rem; }
  /* Motor de análisis centrado y nodos a todo el ancho */
  .engine-core { justify-self: stretch; margin-bottom: .6rem; }
  .engine-left, .engine-right, .engine-bottom { align-items: stretch; }
  .engine-node { width: 100%; white-space: normal; }
  /* Redes del cierre en una sola fila */
  .closing-social { gap: .45rem; flex-wrap: nowrap; }
  .closing-social a { padding: .5rem .75rem .5rem .6rem; font-size: .85rem; gap: .4rem; }
  .closing-social svg { width: 18px; height: 18px; }
}

/* Hero primero: fundidos en blanco entre hero → inicio → Leer el cambio */
.hero {
  background:
    linear-gradient(to bottom, rgba(255,255,255,0) 70%, #fff 100%),
    radial-gradient(900px 520px at 88% 10%, rgba(228,11,124,.10), transparent 60%),
    var(--white);
}
.intro {
  padding-top: clamp(48px, 5vw, 72px);
  background:
    linear-gradient(to bottom, #fff 0%, rgba(255,255,255,0) 25%, rgba(255,255,255,0) 70%, #fff 100%),
    radial-gradient(800px 480px at 82% 45%, rgba(228,11,124,.09), transparent 60%),
    radial-gradient(600px 400px at 0% 70%, rgba(123,131,235,.07), transparent 60%),
    var(--white);
}
