
:root {
  --brand:     #ed1c24;
  --bg:        #f4f3f1;
  --surface:   #ffffff;
  --text:      #1a1a1a;
  --muted:     rgba(26,26,26,.52);
  --line:      rgba(26,26,26,.12);
  --line-soft: rgba(26,26,26,.07);
  --font:      system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --lola:      "FSLola", Georgia, serif;
  --serif:     Georgia, "Times New Roman", serif;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,.09);
  --r:         0px;
}
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }
body { font-family:var(--font); font-size:15px; color:var(--text); background:var(--bg); -webkit-font-smoothing:antialiased; overflow-x:hidden; }
a { color:inherit; text-decoration:none; }
img { display:block; }


/* ── FS Lola ── */
@font-face {
  font-family: "FSLola";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/font-3d8e17580a01.woff2") format("woff2");
}
@font-face {
  font-family: "FSLola";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/font-9d0669070769.woff2") format("woff2");
}
@font-face {
  font-family: "FSLola";
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/font-e9376742f534.woff2") format("woff2");
}


/* NAV LINKS */
.nav-links-bar {
  display:flex; align-items:center; gap:2px;
  overflow-x:auto; max-width:100%;
  scrollbar-width:none; -ms-overflow-style:none;
}
.nav-links-bar::-webkit-scrollbar { display:none; }
.nav-pill {
  font-size:11px; font-weight:700; text-transform:uppercase;
  letter-spacing:1.2px; color:var(--muted);
  padding:5px 12px; border-radius:999px; cursor:pointer;
  transition:color .15s, background .15s; white-space:nowrap;
  background:none; border:none; font-family:var(--font);
  flex-shrink:0;
}
.nav-pill:hover { color:var(--text); background:rgba(26,26,26,.06); }

/* LANG PILL */
.lang-pill {
  font-size:11px; font-weight:700; text-transform:uppercase;
  letter-spacing:1.2px; color:#fff;
  background:rgba(26,26,26,.4);
  padding:5px 14px; border-radius:999px;
  text-decoration:none; white-space:nowrap;
  margin-left:6px; flex-shrink:0;
  transition:background .15s;
}
.lang-pill:hover, .lang-pill:focus-visible { background:var(--brand); }

/* HAMBURGER TOGGLE (mobile) */
.menu-toggle {
  display:none;
  width:38px; height:38px;
  align-items:center; justify-content:center;
  background:none; border:none; cursor:pointer;
  color:var(--text); flex-shrink:0;
}

/* MENÚ MÓVIL: panel lateral */
.mobile-menu-overlay {
  display:none;
  position:fixed; inset:0; z-index:3000;
  background:rgba(26,26,26,.5);
  opacity:0; transition:opacity .25s ease;
}
.mobile-menu-overlay.open { display:block; opacity:1; }

.mobile-menu-panel {
  position:fixed; top:0; right:0; bottom:0;
  width:82%; max-width:340px;
  background:var(--bg);
  display:flex; flex-direction:column;
  transform:translateX(100%);
  transition:transform .3s cubic-bezier(.16,1,.3,1);
  box-shadow:-8px 0 32px rgba(0,0,0,.18);
}
.mobile-menu-overlay.open .mobile-menu-panel { transform:translateX(0); }

.mobile-menu-header {
  display:flex; align-items:center; justify-content:space-between;
  padding:20px 20px; border-bottom:1px solid var(--line-soft);
  flex-shrink:0;
}
.mobile-menu-brand {
  display:flex; flex-direction:column; gap:5px;
}
.mobile-menu-name {
  font-family:var(--lola); font-weight:800; font-size:34px; color:var(--brand);
  letter-spacing:-1px; line-height:1;
}
.mobile-menu-role {
  font-size:11px; font-weight:600; color:var(--muted);
  text-transform:uppercase; letter-spacing:1.8px;
}
.mobile-menu-close {
  width:36px; height:36px; border-radius:50%;
  border:1px solid var(--line); background:none;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; color:var(--muted); font-size:14px;
  transition:background .15s, color .15s;
}
.mobile-menu-close:hover { background:var(--bg); color:var(--text); }

