/* ============================================
   GoolFactory7 — Design tokens
   ============================================ */
:root {
  --bg: #060707;
  --bg-alt: #0c0e0d;
  --card: #131615;
  --card-border: #212523;
  --lime: #b6ff2f;
  --lime-dark: #7fcc13;
  --white: #f5f6f4;
  --gray: #a6aca8;
  --gray-dim: #71766f;

  --font-display: 'Anton', sans-serif;
  --font-body: 'Rajdhani', sans-serif;

  --container: 1180px;
  --radius: 14px;
  --ease: cubic-bezier(.16,.84,.44,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
svg.icon { width: 20px; height: 20px; flex-shrink: 0; }
svg.icon-lg { width: 40px; height: 40px; color: var(--lime); margin-bottom: .5rem; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.text-lime { color: var(--lime); }

/* subtle scanline / grain overlay for futuristic feel */
.scan-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.015) 0px,
    rgba(255,255,255,0.015) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: .5;
  mix-blend-mode: overlay;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn-lg { padding: 1rem 1.8rem; font-size: 1.05rem; }
.btn-sm { padding: .6rem 1.2rem; font-size: .85rem; width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--lime), var(--lime-dark));
  color: #08120a;
  box-shadow: 0 0 0 rgba(182,255,47,0);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(182,255,47,.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(245,246,244,.3);
}
.btn-outline:hover {
  border-color: var(--lime);
  color: var(--lime);
  transform: translateY(-2px);
}

/* ============================================
   Header
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .3s var(--ease), padding .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(6,7,7,.85);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  border-color: var(--card-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo {
  height: 52px;
  width: auto;
  mix-blend-mode: screen;
  transition: height .3s var(--ease);
}
.site-header.scrolled .brand-logo { height: 42px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.main-nav a {
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color .2s;
  position: relative;
}
.main-nav a:not(.nav-wa-btn):hover { color: var(--white); }
.main-nav a:not(.nav-wa-btn)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--lime);
  transition: width .25s var(--ease);
}
.main-nav a:not(.nav-wa-btn):hover::after { width: 100%; }

.nav-wa-btn {
  background: var(--lime);
  color: #08120a !important;
  padding: .6rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .2s, box-shadow .2s;
}
.nav-wa-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(182,255,47,.3);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--white);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 90px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(6,7,7,.3) 0%, rgba(6,7,7,.55) 55%, var(--bg) 96%),
    linear-gradient(90deg, rgba(6,7,7,.88) 0%, rgba(6,7,7,.25) 58%, rgba(6,7,7,.55) 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(182,255,47,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(182,255,47,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,.6) 40%, transparent 90%);
  opacity: .6;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .85rem;
  color: var(--lime);
  margin-bottom: 1.2rem;
}
.eyebrow.center { justify-content: center; }
.eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
  animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.7); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: .01em;
  max-width: 16ch;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 40px rgba(0,0,0,.5);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--gray);
  max-width: 44ch;
  margin-bottom: 2.2rem;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.8rem;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
}
.trust-badges li {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-weight: 700;
  text-transform: uppercase;
  font-size: .85rem;
  letter-spacing: .03em;
  color: var(--white);
}
.trust-badges .icon { color: var(--lime); }

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px; height: 42px;
  border: 2px solid rgba(245,246,244,.35);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-hint span {
  width: 4px; height: 8px;
  border-radius: 2px;
  background: var(--lime);
  animation: scroll-hint-move 1.6s ease-in-out infinite;
}
@keyframes scroll-hint-move {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(12px); }
}

/* ============================================
   Sections (generic)
   ============================================ */
.section {
  padding: 6.5rem 0;
  position: relative;
}
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 640px; margin-bottom: 3.5rem; }
.section-head.center,
.section-head .center { margin-left: auto; margin-right: auto; text-align: center; }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
  margin-bottom: 1rem;
}
.section-title.center { text-align: center; }

.section-sub {
  color: var(--gray);
  font-size: 1.05rem;
  max-width: 56ch;
}

.section-head { text-align: left; }
#beneficios .section-head,
#catalogo .section-head {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* reveal-on-scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Nosotros
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 4rem;
  align-items: center;
}

