:root {
  --ink: #15171a;
  --muted: #5e646e;
  --line: #e5e7eb;
  --paper: #f8f8f6;
  --white: #ffffff;
  --blue: #173f96;
  --red: #d42435;
  --steel: #2f3742;
  --green: #128c56;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(21, 23, 26, 0.16);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 12px 18px;
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 40px rgba(21, 23, 26, 0.08);
  backdrop-filter: blur(18px);
}

.brand img {
  width: 118px;
  height: auto;
}

.brand {
  position: relative;
  display: block;
  width: 118px;
  height: 34px;
}

.brand-logo {
  position: absolute;
  inset: 0;
  object-fit: contain;
  object-position: left center;
  transition: opacity 180ms ease;
}

.brand-logo-color {
  opacity: 0;
}

.site-header.is-scrolled .brand-logo-light,
.site-header.is-open .brand-logo-light {
  opacity: 0;
}

.site-header.is-scrolled .brand-logo-color,
.site-header.is-open .brand-logo-color {
  opacity: 1;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: currentColor;
}

.site-header.is-scrolled .menu-toggle,
.site-header.is-open .menu-toggle {
  border-color: var(--line);
  background: var(--white);
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 180ms ease;
}

.site-header.is-open .menu-toggle span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.site-header.is-open .menu-toggle span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

.main-nav {
  position: absolute;
  top: calc(100% + 8px);
  left: 16px;
  right: 16px;
  display: grid;
  gap: 2px;
  padding: 10px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-header.is-open .main-nav {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.main-nav a {
  padding: 12px 14px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--ink);
  background: #f1f3f7;
}

.hero {
  position: relative;
  min-height: 94svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  padding: 112px 18px 28px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 15, 25, 0.42), rgba(8, 15, 25, 0.66) 58%, rgba(8, 15, 25, 0.88)),
    url("assets/images/SLIDER-05-final.png?v=6") center / cover no-repeat;
  transform: scale(1.02);
  animation: heroImageDrift 18s ease-in-out infinite alternate;
}

@supports (background-image: image-set(url("assets/images/SLIDER-05-final.webp") type("image/webp"))) {
  .hero-bg {
    background:
      linear-gradient(180deg, rgba(8, 15, 25, 0.42), rgba(8, 15, 25, 0.66) 58%, rgba(8, 15, 25, 0.88)),
      image-set(
        url("assets/images/SLIDER-05-final.webp?v=1") type("image/webp"),
        url("assets/images/SLIDER-05-final.png?v=6") type("image/png")
      ) center / cover no-repeat;
  }
}

@keyframes heroImageDrift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.07) translate3d(-1.2%, -0.8%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg {
    animation: none;
  }
}

.hero-content,
.price-ticker {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 100%;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffdfdf;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 9.5vw, 7.8rem);
  line-height: 0.92;
}

h1 span {
  display: block;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 8vw, 4.4rem);
  line-height: 1.02;
}

h3 {
  font-size: 1rem;
}

.hero-copy {
  max-width: min(30ch, 100%);
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
  overflow-wrap: anywhere;
}

.hero-tagline {
  max-width: min(100%, 560px);
  margin: 12px 0 24px;
  color: var(--white);
  font-size: clamp(1.55rem, 7vw, 3rem);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.hero-tagline span {
  display: block;
}

.hero-actions,
.coin-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.btn-primary {
  color: var(--white);
  background: var(--red);
}

.btn-primary:hover {
  background: #b91d2b;
}

.btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
}

.price-ticker {
  margin-top: 34px;
  width: min(100%, 370px);
  padding: 18px;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(8, 15, 25, 0.26);
  backdrop-filter: blur(18px);
}

.price-ticker-top,
.price-ticker-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price-ticker-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
}

.price-ticker-logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.22));
}

.price-ticker-logo span {
  color: var(--ink);
  font-size: 0.92rem;
  text-transform: none;
}

