/* notland: estilo de la presentación 2025, a la medida */
:root {
  --black: #0b0b0b;      /* portada */
  --coal: #1c1c1c;       /* diapositivas oscuras */
  --line: #2c2c2c;       /* retícula sobre oscuro */
  --paper: #ececeb;      /* diapositivas claras */
  --paper-line: #d2d2d0;
  --white: #ffffff;
  --ink: #111111;
  --grey: #9a9a9a;       /* texto secundario sobre oscuro */
  --grey-ink: #555553;   /* texto secundario sobre claro */
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gut: max(24px, 5.5vw);
  --max: 1280px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
html, body { margin: 0; }
body { background: var(--black); color: var(--white); font: 400 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.wrap { width: min(100%, var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 20; background: var(--white); color: var(--ink); padding: 8px 14px; }
.skip:focus { left: 12px; }

/* logo: not + Land en caja */
.logo { display: inline-flex; align-items: center; gap: .22em; font: 500 22px/1 var(--font); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.logo b { font-weight: 500; background: currentColor; padding: .1em .25em .14em; }
.logo b span { color: var(--black); }
.on-paper .logo b span { color: var(--paper); }

/* caja numerada 01, 02... */
.num { display: inline-grid; place-items: center; min-width: 44px; height: 40px; padding: 0 10px; border: 1px solid currentColor; font: 400 18px/1 var(--font); flex: none; transition: background-color .5s var(--ease), color .5s var(--ease); }
.on-dark .num.is-filled, .num--fill { background: var(--white); color: var(--ink); border-color: var(--white); }
.on-paper .num.is-filled { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* barra de navegación */
.nav { position: fixed; inset: 0 0 auto; z-index: 10; background: rgb(11 11 11 / .9); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; padding-inline: var(--gut); width: 100%; max-width: calc(var(--max) + 2 * var(--gut)); }
.nav__links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.nav__links a, .lang a { text-decoration: none; color: #cfcfcf; position: relative; padding: 10px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--white); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav__links a:hover, .lang a:hover { color: var(--white); }
.nav__links a:hover::after { transform: scaleX(1); }
.lang { font-size: 13px; color: var(--grey); display: flex; gap: 6px; align-items: center; }
.lang strong { color: var(--white); font-weight: 500; }
.nav__toggle { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line); color: var(--white); cursor: pointer; }

/* secciones: el color alterna entre oscuro y claro */
.section { padding: 128px var(--gut); }
.on-dark { background: var(--coal); color: var(--white); }
.on-paper { background: var(--paper); color: var(--ink); }
.on-black { background: var(--black); color: var(--white); }
.head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 56px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.on-paper .head { border-color: var(--paper-line); }
.head h2 { margin: 0; font: 500 clamp(32px, 4vw, 52px)/1.1 var(--font); letter-spacing: -.02em; text-wrap: balance; }
.head p { margin: 0; max-width: 46ch; color: var(--grey); }
.on-paper .head p { color: var(--grey-ink); }

/* hero: la portada de la presentación */
.hero { position: relative; min-height: 100svh; overflow: hidden; display: grid; background: var(--black); }
.grid-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.grid-lines line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero__in { position: relative; z-index: 1; align-self: end; display: grid; gap: 40px; padding: 140px var(--gut) 72px; }
.quote { margin: 0; font: 300 italic clamp(52px, 9.4vw, 152px)/.98 var(--font); letter-spacing: -.035em; }
.quote > span { display: block; overflow: hidden; padding-bottom: .06em; }
.quote > span > span { display: block; transform: translateY(105%); animation: rise .9s var(--ease) forwards; }
.quote > span:nth-child(2) > span { animation-delay: .12s; }
@keyframes rise { to { transform: none; } }
.quote .for { font-style: normal; font-weight: 500; background: var(--white); color: var(--ink); padding: 0 .12em .04em; }
.hero__row { display: flex; justify-content: space-between; align-items: end; gap: 32px; border-top: 1px solid var(--line); padding-top: 28px; }
.cite { font-size: 15px; color: var(--grey); margin: 0 0 6px; }
.lede { margin: 0; max-width: 40ch; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: #e6e6e6; }
.year { font-size: 15px; color: var(--grey); white-space: nowrap; }
.fade-in { opacity: 0; animation: fade .8s forwards; }
.fade-in.d1 { animation-delay: .9s; } .fade-in.d2 { animation-delay: 1.05s; } .fade-in.d3 { animation-delay: 1.2s; }
@keyframes fade { to { opacity: 1; } }

/* entrada de bloques al llegar a ellos */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
html.no-js [data-reveal] { opacity: 1; transform: none; }

/* nosotros: bloques como las diapositivas 4 y 5 */
.about { display: grid; gap: 120px; }
.block { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; align-items: start; }
.block h2 { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; margin: 0; padding-bottom: 20px; border-bottom: 1px solid var(--paper-line); font: 500 clamp(26px, 3vw, 38px)/1.15 var(--font); letter-spacing: -.015em; }
.block p { margin: 0; }
.block .strong { font-weight: 600; font-size: 17px; }
.block .ill { grid-column: 3; grid-row: 2 / span 2; }

/* ilustraciones lineales, en el estilo de la presentación */
.ill { width: 100%; height: auto; overflow: visible; }
.ill .s { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ill .w { fill: var(--white); } .ill .g1 { fill: #d3d3d1; } .ill .g2 { fill: #a8a8a6; } .ill .k { fill: currentColor; }
.ill .draw { stroke-dasharray: 700; stroke-dashoffset: 700; }
.ill.is-in .draw { animation: dash 1.8s var(--ease) forwards; }
@keyframes dash { to { stroke-dashoffset: 0; } }
.ill .pop { opacity: 0; transform-box: fill-box; transform-origin: center bottom; }
.ill.is-in .pop { animation: pop .9s var(--ease) forwards; }
.ill .pop.p2 { animation-delay: 1.1s !important; } .ill .pop.p3 { animation-delay: 1.4s !important; } .ill .pop.p1 { animation-delay: .8s !important; }
@keyframes pop { from { opacity: 0; transform: translateY(-36px); } to { opacity: 1; transform: none; } }
.ill .type { stroke-dasharray: 80; stroke-dashoffset: 80; }
.ill.is-in .type { animation: dash 1s var(--ease) forwards; }
.ill .type.t2 { animation-delay: .9s !important; } .ill .type.t3 { animation-delay: 1.3s !important; }
.ill .blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ill .pulse { transform-box: fill-box; transform-origin: center; }
.ill.is-in .pulse { animation: pulse 2.4s var(--ease) infinite; }
.ill .pulse.q2 { animation-delay: .6s; } .ill .pulse.q3 { animation-delay: 1.2s; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }

/* servicios */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.service { border-top: 1px solid var(--line); padding-top: 28px; display: grid; gap: 18px; align-content: start; }
.service .ill { max-width: 240px; }
.service h3 { margin: 0; font: 500 22px/1.25 var(--font); }
.service ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: #d6d6d6; }
.service li { padding-left: 18px; position: relative; }
.service li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--grey); }
.service__top { display: flex; align-items: center; justify-content: space-between; }

/* proyectos: rejilla de tarjetas */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { position: relative; display: flex; flex-direction: column; text-decoration: none; background: var(--white); color: var(--ink); border: 1px solid var(--paper-line); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
a.card:hover, a.card:focus-visible { transform: translateY(-2px); box-shadow: 0 18px 40px -24px rgb(0 0 0 / .45); }
.card__shot { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--paper-line); }
.card__shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: transform .7s var(--ease); }
.card:hover .card__shot img, .card:focus-visible .card__shot img { transform: scale(1.05); }
.card__body { padding: 22px 24px 24px; display: grid; gap: 6px; flex: 1; align-content: start; }
.card__top { display: flex; align-items: center; gap: 14px; }
.card h3 { margin: 0; font: 500 22px/1.2 var(--font); }
.card__name { margin: 0; font-size: 14px; font-weight: 500; }
.card__meta { margin: 0; font-size: 14px; color: var(--grey-ink); }
.card__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.card__more > p { overflow: hidden; margin: 0; font-size: 15px; }
.card:hover .card__more, .card:focus-visible .card__more { grid-template-rows: 1fr; }
.card:hover .card__more > p, .card:focus-visible .card__more > p { padding-top: 8px; }
.card__go { font-size: 14px; margin-top: 10px; display: inline-flex; gap: 8px; align-items: center; font-weight: 500; }
.card__go svg { transition: transform .3s var(--ease); }
.card:hover .card__go svg { transform: translateX(3px); }
@media (hover: none) { .card__more { grid-template-rows: 1fr; } .card__more > p { padding-top: 8px; } }

/* clientes: el muro de logotipos, cuadros sobre el fondo claro */
.clients { display: grid; gap: 48px; }
.clients h3 { margin: 0 0 16px; font: 500 14px/1.4 var(--font); color: var(--grey-ink); }
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--paper-line); border-left: 1px solid var(--paper-line); }
.logos li { aspect-ratio: 1; display: grid; place-items: center; padding: 18%; border-right: 1px solid var(--paper-line); border-bottom: 1px solid var(--paper-line); transition: background-color .4s var(--ease); }
.logos li:hover { background: rgb(255 255 255 / .55); }
.logos img { max-height: 84px; width: auto; max-width: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.logos li:hover img { transform: scale(1.06); }
.logos [data-reveal] { transition-delay: calc(var(--i, 0) * 80ms); }

/* proyectos sobre fondo oscuro */
.on-dark .card { background: var(--black); color: var(--white); border-color: var(--line); }
.on-dark a.card:hover, .on-dark a.card:focus-visible { border-color: #555; box-shadow: 0 18px 40px -24px rgb(0 0 0 / .9); }
.on-dark .card__shot { border-color: var(--line); }
.on-dark .card__meta { color: var(--grey); }
.on-dark .card__more > p { color: #d8d8d8; }

/* contacto */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact h3 { margin: 0 0 12px; font: 500 14px/1.4 var(--font); color: var(--grey); }
.contact p, .contact address { margin: 0; font-style: normal; font-size: 18px; line-height: 1.6; }
.contact a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.contact a:hover { background-size: 100% 1px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 96px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--grey); }

/* tableta y teléfono */
@media (max-width: 1023px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services { grid-template-columns: 1fr; gap: 48px; }
  .service { grid-template-columns: 160px 1fr; column-gap: 32px; }
  .service .ill { grid-row: 1 / span 3; max-width: 160px; }
}
@media (max-width: 860px) {
  .nav__links, .nav .lang { display: none; }
  .nav__toggle { display: grid; place-items: center; }
  .nav.is-open .nav__links { display: grid; position: fixed; inset: 72px 0 0; background: var(--black); padding: 24px var(--gut); gap: 0; align-content: start; }
  .nav.is-open .nav__links a { display: block; padding: 16px 0; font-size: 22px; border-bottom: 1px solid var(--line); }
  .nav.is-open .nav__links .menu-lang { display: block; }
  .block { grid-template-columns: 1fr; gap: 24px; }
  .block .ill { grid-column: 1; grid-row: auto; max-width: 320px; }
  .contact { grid-template-columns: auto 1fr; gap: 24px; }
  .hero__row { flex-direction: column; align-items: start; }
  .section { padding-block: 96px; }
}
.menu-lang { display: none; }
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logos li { padding: 16%; }
  .service { grid-template-columns: 1fr; }
  .service .ill { grid-row: auto; max-width: 140px; }
  .head { flex-direction: column; align-items: start; }
  .foot { flex-direction: column; align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .grid-lines line, .ill .draw, .ill .type { stroke-dashoffset: 0; }
  .quote > span > span { transform: none; }
  .fade-in, .ill .pop, [data-reveal] { opacity: 1; transform: none; }
}
/* los logotipos casi cuadrados se ven más grandes: se igualan por superficie */
.logos img[src*="unam"], .logos img[src*="embajada"] { max-height: 112px; }
.logos li { min-width: 0; overflow: hidden; }
@media (max-width: 560px) { .logos img { max-height: 56px; } .logos img[src*="unam"], .logos img[src*="embajada"] { max-height: 76px; } }

/* movimientos propios de las ilustraciones */
.ill .spin { animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ill .sway { animation: sway 4s ease-in-out infinite; }
@keyframes sway { 50% { transform: rotate(-4deg); } }
.ill .bob { animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-4px); } }
.ill .twinkle { animation: twinkle 2.4s ease-in-out infinite; transform-box: view-box; }
@keyframes twinkle { 50% { transform: scale(.4); opacity: .3; } }
.ill .grow { transform-box: fill-box; transform-origin: center bottom; transform: scaleY(0); }
.ill.is-in .grow { animation: grow .9s var(--ease) forwards; }
.ill .grow.g2b { animation-delay: .15s; } .ill .grow.g3b { animation-delay: .3s; }
@keyframes grow { to { transform: none; } }
.ill line.type { stroke-dasharray: 80; stroke-dashoffset: 80; }
.ill .t1 { animation-delay: .2s !important; } .ill .t2 { animation-delay: .4s !important; } .ill .t3 { animation-delay: .6s !important; }
@media (prefers-reduced-motion: reduce) { .ill .grow { transform: none; } }

/* ilustraciones de la presentación, animadas por capas (las capas apiladas forman la imagen original) */
.ill--img { position: relative; max-width: 440px; justify-self: center; }
.ill--img img { width: 100%; height: auto; }
.ill--img img + img { position: absolute; inset: 0; }
.ill--img img:first-child { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.ill--img.is-in img:first-child { opacity: 1; transform: none; }
.ill--img img + img { opacity: 0; transition: opacity .8s .3s var(--ease); }
.ill--img.is-in img + img { opacity: 1; }
.ill--laptop.is-in .lp-front { animation: float 5s 1s ease-in-out infinite; }
.ill--laptop.is-in .lp-gear { transform-origin: 79.5% 79%; animation: spin 16s linear infinite; }
.ill--laptop.is-in .lp-plant { transform-origin: 8.9% 91.9%; animation: sway 4.5s ease-in-out infinite; }
.ill--cubes.is-in .cb-cube { animation: float 4.4s .8s ease-in-out infinite; }
.cb-spark1 { transform-origin: 37.6% 15%; } .cb-spark2 { transform-origin: 38.1% 75%; }
.ill--cubes.is-in .cb-spark { animation: twinkle 2.6s 1s ease-in-out infinite; }
.ill--cubes.is-in .cb-spark2 { animation-delay: 2.2s; }
.cb-dot { transform-origin: 15.6% 29.1%; }
.ill--cubes.is-in .cb-dot { animation: twinkle 3.2s 1.4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .ill--img img, .ill--img img + img { opacity: 1 !important; transform: none !important; } }

/* escenas redibujadas (800x800) */
.ill--scene { max-width: 440px; justify-self: center; opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.ill--scene.is-in { opacity: 1; transform: none; }
.ill--scene .float-a { animation: float 6s ease-in-out infinite; }
.ill--scene .float-b { animation: float 5s 1s ease-in-out infinite; }
.ill--scene .bob2 { animation-delay: 1.2s; }
.ill--scene .bob { animation-name: bob8; }
@keyframes bob8 { 50% { transform: translateY(-9px); } }
@media (prefers-reduced-motion: reduce) { .ill--scene { opacity: 1; transform: none; } }
.block .col { display: grid; gap: 16px; align-content: start; }

/* trazos de gis: se dibujan una vez y se quedan */
.ill .ink { stroke-dashoffset: 1; }
.ill .ink:not([stroke-dasharray]) { stroke-dasharray: 1; }
.ill.is-in .ink { animation: dash 1.4s var(--ease) forwards; }
.ill .ink.i2 { animation-delay: .5s; } .ill .ink.i3 { animation-delay: 1.3s; } .ill .ink.i4 { animation-delay: 1.8s; } .ill .ink.i5 { animation-delay: 2.6s; }
.ill .ink[stroke-dasharray] { stroke-dashoffset: 0; opacity: 0; }
.ill.is-in .ink[stroke-dasharray] { animation: fade .6s 2.6s forwards; }
.ill .write { fill: transparent; stroke-dasharray: 900; stroke-dashoffset: 900; }
.ill.is-in .write { animation: dash 2.2s .2s ease-out forwards, inkfill .5s 1.6s forwards; }
.ill.is-in .write.w2 { animation-delay: .7s, 2.1s; } .ill.is-in .write.w3 { animation-delay: 1s, 2.4s; }
@keyframes inkfill { to { fill: var(--c, #fff); } }
.ill .dot { opacity: 0; transform-box: fill-box; transform-origin: center; }
.ill.is-in .dot { animation: dotin .4s var(--ease) both; }
@keyframes dotin { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ill .ink, .ill .write { stroke-dashoffset: 0; opacity: 1; } .ill .write { fill: var(--c, #fff); } .ill .dot { opacity: 1; } }

/* el cubo de Filosofía: los cubitos llegan una vez y se quedan */
.ill--cube { opacity: 1; transform: none; overflow: hidden; }
.ill .fly { will-change: transform, opacity; }


/* contacto sobre blanco, con el logotipo original a la derecha */
.on-white { background: #f5f5f2; color: var(--ink); }
.on-white .head { border-color: var(--paper-line); }
.on-white .head p, .on-white .contact h3, .on-white .foot { color: var(--grey-ink); }
.on-white .foot { border-color: var(--paper-line); justify-content: flex-end; }
.contact a.contact__logo { justify-self: end; align-self: center; width: clamp(150px, 14vw, 200px); background: none; }
.contact__logo img { width: 100%; height: auto; }
@media (max-width: 860px) { .contact a.contact__logo { width: 120px; } }

/* menú del teléfono: sin desenfoque mientras está abierto, para que la lista cubra toda la pantalla */
@media (max-width: 860px) {
  .nav.is-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--black); }
  .nav.is-open .nav__links { height: calc(100dvh - 72px); overflow-y: auto; z-index: 11; }
}
