/* ZilHa42 — Site vitrine public (www.zilha42.mx) */
:root {
  --teal: #127475; --teal-d: #0C5253; --teal-l: #14919B;
  --coral: #EF7A5A; --coral-d: #D9603F;
  --gold: #FFD86B; --sand: #F4ECD9;
  --ink: #162323; --muted: #5C6B6B;
  --bg: #FBF8F2; --white: #fff;
  --shadow: 0 10px 30px rgba(18,116,117,.12);
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
.container { width: min(1080px, 92vw); margin: 0 auto; }

/* ---------- En-tete ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,248,242,.86); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(18,116,117,.12);
}
.head-in { display: flex; align-items: center; gap: 16px; padding: 12px 0; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; text-decoration: none; color: var(--ink); }
.logo img { width: 34px; height: 34px; border-radius: 9px; }
.logo span { color: var(--coral); }
.head-spacer { flex: 1; }
.langs { display: flex; gap: 4px; }
.lang-btn {
  border: 1px solid rgba(18,116,117,.25); background: transparent; cursor: pointer;
  border-radius: 999px; padding: 5px 11px; font: inherit; font-size: .82rem; color: var(--muted);
}
.lang-btn.active { background: var(--teal); color: #fff; border-color: var(--teal); font-weight: 600; }
.btn {
  display: inline-block; border: none; cursor: pointer; text-decoration: none;
  background: var(--teal); color: #fff; font: inherit; font-weight: 600;
  padding: 12px 22px; border-radius: 999px; transition: background .15s, transform .12s;
}
.btn:hover { background: var(--teal-d); transform: translateY(-1px); }
.btn.coral { background: var(--coral); }
.btn.coral:hover { background: var(--coral-d); }
.btn.ghost { background: transparent; color: var(--teal); border: 1.5px solid var(--teal); }
.btn.ghost:hover { background: rgba(18,116,117,.08); }
.btn.sm { padding: 8px 16px; font-size: .9rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; text-align: center; padding: 64px 0 0; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(251,248,242,.82) 0%, rgba(251,248,242,.55) 40%, rgba(251,248,242,.15) 70%);
}
.hero-in { position: relative; z-index: 1; padding-bottom: 300px; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4rem); margin: 0 0 8px; letter-spacing: -1.5px; }
.hero h1 span { color: var(--coral); }
.hero .sub { font-size: clamp(1.05rem, 2.6vw, 1.35rem); color: var(--teal-d); font-weight: 600; margin: 0 0 6px; }
.hero .loc { color: var(--muted); margin: 0 0 26px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 62px 0; }
.sec-title { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 8px; letter-spacing: -.5px; }
.sec-lead { color: var(--muted); max-width: 62ch; margin: 0 0 30px; }
.center { text-align: center; }
.center .sec-lead { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.card {
  background: var(--white); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow); border: 1px solid rgba(18,116,117,.07);
}
.card .ico { font-size: 1.9rem; line-height: 1; display: block; margin-bottom: 10px; }
.card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- Bandeau quartier ---------- */
.hood {
  display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  background: var(--white); border-radius: var(--radius); padding: 26px 22px;
  box-shadow: var(--shadow); border: 1px solid rgba(18,116,117,.07);
}
.hood-item { text-align: center; }
.hood-item .ico { font-size: 1.7rem; display: block; margin-bottom: 6px; }
.hood-item .n { font-size: 1.55rem; font-weight: 800; color: var(--teal); letter-spacing: -.5px; display: block; }
.hood-item .lb { font-weight: 700; font-size: .95rem; margin: 2px 0 3px; }
.hood-item .ds { color: var(--muted); font-size: .84rem; margin: 0; }

/* ---------- Galerie vitrine ---------- */
.gal { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.gal figure { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); cursor: zoom-in; aspect-ratio: 4/3; background: var(--sand); }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gal figure:hover img { transform: scale(1.05); }
.gal-empty { color: var(--muted); font-style: italic; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.9); display: flex; align-items: center; justify-content: center; padding: 20px; }
.lightbox img { max-width: 96vw; max-height: 90vh; object-fit: contain; border-radius: 10px; }
.lightbox button { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 999px; border: none; background: rgba(255,255,255,.2); color: #fff; font-size: 1.1rem; cursor: pointer; }

/* ---------- Section app ---------- */
.app-sec { background: linear-gradient(160deg, var(--teal) 0%, var(--teal-d) 100%); color: #fff; }
.app-wrap { display: grid; gap: 34px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 820px) { .app-wrap { grid-template-columns: 1.15fr .85fr; } }
.app-sec .sec-title { color: #fff; }
.app-sec .sec-lead { color: rgba(255,255,255,.85); }
.app-list { list-style: none; padding: 0; margin: 0 0 26px; }
.app-list li { padding: 7px 0 7px 30px; position: relative; color: rgba(255,255,255,.94); }
.app-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 800; }
.phone {
  width: 215px; margin: 0 auto; background: #0b1f20; border-radius: 34px; padding: 11px;
  box-shadow: 0 24px 60px rgba(0,0,0,.42);
}
.phone-screen { border-radius: 25px; overflow: hidden; background: var(--bg); aspect-ratio: 9/17.5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 18px; text-align: center; }
.phone-screen img { width: 82px; border-radius: 20px; box-shadow: 0 8px 20px rgba(0,0,0,.22); }
.phone-screen .nm { font-weight: 800; color: var(--ink); font-size: 1.05rem; }
.phone-screen .tg { font-size: .74rem; color: var(--muted); }
.install-note { font-size: .86rem; color: rgba(255,255,255,.72); margin-top: 14px; }

/* ---------- Formulaire ---------- */
.form-card { max-width: 620px; margin: 0 auto; }
label { display: block; font-size: .87rem; color: var(--muted); margin: 12px 0 4px; font-weight: 600; }
input, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #d9e0dd; border-radius: 11px;
  font: inherit; background: #fff; color: var(--ink);
}
input:focus, textarea:focus { outline: 2px solid var(--teal-l); border-color: var(--teal-l); }
.two { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.form-msg { margin-top: 14px; padding: 11px 15px; border-radius: 11px; font-size: .92rem; }
.form-msg.ok { background: #dcf3e6; color: #14622f; }
.form-msg.err { background: #fbe0e1; color: #8a2a2e; }

/* ---------- Pied ---------- */
.site-foot { background: var(--ink); color: rgba(255,255,255,.7); padding: 34px 0; font-size: .88rem; }
.foot-in { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.site-foot a { color: var(--gold); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
