:root {
  --bg: #f9f9f9;
  --bg-alt: #eef0f6;
  --ink: #111111;
  --muted: #4a4a4a;
  --wine: #1f2f6b;      /* azul marino: color principal de jesusledesma.es */
  --wine-dark: #16224f;
  --gold: #1f2f6b;      /* todo en la gama del azul marino */
  --card: #ffffff;
  --line: #e2e4ea;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--wine); }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-weight: 700; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 400; max-width: 22ch; margin-left: auto; margin-right: auto; }
h1 strong { font-weight: 800; }
h2 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); text-transform: uppercase; letter-spacing: .14em; color: var(--wine); text-shadow: 0 2px 6px rgba(31, 47, 107, .18); }
h3 { font-size: 1.3rem; }

/* Cabecera */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(249, 249, 249, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--wine); color: #fff; font: 700 .85rem "Plus Jakarta Sans", sans-serif; letter-spacing: .5px;
}
.brand__name { font-weight: 600; white-space: nowrap; }
.brand__name em { font-style: normal; color: var(--wine); }
.nav { display: flex; align-items: center; gap: 20px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--wine); }
.nav__cta { padding: 7px 14px; border: 1px solid var(--wine); border-radius: var(--radius); color: var(--wine) !important; }

/* Portada */
.hero { padding: 80px 0 72px; text-align: center; }
.hero .lead { margin-left: auto; margin-right: auto; }
.hero__actions { justify-content: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .2em; font-size: .9rem; font-weight: 700; color: var(--wine); text-shadow: 0 2px 6px rgba(31, 47, 107, .18); margin: 0 0 14px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; margin: 0 0 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 13px 22px; border-radius: var(--radius); font-weight: 600; text-decoration: none; text-transform: uppercase; letter-spacing: .05em; font-size: .92rem;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--wine); color: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, .25); }
.btn--primary:hover { background: var(--wine-dark); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); background: var(--card); }
.btn--small { padding: 10px 18px; font-size: .95rem; background: var(--wine); color: #fff; }

/* Secciones */
.section { padding: 72px 0; scroll-margin-top: 64px; }
.section--alt { background: var(--bg-alt); }
.section__intro { color: var(--muted); margin: -4px 0 32px; max-width: 60ch; }
.section h2, .section > .wrap > .section__intro { text-align: center; margin-left: auto; margin-right: auto; }

/* Tarjetas de trabajos */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(31, 47, 107, .08);
}
.card__thumb {
  aspect-ratio: 16 / 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: #fff;
}
.card__thumb--cafe { background: var(--wine); }
.card__thumb--soon { background: var(--bg-alt); color: var(--wine); border-bottom: 1px solid var(--line); }
.thumb__label { font-weight: 700; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .14em; }
.card__body { padding: 22px; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.card__body p { color: var(--muted); margin: 0 0 18px; }
.card__body .btn, .card__body .badge { margin-top: auto; }
.card__tag { font-size: .78rem !important; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: var(--gold) !important; margin: 0 0 6px !important; }
.badge { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--bg-alt); color: var(--muted); font-size: .85rem; font-weight: 600; }

/* Servicios */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin: 8px 0 32px; }
.service { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.service p { color: var(--muted); margin: 0; }
.note { max-width: 70ch; margin: 0; }

/* Contacto */
.contact { text-align: center; display: flex; flex-direction: column; align-items: center; }

/* Formulario */
.form { width: 100%; max-width: 560px; text-align: left; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-weight: 600; font-size: .95rem; }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--wine); outline-offset: 1px; border-color: var(--wine); }
.field__error { display: none; color: #b42318; font-size: .85rem; }
.field--bad input, .field--bad textarea { border-color: #b42318; }
.field--bad .field__error { display: block; }
.form__submit { align-self: stretch; border: 0; cursor: pointer; font-family: inherit; }
.form__submit:disabled { opacity: .7; cursor: wait; transform: none; }
.form__status { margin: 0; min-height: 1.4em; font-weight: 600; text-align: center; }
.form__status--ok { color: #1a7f37; }
.form__status--error { color: #b42318; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact__mail { margin: 24px 0 0; color: var(--muted); }
.copyable { color: var(--wine); user-select: all; }

/* Pie */
.foot { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: .9rem; }
.foot p { margin: 0; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav a:not(.nav__cta) { display: none; }
  .brand__name { font-size: .95rem; }
  .hero { padding: 48px 0 52px; }
  .section { padding: 56px 0; }
  .hero__actions .btn { flex: 1; }
}
