:root {
  --rojo: #b62020;
  --rojo-oscuro: #a30000;
  --rojo-claro: #dc1717;
  --rojo-suave: #fff2f2;
  --amarillo: #f7bc5b;
  --amarillo-claro: #fff7e8;
  --amarillo-suave: #fffaf2;
  --negro: #333333;
  --texto: #444444;
  --texto-secundario: #68727d;
  --gris-50: #fafafa;
  --gris-100: #f5f5f5;
  --gris-200: #eeeeee;
  --gris-300: #dddddd;
  --gris-400: #cccccc;
  --blanco: #ffffff;
  --verde: #25d366;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--texto);
  background: var(--blanco);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* HEADER */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--gris-200);
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  backdrop-filter: blur(10px);
}

.nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--negro);
}

.logo span {
  color: var(--rojo);
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 14px;
  color: var(--texto-secundario);
}

.nav-links a {
  transition: color .2s;
}

.nav-links a:hover {
  color: var(--rojo);
}

.nav-button {
  background: var(--rojo);
  color: var(--blanco) !important;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 700;
}

.nav-button:hover {
  background: var(--rojo-oscuro);
}

.menu-button {
  display: none;
  border: 0;
  background: none;
  color: var(--rojo);
  font-size: 27px;
  cursor: pointer;
  padding: 5px;
}

/* HERO */

.hero {
  padding: 155px 0 90px;
  background:
    radial-gradient(circle at 82% 20%, rgba(238, 204, 25, 0.18), transparent 28%), 
    radial-gradient(circle at 10% 90%, rgba(196,0,0,.05), transparent 25%), 
    linear-gradient(180deg, #ffe6aa 0%, #fff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 70px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  background: #fff;
  color: var(--rojo);
  padding: 7px 13px;
  border: 1px #ccc solid;
  border-left: 4px solid var(--amarillo);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .8px;
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(40px, 5vw, 65px);
  line-height: 1.05;
  letter-spacing: -2.5px;
  margin-bottom: 25px;
  color: var(--negro);
}

h1 span {
  color: var(--rojo);
}

.hero-text {
  font-size: 19px;
  color: var(--texto-secundario);
  max-width: 650px;
  margin-bottom: 30px;
}

.buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 23px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  transition: .2s;
  cursor: pointer;
  border: 0;
}

.btn-primary {
  background: var(--rojo);
  color: var(--blanco);
  box-shadow: 0 8px 22px rgba(196,0,0,.18);
}

.btn-primary:hover {
  background: var(--rojo-oscuro);
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid var(--gris-300);
  color: var(--texto);
  background: var(--blanco);
}

.btn-secondary:hover {
  border-color: var(--rojo);
  color: var(--rojo);
}

/* PRODUCT CARD */

.product-demo {
  background: var(--blanco);
  border: 1px solid var(--gris-200);
  border-top: 4px solid var(--rojo);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 25px 70px rgba(60,40,30,.11);
}

.scan-title {
  color: var(--texto-secundario);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  /* margin-bottom: 12px; */
  font-weight: bold;
}

.scan-title-sec {
  color: var(--texto-secundario);
  font-size: 8.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.ean-input {
  display: flex;
  background: var(--gris-50);
  border: 1px solid var(--gris-300);
  border-radius: 6px;
  padding: 10px;
  gap: 10px;
  margin-bottom: 20px;
}

.ean-input input {
  border: 0;
  outline: 0;
  background: transparent;
  flex: 1;
  font-size: 16px;
  color: var(--texto);
  min-width: 0;
}

.ean-input button {
  border: 0;
  background: var(--rojo);
  color: var(--blanco);
  padding: 9px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 700;
}

.ean-input button:hover {
  background: var(--rojo-oscuro);
}

.product-result {
  display: flex;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--gris-200);
}

.product-image {
  width: 115px;
  height: 145px;
  flex-shrink: 0;
  border-radius: 8px;
  background: linear-gradient(135deg,#f5f1eb,#fafafa);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999999;
  font-size: 12px;
  text-align: center;
  overflow: hidden;
  border: 1px solid var(--gris-200);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-info {
  flex: 1;
}

.product-info h3 {
  font-size: 15px;
  line-height: 1.2;
  margin-bottom: 7px;
  color: var(--negro);
}

.product-info p {
  color: var(--texto-secundario);
  font-size: 13px;
  margin-bottom: 5px;
}

.tag {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--amarillo-claro);
  color: var(--rojo);
  border: 1px solid rgba(247,188,91,.45);
  font-size: 11px;
  font-weight: 700;
}

/* STATS */

.stats {
  padding: 30px 0;
  background: var(--blanco);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  border: 1px solid var(--gris-200);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,.03);
}

.stat {
  text-align: center;
  padding: 28px 15px;
  border-right: 1px solid var(--gris-200);
}

.stat:last-child {
  border-right: 0;
}

.stat-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--rojo);
}

.stat-label {
  color: var(--texto-secundario);
  font-size: 14px;
}

/* SECTIONS */

section {
  padding: 70px 0;
}

.section-header {
  text-align: center;
  max-width: 730px;
  margin: 0 auto 55px;
}

.section-header h2 {
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 15px;
  color: var(--negro);
}

.section-header p {
  color: var(--texto-secundario);
  font-size: 17px;
}

/* CARDS */

.cards {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 22px;
}

.card {
  padding: 30px;
  border: 1px solid var(--gris-200);
  border-radius: 10px;
  background: var(--blanco);
  transition: .2s;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(196,0,0,.22);
  box-shadow: 0 15px 40px rgba(50,30,20,.08);
}

.icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--rojo-suave);
  color: var(--rojo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  margin-bottom: 20px;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 19px;
  color: var(--negro);
}

