/* ==========================================================================
   Dipamex Papelerías — Landing page
   Paleta tomada del logotipo: verde lima, verde bosque, gris carbón.
   ========================================================================== */

:root {
  --dipamex-lime: #a4c639;
  --dipamex-lime-dark: #8bab2c;
  --dipamex-green: #45633f;
  --dipamex-green-dark: #33482f;
  --dipamex-gray: #4d4d4f;
  --dipamex-gray-light: #737375;
  --bg: #ffffff;
  --bg-alt: #f6f8f3;
  --border: #e5e8e1;
  --text: #2c2c2e;
  --text-muted: #63676a;
  --placeholder: #c0392b;

  --font-heading: 'Poppins', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius: 14px;
  --shadow: 0 8px 24px rgba(45, 61, 38, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--dipamex-gray);
  line-height: 1.2;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.1rem; font-weight: 600; }

p { margin: 0 0 16px; color: var(--text-muted); }

a { color: var(--dipamex-green); text-decoration: none; }

.placeholder {
  color: var(--placeholder);
  font-style: italic;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--dipamex-lime);
  color: #26320f;
}
.btn-primary:hover {
  background: var(--dipamex-lime-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--dipamex-gray);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--dipamex-gray); }

.btn-whatsapp {
  background: var(--dipamex-green);
  color: #fff;
}
.btn-whatsapp:hover {
  background: var(--dipamex-green-dark);
  transform: translateY(-1px);
}
.wa-icon { font-weight: 700; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand-logo { height: 46px; width: auto; }

.main-nav {
  display: flex;
  gap: 32px;
}

.main-nav a {
  color: var(--dipamex-gray);
  font-weight: 500;
  font-size: 0.95rem;
}
.main-nav a:hover { color: var(--dipamex-green); }

.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--dipamex-gray);
  border-radius: 2px;
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(160deg, var(--bg-alt) 0%, #ffffff 60%);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding: 88px 24px 96px;
  position: relative;
}

.eyebrow {
  display: inline-block;
  color: var(--dipamex-green);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-lead {
  font-size: 1.1rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero-art {
  position: relative;
  height: 320px;
}

.diamond {
  position: absolute;
  width: 230px;
  height: 230px;
  border-radius: 28px;
  transform: rotate(45deg);
  top: 50%;
  left: 50%;
}

.diamond-lime {
  background: linear-gradient(135deg, var(--dipamex-lime) 0%, #c7dd7e 100%);
  transform: translate(-68%, -50%) rotate(45deg);
  opacity: 0.92;
}

.diamond-green {
  background: linear-gradient(135deg, var(--dipamex-green) 0%, var(--dipamex-green-dark) 100%);
  transform: translate(-32%, -50%) rotate(45deg);
}

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

.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }

.section-eyebrow {
  display: inline-block;
  color: var(--dipamex-green);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-eyebrow-onbrand {
  background: var(--dipamex-lime);
  color: #26320f;
  padding: 4px 12px;
  border-radius: 999px;
}

.section-lead {
  max-width: 70ch;
  font-size: 1.05rem;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.stat {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dipamex-green);
  margin-bottom: 6px;
}

.stat-label { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

/* ---------- Cards ---------- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.icon-lime { background: rgba(164, 198, 57, 0.18); }
.icon-green { background: rgba(69, 99, 63, 0.14); }

.card p { margin: 0; font-size: 0.94rem; }

/* ---------- Bot section ---------- */

.bot-section {
  background: linear-gradient(135deg, var(--dipamex-green-dark) 0%, var(--dipamex-green) 100%);
  color: #fff;
}

.bot-inner { display: flex; justify-content: center; }

.bot-copy { max-width: 640px; text-align: left; }

.bot-section h2, .bot-section p { color: #fff; }

.bot-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  gap: 12px;
}

.bot-list li {
  padding-left: 28px;
  position: relative;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.96rem;
}

.bot-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--dipamex-lime);
  font-weight: 700;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.contact-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  min-width: 0;
}

.contact-item h3 { margin-bottom: 10px; }

.contact-item p {
  margin: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.contact-item a { overflow-wrap: break-word; word-break: break-word; }

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

.site-footer {
  background: var(--dipamex-gray);
  color: #d9dad8;
  padding: 48px 0 28px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-logo {
  height: 40px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  margin-bottom: 10px;
}

.footer-brand p { color: #b7b9b6; font-size: 0.85rem; }

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
}

.footer-links a { color: #d9dad8; font-size: 0.9rem; }
.footer-links a:hover { color: var(--dipamex-lime); }

.footer-copy {
  font-size: 0.82rem;
  color: #9a9c99;
  margin: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.dev-credit {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: #9a9c99;
  margin: 0;
}

.dev-logo {
  height: 62px;
  width: auto;
}

/* ---------- Legal pages ---------- */

.legal-page {
  padding: 64px 0 96px;
  max-width: 820px;
  margin: 0 auto;
}

.legal-page h1 { margin-bottom: 8px; }
.legal-page .updated { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 40px; }
.legal-page h2 { font-size: 1.25rem; margin-top: 40px; }
.legal-page ul { color: var(--text-muted); }
.legal-page li { margin-bottom: 8px; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .main-nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 56px; }
  .hero-art { height: 220px; order: -1; }
  .diamond { width: 160px; height: 160px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .cards-grid, .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero-inner { padding: 48px 24px 64px; }
}

/* ---------- Mobile nav open state ---------- */

.main-nav.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}
