:root {
  /* Paleta de marca C: Grafito / Burdeos / Rosa Ceniza / Ceniza / Blanco */
  --graphite: #2b2527;
  --graphite-2: #3a3234;
  --accent: #6e2f3b;
  --accent-dark: #55222d;
  --accent-light: #c48a94;
  --white: #ffffff;
  --ink: #0e0e10;
  --muted: #55555b;
  --line: #b7abad;
  --line-soft: #e6e4e4;
  --shadow: 0 1px 2px rgba(43,37,39,.05), 0 8px 24px rgba(43,37,39,.06);
  --shadow-hover: 0 2px 4px rgba(43,37,39,.06), 0 14px 32px rgba(43,37,39,.1);
  --radius: 8px;
  --serif: "Jost", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: var(--sans);
  --header-h: 112px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.25rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); letter-spacing: -.005em; }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }

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

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--graphite); color: #fff;
  padding: .6rem 1rem; border-radius: var(--radius); text-decoration: none;
}
.skip:focus { top: 8px; }

.eyebrow {
  font-size: .78rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.25rem;
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.6rem;
  border: 1px solid var(--graphite); border-radius: var(--radius);
  background: var(--graphite); color: #fff; text-decoration: none; font: inherit; font-weight: 700;
  font-size: .95rem; letter-spacing: .02em; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: #151112; border-color: #151112; }
.btn--small { min-height: 44px; padding: .5rem 1.1rem; font-size: .88rem; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--graphite); }
.btn--ghost:hover { background: rgba(43,37,39,.08); color: var(--ink); border-color: var(--graphite); }

