/* ============================================
   Alan Castelli · Maquinaria XCMG · Perú
   Production stylesheet
   ============================================ */

:root {
  --accent: #FFC42E;
  --accent-fg: #1a1a1a;
  --gold-dark: #b8870e;
  --ink: #1a1a1a;
  --ink-2: #444;
  --ink-3: #6a6a6a;
  --cream: #faf8f3;
  --cream-2: #f4ede0;
  --cream-3: #c8c2b0;
  --bg: #ffffff;
  --wa: #25D366;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: 'Playfair Display', Georgia, serif; }
em { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; color: var(--accent); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ============================================
   NAV
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--ink);
  color: var(--cream-2);
  padding: 14px 32px;
  border-bottom: 2px solid var(--accent);
  min-height: var(--nav-h);
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav .logo {
  width: 44px; height: 44px;
  background: var(--accent);
  color: var(--accent-fg);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.nav .brand-line { display: flex; flex-direction: column; line-height: 1.15; }
.nav .brand-line .name {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--cream-2);
}
.nav .brand-line .sub {
  font-size: 10px;
  font-weight: 500;
  color: var(--cream-3);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 3px;
}
.nav-menu { flex: 1; }
.nav-menu > ul {
  display: flex;
  gap: 26px;
  margin-left: 24px;
}
.nav-menu a {
  font-size: 13px;
  font-weight: 500;
  color: var(--cream-2);
  padding: 8px 0;
  transition: color 0.15s;
}
.nav-menu a:hover { color: var(--accent); }
.nav-menu .has-drop { position: relative; }
.nav-menu .has-drop > a::after { content: ' ▾'; font-size: 9px; color: var(--cream-3); }
.nav-menu .drop {
  position: absolute;
  top: 100%;
  left: -14px;
  min-width: 240px;
  background: var(--ink);
  border: 1px solid #333;
  border-top: 2px solid var(--accent);
  padding: 8px 0;
  display: none;
  flex-direction: column;
  box-shadow: 0 12px 28px rgba(0,0,0,0.4);
}
.nav-menu .has-drop:hover .drop,
.nav-menu .has-drop:focus-within .drop { display: flex; }
.nav-menu .drop a {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
}
.nav-phone {
  font-size: 13px;
  font-weight: 600;
  color: var(--cream-2);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.nav-phone::before {
  content: '';
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

.nav-toggle, .nav-burger { display: none; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--cream-2);
  overflow: hidden;
}
.hero-content {
  display: block;
}

.hero-slide {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 540px;
}
.hero-slide .slide-text {
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}
.hero-slide .eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero-slide h1 {
  font-weight: 700;
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 480px;
}
.hero-slide p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--cream-3);
  max-width: 440px;
}
.btn-ghost-yellow {
  align-self: flex-start;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px 26px;
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: background 0.15s, color 0.15s;
}
.btn-ghost-yellow::after { content: '→'; font-family: serif; font-size: 18px; }
.btn-ghost-yellow:hover { background: var(--accent); color: var(--accent-fg); }

.hero-slide .slide-img {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.0), rgba(0,0,0,0.35)),
    url('assets/bg/quarry.png') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  filter: grayscale(0.25) contrast(0.98);
}
.hero-slide .slide-img .machine {
  width: 88%;
  max-width: 520px;
  filter: drop-shadow(0 30px 24px rgba(0,0,0,0.45));
}

/* ============================================
   SECTION HEADS (shared)
   ============================================ */
.section-head { text-align: center; margin-bottom: 36px; }
.section-head .eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

/* ============================================
   CATEGORÍAS
   ============================================ */
