/* ============================================
   Urea AdBlue Colombia — Design System
   ============================================ */

/* Poppins — self-hosted (no external Google Fonts request) */
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Cerebri Sans Bold — official brand headline typeface */
@font-face {
  font-family: 'Cerebri Sans Bold';
  src: url('../fonts/CerebriSansBold.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Color */
  --grafito: #10161B;
  --grafito-elevated: #171F26;
  --verde-menta: #3BF4A8;
  --azul-cielo: #66CCFF;
  --azul-acero: #5882BC;
  --blanco: #F5F7F8;
  --blanco-muted: rgba(245, 247, 248, 0.68);
  --blanco-faint: rgba(245, 247, 248, 0.4);
  --gradient: linear-gradient(90deg, var(--verde-menta), var(--azul-cielo));
  --line: rgba(245, 247, 248, 0.1);
  --ink: #10161B; /* fixed dark ink for text sitting directly on the gradient, regardless of page theme */

  /* Type */
  --font-display: 'Cerebri Sans Bold', 'Archivo Black', 'Arial Black', sans-serif;
  --font-body: 'Poppins', sans-serif;

  /* Layout */
  --max-width: 1200px;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--grafito);
  color: var(--blanco);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ---------- Typography ---------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 { font-size: clamp(2.6rem, 8vw, 6.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.6rem); }
h3 { font-size: 1.1rem; letter-spacing: 0.04em; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--verde-menta);
  margin: 0 0 18px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

p { margin: 0 0 1em; color: var(--blanco-muted); font-weight: 300; }
p:last-child { margin-bottom: 0; }

.lede { font-size: 1.15rem; font-weight: 400; color: var(--blanco); }

.one-line { white-space: nowrap; }
@media (max-width: 640px) { .one-line { white-space: normal; } }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 16px 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary {
  background: var(--gradient);
  color: var(--ink);
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px rgba(59, 244, 168, 0.45);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--blanco);
}

.btn-ghost:hover {
  border-color: var(--verde-menta);
  color: var(--verde-menta);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: rgba(16, 22, 27, 0.97);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.logo span { color: var(--verde-menta); }

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-links a { color: var(--blanco-muted); transition: color 0.2s; margin-left: 32px; }
.nav-links a:first-child { margin-left: 0; }
.nav-links a:hover, .nav-links a.active { color: var(--verde-menta); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--blanco);
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}

.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 780px) {
  .nav-toggle { display: block; order: -1; }

  .nav-links {
    display: none;
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    z-index: 150;
    flex-direction: column;
    gap: 0;
    background: var(--grafito-elevated);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    margin-left: 0 !important;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
  }

  .nav-links a:last-child { border-bottom: none; }

  .index-hero-logo { display: none; }
  .index-hero { min-height: auto !important; padding: 48px 0 40px; }
}

/* ---------- WhatsApp floating button ---------- */

.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gradient);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 14px 22px 14px 16px;
  border-radius: 999px;
  box-shadow: 0 12px 30px -10px rgba(59, 244, 168, 0.5);
  transition: transform 0.25s ease;
}

.wa-float:hover { transform: translateY(-3px) scale(1.02); }

.wa-float svg { width: 22px; height: 22px; }

@media (max-width: 600px) {
  .wa-float span { display: none; }
  .wa-float { padding: 14px; }
}

/* ---------- Sections ---------- */

section { position: relative; padding: 110px 0; }
section.tight { padding: 70px 0; }

.section-light {
  background: var(--blanco);
  color: var(--grafito);
}
.section-light p { color: rgba(16,22,27,0.68); }
.section-light .eyebrow { color: var(--azul-acero); }

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--blanco-faint);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a:hover { color: var(--verde-menta); }
.footer-grid .logo { color: var(--blanco); }

/* ---------- Utility ---------- */

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--verde-menta);
  color: var(--verde-menta);
}

