/* ─── VARIABLES ─── */
:root {
  --blue-900: #0c1f3f;
  --blue-800: #0f2d5c;
  --blue-700: #1a3a7a;
  --blue-600: #1e4db7;
  --blue-500: #2563eb;
  --blue-400: #3b82f6;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;
  --gold:      #f59e0b;
  --gold-dark: #d97706;
  --white:     #ffffff;
  --gray-50:   #f8fafc;
  --gray-100:  #f1f5f9;
  --gray-200:  #e2e8f0;
  --gray-600:  #475569;
  --gray-800:  #1e293b;
  --green-wa:  #25d366;
  --green-wa-dark: #128c7e;
  --radius:    12px;
  --shadow:    0 4px 24px rgba(15,45,92,.10);
  --shadow-lg: 0 8px 40px rgba(15,45,92,.18);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ─── UTILITIES ─── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section   { padding: 96px 0; }
.bg-gray   { background: var(--gray-50); }

.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block;
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--blue-900);
  margin-bottom: 16px;
}
.section-header p {
  max-width: 580px;
  margin: 0 auto;
  color: var(--gray-600);
  font-size: 17px;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all .2s ease;
  border: none;
}
.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,158,11,.35); }

.btn-blue {
  background: var(--blue-500);
  color: var(--white);
}
.btn-blue:hover { background: var(--blue-600); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,.35); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.5);
}
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

.btn-whatsapp {
  background: var(--green-wa);
  color: var(--white);
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-whatsapp svg { width: 18px; height: 18px; }
.btn-whatsapp:hover { background: var(--green-wa-dark); transform: translateY(-1px); }

/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(12,31,63,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: all .3s ease;
}
.navbar.scrolled {
  background: rgba(12,31,63,1);
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 32px;
}
.logo { font-family: 'Montserrat', sans-serif; font-size: 22px; font-weight: 900; letter-spacing: 1px; display: flex; align-items: center; }
.logo-agro { color: var(--white); }
.logo-uy   { color: var(--gold); }

.nav-links { display: flex; gap: 32px; }
.nav-links a {
  color: rgba(255,255,255,.75);
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--white); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('hero-bg.jpg');
  background-size: cover;
  background-position: center;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(10, 22, 40, 0.92) 0%,
    rgba(10, 22, 40, 0.80) 50%,
    rgba(10, 22, 40, 0.55) 100%
  );
}
.hero-waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 80px 24px;
  padding-top: 100px;
}
/* Hero texto estilo logo */
.hero-logo-img {
  margin-bottom: 36px;
}
.hl-agro {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: 4px;
  line-height: 1.05;
  text-transform: uppercase;
}
.hl-uy {
  color: var(--white);
}
.hl-tagline {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(11px, 1.4vw, 15px);
  font-weight: 600;
  color: rgba(255,255,255,.75);
  letter-spacing: .28em;
  text-transform: uppercase;
  margin-top: 10px;
}
.hl-nombre {
  font-size: 13px;
  color: rgba(255,255,255,.45);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-top: 6px;
}
.hero-desc {
  font-size: clamp(15px, 1.8vw, 18px);
  color: rgba(255,255,255,.72);
  margin-bottom: 40px;
  max-width: 540px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 40px; }
.hero-wave {
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  z-index: 3;
}
.hero-wave svg { width: 100%; height: auto; display: block; }

/* ─── STATS ─── */
.stats { background: var(--gray-50); padding: 48px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.stat-card {
  background: var(--white);
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 42px;
  font-weight: 900;
  color: var(--blue-700);
  line-height: 1;
}
.stat-plus { color: var(--gold); }
.stat-label { font-size: 14px; color: var(--gray-600); font-weight: 500; }

/* ─── NOSOTROS ─── */
.nosotros-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.nosotros-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all .3s ease;
}
.nosotros-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-100);
}
.nosotros-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.nosotros-icon svg { width: 28px; height: 28px; }
.nosotros-icon.blue { background: var(--blue-50); color: var(--blue-600); }
.nosotros-icon.gold { background: rgba(245,158,11,.1); color: var(--gold-dark); }
.nosotros-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 10px;
}
.nosotros-card p { color: var(--gray-600); font-size: 15px; }

/* ─── PRODUCTOS ─── */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.producto-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  transition: all .3s ease;
}
.producto-card:hover {
  border-color: var(--blue-400);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.producto-card.featured {
  border-color: var(--blue-500);
  background: linear-gradient(135deg, var(--blue-50) 0%, var(--white) 100%);
}
.featured-tag {
  position: absolute;
  top: -12px; right: 24px;
  background: var(--blue-500);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.producto-icon {
  width: 64px; height: 64px;
  background: var(--blue-50);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--blue-600);
}
.producto-icon svg { width: 36px; height: 36px; }
.producto-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 10px;
}
.producto-card p { color: var(--gray-600); font-size: 15px; margin-bottom: 20px; }
.producto-link {
  color: var(--blue-500);
  font-weight: 600;
  font-size: 14px;
  transition: gap .2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.producto-link:hover { color: var(--blue-700); gap: 8px; }

.productos-note {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius);
  padding: 16px 20px;
  color: var(--blue-700);
  font-size: 14px;
  font-weight: 500;
}
.productos-note svg { flex-shrink: 0; color: var(--blue-500); }

