/* Tipografías de marca (manual de marca, carpeta Marca > 02 Fonts):
   Neue Plak = destacado · Acumin Variable Concept = texto principal · SF Pro = texto secundario.
   SF Pro (18 MB, licencia de Apple) no se carga: en Mac/iPhone se ve con la fuente del sistema y en el resto con una parecida. */
@font-face { font-family: "Neue Plak"; src: url("fonts/NeuePlak-Light.otf") format("opentype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Acumin Variable Concept"; src: url("fonts/AcuminVariableConcept.otf") format("opentype"); font-weight: 100 900; font-display: swap; }

:root {
  --navy: #19354a;
  --navy-2: #1b3644;
  --blue: #6896b2;
  --beige: #cbbba7;
  --cream: #f2ebe3;
  --white: #ffffff;
  --f-destacado: "Neue Plak", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-principal: "Acumin Variable Concept", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-secundario: "SF Pro Text", "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { font-family: var(--f-principal); color: var(--navy); background: var(--white); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
b { font-weight: 600; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }

/* Entradas y salidas al hacer scroll */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal.out-up { opacity: 0; transform: translateY(-28px); }
.reveal-img { transform: translateX(60px) scale(.96); }
.reveal-img.in { transform: none; }
.reveal-img.out-up { transform: translateY(-28px) scale(.98); }

.nav { position: sticky; top: 0; z-index: 10; height: 64px; background: var(--navy); display: flex; align-items: center; justify-content: space-between; padding: 0 32px; }
.nav nav { display: flex; gap: 28px; }
.nav nav a { font-family: var(--f-secundario); font-size: 14px; font-weight: 500; color: var(--cream); letter-spacing: .01em; transition: color .2s; }
.nav nav a:hover { color: var(--beige); }

.hero { min-height: 640px; position: relative; overflow: hidden; padding: 110px 64px 0; }
.hero-bg { position: absolute; inset: -40px 0; background: url("assets/hero-degradado.png") center/cover no-repeat; will-change: transform; }
.hero-logo { position: relative; width: min(520px, 70%); animation: heroIn 1.2s var(--ease) both; }
.hero-tag { position: absolute; right: 12%; bottom: 64px; max-width: 420px; font-family: var(--f-secundario); font-weight: 500; font-size: 18px; letter-spacing: .02em; color: var(--cream); animation: heroIn 1.2s var(--ease) .35s both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

.intro { padding: 96px 0; }
.lead { font-family: var(--f-destacado); font-size: clamp(26px, 3vw, 40px); line-height: 1.2; font-weight: 300; }
.cols p { margin-bottom: 18px; }
.btn { display: inline-block; margin-top: 12px; padding: 14px 28px; border: 1px solid var(--navy); font-family: var(--f-secundario); font-size: 15px; font-weight: 500; transition: background .2s, color .2s, opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
.btn:hover { background: var(--navy); color: var(--cream); }

.eyebrow { font-family: var(--f-secundario); font-size: 13px; font-weight: 500; letter-spacing: .28em; margin-bottom: 40px; }
.mision { padding: 110px 0; background: url("assets/fondo-azul-geometrico.png") center/cover; color: var(--navy); }
.mision .eyebrow { text-align: center; }
.mision .center { text-align: center; }
.mision h3 { font-family: var(--f-secundario); font-size: 14px; font-weight: 500; letter-spacing: .24em; margin-bottom: 14px; }
.mision p { font-size: 19px; max-width: 440px; margin: 0 auto; }

/* Servicios: tarjetas azul oscuro con viñetas, como en la web de Framer */
.servicios { padding: 96px 0; background: var(--cream); }
.section-title { font-family: var(--f-destacado); font-weight: 300; font-size: clamp(26px, 3vw, 38px); line-height: 1.2; max-width: 820px; margin-bottom: 56px; }
.card { background: var(--navy); color: var(--cream); padding: 44px; border-radius: 20px; }
.card h3 { font-family: var(--f-destacado); font-weight: 400; font-size: 28px; margin-bottom: 12px; color: var(--white); }
.card-lead { margin-bottom: 22px; color: #d9d2c8; }
.card ul { list-style: none; }
.card li { position: relative; padding-left: 34px; margin-bottom: 14px; font-size: 16px; }
.card li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--blue); }
.card li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 5px; height: 9px; border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(.7); transform-origin: center; }

.industrias { padding: 80px 0; }
.industrias ol { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.industrias li { font-family: var(--f-destacado); font-weight: 300; font-size: 24px; line-height: 1.25; border-top: 1px solid var(--navy); padding-top: 16px; }
.industrias li span { display: block; font-family: var(--f-secundario); font-size: 14px; color: var(--blue); margin-bottom: 8px; }

/* Experiencia: texto + foto del laboratorio acomodada al costado */
.experiencia { padding: 110px 0; background: linear-gradient(rgba(242,235,227,.88), rgba(242,235,227,.88)), url("assets/plano-sepia.png") center/cover; }
.exp-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.exp-text p { margin-bottom: 18px; max-width: 560px; }
.exp-img { width: 100%; max-width: 520px; justify-self: end; }

/* Contacto como pie de página: logo grande, tres columnas y LinkedIn */
.foot { background: var(--navy-2) url("assets/patron-azul.png") center/cover; color: var(--cream); padding: 96px 0 72px; }
.foot-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 40px; align-items: end; }
.foot-logo { width: 150px; }
.foot-col { display: grid; gap: 8px; align-content: end; font-family: var(--f-secundario); font-size: 15px; }
.foot-col h4 { font-weight: 500; font-size: 17px; margin-bottom: 10px; color: var(--white); }
.foot-col a { opacity: .9; transition: opacity .2s, color .2s; }
.foot-col a:hover { opacity: 1; color: var(--beige); }
.foot-col .in { width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: var(--navy); display: grid; place-items: center; opacity: 1; transition: transform .25s var(--ease), background .2s; }
.foot-col .in:hover { transform: scale(1.1); background: var(--cream); color: var(--navy); }

@media (max-width: 860px) {
  .two, .exp-grid { grid-template-columns: 1fr; gap: 32px; }
  .nav { padding: 0 16px; }
  .nav nav { gap: 14px; }
  .nav nav a { font-size: 12px; }
  .nav nav a:first-child { display: none; }
  .hero { min-height: 520px; padding: 80px 24px 0; }
  .hero-tag { right: 24px; left: 24px; bottom: 36px; font-size: 15px; }
  .wrap { padding: 0 20px; }
  .card { padding: 30px; }
  .exp-img { justify-self: center; }
  .foot-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .foot-logo { grid-column: 1 / -1; width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-img { opacity: 1; transform: none; transition: none; }
  .hero-logo, .hero-tag { animation: none; }
  html { scroll-behavior: auto; }
}
