@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  /* Marca: azul #0e344f, turquesa #0c8c8f */
  --bg: #ffffff;
  --surface: #ffffff;
  --tint: #eef3f5;
  --text: #0f2233;
  --muted: #4a5b69;
  --line: #d3dde3;
  --accent: #0e344f;
  --accent-ink: #f4f6f7;
  --accent-soft: #dbeced;
  --teal: #0c8c8f;
  --radius: 8px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 750; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 65ch; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: var(--radius); z-index: 20; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  white-space: nowrap;
  padding: .8em 1.4em;
  border-radius: var(--radius);
  font-weight: 650; font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color .2s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 85%, var(--text)); }
.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { background: var(--tint); }
.btn--sm { padding: .55em 1.1em; font-size: .95rem; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: flex; }
.brand img { height: 52px; width: auto; }
.nav nav { margin-left: auto; }
.nav__links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav__links a { text-decoration: none; color: var(--muted); font-weight: 550; }
.nav__links a:hover { color: var(--text); }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero__grid { display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: center; }
.lead { font-size: 1.2rem; color: var(--muted); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__media { margin: 0; }
.hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 30% center; border-radius: var(--radius); }

/* Facts strip */
.facts { border-block: 1px solid var(--line); background: var(--tint); }
.facts__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.facts__grid > div { padding: 22px 20px; display: flex; flex-direction: column; gap: 2px; }
.facts__grid > div + div { border-left: 1px solid var(--line); }
.facts__k { font-size: .82rem; color: var(--muted); font-weight: 600; }
.facts__v { font-weight: 650; }

/* Sections */
.section { padding: 96px 0; }
.section--tint { background: var(--tint); }

.about > * { max-width: 760px; }
.about__body p { color: var(--muted); font-size: 1.1rem; }

/* Bento */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
  margin-top: 32px;
}
.tile { background: var(--surface); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 180px; }
.tile p { color: var(--muted); margin: 0; }
.tile--image { grid-row: span 2; position: relative; overflow: hidden; padding: 0; min-height: 380px; }
.tile--image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile--image .tile__text { position: relative; margin-top: auto; padding: 28px; background: linear-gradient(transparent, rgb(8 26 40 / .85)); color: #f4f5f2; }
.tile--image p { color: #d9e0dc; }
.tile--accent { background: var(--accent); color: var(--accent-ink); }
.tile--accent p { color: color-mix(in srgb, var(--accent-ink) 80%, transparent); }
.tile--soft { background: var(--accent-soft); }

/* Suppliers */
.suppliers { display: grid; grid-template-columns: 4fr 7fr; gap: 64px; align-items: start; }
.suppliers__intro p { color: var(--muted); }
.commit { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 48px; margin: 0; }
.commit dt { font-weight: 700; font-size: 1.1rem; margin-bottom: 6px; padding-top: 16px; border-top: 2px solid var(--teal); }
.commit dd { margin: 0; color: var(--muted); }

/* Steps */
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; padding: 28px; background: var(--surface); border-radius: var(--radius); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 750; margin-bottom: 18px; }
.steps p { color: var(--muted); margin: 0; }

/* Contact */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.contact__grid > div > p { color: var(--muted); }
.contact__card { font-style: normal; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 28px; }
.contact__card > div { display: flex; flex-direction: column; gap: 2px; padding: 18px 0; }
.contact__card > div + div { border-top: 1px solid var(--line); }
.contact__card a { font-weight: 650; text-decoration: none; }
.contact__card a:hover { text-decoration: underline; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: .9rem; color: var(--muted); }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Entrada del hero */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy, .hero__media { animation: rise .7s cubic-bezier(.16, 1, .3, 1) both; }
  .hero__media { animation-delay: .1s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
}

/* Mobile */
@media (max-width: 900px) {
  .hero__grid, .suppliers, .contact__grid { grid-template-columns: 1fr; gap: 36px; }
  .facts__grid { grid-template-columns: 1fr 1fr; }
  .facts__grid > div:nth-child(3) { border-left: 0; grid-column: span 2; }
  .facts__grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--image { grid-column: span 2; grid-row: auto; min-height: 280px; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }
  .nav__links { display: none; } /* ponytail: sin menú hamburguesa, 3 anclas no lo justifican */
  .hero { padding: 40px 0; }
  .section { padding: 64px 0; }
  .commit { grid-template-columns: 1fr; gap: 28px; }
  .bento { grid-template-columns: 1fr; }
  .tile:not(.tile--image) { min-height: 0; }
  .tile--image { grid-column: auto; }
  .contact__grid .btn { white-space: normal; word-break: break-all; }
}

/* Alinear la fila de datos con el borde del contenido */
.facts__grid > div:first-child { padding-left: 0; }
@media (max-width: 900px) { .facts__grid > div:nth-child(3) { padding-left: 0; } }
