:root {
  --ink: #07111f; --blue: #1457ff; --sky: #8db9ff; --paper: #f5f6f2;
  --soft: #e9eeff; --line: #d8ddd9; --muted: #66707d; --white: #fff;
  --display: 'Manrope', sans-serif; --body: 'DM Sans', sans-serif;
  --page: min(1180px, 90vw); --section-space: clamp(88px, 10vw, 150px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.cursor-glow { position: fixed; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(20,87,255,.07), transparent 68%); pointer-events: none; transform: translate(-50%,-50%); z-index: 0; }

.site-header { height: 78px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(5vw, calc((100vw - 1180px)/2)); position: fixed; inset: 0 0 auto; z-index: 20; background: rgba(245,246,242,.88); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(7,17,31,.08); }
.brand { font-family: var(--display); font-size: 17px; font-weight: 800; letter-spacing: -1px; display: flex; align-items: center; }
.brand > span { background: var(--ink); color: white; padding: 7px; }
.brand > b { color: var(--blue); padding: 6px; border: 1px solid var(--ink); }
nav { display: flex; gap: 32px; font-size: 13px; }
nav a { position: relative; }
nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -7px; height: 1px; background: var(--blue); transition: .3s; }
nav a:hover::after { right: 0; }
.menu { display: none; border: 0; background: none; }

