/* =====================================================
   geotecnologiaforestal — portal de recursos
   Paleta cartográfica (inspirada en tintas hipsométricas y cobertura):
   tinta #0a2230 · teal profundo #0b3a45 · bosque #1d7a4a · agua #2f86c0
   tierra #b9733a · ámbar #f0b429 · papel #f6f4ee
   Contrastes verificados: texto sobre papel ≥ 7:1, bosque sobre blanco ≥ 5:1
   ===================================================== */

:root {
  --ink: #0a2230;
  --deep: #0b3a45;
  --teal: #0f6b70;
  --forest: #1d7a4a;
  --forest-dark: #155c38;
  --leaf: #8fcf9a;
  --water: #2f86c0;
  --earth: #b9733a;
  --amber: #f0b429;
  --paper: #f6f4ee;
  --mist: #e9efec;
  --white: #ffffff;
  --text: #14303c;
  --muted: #4d6670;
  --line: rgba(10, 34, 48, 0.12);

  --radius: 16px;
  --shadow-sm: 0 2px 10px rgba(10, 34, 48, 0.08);
  --shadow: 0 18px 50px -14px rgba(10, 34, 48, 0.3);
  --shadow-lg: 0 30px 80px -22px rgba(10, 34, 48, 0.5);

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-sans); font-size: 17px; color: var(--text); background: var(--paper); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1180px, 100% - 48px); margin-inline: auto; }
.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Marca de pendiente */
.todo { display: inline-block; padding: 2px 9px; border-radius: 6px; font-size: 0.72rem; font-weight: 700; background: #fff3cf; color: #6b4e00; border: 1px dashed #d9a63f; vertical-align: middle; font-family: ui-monospace, Consolas, monospace; }
.todo--dark { background: rgba(240, 180, 41, 0.14); color: var(--amber); border-color: rgba(240, 180, 41, 0.55); }

/* Tipografía */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--forest-dark); }
.eyebrow::before { content: ''; width: 34px; height: 3px; background: var(--amber); border-radius: 2px; }
.eyebrow--light { color: var(--amber); }
.title { font-family: var(--font-serif); font-weight: 700; color: var(--ink); font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.12; letter-spacing: -0.01em; margin-top: 12px; }
.title em { font-style: italic; color: var(--forest); font-weight: 600; }
.title--light { color: #fff; }
.title--light em { color: var(--amber); }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 60ch; margin-top: 16px; }
.lead--light { color: rgba(255, 255, 255, 0.78); }
section { padding: clamp(64px, 9vw, 104px) 0; position: relative; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 0.95rem; white-space: nowrap; transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, color 0.25s, border-color 0.25s; }
.btn:hover { transform: translateY(-2px); }
.btn--amber { background: var(--amber); color: var(--ink); box-shadow: 0 10px 28px -8px rgba(240, 180, 41, 0.6); }
.btn--amber:hover { background: #ffc94d; }
.btn--ghost { border: 1.5px solid rgba(255, 255, 255, 0.5); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.btn--forest { background: var(--forest); color: #fff; }
.btn--forest:hover { background: var(--forest-dark); }
.btn--block { width: 100%; }

/* Header */
.header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: 76px; transition: background 0.3s, box-shadow 0.3s, height 0.3s; }
.header.is-scrolled { height: 64px; background: rgba(10, 34, 48, 0.94); backdrop-filter: blur(14px); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand__mark { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--forest), var(--teal)); box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.5); }
.brand__mark svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-serif); font-weight: 700; font-size: 1.12rem; }
.brand__sub { font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__link { position: relative; color: rgba(255, 255, 255, 0.88); font-size: 0.92rem; font-weight: 600; padding: 6px 0; }
.nav__link::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.nav__link:hover, .nav__link.is-active { color: #fff; }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav .btn { padding: 10px 20px; font-size: 0.86rem; }
.burger { display: none; width: 46px; height: 46px; border-radius: 12px; place-items: center; background: rgba(10, 34, 48, 0.6); border: 1px solid rgba(255, 255, 255, 0.2); }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; position: relative; transition: transform 0.3s, background 0.3s, top 0.3s; }
.burger span::before, .burger span::after { content: ''; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded='true'] span { background: transparent; }
.burger[aria-expanded='true'] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded='true'] span::after { top: 0; transform: rotate(-45deg); }