.card p {
  color: var(--texto-secundario);
  font-size: 14px;
}

/* BENEFITS */

.benefits {
  background: #fff9d6;
  background: linear-gradient(180deg, rgba(255, 249, 214, 1) 0%, rgb(238, 228, 138) 100%);
}

.benefit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.benefit {
  background: #fffbde; /* var(--blanco); */
  border: 1px solid #b1b1b1;  /* var(--gris-200); */
  border-radius: 10px;
  padding: 22px;
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.benefit:hover {
  border-color: rgba(247,188,91,.7);
}

.benefit .icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  margin: 0;
  background: #ffeaea;  /* var(--amarillo-claro); */
  color: var(--rojo);
  font-size: 18px;
}

.benefit h3 {
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--negro);
}

.benefit p {
  color: var(--texto-secundario);
  font-size: 13px;
}

/* INTEGRATION */

.integration {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.integration h2 {
  font-size: 38px;
  line-height: 1.15;
  margin-bottom: 18px;
  color: var(--negro);
}

.integration p {
  color: var(--texto-secundario);
  margin-bottom: 25px;
}

.code-box {
  background: #292929;
  border-radius: 10px;
  padding: 25px;
  color: #eeeeee;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  overflow-x: auto;
  box-shadow: 0 20px 45px rgba(0,0,0,.14);
  border-left: 4px solid var(--amarillo);
}

.code-comment {
  color: #999999;
}

.code-key {
  color: var(--amarillo);
}

/* UPDATE */

.update-box {
  position: relative;
  overflow: hidden;
  background: var(--rojo);
  color: var(--blanco);
  border-radius: 12px;
  padding: 55px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(196,0,0,.14);
}

.update-box::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: -130px;
  top: -150px;
  border-radius: 50%;
  background: rgba(247,188,91,.18);
}

.update-box h2,
.update-box p,
.update-box .btn {
  position: relative;
  z-index: 1;
}

.update-box h2 {
  font-size: 35px;
  margin-bottom: 12px;
}

.update-box p {
  max-width: 700px;
  margin: 0 auto 25px;
  color: rgba(255,255,255,.88);
}

.white-button {
  background: var(--blanco);
  color: var(--rojo);
}

.white-button:hover {
  background: var(--amarillo);
  color: var(--negro);
  transform: translateY(-2px);
}

/* CONTACT */

.contact-section {
  background: var(--gris-50);
}

.contact-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 45px;
  align-items: start;
}

.contact-info h2 {
  font-size: 38px;
  line-height: 1.15;
  margin-bottom: 15px;
  color: var(--negro);
}

.contact-info > p {
  color: var(--texto-secundario);
  margin-bottom: 25px;
}

.contact-item {
  display: flex;
  gap: 13px;
  margin: 18px 0;
  align-items: center;
}

.contact-item .icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin: 0;
  background: var(--rojo-suave);
  color: var(--rojo);
  border-radius: 7px;
  font-size: 17px;
}

.contact-item strong {
  color: var(--negro);
}

.contact-form {
  background: var(--blanco);
  border: 1px solid var(--gris-200);
  border-top: 4px solid var(--rojo);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,.05);
}

.form-group {
  margin-bottom: 17px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--negro);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--gris-300);
  border-radius: 6px;
  outline: 0;
  font-family: inherit;
  font-size: 14px;
  color: var(--texto);
  background: var(--blanco);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--rojo);
  box-shadow: 0 0 0 3px rgba(196,0,0,.07);
}

.form-message {
  display: none;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 6px;
  background: var(--amarillo-claro);
  border: 1px solid rgba(247,188,91,.6);
  color: var(--rojo);
  font-size: 13px;
}

/* FOOTER */

footer {
  background: #333333;
  color: #bdbdbd;
  padding: 35px 0;
  font-size: 13px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  font-weight: 800;
  color: var(--blanco);
  font-size: 18px;
}

.footer-logo span {
  color: var(--amarillo);
}

/* WHATSAPP */

.whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--verde);
  color: var(--blanco);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 27px;
  box-shadow: 0 8px 25px rgba(0,0,0,.2);
  z-index: 999;
  transition: .2s;
}

.whatsapp:hover {
  color: var(--blanco);
  transform: scale(1.08);
}

/* ANIMATION */

.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */

@media(max-width: 850px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--blanco);
    padding: 20px;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--gris-200);
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 5px;
    border-bottom: 1px solid var(--gris-200);
  }

  .nav-links .nav-button {
    margin-top: 10px;
    text-align: center;
    border: 0;
  }

  .menu-button {
    display: block;
  }

  .hero-grid,
  .integration,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 125px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--gris-200);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .update-box {
    padding: 35px 22px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media(max-width: 500px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  h1 {
    font-size: 42px;
  }

  section {
    padding: 70px 0;
  }

  .section-header h2,
  .integration h2,
  .contact-info h2 {
    font-size: 31px;
  }

  .product-demo {
    padding: 20px;
  }

  .product-result {
    flex-direction: column;
  }

  .product-image {
    width: 100%;
    height: 180px;
  }

  .whatsapp {
    right: 16px;
    bottom: 16px;
  }
}

/* ----------------------------------------- */

#productoEan {
  display: inline-block;
  margin-top: 0px;
  background: white;
  white-space: nowrap;
}

/*
 * Cada módulo del EAN.
 */
.bar {
  display: inline-block;
  vertical-align: top;
  width: 1.8px;
  height: 30px !important;
  background: white;
  margin: 0;
  padding: 0;
}

/*
 * Módulo negro.
 */
.bar.black {
  background: #454545;
}

/*
 * Barras de guarda.
 */
.bar.guard {
  height: 165px;
}

/* ----------------------------------------- */