.mobile-menu-list { flex:1; overflow-y:auto; padding:8px 12px; }
.mobile-menu-item {
  display:block; width:100%; text-align:left;
  padding:16px 8px; font-family:var(--lola); font-size:19px; font-weight:700;
  letter-spacing:-.3px;
  color:var(--text); background:none; border:none;
  border-bottom:1px solid var(--line-soft);
  cursor:pointer; transition:color .15s;
}
.mobile-menu-item:hover, .mobile-menu-item:active { color:var(--brand); }

.mobile-menu-footer {
  padding:16px 20px 24px; flex-shrink:0;
  display:flex; justify-content:flex-start;
}
.mobile-menu-lang {
  display:inline-flex; align-items:center; justify-content:center;
  padding:6px 16px; border-radius:999px;
  background:var(--brand); color:#fff;
  font-weight:700; font-size:11px; letter-spacing:1.2px; text-transform:uppercase;
  text-decoration:none; white-space:nowrap;
  transition:filter .15s;
}
.mobile-menu-lang:hover, .mobile-menu-lang:focus-visible { filter:brightness(.9); }

@media (max-width:960px) {
  .nav-links-bar { display:none; }
  .menu-toggle { display:flex; }
}

/* REFS HORIZONTAL SCROLL */
.refs-scroll-wrap {
  overflow-x:auto; overflow-y:visible;
  cursor:grab; user-select:none;
  scrollbar-width:none; -ms-overflow-style:none;
  padding:0 0 16px;
}
.refs-scroll-wrap::-webkit-scrollbar { display:none; }
.refs-scroll-wrap.grabbing { cursor:grabbing; }
.refs-track { display:flex; gap:14px; width:max-content; }
.refs-track .ref-card {
  width:340px; flex-shrink:0;
  opacity:1; transform:none; animation:none;
}

/* LOGOS MARQUEE */
.logos-sec {
  padding:40px 0;
  border-bottom:1px solid var(--line-soft);
  overflow:hidden; background:var(--surface);
  margin-top:16px;
  display:flex; align-items:center;
}
.logos-inner {
  max-width:1000px; margin:0 auto; padding:0 40px;
  display:flex; align-items:center; gap:16px;
}
.logos-label {
  font-size:10px; font-weight:700; text-transform:uppercase;
  letter-spacing:2px; color:var(--muted); white-space:nowrap; flex-shrink:0;
}
.logos-sep { width:1px; height:18px; background:var(--line-soft); flex-shrink:0; }
.logos-track-wrap { overflow:hidden; flex:1;
  mask-image:linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image:linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.logos-track {
  display:flex; gap:16px; align-items:center;
  width:max-content;
  animation:logoScroll 40s linear infinite;
}
@keyframes logoScroll { to { transform:translateX(-50%); } }
.logo-item {
  height:45px;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
  opacity:.62; transition:opacity .25s; filter:grayscale(1);
}
.logo-item:hover { opacity:.9; }
.logo-item svg { display:block; }
.logo-item img {
  display:block;
  width:auto;
  height:auto;
  max-height:45px;
  max-width:none;
  object-fit:contain;
}

/* PORTFOLIO SCROLL */
.portfolio-sec {
  padding:72px 0 80px;
  border-top:1px solid var(--line-soft);
  overflow:hidden;
}
.portfolio-sec-head {
  max-width:1000px; margin:0 auto;
  padding:0 40px 36px;
  display:flex; align-items:flex-end; justify-content:space-between;
}
.portfolio-track-wrap {
  overflow-x:auto; overflow-y:visible;
  cursor:grab; user-select:none;
  scrollbar-width:none; -ms-overflow-style:none;
  padding:0 40px 20px;
}
.portfolio-track-wrap::-webkit-scrollbar { display:none; }
.portfolio-track-wrap.grabbing { cursor:grabbing; }
.portfolio-track { display:flex; gap:16px; width:max-content; }
.pcard {
  width:320px; flex-shrink:0;
  border-radius:0; overflow:hidden;
  background:var(--surface); box-shadow:var(--shadow-sm);
  cursor:pointer;
  transition:transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s;
  opacity:0; transform:translateY(28px);
  animation:cardIn .5s ease forwards;
}
.pcard:hover { transform:translateY(-5px); box-shadow:var(--shadow-md); }
.pcard:nth-child(1){animation-delay:.04s}
.pcard:nth-child(2){animation-delay:.10s}
.pcard:nth-child(3){animation-delay:.16s}
.pcard:nth-child(4){animation-delay:.22s}
.pcard:nth-child(5){animation-delay:.28s}
.pcard:nth-child(6){animation-delay:.34s}
@keyframes cardIn { to { opacity:1; transform:translateY(0); } }
.pcard-img {
  aspect-ratio:4/3; overflow:hidden;
  background:#e6e4e1; position:relative;
}
.pcard-img img {
  width:100%; height:100%; object-fit:cover;
  display:block; transition:transform .4s ease;
}
.pcard:hover .pcard-img img { transform:scale(1.05); }
.pcard-overlay {
  position:absolute; inset:0;
  background:rgba(20,20,20,.6);
  display:flex; align-items:center; justify-content:center;
  opacity:0; transition:opacity .22s;
}
.pcard:hover .pcard-overlay { opacity:1; }
.pcard-overlay-icon {
  width:40px; height:40px; border-radius:50%;
  background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.3);
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:15px;
  transform:scale(.8); transition:transform .22s ease;
}
.pcard:hover .pcard-overlay-icon { transform:scale(1); }
.pcard-info { padding:14px 16px; }
.pcard-cat {
  font-size:10px; font-weight:700; text-transform:uppercase;
  letter-spacing:1px; color:var(--brand); margin-bottom:4px;
}
.pcard-name { font-size:14px; font-weight:600; letter-spacing:-.2px; }
.portfolio-behance-link {
  display:inline-flex; align-items:center; gap:7px;
  font-size:13px; font-weight:600; color:var(--brand);
  border-bottom:1px solid rgba(237,28,36,.3); padding-bottom:2px;
  transition:gap .2s, border-color .2s;
}
.portfolio-behance-link:hover { gap:11px; border-color:var(--brand); }