.hero { min-height: 100svh; width: var(--page); margin: auto; padding: 112px 0 64px; display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(36px, 5vw, 78px); align-items: center; position: relative; }
.eyebrow, .kicker { text-transform: uppercase; letter-spacing: .17em; font-size: 11px; line-height: 1; font-weight: 600; }
.eyebrow { display: flex; align-items: center; gap: 11px; }
.eyebrow .eyebrow-dot { width: 6px; height: 6px; flex: 0 0 6px; background: var(--blue); border-radius: 50%; box-shadow: 0 0 0 5px rgba(20,87,255,.11); }
.eyebrow-label { display: inline-flex; align-items: center; gap: 6px; }
.cr-flag { display: inline-block; width: 17px; height: 11px; flex: 0 0 auto; border-radius: 1px; background: linear-gradient(to bottom, #002b7f 0 16.66%, #fff 16.66% 33.33%, #ce1126 33.33% 66.66%, #fff 66.66% 83.33%, #002b7f 83.33% 100%); box-shadow: 0 0 0 1px rgba(7,17,31,.12); }
h1, h2 { font-family: var(--display); letter-spacing: -.055em; line-height: .99; margin: 18px 0 24px; font-weight: 700; }
h1 { font-size: clamp(48px, 5.7vw, 82px); }
h2 { font-size: clamp(42px, 5vw, 72px); }
h1 em, h2 em { color: var(--blue); font-style: normal; font-weight: 500; }
.hero-lead { font-size: clamp(16px, 1.35vw, 18px); line-height: 1.65; color: var(--muted); max-width: 540px; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 32px; }
.button { padding: 15px 18px; border-radius: 2px; font-weight: 600; display: inline-flex; gap: 28px; font-size: 13px; }
.primary { background: var(--blue); color: white; }
.text-link { font-size: 13px; font-weight: 600; border-bottom: 1px solid; padding-bottom: 4px; }
.hero-visual { margin: 0; min-width: 0; }
.image-frame { background: white; padding: 9px; box-shadow: 0 25px 70px rgba(7,17,31,.11); border: 1px solid var(--line); transition: transform .45s ease; }
.hero-visual:hover .image-frame { transform: translateY(-4px); }
.image-frame img { display: block; width: 100%; height: auto; }
.hero-visual figcaption { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.expand { border: 0; background: none; cursor: pointer; font-size: 17px; }

.section { padding: var(--section-space) max(5vw, calc((100vw - 1180px)/2)); position: relative; }
.section-intro { max-width: 900px; }
.section-intro > p:last-child { color: var(--muted); font-size: 17px; line-height: 1.65; max-width: 660px; }

.consulting { background: var(--ink); color: white; }
.consulting .kicker { color: var(--sky); }
.consulting h2 em { color: var(--sky); }
.consulting .section-intro > p:last-child { color: #aeb8c5; }
.services { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 68px; border-top: 1px solid #2b3542; border-bottom: 1px solid #2b3542; }
.service { padding: 42px clamp(28px, 3.2vw, 48px) 40px 0; border-right: 1px solid #2b3542; }
.service + .service { padding-left: clamp(28px, 3.2vw, 48px); }
.service:last-child { border-right: 0; }
.service-icon { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid #3c4858; border-radius: 14px; color: var(--sky); margin-bottom: 32px; }
.service-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font: 700 21px var(--display); margin: 0 0 16px; }
.service p { color: #aeb8c5; line-height: 1.62; min-height: 100px; font-size: 14px; }
.service ul { list-style: none; padding: 0; margin: 24px 0 0; color: #dce2e9; font-size: 12px; line-height: 2.1; }
.service li::before { content: '—'; color: var(--sky); margin-right: 9px; }
.consult-cta { margin-top: 52px; border: 1px solid #3c4755; padding: 24px 26px; display: flex; justify-content: space-between; align-items: center; transition: .3s; }
.consult-cta:hover { background: var(--blue); border-color: var(--blue); }
.consult-cta span { font: 600 20px var(--display); }
.consult-cta small { display: block; font: 10px var(--body); color: #9ba6b3; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 7px; }
.consult-cta b { font-size: 12px; }

.research { background: var(--soft); overflow: hidden; }
.research::before { content: ''; position: absolute; width: 540px; height: 540px; border: 1px solid rgba(20,87,255,.12); border-radius: 50%; right: -280px; top: 40px; box-shadow: 0 0 0 85px rgba(20,87,255,.025), 0 0 0 170px rgba(20,87,255,.02); }
.research-heading { max-width: none; display: grid; grid-template-columns: 1.45fr .55fr; gap: 80px; align-items: end; }
.research-heading > p { padding-bottom: 10px; }
.research-grid { margin-top: 64px; position: relative; }
.research-feature { background: var(--ink); color: white; min-height: 480px; display: grid; grid-template-columns: 1.05fr .95fr; overflow: hidden; }
.research-visual { position: relative; padding: 55px 40px; background: radial-gradient(circle at 42% 48%, #163e87 0, #0c2247 31%, var(--ink) 70%); display: flex; align-items: center; }
.research-visual::before { content: ''; position: absolute; inset: 28px; border: 1px solid rgba(141,185,255,.2); }
.research-visual svg { width: 100%; position: relative; }
.research-visual .signal { fill: none; stroke: var(--sky); stroke-width: 3; filter: drop-shadow(0 0 8px rgba(141,185,255,.8)); }
.research-visual .gridline { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 1; }
.research-visual circle { fill: var(--blue); stroke: white; stroke-width: 2; }
.research-visual span { position: absolute; left: 56px; bottom: 48px; color: var(--sky); font: 600 10px var(--display); letter-spacing: .16em; }
.research-content { padding: clamp(45px, 6vw, 80px); align-self: center; }
.research-content .label { color: var(--sky); }
.research-content h3 { font: 700 clamp(31px, 3.5vw, 50px)/1.08 var(--display); letter-spacing: -.045em; margin: 28px 0 20px; }
.research-content > p:not(.label) { color: #aeb8c5; line-height: 1.65; font-size: 15px; }
.research-content a { display: inline-flex; gap: 30px; margin-top: 28px; font-size: 12px; font-weight: 600; border-bottom: 1px solid #657080; padding-bottom: 5px; }
.label { text-transform: uppercase; letter-spacing: .15em; font-size: 10px; color: #596985; }
.focus-grid { display: grid; grid-template-columns: repeat(4,1fr); background: white; border: 1px solid #c7d0e8; border-top: 0; }
.focus-grid article { min-height: 190px; padding: 28px; border-right: 1px solid #c7d0e8; }
.focus-grid article:last-child { border-right: 0; }
.focus-icon { color: var(--blue); font-size: 28px; height: 40px; }
.focus-grid h3 { font: 650 16px var(--display); margin: 19px 0 9px; }
.focus-grid p { font-size: 12px; color: var(--muted); line-height: 1.55; margin: 0; }
.publications { display: grid; grid-template-columns: .52fr 1.48fr; gap: 70px; margin-top: 72px; }
.publications h3 { font: 700 26px var(--display); }
.publications ol { list-style: none; margin: 0; padding: 0; }
.publications li { display: grid; grid-template-columns: 60px 1fr 20px; gap: 24px; align-items: center; padding: 20px 0; border-top: 1px solid #bdc8e7; }
.publications li:last-child { border-bottom: 1px solid #bdc8e7; }
.publications li span { color: var(--blue); font-size: 11px; }
.publications li p { margin: 0; font-size: 14px; }
.publications li > a { font-size: 18px; line-height: 1; transition: color .2s, transform .2s; }
.publications li > a:hover { color: var(--blue); transform: translate(2px,-2px); }

.teaching { background: var(--paper); }
.teaching-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 64px; }
.teaching-card { min-height: 400px; padding: 42px; position: relative; overflow: hidden; }
.teaching-card > span { font-size: 10px; text-transform: uppercase; letter-spacing: .15em; }
.teaching-card h3 { font: 700 clamp(32px, 3.25vw, 46px)/1.06 var(--display); letter-spacing: -.05em; margin-top: 30px; }
.dark { background: var(--ink); color: white; }
.dark p { color: #9aa6b4; }
.mentor-card { isolation: isolate; }
.mentor-card::before { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(7,17,31,.98) 0%, rgba(7,17,31,.895) 46%, rgba(7,17,31,.71) 100%), url('/assets/profesor-mentor-texture.png') right 12px center / 42% auto no-repeat; filter: saturate(.74) contrast(1.05); opacity: .77; }
.mentor-card::after { content: ''; position: absolute; inset: 0; z-index: 0; background: radial-gradient(circle at 80% 38%, rgba(141,185,255,.12), transparent 42%), linear-gradient(180deg, rgba(7,17,31,0), rgba(7,17,31,.28)); }
.mentor-card > * { position: relative; z-index: 1; }
.mini-tags { position: absolute; bottom: 72px; left: 42px; right: 42px; display: flex; flex-wrap: wrap; gap: 7px; }
.mini-tags i { font-style: normal; font-size: 9px; border: 1px solid #425062; padding: 7px 8px; }
.academy { background: var(--blue); color: white; }
.academy::after { content: ''; position: absolute; width: 310px; height: 310px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; right: -120px; bottom: -140px; box-shadow: 0 0 0 55px rgba(255,255,255,.04); }
.aws-logo { position: absolute; z-index: 1; width: min(300px, 70%); left: 38px; bottom: 68px; padding: 12px 16px; background: white; border-radius: 3px; }
.academy, .courses { transition: transform .3s ease, box-shadow .3s ease; }
.academy:hover, .courses:hover { transform: translateY(-4px); box-shadow: 0 18px 45px rgba(7,17,31,.12); }
.courses { background: var(--sky); color: var(--ink); }
.courses::after { content: ''; position: absolute; width: 280px; height: 280px; border: 1px solid rgba(7,17,31,.12); border-radius: 50%; right: -135px; bottom: -125px; box-shadow: 0 0 0 48px rgba(255,255,255,.12); }
.card-cta { position: absolute; z-index: 2; left: 42px; bottom: 14px; color: inherit; font: 600 12px var(--display); border-bottom: 1px solid currentColor; padding-bottom: 5px; opacity: .9; transition: opacity .2s, transform .2s; }
.card-cta i { margin-left: 28px; font-style: normal; }
.card-cta:hover { opacity: 1; transform: translateX(3px); }
.values { grid-column: 1/-1; display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); padding: 36px; }
.values > .label { grid-column: 1/-1; }
.values div { padding: 28px 22px 4px; border-right: 1px solid var(--line); display: flex; align-items: center; gap: 16px; }
.values div:last-child { border: 0; }
.values b { font-size: 28px; color: var(--blue); }
.values span { font: 600 14px var(--display); }

.connect { background: #fafafa; display: grid; grid-template-columns: .72fr 1.28fr; gap: 8vw; }
.connect-copy { position: sticky; top: 125px; align-self: start; }
.connect-copy p:last-child { color: var(--muted); line-height: 1.6; max-width: 400px; font-size: 15px; }
.social-grid { border-top: 1px solid var(--line); }
.social-grid a { display: grid; grid-template-columns: 58px 1fr 26px; align-items: center; padding: 19px 5px; border-bottom: 1px solid var(--line); transition: .25s; }
.social-grid a:hover { padding-left: 14px; background: #eef2ff; }
.social-grid a > b { width: 39px; height: 39px; border: 1px solid #bac2c9; border-radius: 50%; display: grid; place-items: center; font: 700 12px var(--display); color: var(--blue); }
.social-grid span { font: 600 15px var(--display); }
.social-grid small { display: block; font: 10px var(--body); color: var(--muted); margin-top: 4px; }

footer { background: var(--ink); color: white; padding: 62px max(5vw, calc((100vw - 1180px)/2)); display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; }
footer > div { display: flex; align-items: center; gap: 18px; }
footer .brand { outline: 1px solid rgba(255,255,255,.9); }
footer .brand > b { background: var(--paper); border-color: var(--paper); }
footer p { color: #8894a2; font-size: 11px; line-height: 1.6; }
footer > a { justify-self: center; font-size: 13px; border-bottom: 1px solid #596575; }
footer > p { justify-self: end; text-align: right; }
.lightbox { width: min(95vw,1400px); border: 0; background: white; padding: 12px; box-shadow: 0 30px 100px rgba(0,0,0,.3); }
.lightbox::backdrop { background: rgba(4,10,20,.85); backdrop-filter: blur(8px); }
.lightbox img { width: 100%; display: block; }
.lightbox button { position: fixed; right: 20px; top: 15px; border: 0; background: white; width: 42px; height: 42px; border-radius: 50%; font-size: 24px; cursor: pointer; }

.reveal { opacity: 1; transform: none; }
.motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.motion .reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .site-header nav { display: none; position: absolute; top: 78px; left: 0; right: 0; background: var(--paper); padding: 25px 5vw; flex-direction: column; }
  .site-header nav.open { display: flex; } .menu { display: block; }
  .menu i { display: block; width: 24px; height: 1px; background: var(--ink); margin: 7px; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 112px 0 54px; gap: 28px; }
  .hero-copy { max-width: 680px; } .hero-visual { margin-top: 0; }
  .services, .research-heading, .research-feature, .connect { grid-template-columns: 1fr; }
  .services, .research-grid, .teaching-grid { margin-top: 46px; }
  .service, .service + .service { padding: 34px 0; border-right: 0; border-bottom: 1px solid #2b3542; }
  .service-icon { margin-bottom: 24px; }
  .service p { min-height: 0; } .research-heading { gap: 10px; }
  .research-feature { min-height: 0; } .research-visual { min-height: 360px; }
  .focus-grid { grid-template-columns: 1fr 1fr; }
  .focus-grid article:nth-child(2) { border-right: 0; } .focus-grid article:nth-child(-n+2) { border-bottom: 1px solid #c7d0e8; }
  .publications { grid-template-columns: 1fr; gap: 20px; margin-top: 52px; }
  .teaching-grid { grid-template-columns: 1fr; } .values { grid-template-columns: 1fr 1fr; }
  .values div:nth-child(3) { border-right: 0; }
  .connect-copy { position: static; } footer { grid-template-columns: 1fr; gap: 30px; }
  footer > a, footer > p { justify-self: start; text-align: left; }
}
@media (max-width: 560px) {
  :root { --page: 90vw; --section-space: 58px; }
  h1 { font-size: 42px; margin-bottom: 18px; } h2 { font-size: 36px; margin-bottom: 18px; }
  .hero { padding: 102px 0 42px; gap: 24px; }
  .hero-lead { line-height: 1.55; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; margin-top: 24px; }
  .hero-visual figcaption { margin-top: 10px; }
  .section-intro > p:last-child { font-size: 15px; line-height: 1.58; }
  .services, .research-grid, .teaching-grid { margin-top: 36px; }
  .service, .service + .service { padding: 28px 0; }
  .service h3 { margin-bottom: 12px; }
  .service ul { margin-top: 18px; }
  .research-visual { min-height: 280px; padding: 35px 20px; }
  .research-visual::before { inset: 16px; } .research-visual span { left: 35px; bottom: 30px; }
  .research-content { padding: 34px 26px; } .focus-grid { grid-template-columns: 1fr; }
  .focus-grid article { border-right: 0; border-bottom: 1px solid #c7d0e8; min-height: 155px; }
  .focus-grid article { padding: 24px; }
  .publications { margin-top: 42px; }
  .teaching-card { padding: 30px; min-height: 330px; }
  .mini-tags { left: 30px; right: 30px; } .values { padding: 24px; grid-template-columns: 1fr; }
  .academy .aws-logo { bottom: 58px; }
  .values div { border-right: 0; border-bottom: 1px solid var(--line); }
  .values div { padding: 22px 0; }
  .publications li { grid-template-columns: 48px 1fr 14px; gap: 14px; }
  .consult-cta { align-items: flex-start; gap: 22px; flex-direction: column; }
  .connect { gap: 36px; }
  footer { padding-top: 46px; padding-bottom: 46px; }
  .cursor-glow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; } .motion .reveal { opacity: 1; transform: none; transition: none; }
}