.about-text {
  color: var(--gray);
  font-size: 1.08rem;
  margin-bottom: 1.1rem;
}
.about-text strong { color: var(--white); }

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.2rem;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.3rem 1rem;
  text-align: center;
  transition: border-color .25s, transform .25s;
}
.stat-card:hover { border-color: var(--lime); transform: translateY(-3px); }
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--lime);
  line-height: 1;
  margin-bottom: .5rem;
}
.stat-label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--gray);
  font-weight: 600;
}

.about-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}
.glow-ring {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(182,255,47,.18), transparent 70%);
  filter: blur(10px);
  animation: rotate-glow 8s linear infinite;
}
@keyframes rotate-glow {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.08); }
  100% { transform: rotate(360deg) scale(1); }
}
.about-logo {
  position: relative;
  width: 78%;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 40px rgba(182,255,47,.25));
}

/* ============================================
   Beneficios
   ============================================ */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.benefit-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.benefit-card:hover {
  transform: translateY(-6px);
  border-color: var(--lime);
  background: #171b19;
}
.benefit-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(182,255,47,.1);
  color: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.3rem;
}
.benefit-icon svg { width: 26px; height: 26px; }
.benefit-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.25rem;
  margin-bottom: .6rem;
  letter-spacing: .01em;
}
.benefit-card p { color: var(--gray); font-size: .98rem; }

/* ============================================
   Catálogo
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.product-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.product-card:hover { transform: translateY(-6px); border-color: var(--lime); }

.product-media {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: #0a0b0a;
}
.product-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.product-card:hover .product-media img { transform: scale(1.06); }

.product-info { padding: 1.4rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.product-info h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.1rem;
}
.product-info p { color: var(--gray); font-size: .92rem; flex: 1; }

.product-card-cta {
  align-items: center;
  justify-content: center;
  border-style: dashed;
  background: transparent;
}
.product-cta-inner {
  padding: 2.4rem 1.6rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.product-cta-inner h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.2rem;
  margin-bottom: .5rem;
}
.product-cta-inner p { color: var(--gray); font-size: .92rem; margin-bottom: 1.3rem; }

/* ============================================
   CTA final
   ============================================ */
.cta-final {
  position: relative;
  padding: 7rem 0;
  background: var(--bg-alt);
  overflow: hidden;
  text-align: center;
  border-top: 1px solid var(--card-border);
}
.cta-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(182,255,47,.12) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at center, rgba(0,0,0,.9), transparent 70%);
}
.cta-content { position: relative; z-index: 1; }
.cta-title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  margin-bottom: 1.2rem;
}
.cta-sub {
  color: var(--gray);
  max-width: 46ch;
  margin: 0 auto 2.2rem;
  font-size: 1.08rem;
}
.cta-actions { justify-content: center; margin-bottom: 0; }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: #050605;
  border-top: 1px solid var(--card-border);
  padding-top: 3.5rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr .8fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer-logo { height: 46px; mix-blend-mode: screen; margin-bottom: 1rem; }
.footer-brand p { color: var(--gray-dim); font-size: .92rem; max-width: 32ch; }

.footer-nav, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.footer-nav a, .footer-contact a {
  color: var(--gray);
  font-weight: 600;
  font-size: .95rem;
  transition: color .2s;
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--lime); }

.footer-bottom {
  border-top: 1px solid var(--card-border);
  padding: 1.4rem 0;
}
.footer-bottom p { color: var(--gray-dim); font-size: .82rem; text-align: center; }

/* ============================================
   WhatsApp flotante
   ============================================ */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 150;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lime), var(--lime-dark));
  color: #08120a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(182,255,47,.35);
  animation: wa-pulse 2.4s ease-in-out infinite;
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(182,255,47,.35), 0 0 0 0 rgba(182,255,47,.5); }
  50% { box-shadow: 0 8px 24px rgba(182,255,47,.35), 0 0 0 14px rgba(182,255,47,0); }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { max-width: 320px; margin: 0 auto; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 80vw);
    background: rgba(8,9,8,.98);
    backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.6rem;
    padding: 2rem 2.2rem;
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    border-left: 1px solid var(--card-border);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: 1.1rem; }
  .nav-wa-btn { margin-top: .5rem; }

  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding-top: 110px; min-height: auto; padding-bottom: 3rem; }
  .hero-bg img { object-position: 65% center; }
  .hero-actions {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    white-space: normal;
    text-align: center;
    box-sizing: border-box;
  }

  .benefits-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; text-align: left; }
  .section { padding: 4.5rem 0; }
}
