:root {
  --ink: #0b2a55;
  --ink-soft: #3d4a66;
  --muted: #6b7489;
  --bg: #fbfaf7;
  --bg-alt: #f2efe8;
  --line: #e3ded3;
  --accent: #c4a06a;
  --accent-dark: #9c7b45;
  --navy: #08203f;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 33, 61, .08);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: inherit; }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-dark); margin-bottom: .9rem;
}
.eyebrow--light { color: var(--accent); }
.lead { font-size: 1.15rem; max-width: 34em; }

/* Botones */
.btn {
  display: inline-block; padding: .9rem 1.5rem; border-radius: 999px;
  background: var(--ink); color: var(--white); text-decoration: none;
  font-weight: 600; font-size: .95rem; border: 2px solid var(--ink);
  cursor: pointer; transition: transform .15s, background .15s, color .15s;
  font-family: var(--sans);
}
.btn:hover { transform: translateY(-2px); background: var(--navy); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--small { padding: .55rem 1.1rem; font-size: .88rem; }
.btn--block { width: 100%; background: var(--accent); border-color: var(--accent); color: var(--navy); }
.btn--block:hover { background: #d2b07c; }

/* Navegación */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand__logo { width: 64px; height: 64px; object-fit: contain; display: block; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: var(--ink); color: var(--accent); font-family: var(--serif); font-weight: 600; font-size: 1.05rem;
}
.brand__text { font-size: .82rem; line-height: 1.15; color: var(--ink-soft); }
.brand__text strong { color: var(--ink); font-size: .95rem; }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a:not(.btn) { text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--ink-soft); }
.nav__links a:not(.btn):hover { color: var(--ink); }
.nav__toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero { padding: clamp(4rem, 9vw, 7rem) 0 clamp(4rem, 8vw, 6rem); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center; }
.hero__cta { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 2rem; }
.hero__art { display: flex; justify-content: center; }
.hero__logo {
  background: var(--white); border: 1px solid var(--line); border-radius: 24px;
  padding: 2rem; box-shadow: var(--shadow); width: 100%; max-width: 440px; position: relative;
}
.hero__logo::after {
  content: ""; position: absolute; inset: auto -10px -10px auto; width: 60%; height: 60%;
  border-radius: 24px; background: var(--accent); opacity: .18; z-index: -1;
}
.hero__logo img { width: 100%; height: auto; display: block; }
.brand__logo { }

/* Secciones */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 40rem; margin-bottom: 3rem; }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; }

/* Tarjetas */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.7rem; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card p { margin: 0; font-size: .97rem; }
.card__icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--bg-alt);
  display: grid; place-items: center; margin-bottom: 1.3rem;
}
.card__icon svg {
  width: 24px; height: 24px; fill: none; stroke: var(--accent-dark); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Pasos */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: s; }
.steps li { border-top: 2px solid var(--ink); padding-top: 1.4rem; }
.steps__num { display: block; font-family: var(--serif); font-size: 2rem; color: var(--accent); margin-bottom: .4rem; }
.steps p { font-size: .97rem; margin: 0; }

/* Contacto */
.contact { background: var(--navy); color: #c9d0de; }
.contact h2 { color: var(--white); }
.contact__list { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .8rem; }
.contact__list a {
  display: flex; align-items: center; gap: .9rem; color: var(--white); text-decoration: none;
  padding: .9rem 1.1rem; border: 1px solid rgba(255,255,255,.16); border-radius: 12px;
  transition: border-color .15s, background .15s; overflow-wrap: anywhere;
}
.contact__list a:hover { border-color: var(--accent); background: rgba(255,255,255,.04); }
.contact__list small { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .1rem; }
.contact__list svg { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.form { background: var(--white); border-radius: var(--radius); padding: 2rem; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.form label { display: block; margin-bottom: 1.1rem; }
.form label span { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: .35rem; }
.form label em { font-weight: 400; color: var(--muted); font-style: normal; }
.form input, .form textarea {
  width: 100%; padding: .8rem .95rem; font: inherit; font-size: .97rem; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
  transition: border-color .15s, box-shadow .15s;
}
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(196,160,106,.22); background: var(--white);
}
.form__alert { padding: .85rem 1rem; border-radius: 10px; font-size: .93rem; margin-bottom: 1.2rem; }
.form__alert--ok { background: #e8f5ec; color: #1e6b3a; }
.form__alert--err { background: #fdecec; color: #9b2c2c; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Pie */
.footer { background: var(--navy); border-top: 1px solid rgba(255,255,255,.08); color: #8d97ad; font-size: .88rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; padding: 1.6rem 0; gap: 1rem; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); }

/* Responsive */
@media (max-width: 960px) {
  .hero__inner, .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__logo { max-width: 320px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 3.5rem 0; }
  .section__head { margin-bottom: 2rem; }
  .hero { padding: 2.5rem 0 3.5rem; }
  .hero__inner { gap: 2rem; }
  .hero__art { order: -1; }
  .hero__logo { max-width: 260px; padding: 1.2rem; margin-inline: auto; }
  .hero__logo::after { display: none; }
  .split { gap: 1rem; }
  .contact .split, .split:has(form) { gap: 2rem; }
  .brand__logo { width: 52px; height: 52px; }
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 80px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1.25rem;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a:not(.btn) { padding: .8rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav__links .btn { margin-top: 1rem; }
  .grid, .steps { grid-template-columns: 1fr; }
  .form { padding: 1.5rem; }
}

@media (max-width: 420px) {
  .container { width: calc(100% - 2rem); }
  .hero__cta .btn { flex: 1 1 100%; text-align: center; }
  .brand__text { font-size: .75rem; }
  .brand__text strong { font-size: .85rem; }
  .card { padding: 1.5rem 1.3rem; }
  .form { padding: 1.25rem; }
  .contact__list a { padding: .8rem .9rem; font-size: .92rem; }
  .footer__inner { flex-direction: column; text-align: center; }
}
/* Evita zoom automático de iOS en campos */
@media (max-width: 720px) { .form input, .form textarea { font-size: 16px; } }
img { max-width: 100%; }
html, body { overflow-x: hidden; }
