:root {
  --orange: #f4711e;
  --orange-dark: #e0600f;
  --ink: #1f1c1c;
  --ink-soft: #4a4545;
  --cream: #f7f4ef;
  --card: #fbfaf7;
  --line: #e6e1d9;
  --wrap: 1160px;
  --radius: 14px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--cream); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.accent { color: var(--orange); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border: 0; border-radius: 8px; font: 500 16px/1 var(--font); cursor: pointer; transition: background .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn .arrow { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn--orange { background: var(--orange); color: #fff; }
.btn--orange:hover { background: var(--orange-dark); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--block { width: 100%; }

.eyebrow { display: flex; align-items: center; gap: 14px; color: var(--orange); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.eyebrow::after { content: ""; width: 40px; height: 1.5px; background: currentColor; }
.eyebrow--light { color: #fff; opacity: .9; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(247, 244, 239, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.header__logo img { height: 50px; width: auto; }
.nav { display: flex; gap: 40px; font-size: 15px; font-weight: 500; }
.nav a { position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--orange); transition: width .2s; }
.nav a:hover::after { width: 100%; }
.header__toggle { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero__media { position: absolute; top: 0; right: 0; bottom: 0; width: 50%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__inner { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 640px; padding-top: 70px; padding-bottom: 0; }
.hero__text { max-width: 520px; }
.hero h1 { font-size: clamp(42px, 5.4vw, 66px); }
.hero__sub { font-size: clamp(18px, 1.7vw, 22px); color: var(--ink-soft); margin: 18px 0 32px; }
.hero__card { width: min(560px, 54%); margin-top: 48px; margin-bottom: -1px; background: #fff; border-radius: var(--radius) var(--radius) 0 0; padding: 18px; box-shadow: 0 18px 50px rgba(31, 28, 28, .14); }
.hero__card img { border-radius: 8px; width: 100%; }

/* Manifiesto */
.manifesto { position: relative; background: #1c1a1a; color: #fff; overflow: hidden; }
.manifesto__media { position: absolute; top: 0; right: 0; bottom: 0; width: 46%; }
.manifesto__media img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.manifesto__media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #1c1a1a 0%, rgba(28, 26, 26, 0) 35%); z-index: 1; }
.manifesto__inner { position: relative; z-index: 2; padding-top: 90px; padding-bottom: 90px; }
.manifesto h2 { font-size: clamp(30px, 3.6vw, 46px); max-width: 720px; }
.manifesto p { max-width: 430px; margin-top: 24px; color: #e2dedb; font-size: 16px; }

/* Productos */
.products { padding: 100px 0; }
.products h2 { font-size: clamp(32px, 4vw, 50px); }
.products .lead { color: var(--ink-soft); margin-top: 14px; font-size: 17px; }
.products__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.product { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.product:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(31, 28, 28, .1); }
.product__img { aspect-ratio: 4 / 3; background: #f1eee9; }
.product__img img { width: 100%; height: 100%; object-fit: cover; }
.product__body { padding: 22px 22px 26px; }
.product h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.product p { color: var(--ink-soft); font-size: 14.5px; margin-top: 6px; line-height: 1.45; }
.product__rule { display: block; width: 24px; height: 2px; background: var(--orange); margin: 18px 0 14px; }
.product .product__dato { color: var(--ink); font-weight: 600; font-size: 17px; margin: 0; }
.product .product__detalle { font-size: 13.5px; margin-top: 2px; }

/* B2B */
.b2b { background: var(--orange); color: #fff; overflow: hidden; }
.b2b__inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; }
.b2b__text { padding: 90px 0; }
.b2b h2 { font-size: clamp(32px, 4vw, 50px); }
.b2b p { margin: 20px 0 32px; max-width: 470px; font-size: 16.5px; }
.b2b__media { align-self: stretch; display: flex; align-items: center; }
.b2b__media img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; -webkit-mask-image: radial-gradient(ellipse 75% 70% at 55% 50%, #000 60%, transparent 100%); mask-image: radial-gradient(ellipse 75% 70% at 55% 50%, #000 60%, transparent 100%); }

/* Contacto */
.contact { padding: 100px 0; background: var(--cream); }
.contact__inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 80px; align-items: start; }
.contact h2 { font-size: clamp(32px, 4vw, 48px); }
.contact__text p:not(.eyebrow) { margin-top: 20px; color: var(--ink-soft); max-width: 420px; }
.form { display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form input, .form textarea { width: 100%; padding: 15px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: 15px var(--font); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.form textarea { resize: vertical; min-height: 130px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(244, 113, 30, .18); }
.form .is-invalid { border-color: #c62828; }
.form button[disabled] { opacity: .7; cursor: wait; }
.form__status { min-height: 1.4em; font-size: 14.5px; }
.form__status.ok { color: #2e7d32; }
.form__status.err { color: #c62828; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.footer { background: #1c1a1a; color: #fff; padding: 46px 0; }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 40px; }
.footer__logo { height: 62px; width: auto; padding-right: 40px; border-right: 1px solid rgba(255, 255, 255, .2); }
.footer__nav { display: flex; gap: 34px; font-size: 14.5px; }
.footer__nav a:hover { color: var(--orange); }
.footer__tag { font-size: 14px; color: #d7d2cf; padding-left: 40px; border-left: 1px solid rgba(255, 255, 255, .2); }

/* Animación de entrada */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* Tablet */
@media (max-width: 1024px) {
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 24px; }
  .footer__logo, .footer__tag { border: 0; padding: 0; }
  .contact__inner { gap: 48px; }
}

/* Mobile */
@media (max-width: 820px) {
  .header__inner { height: 66px; }
  .header__logo img { height: 40px; }
  .header__toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer; }
  .header__toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
  .header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .header__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav { position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--cream); padding: 8px 24px 20px; box-shadow: 0 12px 24px rgba(0, 0, 0, .08); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav a::after { display: none; }

  .hero__media { position: relative; width: 100%; height: 360px; order: 2; }
  .hero { display: flex; flex-direction: column; }
  .hero__inner { display: contents; }
  .hero__text { padding: 44px 24px 36px; }
  .hero__card { order: 3; width: auto; margin: -70px 24px 0; border-radius: var(--radius) var(--radius) 0 0; position: relative; padding: 12px; }

  .manifesto__media { position: relative; width: 100%; height: 220px; }
  .manifesto__media::before { background: linear-gradient(180deg, #1c1a1a 0%, rgba(28, 26, 26, 0) 40%); }
  .manifesto { display: flex; flex-direction: column-reverse; }
  .manifesto__inner { padding-top: 56px; padding-bottom: 24px; }

  .products, .contact { padding: 70px 0; }
  .b2b__inner { grid-template-columns: 1fr; gap: 0; }
  .b2b__text { padding: 64px 0 24px; }
  .b2b__media { margin: 0 -24px; }
  .contact__inner { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .products__grid { gap: 12px; }
  .product__body { padding: 14px 14px 18px; }
  .product h3 { font-size: 16px; }
  .product p { font-size: 13px; }
  .product .product__dato { font-size: 14.5px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__nav { flex-wrap: wrap; justify-content: center; gap: 14px 24px; }
}

@media (max-width: 359px) { .products__grid { grid-template-columns: 1fr; } }
