/* ============================================
   VINANMERCH — QUIET LUXURY DESIGN SYSTEM
   Paleta: Verde Bosque | Crema | Naranja Signal
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

/* ── TOKENS ─────────────────────────────── */
:root {
  /* Brand neutrals — anchored to logo's monochromatic identity */
  --cream:       #F4F3F0;
  --white:       #FAFAF9;
  --ink:         #111111;   /* logo black */
  --anthracite:  #1E1E1E;
  --charcoal:    #3D3D3D;
  --muted:       #888888;
  --border:      #DDDBD5;

  /* Eco accent — secondary, used for badges & icons */
  --green:       #2A5240;
  --green-light: #366B54;
  --green-pale:  #E8F0EB;

  /* Signal Orange — primary CTA (high contrast on all backgrounds) */
  --orange:      #E84D0E;
  --orange-hover:#C63C09;
  --orange-pale: #FEF0E8;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;

  --shadow-sm:   0 2px 8px rgba(44,44,44,.06);
  --shadow-md:   0 8px 32px rgba(44,44,44,.10);
  --shadow-lg:   0 20px 60px rgba(44,44,44,.14);

  --transition:  all .3s cubic-bezier(.4,0,.2,1);
  --max-w:       1180px;
}

/* ── RESET ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: var(--white);
  color: var(--anthracite);
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── UTILITIES ───────────────────────────── */
.container { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: 24px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green); background: var(--green-pale);
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(45,90,61,.18);
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange); color: #fff;
  font-size: .95rem; font-weight: 600;
  padding: 15px 32px; border-radius: var(--radius-sm);
  border: none; cursor: pointer;
  transition: var(--transition);
  letter-spacing: .01em;
  box-shadow: 0 4px 20px rgba(232,80,10,.35);
}
.btn-primary:hover { background: var(--orange-hover); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(232,80,10,.40); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--anthracite);
  font-size: .9rem; font-weight: 500;
  padding: 14px 28px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); cursor: pointer;
  transition: var(--transition);
}
.btn-secondary:hover { border-color: var(--anthracite); background: var(--anthracite); color: #fff; }
.section-header { text-align: center; max-width: 640px; margin-inline: auto; margin-bottom: 64px; }
.section-header .tag { margin-bottom: 18px; }
.section-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700; line-height: 1.2;
  letter-spacing: -.025em;
  color: var(--ink); margin-bottom: 16px;
}
.section-header p { font-size: 1.05rem; color: var(--charcoal); line-height: 1.7; }

/* ── NAVBAR ──────────────────────────────── */
#navbar {
  position: fixed; top: 0; width: 100%; z-index: 900;
  padding: 20px 0;
  transition: var(--transition);
}
#navbar.scrolled {
  background: rgba(250,250,248,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  box-shadow: var(--shadow-sm);
}
#navbar .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--green); display: grid; place-items: center;
}
.nav-logo-icon svg { width: 20px; height: 20px; fill: #fff; }
.nav-logo-text { font-size: 1.1rem; font-weight: 700; color: var(--ink); letter-spacing: .06em; text-transform: uppercase; font-family: 'Space Grotesk', sans-serif; }
.nav-logo-text span { color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { font-size: .88rem; font-weight: 500; color: var(--charcoal); transition: color .2s; }
.nav-links a:hover { color: var(--green); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-menu-btn { display: none; background: none; border: none; cursor: pointer; }

/* ── HERO ────────────────────────────────── */
#hero {
  min-height: 100vh; display: flex; align-items: center;
  background: var(--cream);
  padding: 120px 0 80px;
  position: relative; overflow: hidden;
}
.hero-bg-shape {
  position: absolute; right: -120px; top: 50%; transform: translateY(-50%);
  width: 55%; max-width: 700px; aspect-ratio: 1;
  background: radial-gradient(ellipse at center, rgba(45,90,61,.08) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; position: relative; }
.hero-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex-shrink: 0; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.4)} }
.hero-eyebrow span { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero-content h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.1; font-weight: 700;
  letter-spacing: -.03em;
  color: var(--ink); margin-bottom: 24px;
}
.hero-content h1 em { font-style: normal; color: var(--orange); }
.hero-content p { font-size: 1.1rem; color: var(--charcoal); line-height: 1.75; margin-bottom: 40px; max-width: 480px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats { display: flex; gap: 40px; padding-top: 40px; border-top: 1px solid var(--border); }
.stat-item .stat-num { font-size: 1.7rem; font-weight: 700; color: var(--anthracite); letter-spacing: -.04em; }
.stat-item .stat-num span { color: var(--orange); }
.stat-item .stat-label { font-size: .8rem; color: var(--muted); font-weight: 500; margin-top: 2px; }
.hero-visual { position: relative; }
.hero-img-wrap {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
  transition: var(--transition);
}
.hero-img-wrap:hover { transform: perspective(1000px) rotateY(0) rotateX(0); }
.hero-img-wrap img { width: 100%; height: 520px; object-fit: cover; }
.hero-badge {
  position: absolute; bottom: -20px; left: -20px;
  background: #fff; border-radius: var(--radius-md);
  padding: 16px 20px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--border);
}
.hero-badge-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--green-pale); display: grid; place-items: center; font-size: 1.3rem; }
.hero-badge-text .badge-title { font-size: .8rem; font-weight: 700; color: var(--anthracite); }
.hero-badge-text .badge-sub { font-size: .72rem; color: var(--muted); }
.hero-badge2 {
  position: absolute; top: 20px; right: -20px;
  background: var(--orange); color: #fff;
  border-radius: var(--radius-md); padding: 12px 18px;
  box-shadow: 0 8px 24px rgba(232,80,10,.4);
}
.hero-badge2 .b2-num { font-size: 1.3rem; font-weight: 700; }
.hero-badge2 .b2-txt { font-size: .7rem; font-weight: 500; opacity: .88; }