/* Hero */
.hero { min-height: 92vh; min-height: 92svh; padding: 0 0 110px; display: grid; align-items: center; position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(900px 600px at 82% 25%, rgba(47, 134, 192, 0.25), transparent 60%), radial-gradient(700px 500px at 8% 95%, rgba(29, 122, 74, 0.35), transparent 60%), linear-gradient(160deg, var(--ink), var(--deep) 75%); }
.hero__topo { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.6; }
.hero__topo path { fill: none; stroke: rgba(143, 207, 154, 0.32); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.hero__topo .t2 path { stroke: rgba(47, 134, 192, 0.35); }
.hero__topo g.drift { animation: drift 40s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate(0, 0) rotate(0deg); } to { transform: translate(-30px, 18px) rotate(2.5deg); } }
.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center; padding: 140px 0 40px; }
.hero__kicker { font-size: 0.8rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--leaf); font-weight: 700; }
.hero__title { font-family: var(--font-serif); font-weight: 900; font-size: clamp(2.6rem, 6.6vw, 4.9rem); line-height: 1.04; letter-spacing: -0.02em; margin: 14px 0 20px; }
.hero__title em { display: block; font-style: italic; font-weight: 600; color: var(--amber); }
.hero__text { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: rgba(255, 255, 255, 0.86); max-width: 54ch; }

