/* ============================================================
   GROANWA — Comercio Genérico · estilos compartidos
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800;900&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --red: #e2231a;
  --red-dark: #b8160f;
  --red-soft: #fdecea;
  --ink: #15151a;
  --ink-2: #1d1d24;
  --ink-3: #2a2a31;
  --text: #20202a;
  --muted: #6a6a76;
  --muted-2: #8a8a96;
  --bg: #ffffff;
  --bg-soft: #f6f6f8;
  --bg-soft-2: #f1f1f4;
  --border: #e7e7ec;
  --border-2: #dcdce3;
  --shadow-sm: 0 1px 2px rgba(20,20,30,.06), 0 1px 1px rgba(20,20,30,.04);
  --shadow-md: 0 10px 30px -12px rgba(20,20,30,.18);
  --shadow-lg: 0 30px 60px -20px rgba(20,20,30,.28);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --maxw: 1200px;
  --header-h: 78px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 {
  font-family: 'Archivo', system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--red); border-radius: 2px;
}
.eyebrow.center::before { display: none; }
.eyebrow.center { gap: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: 'Archivo', sans-serif;
  font-weight: 700; font-size: 15px; letter-spacing: .01em;
  padding: 15px 28px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: all .2s ease; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 22px -8px rgba(226,35,26,.7); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(226,35,26,.75); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--border-2); }
.btn-outline:hover { border-color: var(--ink); background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost-light:hover { background: #fff; color: var(--ink); border-color:#fff; }
.btn-wa { background: #25D366; color: #0a3d20; }
.btn-wa:hover { background: #1fbb58; transform: translateY(-2px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo { flex: 0 0 auto; display: inline-flex; }
.nav-logo img { height: 46px; width: auto; max-width: none; }
.nav-links { flex: 1 1 auto; justify-content: center; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 15px; white-space: nowrap;
  color: #44444e; padding: 9px 13px; border-radius: 9px; transition: all .18s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-soft); }
.nav-links a.active { color: var(--red); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 12px 22px; font-size: 14px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* mobile nav panel */
.mobile-nav { display: none; }

/* ---------- generic section ---------- */
section { position: relative; }
.section { padding: 92px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--ink); color: #fff; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin: 16px 0 14px; }
.section-head p { color: var(--muted); font-size: 18px; }
.section-dark .section-head h2 { color: #fff; }
.section-dark .section-head p { color: rgba(255,255,255,.7); }

/* ---------- page hero (interior pages) ---------- */
.page-hero {
  position: relative; color: #fff; overflow: hidden;
  padding: 120px 0 96px; text-align: center;
}
.page-hero .bg { position: absolute; inset: 0; z-index: 0; background: var(--ink); }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,15,20,.72), rgba(15,15,20,.86));
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { color: #fff; background: rgba(226,35,26,.92); padding: 7px 16px; border-radius: 999px; }
.page-hero .eyebrow::before { display: none; }
.page-hero h1 { color: #fff; font-size: clamp(38px, 6vw, 66px); font-weight: 900; margin: 22px 0 18px; }
.page-hero p { color: rgba(255,255,255,.82); font-size: 19px; max-width: 640px; margin: 0 auto; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 48px; }
.footer-brand .logo-pill {
  display: inline-block; background: #fff; padding: 12px 16px; border-radius: 12px; margin-bottom: 20px;
}
.footer-brand .logo-pill img { height: 40px; }
.footer-brand p { font-size: 15px; line-height: 1.7; max-width: 320px; }
.footer-social { display: flex; gap: 12px; margin-top: 22px; }
.footer-social a {
  width: 42px; height: 42px; border-radius: 11px; background: rgba(255,255,255,.08);
  display: grid; place-items: center; transition: .2s; color: #fff;
}
.footer-social a:hover { background: var(--red); transform: translateY(-2px); }
.footer-social svg { width: 19px; height: 19px; }
.footer-col h4 {
  color: #fff; font-family: 'Archivo', sans-serif; font-size: 15px; font-weight: 700;
  letter-spacing: .04em; margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a, .footer-col li { font-size: 15px; color: rgba(255,255,255,.66); transition: .18s; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.footer-contact svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 3px; color: var(--red); }
.footer-bottom {
  margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 14px; color: rgba(255,255,255,.5);
}

/* ---------- cards / grids reused ---------- */
.feature-icon {
  width: 58px; height: 58px; border-radius: 15px; display: grid; place-items: center;
  background: var(--red-soft); color: var(--red); margin-bottom: 20px;
}
.feature-icon svg { width: 27px; height: 27px; }

/* fade-in on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: block; }
  .section { padding: 64px 0; }
  .page-hero { padding: 92px 0 72px; }
  .mobile-nav.open { display: block; }
  .mobile-nav {
    border-top: 1px solid var(--border); background: #fff; padding: 14px 24px 22px;
  }
  .mobile-nav a {
    display: block; padding: 13px 8px; font-weight: 600; color: #33333b;
    border-bottom: 1px solid var(--border);
  }
  .mobile-nav a:last-of-type { border-bottom: 0; }
  .mobile-nav .btn { width: 100%; margin-top: 14px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
