/* =========================================================
   DonatellaTech — identidad visual
   Verde bosque del logo + verde hoja del caparazón + papel cálido.
   Trazas de circuito como motivo (como las ruedas del logo).
   ========================================================= */
:root {
  --forest-950: #0a2010;
  --forest-900: #0f2d16;
  --forest-800: #123d1b;
  --forest-700: #1b5424;
  --forest-600: #2a6e2f;
  --leaf-500: #5cb338;
  --leaf-400: #7cc75a;
  --leaf-200: #cfe8bf;
  --leaf-100: #e8f3df;
  --paper: #f7f6f1;
  --paper-2: #eef0e7;
  --white: #fff;
  --ink: #17221a;
  --ink-2: #33433a;
  --muted: #5c6b60;
  --line: #dbe0d4;
  --amber: #c4831c;
  --amber-600: #a86c12;

  --font-display: "Bahnschrift", "DIN Alternate", "DIN 2014", "Barlow Semi Condensed", "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 45, 22, .06), 0 8px 24px -12px rgba(15, 45, 22, .18);
  --shadow-lg: 0 30px 60px -30px rgba(5, 20, 8, .55);
  --wrap: 1180px;

  --circuit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke='%237cc75a' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M0 40h50l20 20h60M130 60l30-30h80M20 120h40l20-20h40M120 100v60l20 20h100M0 200h60l30-30M90 170v70M180 0v30M200 240v-40l20-20'/%3E%3C/g%3E%3Cg fill='%237cc75a'%3E%3Ccircle cx='50' cy='40' r='3'/%3E%3Ccircle cx='130' cy='60' r='3'/%3E%3Ccircle cx='60' cy='120' r='3'/%3E%3Ccircle cx='120' cy='100' r='3'/%3E%3Ccircle cx='140' cy='180' r='3'/%3E%3Ccircle cx='90' cy='170' r='3'/%3E%3Ccircle cx='180' cy='30' r='3'/%3E%3Ccircle cx='220' cy='180' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest-700); text-underline-offset: 3px; }
a:hover { color: var(--forest-600); }
:focus-visible { outline: 3px solid var(--leaf-500); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--forest-800); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
svg.ico { width: 1.1em; height: 1.1em; flex: none; }
.eyebrow .ico { width: 15px; height: 15px; }
.mono { font-family: var(--font-mono); font-size: .8em; letter-spacing: .02em; }

/* ---------- Tipografía ---------- */
.h1, .h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; line-height: 1.08; margin: 0; }
.h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); color: var(--forest-800); }
.h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--forest-800); }
.lead { font-size: 1.14rem; color: var(--ink-2); }
.eyebrow {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px;
  font: 600 .76rem/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .14em;
  color: var(--forest-600); margin: 0 0 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--leaf-500); border-radius: 2px; }
.eyebrow--light { color: var(--leaf-200); }

