/* ============================================================
   BENJUMA — Hoja de estilos
   Sitio estático. Sin dependencias externas ni JavaScript.
   1) Variables  2) Base  3) Utilidades  4) Componentes
   5) Secciones  6) Responsive
   ============================================================ */

/* ---------- 1) Variables ---------- */
:root {
  --brand:        #14432F;
  --brand-soft:   #1E5A41;
  --brand-tint:   #EDF4EF;
  --accent:       #C97A12;
  --accent-soft:  #E8A33D;

  --ink:          #1C1A17;
  --ink-soft:     #4A453D;
  --muted:        #7A736A;

  --bg:           #FBF8F2;
  --surface:      #FFFFFF;
  --surface-alt:  #F4F1E9;
  --line:         #E5DFD3;

  --radius:       16px;
  --radius-sm:    10px;
  --shadow:       0 1px 2px rgba(28, 26, 23, .05), 0 12px 30px -20px rgba(28, 26, 23, .38);
  --shadow-hover: 0 2px 6px rgba(28, 26, 23, .07), 0 22px 44px -24px rgba(28, 26, 23, .5);
  --shadow-img:   0 2px 4px rgba(28, 26, 23, .06), 0 28px 60px -30px rgba(28, 26, 23, .55);

  --maxw:         1140px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}

/* ---------- 2) Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.18; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 1.25rem + 3vw, 3.25rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.6rem, 1.15rem + 1.7vw, 2.25rem); letter-spacing: -.012em; }
h3 { font-size: 1.14rem; margin-bottom: .45rem; }

p { margin: 0 0 1rem; }
a { color: var(--brand-soft); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

img, svg { max-width: 100%; }
img { display: block; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

::selection { background: var(--accent-soft); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 3) Utilidades ---------- */
.container { width: min(var(--maxw), 100% - 3rem); margin-inline: auto; }

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--surface-alt); border-block: 1px solid var(--line); }

.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { margin-bottom: .4rem; }
.section-sub { color: var(--ink-soft); margin: 0; }

.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 .8rem;
}

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .82rem 1.45rem;
  border: 1px solid transparent; border-radius: 999px;
  font: inherit; font-size: .95rem; font-weight: 600; line-height: 1;
  cursor: pointer; transition: background .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -14px rgba(20, 67, 47, .9); }
.btn-primary:hover { background: var(--brand-soft); }
.btn-ghost { background: rgba(255, 255, 255, .7); color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); background: var(--surface); }
.btn-sm { padding: .6rem 1.05rem; font-size: .88rem; }
.btn-block { width: 100%; margin-top: .6rem; }

/* ---------- 4) Componentes ---------- */
/* Marca */
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--brand); }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-flex; color: var(--brand); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--serif); font-size: 1.3rem; letter-spacing: .06em; }
.brand-text small { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* 带图卡片 */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .22s, box-shadow .22s, border-color .22s;
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: #d8d0c0; }
.card-thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-alt); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card-thumb img { transform: scale(1.06); }
.card-body { padding: 1.25rem 1.35rem 1.4rem; }
.card-body h3 { margin-bottom: .35rem; }
.card-body p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* 面板 */
.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.85rem; box-shadow: var(--shadow);
}
.panel h3 { margin-top: 0; }

/* 标签 */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li {
  padding: .42rem .85rem; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, .75); font-size: .82rem; font-weight: 500; color: var(--ink-soft);
}

/* 优势列表 */
.features { margin-top: 1.5rem; }
.features li { display: flex; gap: .9rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.features li:first-child { border-top: 0; padding-top: 0; }
.feature-ico {
  flex: 0 0 40px; width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 11px; background: var(--brand-tint); color: var(--brand);
}
.features strong { display: block; font-size: .98rem; }
.features span { font-size: .93rem; color: var(--ink-soft); }

/* 询价清单 */
.checklist-box {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.35rem 1.5rem; margin: 1.6rem 0 2rem;
}
.checklist-box > strong { display: block; font-size: .95rem; margin-bottom: .35rem; }
.checklist li {
  position: relative; margin-top: .5rem; padding-left: 1.7rem;
  font-size: .94rem; color: var(--ink-soft);
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 1.05em; height: 1.05em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314432F' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* 提示条 */
.note {
  margin: 2rem 0 0; padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent-soft); background: rgba(232, 163, 61, .09);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-soft); font-size: .93rem;
}
.note a { font-weight: 600; }