/* FHP GRID — Formación · Habilidades · Premios */
.fhp-grid {
  display:grid; grid-template-columns:repeat(2,1fr);
  gap:32px; margin-top:0;
}
.fhp-col {
  background:var(--surface); border:1px solid var(--line-soft);
  padding:28px 24px;
}
.fhp-col-title {
  font-size:11px; font-weight:700; text-transform:uppercase;
  letter-spacing:1.5px; color:var(--muted); margin-bottom:20px;
  padding-bottom:12px; border-bottom:1px solid var(--line-soft);
}
.fhp-edu-stack { display:flex; flex-direction:column; gap:12px; }
.fhp-edu-stack .edu-card { box-shadow:none; border:1px solid var(--line-soft); padding:16px 18px; }
.fhp-awards-list { list-style:none; display:flex; flex-direction:column; gap:9px; }
.fhp-awards-list li {
  display:flex; align-items:baseline; gap:8px;
  font-size:13px; color:var(--muted); line-height:1.5;
}
.fhp-awards-list li::before { content:"—"; color:var(--line); flex-shrink:0; }
@media (max-width:760px) { .fhp-grid { grid-template-columns:1fr; } }


/* PORTAFOLIO GRID */
.portfolio-grid {
  display:grid; grid-template-columns:repeat(2,1fr); gap:8px;
  max-width:1000px; margin:0 auto; padding:0 40px;
}
.pf-card {
  position:relative; cursor:pointer;
  aspect-ratio:4/3; overflow:hidden; background:#ddd;
  display:block; width:100%; margin:0; padding:0; border:none;
  font:inherit; color:inherit; text-align:left; -webkit-appearance:none; appearance:none;
}
.pf-card img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .5s cubic-bezier(.16,1,.3,1); }
.pf-card:hover img { transform:scale(1.05); }
.pf-overlay {
  position:absolute; inset:0;
  background:linear-gradient(to top, rgba(0,0,0,.8) 0%, transparent 60%);
  opacity:0; transition:opacity .25s;
  display:flex; flex-direction:column; justify-content:flex-end; padding:20px;
}
.pf-card:hover .pf-overlay { opacity:1; }
.pf-overlay-cat { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:1.5px; color:rgba(255,255,255,.55); margin-bottom:4px; }
.pf-overlay-name { font-size:16px; font-weight:800; color:#fff; letter-spacing:-.3px; }

/* LIGHTBOX */
.lb {
  display:none; position:fixed; inset:0; z-index:2000;
  background:#f4f3f1;
  overflow-y:auto; overflow-x:hidden;
}
.lb.open { display:block; }
.lb-header {
  position:sticky; top:0; z-index:2010;
  background:rgba(244,243,241,.92);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line-soft);
  padding:14px 60px; min-height:56px;
  display:flex; align-items:center; justify-content:center;
}
.lb-close-btn {
  position:absolute; top:50%; right:16px; transform:translateY(-50%);
  width:36px; height:36px; border-radius:50%;
  background:var(--surface); border:1px solid var(--line);
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  font-size:15px; color:var(--text); font-family:var(--font);
  transition:background .15s, color .15s, border-color .15s;
}
.lb-close-btn:hover { background:var(--brand); color:#fff; border-color:var(--brand); }
.lb-project-title {
  text-align:center;
  font-size:13px; font-weight:700; letter-spacing:-.2px;
  color:var(--text); opacity:.85;
}
.lb-content {
  max-width:50%; margin:0 auto;
  padding:24px 0 80px;
  display:flex; flex-direction:column; gap:3px;
}
.lb-row { display:grid; gap:3px; }
.lb-row.col-1 { grid-template-columns:1fr; }
.lb-row.col-2 { grid-template-columns:1fr 1fr; }
.lb-row.col-3 { grid-template-columns:1fr 1fr 1fr; }
.lb-row img { width:100%; display:block; height:auto; }

/* SERVICES */
.services-sec { padding-bottom:72px; }
.services-intro {
  max-width:760px;
  font-family:var(--lola);
  font-size:18px;
  line-height:1.6;
  color:var(--muted);
  margin:-24px 0 34px;
}
.services-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:2px;
  border:1px solid var(--line-soft);
  background:var(--line-soft);
}
.service-item {
  background:var(--surface);
  padding:24px 22px;
  min-height:190px;
}
.service-icon {
  width:44px; height:44px; border-radius:50%;
  background:var(--brand);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:16px; flex-shrink:0;
}
.service-item h3 {
  font-family:var(--lola);
  font-size:19px;
  line-height:1.08;
  letter-spacing:-.4px;
  margin-bottom:12px;
}
.service-item p {
  font-size:13px;
  line-height:1.65;
  color:var(--muted);
}