.search { margin-top: 30px; display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 999px; padding: 7px 7px 7px 22px; box-shadow: var(--shadow-lg); max-width: 640px; }
.search .icon { color: var(--forest); width: 22px; height: 22px; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 12px 10px; font-size: 1.05rem; color: var(--ink); }
.search input::placeholder { color: #6b838d; }
.search .btn { padding: 13px 26px; }
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.quick small { font-size: 0.78rem; color: rgba(255, 255, 255, 0.65); margin-right: 4px; }
.chip { padding: 6px 14px; border-radius: 999px; font-size: 0.84rem; font-weight: 600; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22); color: #fff; transition: background 0.2s, border-color 0.2s; }
.chip:hover { background: rgba(240, 180, 41, 0.25); border-color: var(--amber); }

.layers { padding: 24px; border-radius: 24px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16); backdrop-filter: blur(14px); box-shadow: var(--shadow-lg); animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-10px); } }
.layers__head { display: flex; justify-content: space-between; align-items: center; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.65); font-weight: 700; }
.layers__dots { display: flex; gap: 6px; }
.layers__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.28); }
.layers__map { margin: 16px 0; border-radius: 14px; overflow: hidden; aspect-ratio: 5 / 4; background: #0d2a20; }
.layers__map svg { width: 100%; height: 100%; display: block; }
.layers__bar { height: 12px; border-radius: 8px; background: linear-gradient(90deg, #8c5a2b, #d7b25c 30%, #9fcb6b 62%, #2f8a4a 82%, #0e4d2b); }
.layers__scale { display: flex; justify-content: space-between; font-size: 0.7rem; color: rgba(255, 255, 255, 0.65); margin-top: 6px; }
.layers__note { margin-top: 12px; font-size: 0.68rem; color: rgba(255, 255, 255, 0.5); }

/* Franja de estadísticas */
.stats { padding: 0; margin-top: -78px; position: relative; z-index: 10; }
.stats__card { background: #fff; border-radius: 22px; padding: 28px 30px; box-shadow: var(--shadow-lg); display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; border-top: 5px solid var(--forest); }
.stat { display: flex; align-items: center; gap: 16px; }
.stat__ico { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; flex: none; background: var(--mist); color: var(--forest); }
.stat__ico .icon { width: 26px; height: 26px; }
.stat__num { font-family: var(--font-serif); font-size: 2.3rem; font-weight: 700; color: var(--ink); line-height: 1; display: block; }
.stat__label { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: 6px; display: block; }
.stats__note { text-align: center; font-size: 0.8rem; color: var(--muted); margin-top: 14px; }

/* Catálogo */
.catalog { padding-top: clamp(56px, 8vw, 90px); }
.catalog__tools { margin-top: 34px; display: flex; flex-direction: column; gap: 16px; }
.catalog__search { display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 4px 16px; max-width: 560px; box-shadow: var(--shadow-sm); transition: border-color 0.2s, box-shadow 0.2s; }
.catalog__search:focus-within { border-color: var(--forest); box-shadow: 0 0 0 4px rgba(29, 122, 74, 0.15); }
.catalog__search .icon { color: var(--forest); }
.catalog__search input { flex: 1; border: 0; outline: 0; background: transparent; padding: 13px 0; }
.catalog__clear { color: var(--muted); font-size: 0.85rem; font-weight: 700; padding: 6px 10px; border-radius: 8px; }
.catalog__clear:hover { background: var(--mist); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { padding: 9px 18px; border-radius: 999px; font-size: 0.9rem; font-weight: 700; background: #fff; border: 1.5px solid var(--line); color: var(--ink); transition: 0.2s; }
.filter:hover { border-color: var(--forest); }
.filter.is-on { background: var(--forest); border-color: var(--forest); color: #fff; }
.filter span { opacity: 0.65; font-weight: 600; margin-left: 6px; font-size: 0.82rem; }
.catalog__count { margin-top: 22px; font-size: 0.92rem; color: var(--muted); }
.catalog__count strong { color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 18px; }
.res { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s; }
.res:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(29, 122, 74, 0.4); }
.res__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.res__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--mist); color: var(--forest); }
.res__icon .icon { width: 24px; height: 24px; }
.res--datos .res__icon { background: #e1eef8; color: var(--water); }
.res--metodos .res__icon { background: #f3e8dd; color: var(--earth); }
.res--publicaciones .res__icon { background: #efe9f6; color: #6b4a9c; }
.res--formacion .res__icon { background: #fdf1d0; color: #8a6200; }
.res--normativa .res__icon { background: #e0efe6; color: var(--teal); }
.type { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: var(--mist); color: var(--forest-dark); }
.res h3 { font-family: var(--font-serif); font-size: 1.28rem; color: var(--ink); line-height: 1.22; }
.res p { color: var(--muted); font-size: 0.96rem; margin-top: 8px; }
.res__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.res__tags button { font-size: 0.76rem; font-weight: 600; color: var(--teal); background: #e7f2f1; padding: 3px 10px; border-radius: 999px; }
.res__tags button:hover { background: #cde6e4; }
.res__foot { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.res__link { font-weight: 700; font-size: 0.9rem; color: var(--forest-dark); display: inline-flex; align-items: center; gap: 7px; }
.res__link:hover { color: var(--ink); }
.res__link .icon { width: 17px; height: 17px; transition: transform 0.25s; }
.res__link:hover .icon { transform: translateX(4px); }
.empty { grid-column: 1 / -1; text-align: center; padding: 50px 20px; background: #fff; border-radius: var(--radius); border: 1.5px dashed var(--line); color: var(--muted); }
.empty strong { display: block; font-family: var(--font-serif); font-size: 1.3rem; color: var(--ink); margin-bottom: 6px; }

/* Áreas temáticas */
.areas { background: var(--mist); }
.areas__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 44px; }
.area { text-align: left; background: #fff; border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s; display: flex; flex-direction: column; gap: 12px; }
.area:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--forest); }
.area .icon { width: 30px; height: 30px; color: var(--forest); }
.area h3 { font-family: var(--font-serif); font-size: 1.08rem; color: var(--ink); line-height: 1.25; }
.area p { font-size: 0.86rem; color: var(--muted); line-height: 1.5; }
.area small { margin-top: auto; font-weight: 700; font-size: 0.78rem; color: var(--forest-dark); }

/* Software */
.projects { background: var(--ink); color: #fff; overflow: hidden; }
.projects::before { content: ''; position: absolute; width: 780px; height: 780px; right: -260px; top: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(47, 134, 192, 0.22), transparent 65%); pointer-events: none; }
.projects::after { content: ''; position: absolute; width: 640px; height: 640px; left: -240px; bottom: -280px; border-radius: 50%; background: radial-gradient(circle, rgba(29, 122, 74, 0.3), transparent 65%); pointer-events: none; }
.projects .container { position: relative; z-index: 1; }
.projects__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 50px; }
.sw { padding: 32px 30px; border-radius: 24px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); display: flex; flex-direction: column; transition: background 0.35s, transform 0.35s var(--ease), border-color 0.35s; }
.sw:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-6px); border-color: rgba(240, 180, 41, 0.5); }
.sw__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.sw__icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(29, 122, 74, 0.5), rgba(29, 122, 74, 0.12)); color: var(--amber); border: 1px solid rgba(143, 207, 154, 0.35); }
.sw__icon .icon { width: 28px; height: 28px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.badge { padding: 5px 12px; border-radius: 999px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; background: rgba(255, 255, 255, 0.12); color: #fff; }
.badge--ok { background: rgba(143, 207, 154, 0.22); color: #c4efcd; }
.badge--amber { background: rgba(240, 180, 41, 0.2); color: var(--amber); }
.sw h3 { font-family: var(--font-serif); font-size: 1.8rem; }
.sw__kind { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--leaf); font-weight: 700; margin: 4px 0 14px; }
.sw p { color: rgba(255, 255, 255, 0.78); font-size: 1rem; }
.shotph { margin: 18px 0 0; border-radius: 14px; border: 1.5px dashed rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.03); aspect-ratio: 16 / 7; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: rgba(255, 255, 255, 0.45); }
.shotph .icon { width: 30px; height: 30px; }
.sw__feat { margin: 20px 0 22px; display: grid; gap: 9px; }
.sw__feat li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; color: rgba(255, 255, 255, 0.9); }
.sw__feat .icon { width: 17px; height: 17px; color: var(--leaf); margin-top: 4px; }
.sw__meta { margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.14); display: flex; flex-wrap: wrap; gap: 10px; }
.sw__meta .btn { padding: 12px 22px; font-size: 0.86rem; }
.sw__todo { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.install { margin-top: 32px; padding: 32px; border-radius: 24px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); }
.install h3 { font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: 22px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-top: 52px; font-size: 0.94rem; color: rgba(255, 255, 255, 0.78); }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--amber); color: var(--ink); font-weight: 800; display: grid; place-items: center; }
.steps b { display: block; color: #fff; font-family: var(--font-serif); font-size: 1.08rem; margin-bottom: 6px; }

/* ¿Qué es? */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.comp { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 4px; }
.comp li { background: #fff; border-radius: 14px; padding: 18px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.comp li b { display: flex; align-items: center; gap: 10px; font-family: var(--font-serif); color: var(--ink); font-size: 1.05rem; margin-bottom: 4px; }
.comp .icon { color: var(--forest); width: 22px; height: 22px; }
.comp span { font-size: 0.88rem; color: var(--muted); display: block; line-height: 1.5; }

/* Formación */
.teach { background: var(--mist); }
.course { margin-top: 44px; background: linear-gradient(150deg, var(--deep), var(--ink)); color: #fff; border-radius: 26px; padding: 42px; position: relative; overflow: hidden; display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 40px; align-items: center; }
.course::after { content: ''; position: absolute; right: -90px; bottom: -90px; width: 300px; height: 300px; border-radius: 50%; border: 1px solid rgba(143, 207, 154, 0.3); box-shadow: 0 0 0 30px rgba(143, 207, 154, 0.05), 0 0 0 60px rgba(143, 207, 154, 0.04); }
.course > * { position: relative; z-index: 1; }
.course h3 { font-family: var(--font-serif); font-size: 1.7rem; line-height: 1.2; margin: 14px 0; }
.course p { color: rgba(255, 255, 255, 0.8); }
.course__facts { display: grid; gap: 18px; }
.course__facts div { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 16px; padding: 16px 20px; }
.course__facts strong { display: block; font-family: var(--font-serif); font-size: 1.9rem; color: var(--amber); line-height: 1; }
.course__facts span { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); font-weight: 700; }

/* Enlaces de interés */
.links__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.xlink { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: #fff; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s; }
.xlink:hover { transform: translateY(-4px); border-color: var(--forest); box-shadow: var(--shadow); }
.xlink b { color: var(--ink); font-size: 1.02rem; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.xlink b .icon { width: 17px; height: 17px; color: var(--forest); }
.xlink span { font-size: 0.86rem; color: var(--muted); line-height: 1.45; }

/* Novedades */
.news { background: #fff; }
.timeline { margin-top: 44px; position: relative; max-width: 820px; }
.timeline::before { content: ''; position: absolute; left: 150px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--forest), rgba(29, 122, 74, 0.1)); }
.timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 0 36px; position: relative; padding: 0 0 32px; }
.timeline li::after { content: ''; position: absolute; left: 144px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--amber); border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--forest); }
.timeline time { text-align: right; font-weight: 800; font-size: 0.86rem; color: var(--forest-dark); padding-top: 2px; letter-spacing: 0.04em; }
.timeline h3 { font-family: var(--font-serif); font-size: 1.25rem; color: var(--ink); line-height: 1.25; }
.timeline p { color: var(--muted); font-size: 0.98rem; margin-top: 6px; }

/* Contacto */
.contact__grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.contact__cards { display: grid; gap: 14px; margin-top: 30px; }
.ccard { display: flex; align-items: center; gap: 18px; padding: 16px 20px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.ccard__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--mist); color: var(--forest); flex: none; }
.ccard__icon .icon { width: 24px; height: 24px; }
.ccard small { display: block; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.ccard strong { display: block; font-size: 1.04rem; color: var(--ink); line-height: 1.35; }
.cta-card { border-radius: 28px; padding: 42px 38px; color: #fff; background: radial-gradient(500px 300px at 90% 0%, rgba(240, 180, 41, 0.2), transparent 60%), linear-gradient(160deg, var(--teal), var(--ink)); box-shadow: var(--shadow-lg); }
.cta-card h3 { font-family: var(--font-serif); font-size: 1.9rem; line-height: 1.2; }
.cta-card h3 em { color: var(--amber); }
.cta-card p { color: rgba(255, 255, 255, 0.8); margin: 14px 0 26px; }

/* Footer */
.footer { background: var(--ink); color: rgba(255, 255, 255, 0.68); padding: 64px 0 28px; font-size: 0.95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.footer .brand { margin-bottom: 16px; }
.footer p { max-width: 42ch; }
.footer h4 { color: #fff; font-family: var(--font-serif); font-size: 1.05rem; margin-bottom: 14px; }
.footer li { margin-bottom: 9px; }
.footer a:hover { color: var(--amber); }
.footer__legal { padding-top: 24px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 0.82rem; }

.totop { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--amber); color: var(--ink); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(10px); transition: 0.3s var(--ease); }
.totop.is-visible { opacity: 1; pointer-events: auto; transform: none; }

/* Entrada */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .layers { max-width: 460px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .areas__grid { grid-template-columns: repeat(3, 1fr); }
  .links__grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats__card { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .burger { display: grid; position: relative; z-index: 120; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); background: var(--ink); flex-direction: column; align-items: flex-start; justify-content: center; gap: 22px; padding: 90px 36px 40px; transform: translateX(100%); transition: transform 0.45s var(--ease); box-shadow: -30px 0 80px rgba(0, 0, 0, 0.5); }
  .nav.is-open { transform: none; }
  .nav__link { font-size: 1.15rem; color: #fff; }
  .nav .btn { width: 100%; margin-top: 8px; }
  .about__grid, .contact__grid, .projects__grid, .course { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 36px); }
  body { font-size: 16px; }
  .hero__grid { padding-top: 112px; }
  .search { padding-left: 16px; }
  .search .btn span { display: none; }
  .search .btn { padding: 13px 16px; }
  .grid, .areas__grid, .links__grid, .steps, .stats__card, .comp { grid-template-columns: 1fr; }
  .stats__card { padding: 24px 20px; }
  .install, .course, .cta-card { padding: 26px 22px; }
  .sw { padding: 28px 22px; }
  .timeline::before { left: 6px; }
  .timeline li { grid-template-columns: 1fr; padding-left: 30px; }
  .timeline li::after { left: 0; }
  .timeline time { text-align: left; margin-bottom: 4px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .totop { right: 16px; bottom: 16px; }
}