/* ── LOGOS STRIP ─────────────────────────── */
#logos {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.logos-label { text-align: center; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 32px; }
.logos-track-wrap { overflow: hidden; position: relative; }
.logos-track-wrap::before, .logos-track-wrap::after {
  content:''; position: absolute; top:0; width: 80px; height: 100%; z-index:2;
}
.logos-track-wrap::before { left:0; background: linear-gradient(to right, var(--white), transparent); }
.logos-track-wrap::after { right:0; background: linear-gradient(to left, var(--white), transparent); }
.logos-track { display: flex; gap: 64px; animation: marquee 28s linear infinite; width: max-content; }
.logos-track:hover { animation-play-state: paused; }
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.logo-item {
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700; letter-spacing: .08em;
  color: var(--border); white-space: nowrap; user-select: none;
  opacity: .7; transition: opacity .2s;
}
.logo-item:hover { opacity: 1; color: var(--muted); }

/* ── PRODUCTS ────────────────────────────── */
#productos { padding: 112px 0; background: var(--white); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.product-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: var(--transition); cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-6px); border-color: rgba(45,90,61,.25); }
.card-img { height: 220px; overflow: hidden; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .card-img img { transform: scale(1.06); }
.card-badge {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(8px);
  padding: 5px 12px; border-radius: 999px;
  font-size: .68rem; font-weight: 700; color: var(--green);
  letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid rgba(45,90,61,.2);
}
.card-body { padding: 24px; }
.card-icon { font-size: 1.5rem; margin-bottom: 12px; }
.card-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--anthracite); margin-bottom: 10px; line-height: 1.3; }
.card-body p { font-size: .88rem; color: var(--charcoal); line-height: 1.65; margin-bottom: 18px; }
.card-link { font-size: .82rem; font-weight: 600; color: var(--green); display: flex; align-items: center; gap: 6px; transition: gap .2s; }
.card-link:hover { gap: 10px; }

/* ── POR QUÉ VINANMERCH ───────────────────── */
#diferenciacion { padding: 112px 0; background: var(--cream); }
.diff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.diff-text .tag { margin-bottom: 20px; }
.diff-text h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700; line-height: 1.15;
  letter-spacing: -.03em;
  margin-bottom: 20px;
}
.diff-text > p { font-size: 1rem; color: var(--charcoal); line-height: 1.75; margin-bottom: 40px; }
.diff-features { display: flex; flex-direction: column; gap: 24px; }
.diff-feature {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px; background: var(--white);
  border-radius: var(--radius-md); border: 1px solid var(--border);
  transition: var(--transition);
}
.diff-feature:hover { box-shadow: var(--shadow-md); transform: translateX(6px); border-color: rgba(45,90,61,.25); }
.df-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--green-pale); display: grid; place-items: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.df-body h4 { font-size: .95rem; font-weight: 700; color: var(--anthracite); margin-bottom: 5px; }
.df-body p { font-size: .85rem; color: var(--charcoal); line-height: 1.6; }
.diff-visual { position: relative; }
.diff-main-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.diff-main-img img { width: 100%; height: 480px; object-fit: cover; }
.diff-stat-card {
  position: absolute; bottom: -24px; right: -24px;
  background: var(--green); color: #fff;
  border-radius: var(--radius-md); padding: 20px 24px;
  box-shadow: 0 12px 36px rgba(45,90,61,.35);
}
.diff-stat-card .ds-num { font-size: 2rem; font-weight: 700; letter-spacing: -.04em; }
.diff-stat-card .ds-label { font-size: .78rem; opacity: .8; margin-top: 2px; }
.diff-stat-card2 {
  position: absolute; top: 20px; left: -24px;
  background: #fff; border-radius: var(--radius-md);
  padding: 16px 20px; box-shadow: var(--shadow-md);
  border: 1px solid var(--border); display: flex; align-items: center; gap: 12px;
}