/* FAQ */
.faq-list {
  display:flex;
  flex-direction:column;
  border-top:1px solid var(--line-soft);
}
.faq-item {
  border-bottom:1px solid var(--line-soft);
  padding:20px 0;
}
.faq-item summary {
  cursor:pointer;
  font-family:var(--lola);
  font-size:19px;
  font-weight:800;
  letter-spacing:-.3px;
  list-style:none;
}
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item summary::after {
  content:'+';
  float:right;
  color:var(--brand);
  font-family:var(--font);
  font-weight:600;
}
.faq-item[open] summary::after { content:'-'; }
.faq-item p {
  max-width:760px;
  margin-top:12px;
  font-family:var(--lola);
  font-size:16px;
  line-height:1.65;
  color:var(--muted);
}

/* TOPBAR */
.topbar {
  position:fixed; top:0; left:0; right:0; height:56px; z-index:200;
  background:rgba(244,243,241,.92);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line-soft);
}
.topbar-inner {
  max-width:1000px; margin:0 auto; padding:0 40px; height:100%;
  display:flex; align-items:center; justify-content:flex-end;
}
.back-link {
  display:flex; align-items:center; gap:8px;
  font-size:12px; font-weight:600; color:var(--muted);
  cursor:pointer; background:none; border:none; font-family:var(--font);
  transition:color .15s;
}
.back-link:hover { color:var(--text); }
.topbar-logo { display:flex; align-items:center; opacity:.7; }

