:root {
  --bg:      #101114;
  --bg-2:    #16181c;
  --panel:   #1c1f24;
  --line:    #2a2e35;
  --text:    #eceef1;
  --dim:     #9aa1ab;
  --brass:   #f0b429;
  --brass-d: #c98f10;
  --wa:      #25d366;
  --radius:  16px;
  --wrap:    1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -0.02em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brass); color: #171717; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

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

.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16, 17, 20, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.top-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 66px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-key { width: 30px; height: 30px; color: var(--brass); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 19px; letter-spacing: 0.14em; font-weight: 800; }
.brand-text small { font-size: 10.5px; letter-spacing: 0.17em; text-transform: uppercase; color: var(--dim); }

.top-nav { display: flex; align-items: center; gap: 24px; font-size: 14.5px; }
.top-nav a { color: var(--dim); text-decoration: none; transition: color .15s; }
.top-nav a:hover { color: var(--text); }
.top-nav .top-call { color: var(--text); }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 20px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 650; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, filter .15s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 19px; height: 19px; fill: currentColor; flex: none; }

.btn-primary {
  background: linear-gradient(180deg, var(--brass), var(--brass-d));
  color: #191919;
  box-shadow: 0 8px 22px -12px rgba(240, 180, 41, 0.9);
}
.btn-primary:hover { filter: brightness(1.07); }