/* ── TESTIMONIOS ─────────────────────────── */
#testimonios { padding: 112px 0; background: var(--ink); }
#testimonios .section-header h2 { color: #fff; }
#testimonios .section-header p { color: rgba(255,255,255,.6); }
#testimonios .tag { background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.2); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 24px; }
.testi-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg); padding: 36px;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}
.testi-card:hover { background: rgba(255,255,255,.08); border-color: rgba(232,80,10,.4); transform: translateY(-4px); }
.testi-stars { display: flex; gap: 4px; margin-bottom: 20px; }
.testi-stars span { color: var(--orange); font-size: 1rem; }
.testi-quote { font-size: 1rem; color: rgba(255,255,255,.82); line-height: 1.75; margin-bottom: 28px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 14px; }
.testi-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  display: grid; place-items: center;
  font-size: .9rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.testi-name { font-size: .88rem; font-weight: 700; color: #fff; }
.testi-role { font-size: .78rem; color: rgba(255,255,255,.5); }

/* ── FORMULARIO ──────────────────────────── */
#contacto { padding: 112px 0; background: var(--cream); }
.form-wrapper {
  max-width: 760px; margin-inline: auto;
  background: var(--white); border-radius: var(--radius-lg);
  padding: 56px 64px; border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.form-wrapper .section-header { margin-bottom: 44px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: .82rem; font-weight: 600; color: var(--anthracite); letter-spacing: .02em; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif; font-size: .92rem;
  color: var(--anthracite); background: var(--white);
  transition: var(--transition); outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--green); box-shadow: 0 0 0 3px rgba(45,90,61,.1);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238A8A8A' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.form-submit { margin-top: 12px; }
.form-submit .btn-primary { width: 100%; justify-content: center; font-size: 1rem; padding: 17px; }
.form-note { text-align: center; font-size: .78rem; color: var(--muted); margin-top: 14px; }

/* ── FOOTER ──────────────────────────────── */
#footer { background: var(--anthracite); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand .nav-logo-text { color: #fff; }
.footer-brand p { font-size: .88rem; color: rgba(255,255,255,.5); line-height: 1.7; max-width: 280px; margin-bottom: 24px; }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,.08); display: grid; place-items: center;
  font-size: .9rem; color: rgba(255,255,255,.6);
  transition: var(--transition); border: 1px solid rgba(255,255,255,.1);
}
.footer-socials a:hover { background: var(--orange); color: #fff; border-color: transparent; }
.footer-col h5 { font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: .88rem; color: rgba(255,255,255,.55); transition: color .2s; }
.footer-col ul a:hover { color: #fff; }
.footer-bottom {
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,.3); }
.cert-badges { display: flex; gap: 10px; }
.cert-badge {
  font-size: .7rem; font-weight: 600; color: rgba(255,255,255,.4);
  border: 1px solid rgba(255,255,255,.15); padding: 5px 10px;
  border-radius: 999px; letter-spacing: .06em;
}

/* ── SCROLL-TO-TOP ───────────────────────── */
#scrollTop {
  position: fixed; bottom: 28px; right: 28px; z-index: 800;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green); color: #fff; border: none; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 4px 16px rgba(45,90,61,.4);
  opacity: 0; transform: translateY(12px);
  transition: var(--transition);
  font-size: 1.1rem;
}
#scrollTop.visible { opacity: 1; transform: translateY(0); }
#scrollTop:hover { background: var(--green-light); }

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 1024px) {
  .diff-grid { grid-template-columns: 1fr; }
  .diff-visual { order: -1; }
  .diff-stat-card { bottom: 16px; right: 16px; }
  .diff-stat-card2 { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta .btn-secondary { display: none; }
  .nav-menu-btn { display: block; padding: 8px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .hero-img-wrap img { height: 320px; }
  .hero-badge { left: 0; bottom: -16px; }
  .hero-badge2 { right: 0; top: 10px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .form-wrapper { padding: 36px 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .diff-main-img img { height: 320px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary, .hero-actions .btn-secondary { text-align: center; justify-content: center; }
  .hero-stats { gap: 16px; }
}
