/* ════════════════════════════════════════════════════════════
   GABRIEL SANTICHIA E HIJOS — Sistema de diseño compartido
   Identidad New Holland · navy + amarillo cosecha · editorial premium
   ════════════════════════════════════════════════════════════ */

/* ============== TOKENS ============== */
:root {
  /* Superficies */
  --bone:    #f4f6f9;   /* off-white frío de fondo */
  --bone-2:  #e8edf3;   /* off-white más marcado */
  --paper:   #ffffff;
  --line:    rgba(10, 20, 38, .10);
  --line-2:  rgba(10, 20, 38, .18);

  /* Tinta */
  --ink:      #0a1426;  /* navy casi negro */
  --ink-2:    #18233b;
  --ink-soft: #56607a;

  /* Marca New Holland */
  --field:   #003e7e;   /* azul primario */
  --field-2: #002a57;   /* azul profundo */
  --field-3: #001530;   /* azul más oscuro (fondos) */
  --brand:   #253690;   /* azul del wordmark */
  --harvest:      #ffd200;  /* amarillo cosecha (firma) */
  --harvest-deep: #e6b800;
  --rust:    #d97706;   /* ámbar de acento (uso mínimo) */
  --wpp:     #25d366;
  --wpp-2:   #1da855;

  /* Tipografías */
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body:    "Manrope", system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;

  /* Radios / sombras / easing */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;
  --sh-sm: 0 1px 2px rgba(10,20,38,.04), 0 2px 8px rgba(10,20,38,.06);
  --sh-md: 0 2px 6px rgba(10,20,38,.05), 0 10px 28px rgba(10,20,38,.10);
  --sh-lg: 0 8px 24px rgba(10,20,38,.10), 0 30px 70px rgba(10,20,38,.18);
  --sh-blue: 0 8px 28px rgba(0,62,126,.28);
  --ease:   cubic-bezier(.4, .14, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  --maxw: 1280px;
  --nav-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; }
::selection { background: var(--harvest); color: var(--ink); }

/* ============== LAYOUT ============== */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

.section { padding: clamp(64px, 9vw, 132px) 0; position: relative; }
.section--dark { background: var(--field-3); color: var(--bone); }
.section--tint { background: var(--bone-2); }

/* ============== TIPOGRAFÍA ============== */
.display {
  font-family: var(--display);
  font-weight: 800;
  line-height: .86;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.eyebrow .dot {
  width: 7px; height: 7px;
  background: var(--harvest);
  border-radius: 50%;
  margin-right: 11px;
  flex-shrink: 0;
}
.section--dark .eyebrow { color: rgba(255,255,255,.6); }

.section-head { margin-bottom: clamp(34px, 5vw, 58px); }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(34px, 6vw, 76px);
  line-height: .9;
  letter-spacing: -.012em;
  color: var(--ink);
}
.section--dark .section-head h2 { color: #fff; }
.section-head h2 em { font-style: normal; color: var(--field); }
.section--dark .section-head h2 em { color: var(--harvest); }

.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-soft); line-height: 1.65; }