.btn-wa { background: var(--wa); color: #06331a; }
.btn-wa:hover { filter: brightness(1.07); }

.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); padding: 11px 16px; }
.btn-ghost:hover { border-color: #464d58; background: #1b1e23; }

.btn-big { padding: 16px 24px; font-size: 16px; }

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

.hero {
  position: relative;
  padding: clamp(46px, 8vw, 92px) 0 clamp(40px, 6vw, 72px);
  background:
    radial-gradient(900px 420px at 78% -12%, rgba(240, 180, 41, 0.13), transparent 62%),
    radial-gradient(700px 380px at 6% 8%, rgba(96, 130, 255, 0.07), transparent 60%);
}

.hero-in {
  display: grid; grid-template-columns: 1.25fr 0.85fr; gap: clamp(28px, 5vw, 62px);
  align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 20px;
  font-size: 13px; letter-spacing: 0.04em; color: var(--dim);
  border: 1px solid var(--line); background: #17191d;
  padding: 7px 14px; border-radius: 999px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--wa);
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

h1 { font-size: clamp(34px, 5.6vw, 58px); font-weight: 800; }
.hl {
  background: linear-gradient(180deg, #ffd36b, var(--brass-d));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.lede { font-size: clamp(16px, 1.6vw, 18.5px); color: #c2c8d0; max-width: 54ch; margin: 20px 0 28px; }
.lede strong { color: var(--text); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 18px 0 0; font-size: 14.5px; color: var(--dim); }
.hero-note a { color: #cfd5dd; text-decoration-color: #4a515b; text-underline-offset: 3px; }
.hero-note a:hover { color: var(--brass); }

/* Padlock illustration + contact card */

.card-lock {
  background: linear-gradient(180deg, #1b1e23, #15171b);
  border: 1px solid var(--line); border-radius: 22px;
  padding: 30px 26px 24px; position: relative; overflow: hidden;
}

.lock-art { position: relative; height: 128px; display: grid; place-items: center; margin-bottom: 22px; }
.lock-shackle {
  width: 54px; height: 54px; border: 7px solid #8d949e; border-bottom: none;
  border-radius: 28px 28px 0 0; margin-bottom: -6px;
  animation: shackle 5s ease-in-out infinite;
}
.lock-body {
  width: 92px; height: 70px; border-radius: 13px;
  background: linear-gradient(180deg, #ffd36b, var(--brass-d));
  display: grid; place-items: center;
  box-shadow: inset 0 -8px 16px -8px rgba(0, 0, 0, 0.45), 0 16px 34px -18px rgba(240, 180, 41, 0.75);
}
.keyhole { width: 13px; height: 13px; border-radius: 50%; background: #3a2b05; position: relative; }
.keyhole::after {
  content: ""; position: absolute; left: 50%; top: 9px; transform: translateX(-50%);
  width: 6px; height: 14px; border-radius: 0 0 3px 3px; background: #3a2b05;
}
.lock-glow {
  position: absolute; inset: auto 0 -30px; height: 90px;
  background: radial-gradient(60% 100% at 50% 100%, rgba(240, 180, 41, 0.22), transparent 70%);
  pointer-events: none;
}
@keyframes shackle {
  0%, 82%, 100% { transform: translateY(0); }
  88%, 94%      { transform: translateY(-9px); }
}

.card-facts { margin: 0; display: grid; gap: 14px; }
.card-facts > div { display: grid; gap: 2px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.card-facts > div:last-child { border-bottom: none; padding-bottom: 0; }
.card-facts dt { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--dim); }
.card-facts dd { margin: 0; font-size: 16.5px; font-weight: 600; }
.card-facts dd a { text-decoration: none; }
.card-facts dd a:hover { color: var(--brass); }

/* ---------- Strip ---------- */

.strip { border-block: 1px solid var(--line); background: var(--bg-2); }
.strip-in { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip-in > div {
  padding: 22px 6px; display: grid; gap: 3px; text-align: center;
  border-left: 1px solid var(--line);
}
.strip-in > div:first-child { border-left: none; }
.strip-in strong { font-size: 15.5px; }
.strip-in span { font-size: 13.5px; color: var(--dim); }

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

.section { padding: clamp(54px, 8vw, 92px) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.kicker {
  margin: 0 0 12px; font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brass); font-weight: 700;
}
.h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 780; }
.sub { color: var(--dim); margin: 14px 0 34px; max-width: 58ch; font-size: 16px; }
.sub a { color: var(--brass); }

/* ---------- Services ---------- */

.grid-serv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.serv {
  appearance: none; text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px 22px; display: grid; gap: 9px; align-content: start;
  transition: border-color .16s, transform .16s, background .16s;
}
.serv:hover { border-color: rgba(240, 180, 41, 0.5); transform: translateY(-3px); background: #20242a; }
.serv:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.serv[aria-pressed="true"] { border-color: var(--brass); background: #23241f; }

.serv-ico { width: 42px; height: 42px; border-radius: 11px; background: #23272e; display: grid; place-items: center; margin-bottom: 4px; }
.serv-ico svg { width: 23px; height: 23px; fill: none; stroke: var(--brass); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.serv strong { font-size: 17.5px; }
.serv-txt { color: var(--dim); font-size: 14.5px; line-height: 1.55; }

/* ---------- Form ---------- */

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 760px; }
.field { display: grid; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; color: var(--dim); font-weight: 600; }
.opt { font-weight: 400; opacity: 0.7; }

input, select, textarea {
  width: 100%; font: inherit; color: var(--text);
  background: #14161a; border: 1px solid var(--line); border-radius: 11px;
  padding: 13px 14px; transition: border-color .15s;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brass); }
input::placeholder, textarea::placeholder { color: #666d77; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #8b929c 50%), linear-gradient(135deg, #8b929c 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }

.preview {
  background: #14161a; border: 1px dashed var(--line); border-radius: 12px; padding: 16px 18px;
}
.preview-label { margin: 0 0 7px; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.preview-msg { margin: 0; font-size: 14.5px; color: #c6ccd4; white-space: pre-wrap; }

.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }

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

.contacto { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 56px); align-items: start; }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-list li {
  display: flex; align-items: center; gap: 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 13px; padding: 15px 16px;
}
.c-ico { width: 38px; height: 38px; border-radius: 10px; background: #23272e; display: grid; place-items: center; flex: none; }
.c-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--brass); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-list li > div { flex: 1 1 auto; min-width: 0; display: grid; gap: 1px; }
.c-label { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.c-value { font-size: 15.5px; font-weight: 600; text-decoration: none; word-break: break-word; }
.c-value:hover { color: var(--brass); }

.copy {
  flex: none; appearance: none; font: inherit; font-size: 12.5px; cursor: pointer;
  background: transparent; color: var(--dim); border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 11px; transition: color .15s, border-color .15s;
}
.copy:hover { color: var(--text); border-color: #464d58; }

.map-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.map-link { position: relative; display: block; text-decoration: none; min-height: 290px; }
.map-grid {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(240, 180, 41, 0.07) 1px, transparent 1px) 0 0 / 100% 44px,
    linear-gradient(90deg, rgba(240, 180, 41, 0.07) 1px, transparent 1px) 0 0 / 44px 100%,
    radial-gradient(520px 260px at 50% 42%, rgba(240, 180, 41, 0.13), transparent 68%),
    #15171b;
}
.map-pin { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); }
.map-pin svg { width: 44px; height: 44px; fill: none; stroke: var(--brass); stroke-width: 1.5; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5)); }
.map-label {
  position: absolute; inset: auto 0 0; display: grid; gap: 2px;
  padding: 16px 18px; font-size: 13.5px; color: var(--dim);
  background: linear-gradient(180deg, transparent, rgba(16, 17, 20, 0.92) 42%);
}
.map-label strong { font-size: 16px; color: var(--text); }
.map-link:hover .map-label strong { color: var(--brass); }

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

.foot { border-top: 1px solid var(--line); background: var(--bg-2); padding: 30px 0 calc(30px + env(safe-area-inset-bottom)); }
.foot-in { display: grid; gap: 6px; font-size: 14px; }
.foot-in p { margin: 0; }
.foot-dim { color: var(--dim); font-size: 13px; }

/* ---------- Sticky mobile call bar ---------- */

.callbar { display: none; }

/* ---------- Toast ---------- */

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 18px);
  background: #23272e; border: 1px solid var(--line); color: var(--text);
  padding: 11px 18px; border-radius: 11px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 80;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

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

@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; }
  .card-lock { order: -1; }
  .lock-art { height: 108px; }
  .grid-serv { grid-template-columns: repeat(2, 1fr); }
  .contacto { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .top-nav a:not(.top-call) { display: none; }
  .strip-in { grid-template-columns: 1fr; }
  .strip-in > div { border-left: none; border-top: 1px solid var(--line); padding: 15px 6px; }
  .strip-in > div:first-child { border-top: none; }
  .grid-serv { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .cta-row .btn { flex: 1 1 100%; }
  body { padding-bottom: 78px; }

  .callbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(16, 17, 20, 0.94);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
  }
  .callbar .btn { flex: 1; }
  .toast { bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