/* Header fijo */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line-soft); }
.topbar { background: var(--graphite); color: #e6e4e4; font-size: .82rem; }
.topbar__inner { display: flex; justify-content: flex-end; gap: 1.5rem; padding-block: .45rem; }
.topbar__link { text-decoration: none; }
.topbar__link:hover { color: var(--accent-light); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .9rem; }
.logo { display: inline-flex; line-height: 0; }
.logo img { height: 30px; width: auto; display: block; }
.footer .logo img { height: 84px; }
.nav__links { display: flex; gap: 1.75rem; margin-left: auto; }
.nav__links a { text-decoration: none; font-size: .92rem; font-weight: 700; color: var(--ink); padding-block: .6rem; border-bottom: 2px solid transparent; }
.nav__links a:hover { border-color: var(--graphite); }

main { padding-top: var(--header-h); }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--graphite); color: #fff; padding-block: clamp(5rem, 12vw, 9rem); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(43,37,39,.9) 0%, rgba(43,37,39,.7) 55%, rgba(43,37,39,.35) 100%); }
.hero h1 { color: #fff; max-width: 18ch; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--ink); background: var(--accent-light); padding: 0 .18em; border-radius: var(--radius); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero .eyebrow { color: var(--accent-light); }
.lead { font-size: 1.2rem; color: #e6e4e4; max-width: 46ch; }
.lead--dark { color: var(--muted); }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.hero .btn { background: #fff; border-color: #fff; color: var(--ink); }
.hero .btn:hover { background: var(--line); border-color: var(--line); }
.hero .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.hero .btn--ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }


/* Secciones */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
main > section + section { border-top: 1px solid var(--line-soft); }

.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split--top { align-items: start; }
.prose p { color: var(--muted); }

/* Imágenes */
.media, .banner { margin: 0; }
.media img, .banner img { display: block; width: 100%; height: auto; object-fit: cover; object-position: 50% 75%; border-radius: var(--radius); }
.media img { aspect-ratio: 4 / 3; object-position: 50% 50%; }
.banner img { aspect-ratio: 21 / 8; }
.banner { margin-bottom: 2rem; }
/* Foto de Empresas oculta hasta tener imagen propia: borrar la línea siguiente para mostrarla */
.banner { display: none; }

/* Frase destacada */
.statement { padding-block: clamp(3.5rem, 8vw, 6rem); }
.statement p { font-family: var(--serif); font-size: clamp(1.9rem, 4.5vw, 3.2rem); line-height: 1.2; letter-spacing: -.01em; color: var(--ink); max-width: 24ch; margin: 0; padding-left: 1.5rem; border-left: 3px solid var(--accent); }

/* Pasos */
.steps { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.steps li { border-top: 2px solid var(--accent); padding-top: 1.1rem; }
.steps__n { font-size: .85rem; letter-spacing: .16em; color: var(--muted); font-weight: 500; }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Listas con marca */
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding: .55rem 0 .55rem 1.75rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Tarjetas de áreas */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.card {
  text-align: left; font: inherit; color: inherit; background: var(--white); border: 1px solid var(--line-soft); box-shadow: var(--shadow); border-radius: var(--radius);
  padding: 0; overflow: hidden; cursor: pointer; display: flex; flex-direction: column;
  transition: border-color .2s, box-shadow .2s;
}
.card__img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 75%; display: block; }
/* Fotos de las tarjetas ocultas hasta tener imágenes propias: borrar la línea siguiente para mostrarlas */
.card__img { display: none; }
.card__body { padding: 1.5rem 1.75rem 1.75rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card:hover, .card:focus-visible { border-color: var(--line); box-shadow: var(--shadow-hover); }
.card h3 { margin: 0; }
.card__more { font-size: .85rem; font-weight: 700; color: var(--accent); margin-top: .5rem; }

/* Empresas */
.tags { color: var(--muted); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 2.5rem; }

/* Equipo */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 2.5rem; }
.person { background: var(--white); border: 1px solid var(--line-soft); box-shadow: var(--shadow); border-radius: var(--radius); padding: 2rem; }
.person__photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 75%; border-radius: var(--radius); margin-bottom: 1.25rem; }
/* Fotos del equipo ocultas hasta recibir las reales: borrar la línea siguiente para mostrarlas */
.person__photo { display: none; }
.person__role { color: var(--accent); font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.person p:last-child { color: var(--muted); margin: 0; }

/* Contacto */
.contact-list { list-style: none; margin: 2rem 0 0; padding: 0; }
.contact-list li { display: flex; flex-direction: column; padding-block: .75rem; border-top: 1px solid var(--line-soft); }
.contact-list strong { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.form { background: var(--white); border: 1px solid var(--line-soft); box-shadow: var(--shadow); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: 1.1rem; }
.form label { display: grid; gap: .35rem; font-size: .9rem; font-weight: 700; }
.opt { color: var(--muted); font-weight: 400; }
.req { color: var(--accent); }
.form input, .form textarea {
  font: inherit; font-weight: 400; min-height: 48px; padding: .75rem .9rem; border: 1px solid #8b8083; background: var(--white);
  color: var(--ink); border-radius: var(--radius);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--graphite); outline-offset: 1px; border-color: var(--graphite); }
.form .btn { justify-self: start; }
.form__status { margin: 0; font-size: .9rem; color: var(--ink); min-height: 1.4em; }

/* Footer */
.footer { background: var(--graphite); color: #e6e4e4; padding-block: 3rem 5rem; font-size: .92rem; }
.footer__inner { display: grid; gap: .4rem; }
.footer p { margin: 0; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--accent-light); }
.footer__legal { margin-top: 1rem; font-size: .8rem; color: #b7abad; }

/* WhatsApp flotante */
.wa {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; display: inline-flex; align-items: center; gap: .5rem; min-height: 48px;
  background: #1f7a4d; color: #fff; text-decoration: none; padding: .7rem 1.1rem; font-weight: 700; font-size: .9rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.2); border-radius: 999px;
}
.wa:hover { background: #17613c; }

/* Modales */
.modal { border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 2rem; max-width: min(560px, 100% - 32px); background: var(--white); color: var(--ink); }
.modal::backdrop { background: rgba(43,37,39,.6); }
.modal ul { padding-left: 1.2rem; color: var(--muted); }
.modal p { color: var(--muted); }
.modal h3 { padding-right: 2.75rem; }
.modal__close {
  position: absolute; top: .75rem; right: .75rem; width: 44px; height: 44px; display: grid; place-items: center;
  background: transparent; border: 0; border-radius: var(--radius); color: var(--ink); cursor: pointer; transition: background .2s;
}
.modal__close:hover { background: rgba(43,37,39,.08); }

:focus-visible { outline: 2px solid var(--graphite); outline-offset: 2px; }
.hero :focus-visible, .footer :focus-visible, .topbar :focus-visible { outline-color: var(--accent-light); }

/* Responsive */
@media (max-width: 900px) {
  :root { --header-h: 118px; }
  .topbar { display: none; }
  .nav { flex-wrap: wrap; row-gap: .25rem; padding-block: .6rem; }
  .nav__links { order: 3; width: 100%; margin: 0; gap: 1.25rem; overflow-x: auto; white-space: nowrap; }
  .nav .btn { margin-left: auto; }
  .split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .banner img { aspect-ratio: 16 / 9; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .topbar__inner { justify-content: space-between; gap: .5rem; font-size: .75rem; }
  .steps, .cards, .team { grid-template-columns: 1fr; }
  .logo img { height: 24px; }
  .wa span { display: none; }
  .wa { padding: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Evita que la página de fondo se desplace con una ventana abierta */
body:has(dialog[open]) { overflow: hidden; }