/* HERO */
.hero {
  max-width:1000px; margin:0 auto;
  padding:112px 40px 8px 40px;
  display:grid; grid-template-columns:1fr 560px;
  gap:40px; align-items:start;
}
.hero-badge {
  display:inline-flex; align-items:center; gap:7px;
  background:rgba(34,197,94,.1); border:1px solid rgba(34,197,94,.3);
  border-radius:999px; padding:5px 14px;
  font-size:11px; font-weight:700; text-transform:uppercase;
  letter-spacing:1.5px; color:#16a34a; margin-bottom:22px;
  opacity:0; animation:up .5s .1s ease forwards;
}
.badge-dot { width:6px; height:6px; border-radius:50%; background:#16a34a; animation:pulse 2s ease infinite; }
.hero-name {
  font-family:var(--lola);
  font-size:clamp(58px,6.2vw,90px);
  font-weight:800; letter-spacing:-4px; line-height:.82;
  color:var(--text); margin-bottom:12px;
  opacity:0; animation:up .65s .25s ease forwards;
}
.hero-name em { font-style:italic; color:var(--brand); }
.hero-role {
  font-size:13px; font-weight:600; color:var(--muted);
  text-transform:uppercase; letter-spacing:2px; margin-bottom:28px;
  opacity:0; animation:up .5s .38s ease forwards;
}
.hero-subtitle {
  font-family:var(--lola); font-size:20px; font-weight:700;
  color:var(--text); letter-spacing:-.3px; line-height:1.2;
  margin-bottom:12px;
  opacity:0; animation:up .5s .45s ease forwards;
}
.hero-bio {
  font-family:var(--lola); font-size:18px; font-weight:400; line-height:1.45; color:var(--muted);
  max-width:500px; margin-bottom:36px;
  opacity:0; animation:up .5s .5s ease forwards;
}
.hero-bio strong { color:var(--text); font-weight:600; }
.hero-actions {
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
  opacity:0; animation:up .5s .62s ease forwards;
}
.btn-cta {
  height:44px; padding:0 24px;
  background:var(--brand); border:none; border-radius:8px;
  color:#fff; font-family:var(--font); font-size:13px; font-weight:600;
  cursor:pointer; display:inline-flex; align-items:center; gap:8px;
  transition:filter .15s, transform .12s; text-decoration:none;
}
.btn-cta:hover { filter:brightness(.91); transform:translateY(-2px); }
.btn-outline {
  height:44px; padding:0 20px;
  background:transparent; border:1px solid var(--line); border-radius:8px;
  color:var(--text); font-family:var(--font); font-size:13px; font-weight:500;
  cursor:pointer; display:inline-flex; align-items:center; gap:7px;
  transition:background .15s, border-color .15s; text-decoration:none;
}
.btn-outline:hover { background:rgba(26,26,26,.04); border-color:rgba(26,26,26,.22); }

/* FOTO */
.hero-photo {
  position:relative;
  opacity:0; animation:fadein .9s .5s ease forwards;
  align-self:start;
  margin-top:-13px;
}
.hero-photo img { width:100%; display:block; }
.hero-photo::after { display:none; }

/* STATS */
.stats-strip {
  background:var(--bg);
  margin-bottom:0;
}
.stats-inner {
  max-width:1000px; margin:0 auto; padding:0 40px;
  display:grid; grid-template-columns:repeat(4,1fr);
  align-items:stretch;
}
.stat-item {
  padding:36px 0 36px 32px;
  border-right:1px solid var(--line-soft);
  opacity:0; transform:translateY(16px);
  transition:opacity .6s ease, transform .6s ease;
  display:flex; flex-direction:column; justify-content:space-between;
}
.stat-item:last-child { border-right:none; }
.stat-item.in { opacity:1; transform:none; }
.stat-item:nth-child(2).in { transition-delay:.08s; }
.stat-item:nth-child(3).in { transition-delay:.16s; }
.stat-item:nth-child(4).in { transition-delay:.24s; }
.stat-num {
  font-family:var(--lola); font-size:60px; font-weight:800;
  letter-spacing:-4px; line-height:1; color:var(--text);
  flex:1; display:flex; align-items:center;
}
.stat-num em { font-style:normal; color:var(--brand); font-size:.55em; vertical-align:top; line-height:1.2; }
.stat-lbl {
  font-size:10px; font-weight:700; text-transform:uppercase;
  letter-spacing:1px; color:var(--muted); margin-top:0; line-height:1.4;
  padding-top:10px; border-top:1px solid var(--line-soft);
}

/* SECCIONES */
.sec {
  max-width:1000px; margin:0 auto; padding:80px 40px;
}
.sec-divider { border:none; border-top:1px solid var(--line-soft); max-width:1000px; margin:0 auto; }
.sec-eyebrow {
  font-size:11px; font-weight:700; text-transform:uppercase;
  letter-spacing:2.5px; color:var(--brand); margin-bottom:10px;
  display:flex; align-items:center; gap:10px;
}
.sec-eyebrow::before { content:''; width:20px; height:1px; background:var(--brand); }
.sec-title {
  font-family:var(--lola); font-size:clamp(32px,3.5vw,48px);
  font-weight:800; letter-spacing:-2.5px; line-height:1.02;
  color:var(--text); margin-bottom:48px;
}
.sec-title em { font-style:normal; color:var(--text); }

/* JOBS */
.job {
  display:grid; grid-template-columns:100px 1fr;
  gap:0 32px; padding:32px 0;
  border-bottom:1px solid var(--line-soft);
  opacity:0; transform:translateY(20px);
  transition:opacity .6s ease, transform .6s ease;
}
.job.in { opacity:1; transform:none; }
.job:first-child { border-top:1px solid var(--line-soft); }
.job-year {
  font-size:12px; font-weight:700; color:var(--muted);
  padding-top:5px; letter-spacing:.3px; line-height:1.6;
}
.job-role {
  font-size:11px; font-weight:700; color:var(--brand);
  text-transform:uppercase; letter-spacing:1px; margin-bottom:5px;
}
.job-company {
  font-family:var(--lola); font-size:21px; font-weight:800; letter-spacing:-.3px;
  color:var(--text); margin-bottom:10px;
}
.job-desc {
  font-family:var(--lola); font-size:16px; font-weight:400; line-height:1.45; color:var(--muted); margin-bottom:10px;
}
.job-clients {
  font-size:12px; color:var(--muted);
  border-left:2px solid rgba(237,28,36,.25);
  padding-left:12px; line-height:1.7;
}
.job-tag {
  display:inline-block; margin-top:10px;
  font-size:11px; font-weight:600; color:var(--muted);
  background:var(--bg); border:1px solid var(--line-soft);
  border-radius:999px; padding:3px 12px;
}

/* ACCORDION */
.exp-more-btn {
  display:flex; align-items:center; gap:8px; margin-top:28px;
  font-size:13px; font-weight:600; color:var(--brand);
  cursor:pointer; background:none; border:none;
  font-family:var(--font); padding:0; transition:gap .2s;
}
.exp-more-btn:hover { gap:12px; }
.exp-more-btn .chevron { transition:transform .3s ease; }
.exp-more-btn.open .chevron { transform:rotate(180deg); }
.exp-hidden { max-height:0; overflow:hidden; transition:max-height .55s cubic-bezier(.16,1,.3,1); }
.exp-hidden.open { max-height:3000px; }

/* SKILLS — 2 columnas limpias */
.skills-wrap { display:grid; grid-template-columns:1fr 1fr; gap:48px; }
.skills-col-title {
  font-size:11px; font-weight:700; text-transform:uppercase;
  letter-spacing:1.5px; color:var(--muted); margin-bottom:18px;
}
.skill-list { list-style:none; display:flex; flex-direction:column; gap:10px; }
.skill-list li {
  display:flex; align-items:center; gap:10px;
  font-size:14px; color:var(--text);
}
.skill-list li::before {
  content:''; width:4px; height:4px; border-radius:50%;
  background:var(--brand); flex-shrink:0;
}

/* EDUCACIÓN */
.edu-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.edu-card {
  background:var(--surface); border:1px solid var(--line-soft);
  border-radius:0; padding:24px 28px; box-shadow:var(--shadow-sm);
}
.edu-year { font-size:11px; font-weight:700; color:var(--brand); margin-bottom:8px; }
.edu-degree { font-size:17px; font-weight:700; letter-spacing:-.3px; margin-bottom:4px; }
.edu-school { font-size:13px; color:var(--muted); }

/* PREMIOS */
.awards-card {
  background:var(--surface); border:1px solid var(--line-soft);
  padding:40px 48px;
  display:grid; grid-template-columns:160px 1fr; gap:48px; align-items:center;
}
.awards-num {
  font-family:var(--lola); font-size:84px; font-weight:800;
  letter-spacing:-5px; line-height:.9; color:var(--text);
}
.awards-num em { font-style:normal; font-size:.38em; color:rgba(255,255,255,.55); }
.awards-sublbl { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:1px; color:var(--muted); margin-top:8px; }
.awards-list { list-style:none; display:flex; flex-direction:column; gap:9px; }
.awards-list li {
  display:flex; align-items:baseline; gap:10px;
  font-size:14px; color:var(--muted); line-height:1.5;
}
.awards-list li::before { content:'—'; color:var(--line); flex-shrink:0; }

/* REFERENCIAS */
.refs-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.ref-card {
  background:var(--surface); border:1px solid var(--line-soft);
  border-radius:0; padding:28px 24px 24px; box-shadow:var(--shadow-sm);
  position:relative; transition:transform .25s, box-shadow .25s;
  opacity:0; transform:translateY(20px);
  animation-fill-mode:forwards;
}
.ref-card.in { opacity:1; transform:none; }
.ref-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-md); }
.ref-card::before {
  content:'"'; font-family:var(--serif); font-size:72px;
  color:rgba(237,28,36,.1); position:absolute; top:8px; right:16px; line-height:1;
}
.ref-quote { font-family:var(--lola); font-size:16px; font-weight:400; line-height:1.75; color:var(--text); margin-bottom:20px; font-style:italic; }
.ref-name { font-size:13px; font-weight:700; }
.ref-role { font-size:12px; color:var(--muted); margin-top:2px; }

