:root {
  --orange: #f4711e;
  --orange-dark: #e0600f;
  --rust: #c2540f;
  --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%; }
.btn--pill { min-height: 52px; padding: 0 28px; border-radius: 999px; font-weight: 600; }
.btn--rust { background: var(--rust); color: #fff; }
.btn--rust:hover { background: #a8470c; }
.btn--outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }

.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; }
.nav { align-items: center; }
.nav .nav__cta { padding: 11px 22px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; }
.nav .nav__cta::after { display: none; }
.nav .nav__cta:hover { background: #000; }

/* Hero: texto a la izquierda, foto vertical a la derecha con tarjeta flotante */
.hero { overflow: hidden; }
.hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 40px; padding-bottom: 72px; }
.hero__text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero__eyebrow { margin: 0; font-size: 12px; letter-spacing: .18em; color: var(--rust); }
.hero__eyebrow::after { width: 48px; height: 2px; background: var(--orange); }
.hero h1 { font-size: clamp(44px, 6.4vw, 76px); line-height: 1; font-weight: 800; letter-spacing: -.035em; }
.hero h1 .accent { color: #e8681c; }
.hero__sub { font-size: 19px; line-height: 1.6; color: #4a4a4a; max-width: 470px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 4px; }
.hero__stats { display: flex; flex-wrap: wrap; margin: 12px 0 0; padding: 24px 0 0; list-style: none; border-top: 1px solid #e2dbd0; }
.hero__stats li { flex: 1 1 140px; display: flex; flex-direction: column; gap: 4px; padding: 0 20px; border-left: 1px solid #e2dbd0; }
.hero__stats li:first-child { padding-left: 0; border-left: 0; }
.hero__stats li:last-child { padding-right: 0; }
.hero__stat-v { font-size: 26px; font-weight: 700; line-height: 1.3; }
.hero__stat-t { font-size: 13px; color: #5c5c5c; }
.hero__media { flex: 1 1 420px; min-width: 0; position: relative; }
.hero__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; }
.hero__card { position: absolute; left: -28px; bottom: 40px; display: flex; align-items: center; gap: 16px; padding: 18px 22px; background: #fff; border-radius: 18px; box-shadow: 0 14px 40px rgba(28, 28, 28, .12); }
.hero__dots { display: flex; gap: 6px; }
.hero__dots span { width: 22px; height: 22px; border-radius: 50%; background: #e8681c; }
.hero__dots span + span { background: var(--cream); border: 1px solid #d9d1c4; }
.hero__card-txt { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: #5c5c5c; }
.hero__card-txt strong { font-size: 15px; font-weight: 700; color: var(--ink); }

/* Franja negra para comercios, debajo del hero */
.strip { background: #1c1c1c; color: #fff; }
.strip__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 26px; padding-bottom: 26px; }
.strip p { font-size: 17px; font-weight: 500; }
.strip p span { color: #f28a45; font-weight: 600; }
.strip .btn { min-height: 46px; padding: 0 22px; font-size: 15px; }

/* La marca: fondo negro, texto con pilares a la izquierda y foto a la derecha */
.manifesto { background: #000; color: #fff; overflow: hidden; }
.manifesto__inner { max-width: 1280px; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 96px; padding-bottom: 96px; }
.manifesto__text { flex: 1 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 28px; padding-left: 40px; }
.manifesto__eyebrow { margin: 0; font-size: 12px; letter-spacing: .18em; color: #f28a45; }
.manifesto__eyebrow::after { width: 48px; height: 2px; background: #e8681c; }
.manifesto h2 { font-size: clamp(34px, 3.6vw, 46px); line-height: 1.12; letter-spacing: -.025em; }
.manifesto h2 .accent { color: #f28a45; white-space: nowrap; }
.manifesto__lead { max-width: 500px; font-size: 18px; line-height: 1.7; color: #cfcac2; }
.manifesto__pillars { display: flex; flex-wrap: wrap; gap: 28px; margin: 12px 0 0; padding: 28px 0 0; list-style: none; border-top: 1px solid #2e2e2e; }
.manifesto__pillars li { flex: 1 1 120px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.55; color: #b5afa6; }
.manifesto__pillars strong { font-size: 20px; font-weight: 700; line-height: 1.3; color: #fff; }
.manifesto__num { font-size: 13px; font-weight: 600; color: #f28a45; }
.manifesto__media { flex: 1 1 440px; min-width: 0; }
.manifesto__media img { width: 100%; }

/* 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; }
/* Encabezado + selector de color */
.products__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 56px; }
.products__head > div:first-child { flex: 1 1 560px; }
.products__head .lead { max-width: 640px; }
.color-toggle { display: flex; gap: 6px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.color-toggle button { min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: 500 14px/1 var(--font); cursor: pointer; transition: background .2s, color .2s; }
.color-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; font-weight: 600; }

/* Una fila por línea: datos a la izquierda, tamaños a la derecha */
.linea { display: flex; flex-wrap: wrap; gap: 32px; padding: 40px 0; border-top: 1px solid var(--line); }
.linea:last-child { padding-bottom: 0; }
.linea__info { flex: 1 1 290px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.linea__info h3 { font-size: 30px; font-weight: 800; line-height: 1.15; }
.linea__info h3 span { color: var(--orange-dark); }
.linea__info > p { color: var(--ink-soft); font-size: 16px; line-height: 1.55; }
.linea__datos { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.linea__datos li { display: flex; gap: 8px; }
.linea__datos .k { min-width: 104px; color: #6b6b6b; }
.linea__datos .v { font-weight: 600; }
.linea__btn { align-self: flex-start; margin-top: 8px; min-height: 44px; padding: 0 24px; border: 0; border-radius: 999px; font: 600 14px/1 var(--font); cursor: pointer; }
.linea__grid { flex: 999 1 640px; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tam { display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 20px; background: #fff; border: 1px solid #ece4da; border-radius: 18px; }
/* Foto entera sobre el lienzo cuadrado, sin recortar: así se ve la diferencia de tamaño real */
.tam img { width: 100%; aspect-ratio: 1; object-fit: contain; transition: opacity .2s; }
.tam img.is-swapping { opacity: 0; }
.tam__meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 8px; }
.tam__fmt { font-size: 22px; font-weight: 700; white-space: nowrap; }
.tam__med { font-size: 13px; color: #5e5e5e; white-space: nowrap; }

/* Ficha de producto (pop-up) */
.ficha { width: min(920px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .3); overflow: auto; overscroll-behavior: contain; }
.ficha::backdrop { background: rgba(28, 26, 26, .6); backdrop-filter: blur(3px); }
.ficha[open] { animation: ficha-in .22s ease-out; }
@keyframes ficha-in { from { opacity: 0; transform: translateY(16px); } }
html:has(.ficha[open]) { overflow: hidden; }
.ficha__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; }
.ficha__close { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--cream); color: var(--ink); cursor: pointer; }
.ficha__close:hover { background: var(--line); }
.ficha__close svg { width: 18px; height: 18px; }
.ficha__gallery { padding: 28px; background: #fff; border-right: 1px solid var(--line); }
.ficha__main { aspect-ratio: 1; display: grid; place-items: center; }
.ficha__main img { width: 100%; height: 100%; object-fit: contain; }
.ficha__thumbs { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }
.ficha__thumb { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 6px 8px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font: 500 12px/1 var(--font); color: var(--ink-soft); cursor: pointer; }
.ficha__thumb img { width: 64px; height: 64px; object-fit: contain; }
.ficha__thumb[aria-pressed="true"] { border-color: var(--orange); color: var(--ink); }
.ficha__info { display: flex; flex-direction: column; padding: 40px 32px 32px; background: var(--card); }
.ficha__info .eyebrow { margin-bottom: 12px; }
.ficha h3 { font-size: 30px; padding-right: 36px; }
.ficha__texto { margin-top: 12px; color: var(--ink-soft); font-size: 15.5px; }
.ficha__specs { margin: 22px 0 26px; }
.ficha__specs > div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.ficha__specs > div:last-child { border-bottom: 1px solid var(--line); }
.ficha__specs dt { color: var(--ink-soft); }
.ficha__specs dd { margin: 0; font-weight: 500; }
.ficha .btn { margin-top: auto; }
.btn--wa { background: #25d366; color: #fff; }
.btn--wa:hover { background: #1ebe5a; }
.wa-icon { width: 22px; height: 22px; flex: none; }

/* Botón flotante de WhatsApp */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .22); transition: transform .2s, background .2s; }
.wa-float:hover { transform: scale(1.06); background: #1ebe5a; }
.wa-float .wa-icon { width: 32px; height: 32px; }

/* 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; flex-wrap: wrap; justify-content: center; gap: 12px 28px; font-size: 14.5px; }
.footer__nav a { white-space: nowrap; }
.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); }
.footer__contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14.5px; }
.footer__contact a { display: inline-flex; align-items: center; gap: 8px; color: #d7d2cf; }
.footer__contact a:hover { color: var(--orange); }
.footer__contact .wa-icon { width: 20px; height: 20px; }

/* 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) {
  .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; align-items: stretch; 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; }

  .nav .nav__cta { margin-top: 14px; padding: 14px 22px; border-bottom: 0; text-align: center; }
  .hero__inner { gap: 40px; padding-top: 28px; padding-bottom: 56px; }
  .hero__card { left: 16px; right: 16px; bottom: 16px; }

  .manifesto__inner { padding-top: 64px; padding-bottom: 64px; }
  .manifesto__text { padding-left: 0; }

  .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; }

  /* Ficha en celular: hoja que ocupa casi toda la pantalla, se scrollea por dentro */
  .ficha { width: 100%; max-width: none; max-height: 92dvh; margin: auto 0 0; border-radius: 18px 18px 0 0; }
  .ficha[open] { animation-name: ficha-up; }
  @keyframes ficha-up { from { transform: translateY(40px); opacity: 0; } }
  .ficha__inner { grid-template-columns: 1fr; }
  .ficha__gallery { padding: 18px 18px 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .ficha__main { aspect-ratio: auto; height: min(42dvh, 320px); }
  .ficha__info { padding: 22px 20px 24px; }
  .ficha h3 { font-size: 25px; }
  .ficha__specs > div { grid-template-columns: 112px 1fr; }
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  /* Que el botón flotante no tape los links del pie */
  body:has(.wa-float) .footer { padding-bottom: 96px; }
}

@media (max-width: 600px) {
  .hero__stats { gap: 16px; }
  .hero__stats li { flex-basis: 100%; padding: 0; border-left: 0; }
}

@media (max-width: 520px) {
  .products__head { margin-bottom: 36px; }
  .linea { gap: 22px; padding: 32px 0; }
  .linea__info h3 { font-size: 26px; }
  .linea__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tam { padding: 10px 10px 14px; border-radius: 14px; gap: 6px; }
  .tam__fmt { font-size: 17px; }
  .tam__med { font-size: 11.5px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__nav { flex-wrap: wrap; justify-content: center; gap: 14px 24px; }
}


/* ===== Página "Nuestra historia" (/historia/) ===== */
.nav a[aria-current="page"]::after { width: 100%; }
.historia { padding: 64px 0 96px; }
.historia__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 56px; }
.historia h1 { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.1; }
.historia h1 .accent { display: block; }
.historia__stat { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.historia__num { font-size: clamp(64px, 8vw, 104px); font-weight: 800; line-height: .9; color: var(--orange); letter-spacing: -.03em; }
.historia__num-txt { font-size: 13px; font-weight: 600; line-height: 1.35; max-width: 120px; }
.historia__row { display: grid; grid-template-columns: 1.85fr 1fr; gap: 48px; align-items: center; margin-bottom: 64px; }
.historia__row--rev { grid-template-columns: 1fr 1.85fr; }
.historia__row--rev .historia__media { order: 2; }
.historia__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: #d9d4cc; }
.historia__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) contrast(1.05); }
.historia__tag { position: absolute; top: 18px; left: 18px; font-size: 10px; font-weight: 700; letter-spacing: .14em; padding: 7px 13px; border-radius: 999px; color: #fff; background: var(--ink); }
.historia__tag--orange { background: var(--orange); }
.historia__text h2, .historia__card h2 { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.2; margin-bottom: 14px; }
.historia__text p, .historia__card p { font-size: 15px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 14px; }
.historia__text .btn { margin-top: 8px; }
.historia__card { background: #fff; border: 1px solid var(--line); border-radius: 18px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: center; padding: 48px 56px; margin-top: 16px; }
.historia__card-logo { display: flex; justify-content: center; }
.historia__card-logo img { width: 100%; max-width: 260px; }
.historia__card h2 { font-size: 26px; }
.historia__cierre { text-align: center; margin-top: 88px; font-size: clamp(18px, 2vw, 22px); font-weight: 600; }
.historia__cierre::before { content: ""; display: block; width: 48px; height: 2px; background: var(--orange); margin: 0 auto 22px; }
@media (max-width: 860px) {
  .historia { padding: 48px 0 72px; }
  .historia__head { flex-direction: column; align-items: flex-start; margin-bottom: 40px; }
  .historia__row, .historia__row--rev { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
  .historia__row--rev .historia__media { order: 0; }
  .historia__card { grid-template-columns: 1fr; padding: 36px 28px; gap: 24px; text-align: center; }
  .historia__cierre { margin-top: 64px; }
}