.price-ticker-status {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(18, 140, 86, 0.1);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.price-ticker span,
.price-ticker small,
.coin-widget span,
.coin-widget small,
.contact-info span,
.media-band span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.price-ticker span,
.price-ticker small {
  color: var(--muted);
}

.price-ticker .price-ticker-logo span {
  color: var(--ink);
  font-size: 0.92rem;
  text-transform: none;
}

.price-ticker .price-ticker-status {
  color: var(--green);
  font-size: 0.72rem;
}

.price-ticker strong {
  display: block;
  margin: 5px 0 2px;
  color: var(--red);
  font-size: clamp(2.7rem, 13vw, 4.1rem);
  line-height: 1;
}

.price-ticker-line {
  margin: 16px 0;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.price-ticker-line b {
  color: var(--blue);
  font-size: 0.95rem;
}

.price-ticker-action {
  display: inline-flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--white);
  background: var(--green);
  font-weight: 900;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 76px 18px;
}

.intro-grid,
.section-heading,
.contact-panel,
.contact-info {
  display: grid;
  gap: 24px;
}

.intro-copy {
  color: var(--muted);
  font-size: 1rem;
}

.stats {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.stats article,
.contact-info article,
.coin-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.stats strong {
  display: block;
  color: var(--blue);
  font-size: 2rem;
}

.stats span {
  color: var(--muted);
}

.media-band {
  display: grid;
  background: var(--steel);
  color: var(--white);
}

.media-band img {
  width: 100%;
  height: min(74vw, 380px);
  object-fit: cover;
}

.media-band div {
  padding: 26px 18px 34px;
}

.media-band span {
  color: #aeb7c3;
}

.media-band p {
  max-width: 560px;
  margin: 10px 0 0;
  font-size: 1.25rem;
  line-height: 1.25;
}

.innovation {
  max-width: none;
  background:
    linear-gradient(180deg, rgba(248, 248, 246, 0.94), rgba(248, 248, 246, 0.98)),
    url("assets/images/FONDO-INNOVACION.jpg") center / cover fixed;
}

.innovation > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.video-grid,
.product-grid,
.supplier-row {
  display: grid;
  gap: 14px;
}

.video-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.video-grid video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #0b0f17;
}

.video-grid h3 {
  margin: 0;
  padding: 16px;
}

.product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-card {
  position: relative;
  min-height: 148px;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: #d8dde5;
  cursor: pointer;
  isolation: isolate;
  appearance: none;
  padding: 0;
  text-align: left;
  font: inherit;
}

.product-card img {
  width: 100%;
  height: 100%;
  min-height: 148px;
  object-fit: cover;
  transition: transform 220ms ease;
}

.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.74));
}

.product-card strong {
  position: absolute;
  z-index: 2;
  left: 12px;
  right: 12px;
  bottom: 12px;
  color: var(--white);
  font-size: 0.94rem;
}

.product-card:hover img {
  transform: scale(1.04);
}

.hormicoint {
  display: grid;
  gap: 28px;
  padding: 76px 18px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(21, 23, 26, 0.93), rgba(19, 32, 58, 0.88)),
    url("assets/images/bolsa-background.jpg") center / cover no-repeat;
}

.coin-copy {
  max-width: 680px;
}

.coin-copy p,
.coin-copy li {
  color: rgba(255, 255, 255, 0.78);
}

.coin-copy ul {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding-left: 20px;
}

.coin-visual {
  display: grid;
  gap: 16px;
  align-items: center;
  justify-items: center;
}

