/* ============ Fuentes ============ */
@font-face {
  font-family: "Sansation";
  src: url("../assets/fonts/Sansation-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sansation";
  src: url("../assets/fonts/Sansation-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Sansation";
  src: url("../assets/fonts/Sansation-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sansation";
  src: url("../assets/fonts/Sansation-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Michroma";
  src: url("../assets/fonts/Michroma-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ============ Tokens ============ */
:root {
  --dark: #1c1c1a;
  --black: #0a0a09;
  --yellow: #fcf48b;
  --light: #e5e5e5;
  --gray-bg: #ededed;
  --card-bg: #fcfcfc;
  --muted: #5b5b5b;
  --track-thumb: #d8d8d8;

  --font-display: "Sansation", "Trebuchet MS", sans-serif;
  --font-body: "Google Sans", "Product Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-logo: "Michroma", "Eurostile", sans-serif;

  --container: 1144px;
  --gutter: 68px;
}

/* ============ Base ============ */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--dark);
  color: var(--dark);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
p, h1, h2, h3 { margin: 0; }
a { color: inherit; }

.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============ Botones ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn__icon { width: 21px; height: 21px; fill: currentColor; flex: none; }

.btn--outline {
  color: var(--light);
  border: 0.66px solid var(--light);
  background: transparent;
}
.btn--outline:hover { background: var(--yellow); border-color: var(--yellow); color: var(--dark); }

.btn--yellow { background: var(--yellow); color: var(--dark); border: 0; }
.btn--yellow:hover { background: #fff7a8; transform: translateY(-1px); }

.btn--sm { height: 37px; padding: 0 38px; border-radius: 12px; font-size: 15px; border-width: .5px; }
.btn--lg { height: 47px; padding: 0 22px 0 21px; border-radius: 20px; font-size: 20px; }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 720px;
  background: var(--black);
  color: var(--light);
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  background:
    radial-gradient(60% 90% at 100% 55%, rgba(120, 110, 40, .38), transparent 70%),
    linear-gradient(90deg, var(--black) 0%, #0c0c0b 60%, #1f1d12 100%);
}

.hero__texture {
  position: absolute;
  left: 0;
  top: 38px;
  width: 80%;
  height: calc(100% - 38px);
  background: url("../assets/img/textura-aramida.jpg") center 60% / cover no-repeat;
  opacity: .45;
  filter: brightness(.55) sepia(.35) saturate(1.2);
  -webkit-mask-image:
    linear-gradient(180deg, transparent 20%, #000 75%),
    linear-gradient(90deg, #000 40%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(180deg, transparent 20%, #000 75%),
    linear-gradient(90deg, #000 40%, transparent 100%);
          mask-composite: intersect;
}

.hero__globe {
  position: absolute;
  width: 500px;
  height: 500px;
  left: calc(50% + 267px);
  top: 404px;
  fill: var(--yellow);
  opacity: .045;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 46px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
}
.logo__icon { width: 36px; height: 36px; fill: var(--yellow); }
.logo__text {
  font-family: var(--font-logo);
  font-size: 18px;
  line-height: 20px;
  color: var(--light);
  letter-spacing: .01em;
  padding-top: 2px;
}

.hero__content { padding-top: 153px; padding-bottom: 76px; position: relative; z-index: 2; }

.badge {
  display: inline-block;
  padding: 7px 14px 6px;
  border-radius: 14px;
  background: rgba(219, 219, 219, .28);
  color: #fff;
  font-family: var(--font-body);
  font-size: 10px;
  line-height: 15px;
  text-transform: uppercase;
}

.hero__lead {
  margin-top: 44px;
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.2;
}
.hero__lead strong { font-weight: 700; }

.hero__title {
  margin-top: 13px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 60px;
  line-height: 1.2;
}
.hero__title strong { color: var(--yellow); font-weight: 700; }

.hero__content .btn--lg { margin-top: 56px; }

.hero__note {
  margin-top: 87px;
  max-width: 760px;
  font-size: 12.5px;
  line-height: 1.4;
}
.hero__note strong { font-weight: 700; }

/* Composición de productos (se superpone con la siguiente sección) */
.hero__products {
  position: absolute;
  z-index: 3;
  width: 466px;
  height: 334px;
  left: calc(50% + 140px);
  top: 512px;
  pointer-events: none;
}
/* Posiciones, tamaños y rotaciones tomados del Illustrator, en % del grupo
   para que todo escale junto. Cada sombra va debajo de su producto. */
.hero__product,
.hero__shadow { position: absolute; }
.hero__shadow { height: auto; }
.hero__product { transform-origin: 0 0; }
.hero__product--carrete { width: 54.98%; height: 57.6%;  left: 46.02%; top: 9.21%;  transform: rotate(10.73deg); }
.hero__product--cono    { width: 56.65%; height: auto;   left: 13.42%; top: 0; }
.hero__product--rollo   { width: 49.27%; height: 65.09%; left: 5.19%;  top: 27.96%; transform: rotate(6.26deg); }
.hero__shadow--carrete  { width: 54.18%; left: 42.22%; top: 16.5%; }
.hero__shadow--cono     { width: 44.96%; left: 21.32%; top: 7.87%; }
.hero__shadow--rollo    { width: 53.1%;  left: 3.08%;  top: 43.16%; }

/* ============ Productos ============ */
.products {
  background: var(--gray-bg);
  padding: 109px 0 61px;
}

.products__title {
  text-align: center;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
}

.carousel {
  margin-top: 61px;
  position: relative;
}

.carousel__track {
  --edge: max(var(--gutter), (100% - var(--container)) / 2);
  display: flex;
  gap: 51px;
  margin: 0;
  list-style: none;
  padding: 0 var(--edge) 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--edge);
  scrollbar-width: none;
  outline: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track { position: relative; }
.carousel__track.is-animating { scroll-snap-type: none; }
.carousel__track.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.card { will-change: opacity, transform; }
.carousel__track.is-dragging * { pointer-events: none; }

.card {
  flex: 0 0 282px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  min-height: 302px;
  border-radius: 20px;
  background: var(--yellow);
  text-align: center;
  user-select: none;
}

.card__body {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 28px 16px 18px;
  min-height: 250px;
}

.card__media {
  position: relative;
  height: 115px;
  display: grid;
  place-items: center;
}
.card__media img { width: 115px; height: 115px; object-fit: contain; }
.card__media--tela img { width: 100px; height: 100px; object-fit: cover; }
/* La foto de la pulpa tiene fondo blanco: se funde con el fondo de la tarjeta */
.card__media--pulpa img { width: 134px; height: 134px; mix-blend-mode: multiply; }
.card__media--duo { display: block; }
.card__media--duo img { position: absolute; transform-origin: 0 0; object-fit: fill; }
.card__media--duo img:first-child { width: 111px; height: 83px; left: 105px; top: 4px;  transform: rotate(10.73deg); }
.card__media--duo img:last-child  { width: 99px;  height: 94px; left: 48px;  top: 31px; transform: rotate(6.26deg); }

.card__title {
  margin-top: 21px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.card__text {
  margin-top: 10px;
  font-size: 12px;
  line-height: 14px;
  color: var(--muted);
}
.card__text strong { font-weight: 700; }

.card__footer {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px 14px;
  font-size: 11px;
  line-height: 17px;
}
.card__footer strong { font-weight: 700; }
.card__footer u { text-underline-offset: 2px; text-decoration-thickness: 1px; }

.scrollbar {
  position: relative;
  margin-top: 48px;
  height: 11px;
  border-radius: 6px;
  background: var(--card-bg);
  cursor: pointer;
  overflow: hidden;
}
.scrollbar__thumb {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 25%;
  border-radius: 6px;
  color: var(--track-thumb);
  background: currentColor;
  cursor: grab;
  transition: color .2s;
}
.scrollbar__thumb:hover,
.scrollbar.is-dragging .scrollbar__thumb { color: #c4c4c4; }

.cta {
  margin-top: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta__text {
  max-width: 880px;
  font-size: 21px;
  line-height: 30px;
}
.cta__text strong { font-weight: 700; }
.cta__text .brand { font-family: var(--font-display); }
.cta .btn--lg {
  flex: none;
  height: 52px;
  padding: 0 24px;
  border-radius: 22px;
  font-size: 22.5px;
}
.cta .btn__icon { width: 25px; height: 25px; }

/* ============ Contacto ============ */
.contact {
  position: relative;
  isolation: isolate;
  color: #ededed;
  padding-top: 82px;
  overflow: hidden;
  /* Al menos el alto de la pantalla: al ir a #contacto no se ve la sección anterior.
     svh = alto con la barra del navegador móvil visible (sin saltos al hacer scroll). */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(30% 45% at 0% 70%, rgba(80, 74, 30, .45), transparent 70%),
    linear-gradient(180deg, #121211, var(--black));
}

.contact__bg {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: 80%;
  height: 100%;
  background: url("../assets/img/textura-aramida.jpg") left bottom / 140% auto no-repeat;
  opacity: .45;
  filter: brightness(.55);
  -webkit-mask-image:
    radial-gradient(80% 70% at 75% 0%, #000 0%, transparent 75%);
          mask-image:
    radial-gradient(80% 70% at 75% 0%, #000 0%, transparent 75%);
}

.contact__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact__title {
  text-align: center;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
}
.contact__title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin: 14px auto 0;
  border-radius: 2px;
  background: var(--yellow);
}

.form {
  width: min(417px, 100%);
  margin: 25px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.form__input {
  width: 100%;
  height: 46px;
  padding: 0 21px;
  border: 2px solid transparent;
  border-radius: 14px;
  background: var(--gray-bg);
  color: var(--dark);
  font: 400 14.5px/1 var(--font-body);
  outline: none;
  transition: border-color .2s, background-color .2s;
}
.form__input--textarea {
  height: auto;
  min-height: 150px;
  padding: 14px 21px;
  line-height: 1.45;
  resize: vertical;
}
.form__phone {
  width: 100%;
  display: flex;
  gap: 8px;
}
/* Banderas emoji: Windows no las trae, esta fuente solo se descarga si hacen falta */
@font-face {
  font-family: "Twemoji Country Flags";
  unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E007F;
  src: url("https://cdn.jsdelivr.net/npm/country-flag-emoji-polyfill@0.1.8/dist/TwemojiCountryFlags.woff2") format("woff2");
  font-display: swap;
}
.form__input--country {
  font-family: "Twemoji Country Flags", var(--font-body);
  flex: 0 0 auto;
  width: auto;
  padding: 0 12px;
  cursor: pointer;
}
.form__input::placeholder { color: var(--muted); opacity: 1; }
.form__input:focus { border-color: var(--yellow); background: #fff; }
.form__input.is-invalid { border-color: #e2725b; }

.form__submit {
  width: 219px;
  height: 46px;
  margin-top: 2px;
  border: 0;
  border-radius: 14px;
  background: var(--yellow);
  color: var(--dark);
  font: 700 15px/1 var(--font-body);
  letter-spacing: .02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s, transform .2s;
}
.form__submit:hover { background: #fff7a8; transform: translateY(-1px); }
.form__submit:disabled { opacity: .6; cursor: wait; transform: none; }

.form__status {
  min-height: 18px;
  font-size: 13px;
  text-align: center;
}
.form__status.is-error { color: #f3a08f; }
.form__status.is-ok { color: var(--yellow); }

.contact__alt {
  margin-top: 18px;
  font-size: 14px;
  text-align: center;
  color: #d8d8d8;
}
.contact__alt a { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }
.contact__alt a:hover { color: #fff7a8; }

.footer {
  padding: 82px 16px 52px;
  text-align: center;
  font-size: 12.5px;
  color: #d8d8d8;
}
.footer__copy { margin-top: 10px; font-size: 11.5px; opacity: .7; }

/* ============ Focus ============ */
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.form__input:focus-visible { outline: none; }

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  :root { --gutter: 40px; }
  .hero__products { left: auto; right: 10px; width: 380px; height: 272px; top: auto; bottom: -126px; }
  .hero__globe { left: auto; right: -170px; }
  .hero__note { max-width: calc(100% - 400px); }
  .cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .hero { min-height: 0; }
  .header { padding-top: 24px; }
  .btn--sm { padding: 0 20px; height: 34px; font-size: 14px; }
  .logo__icon { width: 30px; height: 30px; }
  .logo__text { font-size: 14px; line-height: 16px; }
  .hero__content { padding-top: 72px; padding-bottom: 210px; }
  .hero__lead { margin-top: 28px; font-size: 18px; }
  .hero__title { font-size: 38px; margin-top: 10px; }
  .hero__title strong { display: block; }
  .hero__content .btn--lg { margin-top: 32px; font-size: 18px; }
  .hero__note { margin-top: 32px; max-width: none; }
  .hero__texture { width: 100%; }
  .hero__globe { width: 320px; height: 320px; top: auto; bottom: -60px; right: -120px; }
  .hero__products { width: 290px; height: 208px; left: 50%; right: auto; transform: translateX(-50%); bottom: -96px; }
  .products { padding-top: 130px; }
  .products__title { font-size: 18px; }
  .carousel { margin-top: 36px; }
  .carousel__track { gap: 16px; }
  .card { flex-basis: 270px; }
  .scrollbar { margin-top: 32px; }
  .cta { margin-top: 44px; }
  .cta__text { font-size: 17px; line-height: 25px; }
  .cta .btn--lg { font-size: 19px; height: 48px; align-self: stretch; }
  .contact { padding-top: 64px; }
  .contact__title { font-size: 32px; }
  .contact__bg { width: 100%; }
  .footer { padding-top: 56px; padding-bottom: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