.categorias { padding: 80px 0; background: #fff; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.cat-card {
  background: var(--cream);
  border: 1px solid #e6e1d2;
  border-radius: 6px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  color: var(--ink);
  cursor: pointer;
}
.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
  border-color: var(--ink);
}
.cat-card .img-wrap {
  aspect-ratio: 16/10;
  background: #fff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cat-card .img-wrap img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 10px;
  transition: transform 0.25s;
}
.cat-card:hover .img-wrap img { transform: scale(1.04); }
.cat-card .cat-badge {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.cat-card .cat-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
}
.cat-card .models {
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.55;
}
.cat-card .models b {
  display: inline-block;
  color: var(--ink);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.cat-card .cat-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed #d8d2bb;
  font-size: 11px;
  color: var(--ink-3);
}
.cat-card .cat-link {
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.cat-card.cat-all {
  background: var(--ink);
  color: var(--accent);
  border: 1px solid var(--ink);
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 28px;
}
.cat-card.cat-all .arrow {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  line-height: 1;
  color: var(--accent);
}
.cat-card.cat-all .label {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  font-style: italic;
}
.cat-card.cat-all .sub {
  font-size: 12px;
  color: var(--cream-3);
  margin-top: 4px;
  letter-spacing: 0.04em;
}
.cat-card.cat-all:hover { transform: translateY(-3px); }

/* ============================================
   SOBRE LA MARCA XCMG
   ============================================ */
.xcmg {
  position: relative;
  overflow: hidden;
  color: var(--cream-2);
  padding: 140px 0;
}
.xcmg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/bg/maquinaria-pesada-xcmg-peru.webp') 72% 45%/cover;
  filter: grayscale(0.12) contrast(0.98);
}
.xcmg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(26,26,26,.94) 0%, rgba(26,26,26,.82) 32%, rgba(26,26,26,.28) 58%, rgba(26,26,26,0) 78%);
}
.xcmg .container { position: relative; z-index: 1; }
.xcmg .copy { max-width: 540px; }
.xcmg .eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.xcmg h2 {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.xcmg p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--cream-3);
  margin: 0 0 12px 0;
}
.xcmg .stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 28px;
  margin-top: 28px;
}
.xcmg .stat .n {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: var(--cream-2);
}
.xcmg .stat .l {
  font-size: 11px;
  font-weight: 500;
  color: var(--cream-3);
  margin-top: 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================
   COTIZACIÓN
   ============================================ */
.quote {
  background: #f1eee7;
  padding: 88px 0;
  scroll-margin-top: var(--nav-h);
}
.quote-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
  gap: 64px;
  align-items: center;
}
.quote-intro .eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
}
.quote-intro h2 {
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.quote-intro p {
  max-width: 500px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.7;
}
.quote-machine {
  height: 230px;
  display: flex;
  align-items: center;
  margin: 8px 0 2px;
}
.quote-machine img {
  width: 94%;
  max-width: 480px;
  max-height: 220px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 18px 14px rgba(26,26,26,.12));
}
.quote-direct {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-3);
}
.quote-direct a {
  font-weight: 700;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
}
.quote-card {
  background: #fff;
  border-top: 5px solid var(--accent);
  padding: 42px;
  box-shadow: 0 20px 55px rgba(26,26,26,.12);
}
.quote-card-head { margin-bottom: 28px; }
.quote-step {
  display: block;
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.quote-card h3 {
  font-size: 28px;
  line-height: 1.15;
  margin-bottom: 8px;
}
.quote-card-head p {
  color: var(--ink-3);
  font-size: 13px;
}
.quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-field-wide { grid-column: 1 / -1; }
.form-field label {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}
.form-field label span,
.form-required span { color: #b26a00; }
.form-field label small {
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 500;
}
.form-field input {
  width: 100%;
  min-height: 52px;
  border: 1px solid #d9d5cc;
  border-radius: 4px;
  background: #faf9f6;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  padding: 13px 15px;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.form-field input::placeholder { color: #9b978e; }
.form-field input:hover { border-color: #b7b1a5; }
.form-field input:focus {
  background: #fff;
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(255,196,46,.22);
}
.form-required {
  align-self: center;
  margin: 0;
  color: var(--ink-3);
  font-size: 11px;
}
.quote-submit {
  min-height: 52px;
  border: 2px solid var(--accent);
  border-radius: 0;
  background: var(--accent);
  color: var(--accent-fg);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 13px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: background .15s, color .15s, transform .15s;
}
.quote-submit:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--accent);
  transform: translateY(-1px);
}
.quote-submit:focus-visible {
  outline: 3px solid rgba(26,26,26,.3);
  outline-offset: 3px;
}
.form-privacy,
.form-status {
  grid-column: 1 / -1;
  margin: -6px 0 0;
  color: var(--ink-3);
  font-size: 10.5px;
  line-height: 1.5;
}
.form-status {
  min-height: 16px;
  margin-top: -14px;
  color: var(--gold-dark);
  font-weight: 600;
}

/* ============================================
   ALAN
   ============================================ */
.alan { background: var(--ink); color: var(--cream-2); }
.alan-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  min-height: 420px;
}
.alan .photo {
  border-right: 2px solid var(--accent);
  overflow: hidden;
}
.alan .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.alan .body {
  padding: 64px 64px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}
.alan .eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.alan h2 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.alan p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--cream-3);
  max-width: 520px;
}
.alan .signature {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 22px;
  color: var(--accent);
  margin-top: 6px;
}
.alan .contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.alan .contact .pill {
  font-size: 12px;
  font-weight: 500;
  padding: 9px 16px;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  color: var(--cream-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s, color 0.15s;
}
.alan .contact .pill:hover { background: var(--accent); color: var(--accent-fg); }
.alan .contact .pill.wa {
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 700;
}
.alan .contact .pill.wa::before {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--wa);
}
.alan .contact .pill.wa:hover { background: var(--wa); color: #fff; }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: #0e0e0e; color: #d4cfbf; padding: 56px 0 24px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid #2a2a2a;
}
.footer h5 {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.footer ul li {
  font-size: 13px;
  line-height: 1.85;
  color: #d4cfbf;
}
.footer ul a:hover { color: var(--accent); }
.footer .brand-block { display: flex; gap: 14px; align-items: flex-start; }
.footer .brand-block .logo {
  width: 56px; height: 56px;
  background: var(--accent);
  color: var(--accent-fg);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 24px;
  flex-shrink: 0;
}
.footer .brand-block .fname {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--cream-2);
}
.footer .brand-block .fsub {
  font-size: 12px;
  color: #888;
  margin-top: 6px;
  line-height: 1.55;
}
.footer-bottom {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  padding-top: 20px;
  font-size: 11px;
  color: #888;
  letter-spacing: 0.04em;
}
.footer .socials { display: flex; gap: 8px; }
.footer .socials .ic {
  width: 30px; height: 30px;
  border: 1px solid #555;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #aaa;
  transition: border-color 0.15s, color 0.15s;
}
.footer .socials .ic:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================
   FAB · WHATSAPP
   ============================================ */