/* ============== BOTONES ============== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  transition: transform .22s var(--spring), box-shadow .22s var(--ease), background .22s var(--ease), color .22s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--field); color: #fff; box-shadow: var(--sh-blue); }
.btn--primary:hover { background: var(--field-2); box-shadow: 0 12px 34px rgba(0,62,126,.36); }

.btn--harvest { background: var(--harvest); color: var(--ink); box-shadow: 0 8px 24px rgba(255,210,0,.35); }
.btn--harvest:hover { background: var(--harvest-deep); }

.btn--ghost { background: transparent; color: var(--ink); border: 1.6px solid var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--bone); }
.section--dark .btn--ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.section--dark .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn--wpp { background: var(--wpp); color: #fff; box-shadow: 0 8px 24px rgba(37,211,102,.3); }
.btn--wpp:hover { background: var(--wpp-2); }

/* ============== NAV ============== */
.site-nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.site-nav.scrolled { box-shadow: 0 6px 30px rgba(10,20,38,.10); border-bottom-color: transparent; }
.site-nav::after { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--field) 0 60%, var(--harvest) 60% 100%); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  height: var(--nav-h);
}
.brand { display: flex; align-items: center; gap: 16px; }
.brand-logo { height: 54px; width: auto; }
.brand-tagline {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.5;
  border-left: 2px solid var(--harvest);
  padding-left: 13px;
}
/* Botones de navegación: rectangulares, mayúscula, premium */
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
  color: var(--ink);
  padding: 9px 15px;
  border: 1.5px solid var(--line-2);
  border-radius: 8px;
  white-space: nowrap;
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.nav-links a:hover {
  background: var(--field); color: #fff; border-color: var(--field);
  transform: translateY(-2px); box-shadow: 0 7px 18px rgba(0,62,126,.24);
}
.nav-links a.active { background: var(--field); color: #fff; border-color: var(--field); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-webmail {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); text-transform: uppercase; font-weight: 700;
  font-size: 15px; letter-spacing: .04em;
  color: #fff; background: var(--ink);
  border: 1.5px solid var(--ink);
  padding: 9px 15px; border-radius: 8px;
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.nav-webmail svg { width: 16px; height: 16px; }
.nav-webmail:hover { background: var(--field); border-color: var(--field); transform: translateY(-2px); box-shadow: 0 7px 18px rgba(0,62,126,.24); }

.nav-burger { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-burger span { width: 24px; height: 2.4px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .25s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 199;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--sh-lg);
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-mobile.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.nav-mobile a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 17px 24px; font-size: 17px; font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.nav-mobile a:last-child { border-bottom: 0; }
.nav-mobile a.nav-store { color: var(--field); font-weight: 800; }

@media (max-width: 1280px) { .brand-tagline { display: none; } }
@media (max-width: 1180px) {
  .nav-links, .nav-actions { display: none; }
  .nav-burger { display: flex; }
  .brand-logo { height: 46px; }
}

/* ============== TICKER ============== */
.ticker { background: var(--ink); color: var(--bone); overflow: hidden; border-top: 2px solid var(--harvest); }
.ticker-track { display: flex; gap: 0; white-space: nowrap; will-change: transform; animation: ticker 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: 17px; letter-spacing: .04em;
  padding: 15px 0; display: inline-flex; align-items: center;
}
.ticker .star { display: inline-block; width: 7px; height: 7px; background: var(--harvest); border-radius: 50%; margin: 0 32px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ============== FOOTER ============== */
.site-footer { background: var(--field-3); color: rgba(255,255,255,.72); padding: 72px 0 30px; position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--field), var(--harvest)); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-logo-svg { width: 220px; height: auto; margin-bottom: 18px; }
.footer-tagline { font-size: 14px; line-height: 1.7; max-width: 320px; margin-bottom: 22px; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; color: #fff; transition: all .22s var(--ease); }
.footer-socials a svg { width: 18px; height: 18px; }
.footer-socials a:hover { background: var(--harvest); color: var(--ink); border-color: var(--harvest); transform: translateY(-3px); }
.footer-col-title { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 15px; color: #fff; margin-bottom: 16px; }
.footer-col a, .footer-col span { display: block; font-size: 14px; color: rgba(255,255,255,.72); padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--harvest); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12.5px; color: rgba(255,255,255,.55); }
.footer-bottom a { color: var(--harvest); }
.footer-credit { text-align: center; margin-top: 18px; font-size: 12px; letter-spacing: .02em; color: rgba(255,255,255,.4); }
.footer-credit a { color: var(--harvest); font-weight: 600; }
.footer-credit a:hover { text-decoration: underline; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

/* ============== WHATSAPP FAB ============== */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 150;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--wpp); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(37,211,102,.45);
  transition: transform .25s var(--spring);
}
.fab svg { width: 30px; height: 30px; }
.fab:hover { transform: scale(1.08); }
.fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wpp); animation: ring 2.4s ease-out infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }

/* ============== REVEAL ON SCROLL ============== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
