:root {
  --brand: #e8452c;
  --brand-dark: #c9361f;
  --ink: #2b2b2b;
  --gray: #6b6b6b;
  --line: #ececec;
  --soft: #faf7f4;
  --white: #ffffff;
  --radius: 14px;
  --header-h: 76px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: "Open Sans", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* Header */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  transition: box-shadow .3s;
}
.header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo img { height: 44px; width: auto; mix-blend-mode: multiply; }

.nav { display: flex; gap: 36px; }
.nav a {
  font-size: .95rem; color: var(--gray); position: relative; padding: 6px 0;
  transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--brand); transition: width .25s;
}
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a:hover::after, .nav a.active::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }

/* Typography */
h1, h2, h3, h4 { font-weight: 300; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin: 14px 0 20px; }
h1 em { font-style: normal; color: var(--brand); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin: 12px 0 20px; }
h3 { font-size: 1.25rem; font-weight: 400; }
p { color: var(--gray); }
.muted { margin-top: 16px; }
.muted strong { color: var(--brand); font-weight: 600; }

.eyebrow {
  display: inline-block; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand); font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-block; padding: 14px 30px; border-radius: 999px; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: .2s;
}
.btn--primary { background: var(--brand); color: var(--white); }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }

/* Hero */
.hero { padding: calc(var(--header-h) + 60px) 0 90px; }
.hero__inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.hero__text p { font-size: 1.1rem; max-width: 440px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero__image img {
  width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover;
  border-radius: 50% 50% 46% 46% / 58% 58% 42% 42%; /* forma de huevo */
}

/* Sections */
.section { padding: 110px 0; }
.section--soft { background: var(--soft); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 56px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split__image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }

.stats { list-style: none; display: flex; gap: 40px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.stats strong { display: block; font-size: 2.2rem; font-weight: 300; color: var(--brand); line-height: 1; }
.stats span { font-size: .85rem; color: var(--gray); }

/* Products */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius);
  transition: transform .4s;
}
.product { overflow: hidden; }
.product:hover img { transform: scale(1.03); }
.product h3 { margin-top: 16px; text-align: center; }

.tags { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.tags li {
  padding: 8px 20px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); font-size: .9rem; color: var(--gray);
}

.presentations {
  margin-top: 90px; background: var(--white); border-radius: var(--radius);
  padding: 48px 32px 24px; text-align: center;
}
.presentations__head p { color: var(--brand); margin-top: 6px; }
.presentations img { margin: 16px auto 0; width: 100%; max-width: 1100px; }

/* Contact */
.split--contact { align-items: start; }
.contact__img { margin-top: 36px; width: 100%; max-width: 360px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }

.form { display: grid; gap: 20px; background: var(--soft); padding: 40px; border-radius: var(--radius); }
.form label span { display: block; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gray); margin-bottom: 6px; }
.form input, .form textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: var(--white); transition: border-color .2s;
}
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--brand); }
.form .is-invalid { border-color: var(--brand); background: #fff5f3; }
.form .btn { justify-self: start; }
.form__status { font-size: .9rem; min-height: 1.4em; }
.form__status.ok { color: #2e7d4f; }
.form__status.err { color: var(--brand); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 72px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1fr 1.4fr .8fr; gap: 56px; }
.footer h4 { font-size: 1.5rem; margin-bottom: 28px; color: var(--ink); }
.footer p { margin-bottom: 22px; font-size: .95rem; }
.footer__list { list-style: none; color: var(--gray); font-size: .95rem; }
.footer__list li { margin-bottom: 14px; }
.footer__list li::before { content: "-"; }
.footer__list--cols { columns: 2; column-gap: 40px; }

.social { display: flex; gap: 12px; }
.social a {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; transition: .2s;
}
.social svg { width: 18px; height: 18px; fill: var(--gray); transition: .2s; }
.social a:hover { background: var(--brand); border-color: var(--brand); }
.social a:hover svg { fill: var(--white); }

.footer__bottom { border-top: 1px solid var(--line); margin-top: 40px; padding: 22px 0; }
.footer__bottom p { font-size: .82rem; margin: 0; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .hero__inner, .split { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding-bottom: 60px; }
  .hero__image { max-width: 400px; width: 100%; margin-inline: auto; }
  .split__image img { aspect-ratio: 16 / 10; }
  .products { gap: 16px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 80px 0; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--white);
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s;
  }
  .nav.open { max-height: 300px; }
  .nav a { padding: 16px; text-align: center; }
  .nav a::after { display: none; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding-top: calc(var(--header-h) + 32px); }
  .hero__actions .btn { flex: 1; text-align: center; }
  .split__image img { aspect-ratio: 4 / 3; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .product h3 { font-size: 1.05rem; }
  /* La imagen de presentaciones se desliza horizontalmente para que se lea en celular */
  .presentations img { min-width: 640px; }
  .presentations__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .contact__img { max-width: 260px; }
  .stats { gap: 24px; }
  .form { padding: 28px 20px; }
  .presentations { padding: 32px 12px 16px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