.fab {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.fab-social {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform 0.15s, box-shadow 0.15s;
}
.fab-social:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,0.3); }
.fab-social svg { width: 22px; height: 22px; fill: currentColor; }
.fab-social.li { background: #0A66C2; }
.fab-social.fb { background: #1877F2; }
.fab-social.ig {
  background: radial-gradient(circle at 28% 108%, #FED576 0%, #F47133 26%, #BC3081 60%, #4C63D2 90%);
}

.fab .bubble {
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 10px;
  white-space: nowrap;
  position: relative;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  margin-right: 16px;
  line-height: 1.25;
}
.fab .bubble small {
  display: block;
  font-weight: 400;
  font-size: 10.5px;
  color: var(--cream-3);
  margin-top: 2px;
  letter-spacing: 0.02em;
}
.fab .bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 22px;
  width: 0; height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 8px solid var(--ink);
}

.fab-btn {
  background: var(--wa);
  color: #fff;
  border-radius: 999px;
  padding: 12px 22px 12px 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.35), 0 2px 6px rgba(0,0,0,0.2);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  line-height: 1;
  transition: transform 0.15s, box-shadow 0.15s;
}
.fab-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(37, 211, 102, 0.45), 0 2px 6px rgba(0,0,0,0.2); }
.fab-btn .wa-ico {
  width: 26px; height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fab-btn .wa-ico svg { width: 100%; height: 100%; fill: #fff; }
.fab-btn .stack { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.fab-btn .number {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.02em;
  opacity: 0.9;
  margin-top: 2px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-slide { grid-template-columns: 1fr; min-height: auto; }
  .hero-slide .slide-text { padding: 56px 32px 32px; }
  .hero-slide .slide-img { min-height: 320px; }

  .cat-grid { grid-template-columns: repeat(2, 1fr); }

  .xcmg { padding: 96px 0; }
  .xcmg .copy { max-width: 460px; }

  .quote-inner { grid-template-columns: 1fr; gap: 36px; }
  .quote-intro { text-align: center; }
  .quote-intro p { margin-left: auto; margin-right: auto; }
  .quote-machine { justify-content: center; height: 190px; }
  .quote-machine img { object-position: center; max-height: 190px; }
  .quote-direct { justify-content: center; }

  .alan-inner { grid-template-columns: 1fr; }
  .alan .photo { aspect-ratio: 4/3; border-right: none; border-bottom: 2px solid var(--accent); }
  .alan .body { padding: 40px 32px; }

  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }

  /* nav collapses to hamburger */
  .nav { padding: 12px 20px; gap: 12px; }
  .nav .brand-line .sub { display: none; }
  .nav-phone { display: none; }
  .nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    margin-left: auto;
    cursor: pointer;
  }
  .nav-burger span {
    display: block;
    height: 2.5px;
    background: var(--cream-2);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
  }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    border-bottom: 2px solid var(--accent);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s;
  }
  .nav-menu > ul {
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px 0;
  }
  .nav-menu > ul > li > a {
    display: block;
    padding: 12px 24px;
    font-size: 14px;
  }
  .nav-menu .drop {
    position: static;
    display: flex;
    border: none;
    padding: 0 0 4px 36px;
    box-shadow: none;
    background: transparent;
  }
  .nav-menu .drop a { padding: 6px 0; font-size: 13px; color: var(--cream-3); }
  .nav-menu .has-drop > a::after { content: ''; }
  .nav-toggle:checked ~ .nav-menu { max-height: 80vh; overflow-y: auto; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  /* hero */
  .hero-slide .slide-text { padding: 40px 20px 24px; gap: 16px; }
  .hero-slide h1 { font-size: 34px; }
  .hero-slide p { font-size: 14px; }
  .btn-ghost-yellow { padding: 12px 22px; font-size: 12px; }
  .hero-slide .slide-img { min-height: 260px; }

  /* sections */
  .categorias, .xcmg, .quote { padding: 48px 0; }
  .xcmg::after { background: rgba(20,18,14,.72); }
  .xcmg::before { background-position: center 40%; }
  .xcmg .copy { max-width: none; }
  .section-head h2, .xcmg h2, .alan h2 { font-size: 28px; }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cat-card { padding: 12px; }
  .cat-card .cat-name { font-size: 16px; }
  .cat-card.cat-all .label { font-size: 18px; }
  .cat-card.cat-all .arrow { font-size: 34px; }

  .xcmg .stats { grid-template-columns: repeat(3, auto); gap: 18px; }
  .xcmg .stat .n { font-size: 26px; }

  .quote-inner { gap: 24px; }
  .quote-intro h2 { font-size: 32px; }
  .quote-intro p { font-size: 14px; }
  .quote-machine { height: 145px; margin: 6px 0; }
  .quote-machine img { max-height: 150px; }
  .quote-card { padding: 28px 20px; }
  .quote-card h3 { font-size: 24px; }
  .quote-form { grid-template-columns: 1fr; }
  .form-field-wide,
  .form-privacy,
  .form-status { grid-column: auto; }
  .quote-submit { width: 100%; }

  .alan .body { padding: 32px 20px; }
  .alan .signature { font-size: 20px; }

  .footer { padding: 40px 0 20px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 14px; }

  /* compact FAB on mobile */
  .fab { bottom: 14px; right: 14px; gap: 8px; }
  .fab .bubble { display: none; }
  .fab-social { width: 38px; height: 38px; border-radius: 8px; }
  .fab-social svg { width: 18px; height: 18px; }
  .fab-btn { padding: 0; width: 56px; height: 56px; justify-content: center; }
  .fab-btn .stack { display: none; }
  .fab-btn .wa-ico { width: 28px; height: 28px; }
}

@media (max-width: 480px) {
  .cat-grid { grid-template-columns: 1fr; }
  .xcmg .stats { grid-template-columns: repeat(2, auto); }
}