/* CONTACTO */
.contact-bar {
  background:var(--text); border-radius:16px;
  padding:60px 64px;
  display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center;
}
.contact-bar-title {
  font-family:var(--lola); font-size:clamp(32px,3.5vw,48px);
  font-weight:800; letter-spacing:-2.5px; line-height:1.02; color:#fff; margin-bottom:10px;
}
.contact-bar-title em { font-style:normal; color:var(--text); }
.contact-bar-sub { font-family:var(--lola); font-size:16px; font-weight:400; color:rgba(255,255,255,.4); line-height:1.75; margin-bottom:28px; }
.contact-links { display:flex; flex-direction:column; gap:10px; }
.clink {
  display:flex; align-items:center; gap:14px; padding:14px 18px;
  background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.07);
  border-radius:0; text-decoration:none;
  transition:background .18s, border-color .18s, transform .2s;
}
.clink:hover { background:rgba(255,255,255,.09); border-color:rgba(255,255,255,.14); transform:translateX(5px); }
.clink-icon { width:36px; height:36px; border-radius:7px; display:flex; align-items:center; justify-content:center; font-size:16px; flex-shrink:0; }
.clink-lbl { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.8px; color:rgba(255,255,255,.35); }
.clink-val { font-size:13px; font-weight:500; color:rgba(255,255,255,.8); margin-top:2px; }