.coin-bag {
  width: min(62vw, 260px);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 45% 35%, rgba(255, 255, 255, 0.95), rgba(244, 246, 249, 0.82) 58%, rgba(226, 231, 238, 0.86));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.coin-widget {
  width: min(100%, 340px);
  color: var(--ink);
  box-shadow: var(--shadow);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.coin-widget-header {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.coin-widget-header img {
  width: 92px;
}

.coin-widget strong {
  display: block;
  color: var(--red);
  font-size: 3rem;
  line-height: 1;
}

.coin-widget small {
  margin-top: 6px;
}

.coin-widget-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.coin-widget-line b {
  color: var(--blue);
  font-size: 0.95rem;
}

.coin-widget p {
  color: var(--muted);
  font-size: 0.96rem;
}

.coin-widget a:not(.btn) {
  display: inline-flex;
  color: var(--red);
  font-weight: 900;
}

.supplier-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

.supplier-row img {
  width: 100%;
  height: 92px;
  object-fit: contain;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.contact {
  padding: 76px 18px;
  background: var(--white);
}

.contact-panel,
.contact-info {
  max-width: var(--max);
  margin: 0 auto;
}

.whatsapp-contact-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(18, 140, 86, 0.08), rgba(255, 255, 255, 0) 42%),
    #fbfbfa;
}

.whatsapp-contact-card img {
  width: 48px;
  height: 48px;
}

.whatsapp-contact-card span {
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.whatsapp-contact-card strong {
  font-size: clamp(2rem, 9vw, 3.2rem);
  line-height: 1;
}

.whatsapp-contact-card p {
  color: var(--muted);
}

.contact-info {
  margin-top: 28px;
}

.contact-info strong {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
}

.contact-info p {
  margin: 6px 0 0;
  color: var(--muted);
}

.footer {
  display: grid;
  gap: 18px;
  justify-items: start;
  padding: 34px 18px 90px;
  color: rgba(255, 255, 255, 0.76);
  background: #11151b;
}

.footer img {
  width: 140px;
}

.footer p {
  margin: 0;
}

.footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 800;
}

.social-links {
  align-items: center;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.social-links img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.whatsapp-float {
  position: fixed;
  z-index: 35;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--green);
  box-shadow: 0 14px 40px rgba(18, 140, 86, 0.34);
  font-size: 0.9rem;
  font-weight: 900;
}

.whatsapp-float img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 20, 0.68);
  backdrop-filter: blur(8px);
}

.modal-dialog {
  position: relative;
  width: min(100%, 500px);
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateY(14px) scale(0.98);
  transition: transform 180ms ease;
}

.modal.is-open .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-dialog img {
  width: 150px;
  margin-bottom: 24px;
}

.modal-dialog h2 {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 8vw, 3rem);
}

.modal-dialog p:not(.section-kicker) {
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

@media (min-width: 640px) {
  .stats,
  .video-grid,
  .contact-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .supplier-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .site-header {
    padding: 18px 36px;
  }

  .menu-toggle {
    display: none;
  }

  .main-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: currentColor;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav a {
    color: currentColor;
    background: transparent;
  }

  .site-header.is-scrolled .main-nav a {
    color: var(--muted);
  }

  .site-header.is-scrolled .main-nav a:hover,
  .site-header.is-scrolled .main-nav a.is-active {
    color: var(--ink);
  }

  .hero {
    min-height: 92vh;
    padding: 150px 48px 44px;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 40px;
    align-items: end;
  }

  .hero-copy {
    max-width: 620px;
  }

  .hero-tagline {
    margin-top: 14px;
  }

  .hero-tagline span {
    display: inline;
  }

  .hero-tagline span + span::before {
    content: " ";
  }

  .price-ticker {
    justify-self: end;
  }

  .section {
    padding: 110px 32px;
  }

  .intro-grid,
  .section-heading,
  .contact-panel {
    grid-template-columns: 1.08fr 0.92fr;
    align-items: start;
  }

  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .media-band {
    grid-template-columns: 58% 42%;
    align-items: center;
  }

  .media-band img {
    height: 520px;
  }

  .media-band div {
    padding: 60px;
  }

  .video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .hormicoint {
    grid-template-columns: minmax(0, 1fr) 420px;
    align-items: center;
    padding: 110px max(32px, calc((100vw - var(--max)) / 2));
  }

  .supplier-row {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .contact-info {
    grid-template-columns: 1.2fr 1fr 1.3fr;
  }

  .footer {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 36px max(32px, calc((100vw - var(--max)) / 2));
  }
}