.grid-2 { display: flex; gap: 40px; }
.grid-2 > * { flex: 1 1 0; min-width: 0; }

.grid-4 { display: flex; gap: 24px; }
.grid-4 > * { flex: 1 1 0; min-width: 0; }

@media (max-width: 900px) {
  .grid-2, .grid-4 { flex-direction: column; }
}

/* ---------- Product hero layout (Urea / Pin): CSS Grid with named areas.
   Desktop: text (desc + buy) on the left, gallery on the right.
   Mobile: gallery on top, then buy (price + button), then description. ---------- */

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "desc gallery" "buy gallery";
  gap: 16px 40px;
  align-items: start;
}

.hero-grid .hero-desc { grid-area: desc; }
.hero-grid .hero-buy { grid-area: buy; }

.hero-grid .hero-product-visual {
  grid-area: gallery;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "gallery" "buy" "desc";
    gap: 24px;
  }
  .hero-grid .hero-product-visual { justify-content: center; }
}

/* Pin de Rejilla only, desktop only: center the gallery vertically
   against the combined height of the description + buy text, instead
   of top-aligning it. Urea and the mobile layout are unaffected. */
@media (min-width: 901px) {
  .pin-hero-grid { align-items: center; }
}

/* ---------- FAQ accordion ---------- */

.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--grafito);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  position: relative;
  display: block;
  padding: 20px 60px 20px 24px;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { content: ""; }

.faq-question h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.02rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--blanco);
  margin: 0;
}

.faq-icon {
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--verde-menta);
  color: var(--verde-menta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-icon { transform: translateY(-50%) rotate(45deg); }
.faq-item[open] .faq-question { border-bottom: 1px solid var(--line); }

.faq-answer { padding: 18px 24px 22px; }
.faq-answer p { color: var(--blanco-muted); margin: 0; }

/* ---------- Quantity selector (Pin de Rejilla) ---------- */

.qty-btn {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--blanco-muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.qty-btn:hover {
  border-color: var(--verde-menta);
  color: var(--blanco);
}

.qty-btn.active {
  background: var(--gradient);
  border-color: transparent;
  color: var(--ink);
  font-weight: 700;
}

/* ---------- Product image gallery (fixed square box, same size for every photo) ---------- */

.gallery-frame {
  position: relative;
  z-index: 1;
  width: 420px;
  height: 420px;
  flex-shrink: 0;
}

.gallery-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 900px) {
  .gallery-frame { width: 320px; height: 320px; }
}

@media (max-width: 480px) {
  .gallery-frame { width: 280px; height: 280px; }
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(245, 247, 248, 0.06);
  border: 1px solid var(--line);
  color: var(--blanco);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  opacity: 0.6;
  transition: border-color 0.2s, background 0.2s, opacity 0.2s;
  z-index: 2;
}

.gallery-arrow:hover {
  border-color: var(--verde-menta);
  background: rgba(59, 244, 168, 0.12);
  opacity: 1;
}

.gallery-arrow svg { width: 18px; height: 18px; }
.gallery-arrow-left { left: -64px; }
.gallery-arrow-right { right: -64px; }

@media (max-width: 900px) {
  .gallery-arrow-left { left: -8px; }
  .gallery-arrow-right { right: -8px; }
}

@media (max-width: 640px) {
  .gallery-arrow { width: 36px; height: 36px; }
}

/* ---------- Cookie consent banner ---------- */

#cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 300;
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--grafito-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  font-size: 0.85rem;
}

#cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

#cookie-banner p {
  margin: 0;
  flex: 1 1 280px;
  color: var(--blanco-muted);
}

#cookie-banner a {
  color: var(--verde-menta);
  border-bottom: 1px solid var(--verde-menta);
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 10px 18px;
  font-size: 0.8rem;
}

@media (max-width: 600px) {
  #cookie-banner { left: 16px; right: 16px; bottom: 16px; padding: 18px; }
}