/* ---------- Botones ---------- */
.btn {
  --b: var(--forest-700);
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 12px 20px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 .95rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.btn .ico { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn--sm { padding: 9px 15px; font-size: .86rem; }
.btn--sm .ico { width: 16px; height: 16px; }
.btn--primary { background: var(--forest-700); color: #fff; }
.btn--primary:hover { background: var(--forest-800); color: #fff; }
.btn--outline { border-color: var(--line); color: var(--forest-800); background: var(--white); }
.btn--outline:hover { border-color: var(--forest-600); color: var(--forest-800); }
.btn--light { background: var(--leaf-400); color: var(--forest-950); }
.btn--light:hover { background: #fff; color: var(--forest-950); }
.btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; background: transparent; }
.btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn--coffee { background: var(--amber); color: #fff; }
.btn--coffee:hover { background: var(--amber-600); color: #fff; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--forest-600); font: 600 .9rem var(--font-body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Barra superior ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 246, 241, .88); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.topbar.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0,0,0,.4); }
.topbar__inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand img { height: 40px; width: auto; }
.mainnav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.mainnav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.mainnav ul a {
  display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none;
  color: var(--ink-2); font-weight: 550; font-size: .95rem;
}
.mainnav ul a:hover { background: var(--leaf-100); color: var(--forest-800); }
.langs { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--white); }
.langs a { font: 600 .74rem/1 var(--font-mono); padding: 6px 9px; border-radius: 999px; text-decoration: none; color: var(--muted); }
.langs a[aria-current] { background: var(--forest-700); color: #fff; }
.navtoggle { display: none; margin-left: auto; align-items: center; gap: 8px; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font: 600 .9rem var(--font-body); color: var(--forest-800); cursor: pointer; }
.navtoggle .ico { width: 20px; height: 20px; }

/* ---------- Hero / banners ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(120% 90% at 85% 10%, var(--forest-700) 0%, var(--forest-900) 55%, var(--forest-950) 100%);
}
.hero__circuit, .section--dark > .hero__circuit {
  position: absolute; inset: 0; background-image: var(--circuit); background-size: 240px;
  opacity: .09; pointer-events: none;
  mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
}
.hero__track { display: grid; }
.slide {
  grid-area: 1 / 1; opacity: 0; visibility: hidden;
  transition: opacity .7s ease, visibility .7s;
  --slide-accent: var(--leaf-400);
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide__inner {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
  min-height: clamp(460px, 62vh, 600px); padding-block: 56px 88px;
}
.slide__icon { width: 28px; height: 28px; border-radius: 7px; background: rgba(255,255,255,.92); padding: 2px; }
.slide__pl { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; letter-spacing: .06em; }
.slide__pl .ico { width: 14px; height: 14px; }
.slide__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 5.4vw, 4.3rem); line-height: 1.02; margin: 0 0 18px; letter-spacing: -.015em; }
.slide__lead { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: #d9ead0; max-width: 34ch; margin: 0 0 30px; }
.slide__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.slide .btn--light { background: var(--slide-accent); }
.slide .btn--light:hover { background: #fff; }
.slide.is-active .slide__text > * { animation: rise .7s both; }
.slide.is-active .slide__text > *:nth-child(2) { animation-delay: .06s; }
.slide.is-active .slide__text > *:nth-child(3) { animation-delay: .12s; }
.slide.is-active .slide__text > *:nth-child(4) { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.slide__media { position: relative; display: flex; justify-content: center; align-items: center; min-height: 360px; }
.window { width: min(100%, 540px); background: #f4f4f1; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.08); transform: rotate(-1.2deg); }
.window__bar { display: flex; gap: 6px; padding: 10px 12px; background: #e6e7e1; }
.window__bar i { width: 10px; height: 10px; border-radius: 50%; background: #c9ccc2; }
.phone {
  width: 210px; aspect-ratio: 9 / 20; border-radius: 30px; padding: 8px; background: #0b0f0c;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.12); overflow: hidden;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 23px; }
.phone--0 { transform: rotate(-5deg) translateX(30px); z-index: 2; }
.phone--1 { transform: rotate(5deg) translate(-30px, 34px); opacity: .95; }
.photo { width: min(100%, 440px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: var(--shadow-lg); outline: 6px solid rgba(124, 199, 90, .25); outline-offset: 10px; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

.hero__controls { position: absolute; left: 0; right: 0; bottom: 26px; display: flex; align-items: center; gap: 14px; }
.hero__arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; }
.hero__arrow:hover { background: rgba(255,255,255,.1); }
.hero__arrow .ico { width: 18px; height: 18px; }
.hero__arrow[data-dir="-1"] .ico { transform: scaleX(-1); }
.hero__dots { display: flex; gap: 6px; }
.hero__dot { width: 34px; height: 24px; background: none; border: 0; padding: 0; cursor: pointer; display: grid; align-items: center; }
.hero__dot span { display: block; height: 3px; border-radius: 3px; background: rgba(255,255,255,.28); overflow: hidden; position: relative; }
.hero__dot.is-active span::after { content: ""; position: absolute; inset: 0; background: var(--leaf-400); transform-origin: left; animation: fill var(--interval, 7s) linear forwards; }
.hero.is-paused .hero__dot.is-active span::after { animation-play-state: paused; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); position: relative; }
.section--tinted { background: var(--paper-2); }
.section--dark { background: var(--forest-900); color: #e5efe0; overflow: hidden; }
.section--dark .h2 { color: #fff; }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 40px; flex-wrap: wrap; }
.section__lead { max-width: 46ch; margin: 0; color: var(--muted); }

.intro__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.intro__text p { margin: 0 0 16px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 56px 0 0; border-top: 1px solid var(--line); }
.stats > div { padding: 24px 20px 0 0; display: flex; flex-direction: column-reverse; gap: 4px; }
.stats > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.stats dt { color: var(--muted); font-size: .9rem; }
.stats dd { margin: 0; font: 700 2.4rem/1 var(--font-display); color: var(--forest-700); }

/* ---------- Proyectos ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 28px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--white); color: var(--ink-2); border-radius: 999px; padding: 7px 14px; font: 600 .86rem var(--font-body); cursor: pointer; }
.chip .ico { width: 16px; height: 16px; }
.chip.is-active { background: var(--forest-800); border-color: var(--forest-800); color: #fff; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 24px; }
.card {
  --card-accent: var(--leaf-500);
  display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(15,45,22,.4); }
.card[hidden] { display: none; }
.card__media {
  position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden;
  background: linear-gradient(135deg, var(--forest-800), var(--forest-950));
  border-bottom: 3px solid var(--card-accent);
}
.card__media::before { content: ""; position: absolute; inset: 0; background-image: var(--circuit); background-size: 200px; opacity: .1; }
.card--desktop .card__media img { position: absolute; left: 50%; top: 14%; width: 82%; transform: translateX(-50%); border-radius: 8px 8px 0 0; box-shadow: 0 16px 30px -12px rgba(0,0,0,.6); transition: transform .4s; }
.card--phone .card__media img { position: absolute; left: 50%; top: 10%; width: 38%; transform: translateX(-50%); border-radius: 16px 16px 0 0; border: 5px solid #0b0f0c; border-bottom: 0; box-shadow: 0 16px 30px -12px rgba(0,0,0,.6); transition: transform .4s; }
.card:hover .card__media img { transform: translateX(-50%) translateY(-6px); }
.card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__meta { display: flex; gap: 10px; align-items: center; color: var(--muted); flex-wrap: wrap; }
.status { font: 600 .72rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; padding: 5px 8px; border-radius: 5px; background: var(--leaf-100); color: var(--forest-700); }
.status--development, .status--beta { background: #fbf0dc; color: var(--amber-600); }
.status--planned { background: var(--paper-2); color: var(--muted); }
.card__title { display: flex; align-items: center; gap: 10px; font-size: 1.45rem; }
.card__title img { width: 30px; height: 30px; object-fit: contain; }
.card__title a { color: var(--forest-800); text-decoration: none; }
.card__title a:hover { text-decoration: underline; }
.card__tagline { margin: 0; font-weight: 600; color: var(--ink); }
.card__summary { margin: 0; color: var(--muted); font-size: .94rem; }
.card__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.badge .ico { width: 14px; height: 14px; }
.badge--platform { background: var(--paper-2); color: var(--ink-2); }
.badge--soon { background: #fbf0dc; color: var(--amber-600); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.tags li { font: .74rem/1 var(--font-mono); color: var(--muted); border: 1px dashed var(--line); padding: 5px 8px; border-radius: 5px; }
.card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.card--next { border-style: dashed; border-width: 2px; background: transparent; box-shadow: none; }
.card--next:hover { transform: none; box-shadow: none; }
.card__next { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 40px 30px; flex: 1; }
.card__next img { opacity: .9; }
.card__next p { margin: 0; color: var(--muted); max-width: 32ch; }

/* ---------- Áreas ---------- */
.areas__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.area { padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.area__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--leaf-100); color: var(--forest-700); margin-bottom: 18px; }
.area__icon .ico { width: 28px; height: 28px; }
.area h3 { font-size: 1.4rem; color: var(--forest-800); margin-bottom: 8px; }
.area p { margin: 0; color: var(--muted); }
.techs { margin-top: 40px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 22px 26px; border-radius: var(--radius); background: var(--forest-800); color: #fff; }
.techs__title { font-size: 1.15rem; color: var(--leaf-200); }
.techs ul { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; margin: 0; padding: 0; }
.techs li { display: inline-flex; align-items: center; gap: 8px; font-weight: 550; }
.techs .ico { width: 20px; height: 20px; color: var(--leaf-400); }

/* ---------- Misión / Visión ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; position: relative; }
.about__col { position: relative; padding-top: 26px; border-top: 2px solid var(--leaf-500); }
.about__col p { font-size: 1.08rem; color: #d5e4cf; margin: 18px 0 0; }
.about__values { margin: 48px 0 0; color: var(--leaf-400); font-size: .9rem; text-transform: uppercase; letter-spacing: .16em; position: relative; }

/* ---------- Miembros ---------- */
.members__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.member { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.member__head { display: flex; gap: 18px; align-items: center; }
.member__avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.member__avatar--initials { display: grid; place-items: center; background: var(--forest-800) var(--circuit) center / 120px; color: #fff; font: 700 1.5rem var(--font-display); letter-spacing: .04em; box-shadow: inset 0 0 0 3px var(--leaf-500); }
.member__name { font-size: 1.4rem; }
.member__name a { color: var(--forest-800); text-decoration: none; }
.member__name a:hover { text-decoration: underline; }
.member__role { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.member__bio p { margin: 0 0 12px; color: var(--ink-2); }
.member__bio[data-collapsed="true"] { max-height: 9.6em; overflow: hidden; mask-image: linear-gradient(#000 55%, transparent); -webkit-mask-image: linear-gradient(#000 55%, transparent); }
.member__toggle { align-self: flex-start; }
.member__foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--line); }
.iconlink { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--forest-700); }
.iconlink:hover { background: var(--leaf-100); border-color: var(--leaf-200); }
.iconlink .ico { width: 18px; height: 18px; }

/* ---------- Donatella ---------- */
.donatella__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.donatella__photos { position: relative; min-height: 460px; }
.donatella__p { margin: 0; position: absolute; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid #fff; }
.donatella__p img { width: 100%; height: 100%; object-fit: cover; }
.donatella__p--1 { width: 72%; aspect-ratio: 1; left: 0; top: 0; transform: rotate(-3deg); }
.donatella__p--2 { width: 55%; aspect-ratio: 1.15; right: 0; bottom: 0; transform: rotate(4deg); }
.donatella__text p { margin: 16px 0 0; }
.donatella__logos { display: flex; gap: 14px; margin-top: 26px; }
.donatella__logos img { width: 64px; height: 64px; object-fit: contain; padding: 6px; background: #fff; border-radius: 16px; border: 1px solid var(--line); }

/* ---------- Apoyo ---------- */
.support__box { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: center; padding: clamp(28px, 5vw, 52px); border-radius: 22px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.support__box p { color: var(--ink-2); margin: 16px 0 0; }
.support__actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }

/* ---------- Pie ---------- */
.footer { background: var(--forest-950); color: #b9cbb3; padding: 56px 0 28px; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand { display: flex; gap: 16px; max-width: 560px; }
.footer__brand img { width: 56px; height: 56px; border-radius: 50%; background: #fff; padding: 3px; flex: none; }
.footer__brand strong { font: 700 1.3rem var(--font-display); color: #fff; }
.footer__brand p { margin: 6px 0 0; font-size: .92rem; }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a, .footer__links span { display: inline-flex; align-items: center; gap: 8px; color: #dbe7d6; text-decoration: none; }
.footer__links a:hover { color: #fff; }
.footer__links .ico { width: 18px; height: 18px; color: var(--leaf-400); }
.footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: .84rem; color: #8ea488; }
.footer__made { font-family: var(--font-mono); }

/* =========================================================
   Hoja de vida
   ========================================================= */
.cvhero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(120% 120% at 90% 0%, var(--forest-700), var(--forest-950) 70%); padding: 40px 0 56px; }
.cvhero__back { display: inline-flex; align-items: center; gap: 8px; color: var(--leaf-200); text-decoration: none; font-weight: 600; font-size: .92rem; margin-bottom: 36px; }
.cvhero__back .ico { width: 16px; height: 16px; transform: scaleX(-1); }
.cvhero__back:hover { color: #fff; }
.cvhero__grid { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; position: relative; }
.cvhero__avatar { width: 124px; height: 124px; border-radius: 50%; display: grid; place-items: center; background: var(--forest-800) var(--circuit) center / 160px; box-shadow: inset 0 0 0 4px var(--leaf-500); font: 700 2.6rem var(--font-display); }
.cvhero__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.cvhero h1 { font: 700 clamp(2rem, 4.4vw, 3.3rem)/1.05 var(--font-display); margin: 0 0 10px; letter-spacing: -.01em; }
.cvhero__title { margin: 0; color: #d5e6cc; font-size: 1.1rem; }
.cvhero__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.cvhero__links a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); color: #fff; text-decoration: none; font-size: .88rem; font-weight: 550; }
.cvhero__links a:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.cvhero__links .ico { width: 16px; height: 16px; }
.cvhero__actions { align-self: start; }

.cv { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding-block: 56px 96px; }
.cv__aside { display: flex; flex-direction: column; gap: 28px; align-self: start; position: sticky; top: 96px; }
.cv__main { display: flex; flex-direction: column; gap: 56px; min-width: 0; }
.cvblock h2 { font: 700 1.55rem var(--font-display); color: var(--forest-800); margin: 0 0 22px; display: flex; align-items: center; gap: 12px; }
.cvblock h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cv__aside h2 { font-size: 1.15rem; margin-bottom: 14px; }
.cvblock p { margin: 0 0 12px; color: var(--ink-2); }

.book { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding: 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); align-items: center; }
.book__cover { aspect-ratio: 3 / 4.2; border-radius: 4px 10px 10px 4px; background: linear-gradient(160deg, #0d2a4a, #071426); color: #fff; padding: 12px 10px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: inset 4px 0 0 rgba(255,255,255,.15), 0 12px 24px -12px rgba(0,0,0,.6); font: 700 .7rem/1.15 var(--font-display); position: relative; overflow: hidden; }
.book__cover::before { content: ""; position: absolute; right: -30px; top: 30px; width: 90px; height: 90px; border-radius: 50%; border: 1.5px solid rgba(124,199,90,.6); box-shadow: 0 0 0 10px rgba(124,199,90,.12); }
.book__cover small { font: 500 .55rem var(--font-mono); opacity: .8; position: relative; }
.book__cover span { position: relative; }
.book h3 { font-size: 1.35rem; color: var(--forest-800); }
.book__sub { margin: 4px 0 8px; font-weight: 600; color: var(--ink-2); }
.book__meta { margin: 0 0 14px; color: var(--muted); font-size: .92rem; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--leaf-200); }
.tl { position: relative; padding: 0 0 30px 36px; }
.tl:last-child { padding-bottom: 0; }
.tl::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--leaf-500); }
.tl--current::before { background: var(--leaf-500); box-shadow: 0 0 0 5px var(--leaf-100); }
.tl__date { font: 600 .78rem var(--font-mono); color: var(--forest-600); letter-spacing: .04em; text-transform: uppercase; }
.tl h3 { font-size: 1.22rem; color: var(--ink); margin: 4px 0 2px; }
.tl__org { margin: 0 0 10px; color: var(--muted); font-weight: 550; }
.tl__org a { color: inherit; }
.tl ul { margin: 0 0 10px; padding-left: 18px; color: var(--ink-2); }
.tl li { margin-bottom: 6px; }
.tl p { margin: 0 0 10px; color: var(--ink-2); }

.rprojects { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rproject { padding: 20px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--leaf-500); }
.rproject h3 { font-size: 1.08rem; color: var(--forest-800); margin-bottom: 6px; }
.rproject p { margin: 0; font-size: .92rem; color: var(--muted); }

.skillgroup { margin-bottom: 18px; }
.skillgroup h3 { font: 600 .74rem var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 8px; }
.skillgroup .tags li { color: var(--ink-2); border-style: solid; background: var(--white); }
.langlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.langlist li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; font-weight: 600; }
.langlist .mono { color: var(--muted); font-weight: 500; }
.langlist meter, .langbar { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.langbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--leaf-500), var(--forest-600)); border-radius: 6px; }
.asidecard { padding: 22px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }

/* ---------- Adaptable ---------- */
@media (max-width: 980px) {
  .navtoggle { display: inline-flex; }
  .mainnav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 12px; padding: 12px 20px 20px; display: none; box-shadow: 0 20px 30px -20px rgba(0,0,0,.3); }
  .mainnav.is-open { display: flex; }
  .mainnav ul { flex-direction: column; }
  .langs { align-self: flex-start; }
  .slide__inner { grid-template-columns: 1fr; gap: 28px; padding-block: 44px 96px; min-height: 0; }
  .slide__media { min-height: 0; order: -1; }
  .phone { width: 150px; }
  .photo { width: min(70%, 300px); }
  .window { width: min(100%, 440px); }
  .intro__grid, .about__grid, .members__grid, .donatella__grid, .support__box, .cv { grid-template-columns: 1fr; gap: 36px; }
  .areas__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .donatella__photos { min-height: 380px; max-width: 520px; }
  .cv__aside { position: static; order: 2; }
  .cvhero__grid { grid-template-columns: auto 1fr; }
  .cvhero__actions { grid-column: 1 / -1; }
  .rprojects { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .brand img { height: 32px; }
  .slide__title { font-size: 2.3rem; }
  .cards { grid-template-columns: 1fr; }
  .cvhero__grid { grid-template-columns: 1fr; }
  .cvhero__avatar { width: 92px; height: 92px; font-size: 2rem; }
  .book { grid-template-columns: 80px 1fr; gap: 16px; padding: 18px; }
  .donatella__photos { min-height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Impresión (hoja de vida → PDF) ---------- */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 10.5pt; }
  .topbar, .footer, .cvhero__back, .cvhero__actions, .no-print { display: none !important; }
  .cvhero { background: none; color: var(--ink); padding: 0 0 12px; border-bottom: 2px solid var(--forest-700); }
  .cvhero .hero__circuit { display: none; }
  .cvhero h1 { color: var(--forest-800); }
  .cvhero__title { color: var(--ink-2); }
  .cvhero__links a { color: var(--ink-2); border-color: var(--line); }
  .cvhero__avatar { color: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cv { grid-template-columns: 1fr 220px; gap: 28px; padding: 18px 0 0; }
  .cv__aside { position: static; order: 2; gap: 16px; }
  .cv__main { gap: 26px; }
  .tl, .rproject, .book, .cvblock h2 { break-inside: avoid; }
  .book, .rproject, .asidecard { box-shadow: none; }
  a { text-decoration: none; }
}
