:root {
  --navy: #0d2140;
  --navy-2: #16325c;
  --lime: #8dc63f;
  --ink: #1c2430;
  --muted: #5c6778;
  --line: #e6ebf2;
  --bg: #f5f7fb;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Manrope, sans-serif;
  color: var(--ink);
  background: #fff;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.topbar { background: var(--navy); color: #d7e0ee; font-size: 13px; }
.topbar .wrap, .nav .wrap, .section, .float, footer .wrap, .pagehero .inner {
  width: min(1120px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; }
.nav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.nav .wrap { display: flex; align-items: center; gap: 18px; padding: 12px 0; }
.nav img { height: 52px; width: auto; display: block; }
.nav ul {
  display: flex;
  gap: 14px;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
  font-weight: 600;
  font-size: 13.5px;
  align-items: center;
}
.nav li a { white-space: nowrap; }
.nav li a.on, .nav li a:hover { color: var(--navy-2); box-shadow: inset 0 -2px 0 var(--lime); }
.lang { position: relative; flex: none; }
.lang summary {
  list-style: none;
  cursor: pointer;
  font-weight: 800;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 12px;
  background: #fff;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:after { content: ""; }
.lang .menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  min-width: 140px;
  box-shadow: 0 12px 30px rgba(13,33,64,.12);
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  z-index: 40;
}
.lang .menu a { display: block; padding: 6px 2px; color: var(--navy); }
.lang .menu a:hover { text-decoration: underline; }
.lang .menu a.on:after { content: " ✓"; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--lime);
  color: var(--navy);
  font-weight: 800;
  border-radius: 4px;
  padding: 12px 16px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
}
.btn.ghost { background: transparent; color: #fff; border: 1px solid #fff; }
.btn.slim { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.hero {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  background-color: #0d2140;
  background-position: center;
  background-size: cover;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,33,64,.72), rgba(13,33,64,.55));
}
.hero .inner { position: relative; width: min(760px, calc(100% - 40px)); padding: 90px 0 130px; }
.kicker { letter-spacing: .08em; text-transform: uppercase; font-size: 13px; font-weight: 700; color: var(--lime); }
h1 { font-size: 52px; line-height: 1.1; margin: 12px 0 16px; font-weight: 800; }
.hero p { font-size: 18px; line-height: 1.5; margin: 0 auto 26px; max-width: 620px; }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.float { margin-top: -70px; position: relative; z-index: 2; }
.cards3, .cards4 { display: grid; gap: 18px; }
.cards3 { grid-template-columns: repeat(3, 1fr); }
.cards4 { grid-template-columns: repeat(4, 1fr); }
.panel { background: #fff; border-radius: 8px; box-shadow: 0 16px 40px rgba(13,33,64,.12); padding: 8px; }
.svc { padding: 22px 18px; }
.svc h3, .photo h3, .reason h3, .post h3 { margin: 8px 0 6px; font-size: 18px; color: var(--navy); }
.svc p, .photo p, .reason p, .post p, .copy p, .prose p, .faq p { color: var(--muted); line-height: 1.55; margin: 0; }
.mark {
  width: 36px; height: 36px; border-radius: 50%;
  background: #eef6df; color: var(--navy);
  display: grid; place-items: center; font-weight: 800;
}
.section { padding: 72px 0; }
.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 36px; align-items: center; }
h2 { font-size: 34px; line-height: 1.2; margin: 8px 0 14px; color: var(--navy); }
.photo { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.photo img, .post img { width: 100%; height: 150px; object-fit: cover; display: block; background: var(--navy); }
.photo div, .post div { padding: 14px 14px 18px; }
.band {
  background-color: var(--navy);
  background-position: center;
  background-size: cover;
  color: #fff;
}
.band h2, .band .kicker { text-align: center; }
.band h2 { color: #fff; }
.band .kicker { color: var(--lime); }
.reasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 28px; }
.reason { text-align: center; }
.reason .mark { margin: 0 auto 10px; background: rgba(141,198,63,.18); color: var(--lime); }
.reason p { color: #d5deea; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.more { color: var(--navy-2); font-weight: 700; display: inline-block; margin-top: 10px; }
.more:hover { color: var(--lime); }
footer { background: var(--navy); color: #d7e0ee; padding: 28px 0 22px; font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footlinks { display: flex; flex-wrap: wrap; gap: 14px 18px; padding-top: 16px; margin-top: 16px; border-top: 1px solid rgba(255,255,255,.12); }
.footlinks a:hover { color: var(--lime); }

.pagehero {
  position: relative;
  color: #fff;
  background: #0d2140 center/cover no-repeat;
}
.pagehero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,33,64,.88), rgba(13,33,64,.7));
}
.pagehero .inner { position: relative; padding: 72px 0; }
.pagehero h1 { font-size: 44px; color: #fff; max-width: 16ch; }
.pagehero p { max-width: 640px; font-size: 18px; line-height: 1.55; color: #e7eef8; margin: 0 0 18px; }
.prose { max-width: 760px; display: grid; gap: 14px; }
.prose p { font-size: 17px; line-height: 1.65; }
.back { color: var(--lime); font-weight: 800; display: inline-block; margin-bottom: 10px; }
.stack { display: grid; gap: 18px; }
.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: start;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.step h3 { margin: 4px 0; color: var(--navy); }
.timeline { margin: 0; padding: 0; list-style: none; border-left: 3px solid var(--lime); }
.timeline li { padding: 0 0 26px 18px; }
.timeline .year { color: var(--lime); font-weight: 800; letter-spacing: .04em; }
.timeline h3 { margin: 4px 0; color: var(--navy); }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 800; cursor: pointer; color: var(--navy); font-size: 17px; }
.faq p { margin-top: 8px; }
.quote { background: var(--bg); border-radius: 8px; padding: 18px; }
.quote p { margin: 0 0 10px; color: var(--ink); }
.quote span { color: var(--muted); font-size: 14px; font-weight: 700; }
.layout-2 { display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: start; }
aside.card, .note {
  background: var(--bg);
  border-radius: 8px;
  padding: 18px;
}
aside.card h2 { font-size: 20px; }
label { font-weight: 700; font-size: 14px; color: var(--navy); display: block; margin-bottom: 6px; }
input, textarea, select {
  font: inherit;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 140px; resize: vertical; }
.form { display: grid; gap: 14px; }
.alert { background: #eef6df; color: var(--navy); border-radius: 8px; padding: 14px 16px; font-weight: 700; }
.muted { color: var(--muted); }
.tight { padding-top: 0; }

.tabbar, .sheet { display: none; }

@media (max-width: 1100px) {
  .nav ul { gap: 10px; font-size: 12.5px; }
  .btn { padding: 10px 12px; }
  h1 { font-size: 42px; }
}
@media (max-width: 900px) {
  .split, .layout-2 { grid-template-columns: 1fr; }
  .cards4, .reasons { grid-template-columns: 1fr 1fr; }
  .pagehero h1 { font-size: 36px; max-width: none; }
}
@media (max-width: 799px) {
  .desk-nav, .desk-cta { display: none !important; }
  .tabbar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 50;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    justify-content: space-around;
    box-shadow: 0 -8px 24px rgba(13,33,64,.08);
  }
  .tabbar a, .tabbar button {
    flex: 1;
    background: none;
    border: 0;
    font-family: inherit;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 2px;
    cursor: pointer;
  }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar a.on, .tabbar button.on { color: var(--navy); }
  .tabbar a.on svg, .tabbar button.on svg { stroke: var(--lime); }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .cards3, .posts { grid-template-columns: 1fr; }
  .hero { min-height: 480px; }
  .hero .inner { padding: 64px 0 110px; }
  h1 { font-size: 34px; }
  .nav img { height: 42px; }
  .section { padding: 48px 0; }
  .sheet.open { display: grid; }
  .sheet {
    position: fixed;
    z-index: 45;
    left: 12px;
    right: 12px;
    bottom: calc(72px + env(safe-area-inset-bottom));
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(13,33,64,.28);
    padding: 8px;
    gap: 2px;
  }
  .sheet a {
    display: block;
    padding: 14px 16px;
    border-radius: 10px;
    font-weight: 800;
    color: var(--navy);
  }
  .sheet a.on, .sheet a:hover { background: #f3f7ee; }
  .topbar .wrap span:last-child { display: none; }
}
@media (max-width: 560px) {
  .cards4, .reasons { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
}
a.photo, a.post { display: block; color: inherit; }
a.photo:hover h3, a.post:hover h3, .svc h3 a:hover { color: var(--navy-2); }
.svc h3 a { color: var(--navy); }

/* ---- Menú de servicios (desplegable) ---- */
.nav li.has-sub { position: relative; }
.nav li.has-sub > a { display: inline-block; padding: 10px 0; }
.nav li.has-sub > a:after { content: "▾"; font-size: 10px; margin-left: 5px; color: var(--muted); }
.nav .sub {
  display: none;
  position: absolute;
  top: 100%;
  left: -14px;
  list-style: none;
  margin: 0;
  padding: 8px;
  min-width: 320px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(13,33,64,.12);
  z-index: 40;
  gap: 2px;
}
.nav li.has-sub:hover .sub, .nav li.has-sub:focus-within .sub { display: grid; }
.nav .sub a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  font-weight: 700;
  color: var(--navy);
  white-space: normal;
  box-shadow: none !important;
}
.nav .sub a:hover, .nav .sub a.on { background: #f3f7ee; color: var(--navy-2); }
.topbar a:hover { color: var(--lime); }
.footcontact { padding-top: 12px; gap: 10px 22px !important; justify-content: flex-start !important; }
.footcontact a:hover { color: var(--lime); }

/* ---- Servicios y categorías ---- */
.catgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.catcard .mark { margin-bottom: 4px; }
.photo h3 a { color: var(--navy); }
.photo h3 a:hover { color: var(--navy-2); }
.svclist { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.svclist a { display: block; font-weight: 700; font-size: 14px; color: var(--navy-2); padding-left: 16px; position: relative; line-height: 1.4; }
.svclist a:before { content: ""; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.svclist a:hover { color: var(--lime); }
.pagehero h1.wide { max-width: 22ch; }
.actions.left { justify-content: flex-start; }
.svc-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.svc-detail .figure img { width: 100%; height: 380px; object-fit: cover; border-radius: 8px; display: block; background: var(--navy); }
.svc-detail h2 { margin-top: 0; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 36px; line-height: 1.55; font-size: 16px; }
.checklist li:before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 24px; height: 24px; border-radius: 50%;
  background: #eef6df; color: var(--navy);
  display: grid; place-items: center;
  font-weight: 800; font-size: 13px;
}
.audience { background: var(--bg); border-left: 4px solid var(--lime); border-radius: 8px; padding: 16px 18px; margin-top: 24px; }
.audience h3 { margin: 0 0 6px; color: var(--navy); font-size: 17px; }
.audience p { margin: 0; color: var(--muted); line-height: 1.55; }
.options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.option .btn { margin-top: 14px; }
.note { color: var(--muted); line-height: 1.55; }
.cta-band {
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: 26px; margin: 0 0 6px; }
.cta-band p { color: #d5deea; margin: 0; line-height: 1.5; }

/* ---- Equipo ---- */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.member { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.member .mark { width: 52px; height: 52px; font-size: 16px; }
.member h3 { margin: 4px 0 6px; font-size: 18px; color: var(--navy); }
.member p { margin: 0; color: var(--muted); line-height: 1.55; }

/* ---- Formulario de cotización ---- */
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.small { font-size: 13px; margin: 6px 0 0; }
.alert.error { background: #fde8e8; }
.alert ul { margin: 8px 0 0; padding-left: 18px; font-weight: 600; }
.wa-preview {
  white-space: pre-wrap;
  font-family: inherit;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin: 14px 0;
}
aside.card .btn { display: flex; width: 100%; }
aside.card p { line-height: 1.5; }
aside.card a { color: var(--navy-2); font-weight: 700; }
aside.card a.btn { color: var(--navy); }

/* ---- Botón flotante de WhatsApp ---- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 44;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lime);
  color: var(--navy);
  font-weight: 800;
  font-size: 14px;
  border-radius: 999px;
  padding: 12px 18px 12px 14px;
  box-shadow: 0 12px 30px rgba(13,33,64,.25);
}
.wa-float svg { width: 26px; height: 26px; }
.wa-float:hover { background: #9bd24d; }

.sheet-label { padding: 10px 16px 4px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 1100px) {
  .catgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .svc-detail, .team, .options { grid-template-columns: 1fr; }
  .svc-detail .figure img { height: 260px; }
}
@media (max-width: 799px) {
  .catgrid, .form-2 { grid-template-columns: 1fr; }
  .wa-float { bottom: calc(80px + env(safe-area-inset-bottom)); right: 14px; padding: 12px; }
  .wa-float span { display: none; }
  .sheet { max-height: calc(100vh - 110px); overflow-y: auto; }
  .sheet a { padding: 11px 16px; }
  .topbar .wrap span:first-child { font-size: 12px; }
  .cta-band { padding: 22px; }
}
.band .reason h3 { color: #fff; }