/* 联系方式列表 */
.contact-list { display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list strong {
  display: block; font-size: .8rem; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); font-weight: 700;
}
.contact-list a, .contact-list span { font-size: 1rem; }
.contact-ico {
  flex: 0 0 40px; width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 11px; background: var(--brand-tint); color: var(--brand);
}

/* ---------- 5) Secciones ---------- */
/* 页头 */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 248, 242, .9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a { color: var(--ink-soft); font-size: .95rem; font-weight: 500; }
.site-nav a:hover { color: var(--brand); text-decoration: none; }
.site-nav .btn { color: #fff; }

/* 汉堡按钮（仅窄屏显示） */
.nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.nav-burger { display: none; cursor: pointer; padding: .5rem; border-radius: 8px; }
.nav-burger span { display: block; width: 22px; height: 2px; margin: 5px 0; background: var(--brand); border-radius: 2px; transition: transform .2s, opacity .2s; }

/* 首屏 */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(2.75rem, 6vw, 5rem) 0 clamp(2.75rem, 6vw, 5.5rem);
  background:
    radial-gradient(900px 460px at 92% -20%, rgba(232, 163, 61, .22), transparent 60%),
    radial-gradient(700px 400px at 0% 10%, rgba(20, 67, 47, .10), transparent 60%),
    var(--bg);
}
.hero-split {
  display: grid; grid-template-columns: 1.02fr .98fr;
  gap: clamp(2rem, 5vw, 3.75rem); align-items: center;
}
.hero h1 { margin-bottom: 1rem; }
.hero .lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 1.75rem; }
.hero-media {
  border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-img);
  border: 6px solid #fff; aspect-ratio: 4 / 3; background: var(--surface-alt);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* 单图 + 文字双栏 */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.split-media {
  border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-img);
  border: 6px solid #fff; aspect-ratio: 4 / 3; background: var(--surface-alt);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }

/* 联系 */
.contact-grid { align-items: center; gap: clamp(2rem, 5vw, 3.5rem); }
.cta-panel { background: var(--brand); border-color: var(--brand); color: #f2efe7; }
.cta-panel h3 { color: #fff; }
.cta-panel p { color: rgba(255, 255, 255, .82); }
.mail-big {
  display: block; margin: 1.25rem 0 .25rem;
  font-family: var(--serif); font-size: clamp(1.05rem, .8rem + 1vw, 1.35rem);
  color: var(--accent-soft); word-break: break-all;
}
.mail-big:hover { color: #fff; }
.cta-panel .btn-primary { background: var(--accent); color: #fff; box-shadow: none; }
.cta-panel .btn-primary:hover { background: #b56c0e; }

/* 页脚 */
.site-footer { background: #10241B; color: rgba(255, 255, 255, .74); padding: 2.5rem 0 1.4rem; font-size: .92rem; }
.site-footer a { color: var(--accent-soft); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.footer-line { margin: 0; color: rgba(255, 255, 255, .68); }
.brand-footer .brand-text strong { color: #fff; }
.brand-footer .brand-text small { color: rgba(255, 255, 255, .5); }
.footer-bottom { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .13); }
.footer-bottom p { margin: 0; font-size: .84rem; color: rgba(255, 255, 255, .5); }

/* ---------- 6) Responsive ---------- */
/* 导航折叠为汉堡菜单（阈值 860px，避免平板宽度下导航拥挤） */
@media (max-width: 860px) {
  .nav-burger { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    display: none;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: .5rem 1rem 1.15rem; box-shadow: var(--shadow-hover);
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .site-nav a { padding: .85rem .25rem; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; margin-top: .85rem; text-align: center; }

  /* 汉堡 → 关闭态（纯 CSS） */
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* 双栏转单栏 */
@media (max-width: 900px) {
  .hero-split, .split { grid-template-columns: 1fr; }
  .hero-media, .split-media { aspect-ratio: 16 / 10; }
  /* 单栏时文字在前、图片在后 */
  .split-copy { order: 1; }
  .split-media { order: 2; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .container { width: min(var(--maxw), 100% - 2rem); }
  .hero-actions .btn { flex: 1 1 100%; }
  .footer-row { flex-direction: column; align-items: flex-start; gap: .75rem; }
}

@media print {
  .site-header, .hero-actions, .cta-panel { display: none; }
  body { background: #fff; }
}