/* ─── MARCAS ─── */
.marcas-visual {
  display: flex;
  align-items: center;
  gap: 48px;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 100%);
  border-radius: 20px;
  padding: 56px 48px;
  margin-bottom: 40px;
  color: var(--white);
}
.marcas-number { flex-shrink: 0; text-align: center; }
.marcas-number span {
  font-family: 'Montserrat', sans-serif;
  font-size: 96px;
  font-weight: 900;
  line-height: 1;
  color: var(--white);
  display: block;
}
.marcas-number .plus { color: var(--gold); }
.marcas-number p { font-size: 16px; color: rgba(255,255,255,.7); margin-top: 8px; }
.marcas-categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  flex: 1;
}
.marca-cat {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.9);
}
.marca-cat svg { flex-shrink: 0; color: var(--gold); }

.marcas-cta { text-align: center; }
.marcas-cta p { color: var(--gray-600); margin-bottom: 20px; font-size: 17px; }

/* ─── CONTACTO ─── */
.contacto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.contacto-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all .3s ease;
}
.contacto-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.contacto-card.whatsapp:hover { border-color: var(--green-wa); }
.contacto-card.instagram:hover { border-color: #e1306c; }

.contacto-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contacto-card.whatsapp .contacto-icon { background: rgba(37,211,102,.12); color: var(--green-wa); }
.contacto-card.instagram .contacto-icon { background: rgba(225,48,108,.1); color: #e1306c; }
.contacto-card.location .contacto-icon { background: var(--blue-50); color: var(--blue-500); }
.contacto-icon svg { width: 28px; height: 28px; }

.contacto-info { flex: 1; }
.contacto-label { display: block; font-size: 12px; font-weight: 600; color: var(--gray-600); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.contacto-value { display: block; font-family: 'Montserrat', sans-serif; font-size: 17px; font-weight: 700; color: var(--blue-900); }
.contacto-sub { display: block; font-size: 13px; color: var(--gray-600); margin-top: 2px; }
.contacto-card .arrow { color: var(--gray-600); flex-shrink: 0; }

/* ─── FOOTER ─── */
.footer {
  background: var(--blue-900);
  color: rgba(255,255,255,.7);
  padding-top: 56px;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  flex-wrap: wrap;
}
.footer-brand .logo-agro { color: var(--white); font-family: 'Montserrat', sans-serif; font-size: 22px; font-weight: 900; }
.footer-brand .logo-uy   { color: var(--gold); font-family: 'Montserrat', sans-serif; font-size: 22px; font-weight: 900; }
.footer-brand p { margin-top: 12px; font-size: 14px; line-height: 1.7; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,.65); transition: color .2s; }
.footer-links a:hover { color: var(--white); }
.footer-social { display: flex; gap: 12px; align-items: flex-start; }
.footer-social a {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.08);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  transition: all .2s;
}
.footer-social a svg { width: 20px; height: 20px; }
.footer-social a:hover { background: var(--gold); color: var(--white); transform: translateY(-2px); }
.footer-bottom { text-align: center; padding: 20px; font-size: 13px; color: rgba(255,255,255,.4); }

/* ─── WHATSAPP FLOTANTE ─── */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 60px; height: 60px;
  background: var(--green-wa);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
  z-index: 999;
  transition: all .3s ease;
  animation: pulse-wa 3s infinite;
}
.whatsapp-float svg { width: 32px; height: 32px; color: var(--white); }
.whatsapp-float:hover {
  background: var(--green-wa-dark);
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37,211,102,.6);
  animation: none;
}
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,.45); }
  50%       { box-shadow: 0 6px 36px rgba(37,211,102,.7), 0 0 0 8px rgba(37,211,102,.1); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .stats-grid      { grid-template-columns: repeat(2, 1fr); }
  .nosotros-grid   { grid-template-columns: 1fr; }
  .productos-grid  { grid-template-columns: 1fr; }
  .contacto-grid   { grid-template-columns: 1fr; }
  .marcas-visual   { flex-direction: column; text-align: center; padding: 40px 28px; }
  .marcas-categories { grid-template-columns: 1fr; }
  .footer-inner    { flex-direction: column; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  /* Mobile nav */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--blue-900);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    z-index: 999;
  }
  .nav-links.open a { font-size: 18px; }
}

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-3 { grid-template-columns: repeat(1, 1fr) !important; }
  .hero-actions { flex-direction: row; }
  .hero-actions .btn { flex: 1; justify-content: center; font-size: 14px; padding: 13px 16px; }
  .marcas-number span { font-size: 64px; }
}