/* FOOTER */
.footer {
  max-width:1000px; margin:0 auto; padding:24px 40px;
  border-top:1px solid var(--line-soft);
  display:flex; align-items:center; justify-content:space-between;
}
.footer-copy { font-size:12px; color:var(--muted); }
.footer-links { display:flex; align-items:center; gap:14px; font-size:12px; color:var(--muted); }
.footer-links a { border-bottom:1px solid transparent; transition:color .15s, border-color .15s; }
.footer-links a:hover { color:var(--text); border-color:var(--line); }
.footer-rc { display:flex; align-items:center; gap:8px; opacity:.5; transition:opacity .15s; }
.footer-rc:hover { opacity:1; }

/* REVEAL */
.rx { opacity:0; transform:translateY(22px); transition:opacity .7s ease, transform .7s ease; }
.rx.in { opacity:1; transform:none; }
.rx-d1.in { transition-delay:.08s; }
.rx-d2.in { transition-delay:.16s; }

/* ANIMATIONS */
@keyframes up     { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:none} }
@keyframes fadein { from{opacity:0} to{opacity:1} }
@keyframes pulse  { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.5);opacity:.5} }

/* RESPONSIVE */
/* REFS CAROUSEL */
.refs-carousel-wrap { position:relative; }
.refs-carousel-viewport { overflow:hidden; width:100%; }
.refs-carousel-viewport .refs-track {
  width:auto; gap:0;
  transition:transform .5s cubic-bezier(.16,1,.3,1);
}
.refs-carousel-viewport .refs-track .ref-card {
  flex:0 0 100%; width:100%; max-width:100%;
  opacity:1 !important; transform:none !important; animation:none !important;
}
.refs-nav {
  display:flex; align-items:center; justify-content:center; gap:20px; margin-top:28px;
}
.refs-btn {
  width:40px; height:40px; border-radius:50%;
  background:var(--surface); border:1px solid var(--line);
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  color:var(--muted); transition:background .15s, border-color .15s, color .15s;
  flex-shrink:0;
}
.refs-btn:hover { background:var(--brand); border-color:var(--brand); color:#fff; }
.refs-dots { display:flex; gap:8px; align-items:center; }
.refs-dot {
  width:7px; height:7px; border-radius:50%;
  background:var(--line); cursor:pointer;
  border:none; padding:0;
  transition:background .2s, transform .2s;
}
.refs-dot.active { background:var(--brand); transform:scale(1.35); }
.refs-dot:hover { background:var(--brand); }

@media (max-width:960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 88px;
  }
  /* Foto aparece ANTES del texto en mobile, mismo ancho que el resto del contenido */
  .hero-photo {
    display: block;
    order: -1;
    max-width: 100%;
    margin: 0 0 28px;
  }
  .hero-photo img {
    width: 100%;
    height: auto;
    display: block;
  }
  .hero-name { font-size:clamp(52px,13vw,80px); white-space:normal; word-break:normal; }
  .stats-inner { grid-template-columns:repeat(2,1fr); }
  .services-grid { grid-template-columns:repeat(2,1fr); }
  .skills-wrap { grid-template-columns:1fr; gap:24px; }
  .edu-grid { grid-template-columns:1fr; }
  .refs-grid { grid-template-columns:1fr 1fr; }
  .awards-card { grid-template-columns:1fr; gap:24px; }
  .contact-bar { grid-template-columns:1fr; padding:40px 32px; gap:32px; }

  /* Portafolio 2 columnas en mobile */
  .portfolio-grid { grid-template-columns:repeat(2,1fr); }
  .lb-content { max-width:92%; }

  /* Ocultar logo RC en footer mobile */
  .footer-rc { display:none; }
}
@media (max-width:640px) {
  .topbar-inner,.sec,.footer,.portfolio-grid { padding-left:20px; padding-right:20px; }
  .portfolio-grid { grid-template-columns:1fr; }
  .footer { align-items:flex-start; gap:14px; flex-direction:column; }
  .stats-inner { padding:0 20px; }
  .logos-inner { width:100%; padding:0 20px; flex-direction:column; align-items:flex-start; gap:14px; }
  .logos-sep { display:none; }
  .logos-track-wrap { width:100%; flex:none; }
  .logos-track { gap:12px; }
  .logo-item { height:38px; }
  .logo-item img { width:auto; height:auto; max-height:38px; max-width:none; }
  .refs-grid { grid-template-columns:1fr; }
  .services-grid { grid-template-columns:1fr; }
  .services-intro { font-size:16px; margin-top:-18px; }
  .service-item { min-height:auto; }
  .job { grid-template-columns:72px 1fr; gap:0 16px; }
  .contact-bar { padding:32px 24px; }
  .awards-card { padding:28px 24px; }

  .hero-actions { flex-wrap:wrap; }
  .btn-cta, .btn-outline { flex:1 1 calc(50% - 8px); justify-content:center; padding:0 14px; }
  .lb-header { padding:12px 48px; }
  .lb-close-btn { right:10px; width:32px; height:32px; }
  .lb-content { max-width:100%; padding:20px 20px 72px; }
  .lb-row.col-2,
  .lb-row.col-3 { grid-template-columns:1fr; }
}

.logo-name{font-family:var(--lola);font-weight:800;font-size:30px;line-height:1;color:#888;display:inline-flex;align-items:center;height:40px;padding:0 4px;}

img { max-width:100%; height:auto; }
.hero-photo img { width:100%; height:auto; }
.nav-pill:focus-visible, .back-link:focus-visible, .exp-more-btn:focus-visible, .lb-close-btn:focus-visible, .pf-card:focus-visible, .refs-btn:focus-visible, .refs-dot:focus-visible { outline:2px solid var(--brand); outline-offset:2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { animation:none !important; transition:none !important; }
  .logos-track { animation:none !important; }
}
