:root {
  --navy: #061b33;
  --navy2: #092745;
  --blue: #1267f1;
  --blue2: #3b93ff;
  --green: #00d299;
  --text: #071830;
  --muted: #66758a;
  --line: #dce5f1;
  --bg: #f4f7fb;
  --card: #fff;
  --radius: 10px;
  --shadow: 0 5px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 18px 35px rgba(0,0,0,.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; }

.container {
  max-width: 1180px;
  margin: auto;
  padding: 0 24px;
}

/* ── Buttons ── */
.btn {
  background: var(--blue);
  color: #fff;
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 15px;
  display: inline-block;
  border: 0;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn:hover {
  background: #0b5ad8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(18,103,241,.35);
}

.btn-outline {
  border: 1.5px solid #b9cff0;
  color: #075fe0;
  background: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
  transition: all .2s;
  white-space: nowrap;
}
.btn-outline:hover {
  background: #075fe0;
  color: #fff;
  border-color: #075fe0;
}

/* ── Header ── */
.topbar {
  height: 74px;
  background: #05172d;
  color: #fff;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  font-size: 26px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo span {
  font-size: 11px;
  display: block;
  font-weight: 500;
  color: #b6c9df;
}

.pin {
  width: 28px;
  height: 28px;
  background: var(--blue);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: inline-block;
  flex-shrink: 0;
}

.menu {
  display: flex;
  gap: 32px;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
}
.menu a {
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}
.menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue2);
  border-radius: 2px;
  transition: width .25s ease;
}
.menu a:hover { color: var(--blue2); }
.menu a:hover::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 101;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: all .3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.btn-header { flex-shrink: 0; }

/* ── Hero ── */
.hero {
  background:
    linear-gradient(90deg, #061b33 0%, #061b33 45%, rgba(6,27,51,.7) 60%, rgba(6,27,51,.15) 100%),
    url('https://images.unsplash.com/photo-1584622650111-993a426fbf0a?q=80&w=1600&auto=format&fit=crop') center right/cover;
  min-height: 480px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero .container { padding-top: 68px; padding-bottom: 52px; }

.hero h1 {
  font-size: 56px;
  line-height: 1.05;
  margin: 0 0 22px;
  letter-spacing: -1px;
}
.hero h1 b { color: var(--blue2); }

.hero > .container > p {
  font-size: 19px;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 0 36px;
  color: #c8d8ec;
}

.searchbar {
  background: white;
  color: var(--text);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr 220px;
  gap: 16px;
  padding: 24px;
  max-width: 940px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text);
}

.input-wrap {
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  background: #fafcff;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color .2s;
}
.input-wrap:hover,
.input-wrap:focus-within { border-color: var(--blue2); }
.input-wrap svg { flex-shrink: 0; }
.input-wrap input {
  border: none;
  outline: none;
  background: transparent;
  padding: 14px 0;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  width: 100%;
}
.input-wrap input::placeholder { color: #6b7687; }

.btn-search {
  align-self: end;
  text-align: center;
  font-size: 15px;
  padding: 15px 24px;
}

.checks {
  display: flex;
  gap: 32px;
  margin-top: 26px;
  font-weight: 700;
  font-size: 14px;
}
.checks span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.checks span::before {
  content: "\2713";
  color: var(--green);
  border: 1.5px solid var(--green);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  flex-shrink: 0;
}

/* ── Search compact (subpages) ── */
.search-compact { background: #071b33; padding: 28px 0; }
.search-compact .searchbar { max-width: none; margin: auto; box-shadow: none; }

/* ── Benefits ── */
.benefits {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 38px 0;
}

.benefit {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #eef5ff;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 900;
  flex-shrink: 0;
  transition: transform .2s, background .2s;
}
.benefit:hover .icon {
  transform: scale(1.08);
  background: #dceaff;
}

.benefit h3 { margin: 0 0 6px; font-size: 16px; }
.benefit p { margin: 0; color: var(--muted); line-height: 1.5; font-size: 14px; }

/* ── Sections ── */
.section { padding: 56px 0; }
.section-alt { background: #fff; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 28px;
  gap: 20px;
}

.section h2 { font-size: 30px; margin: 0 0 6px; letter-spacing: -.3px; }
.section p.lead { margin: 0; color: #516176; font-size: 16px; }

.center-title { text-align: center; font-size: 30px; margin-bottom: 8px; }
.center-lead { text-align: center; color: #516176; margin-bottom: 36px; }

/* ── Card grid (negocios) ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.tile {
  height: 140px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: #1a2a3e;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.58);
  transition: filter .3s, transform .4s;
}
.tile:hover img {
  filter: brightness(.45);
  transform: scale(1.06);
}

.tile strong {
  position: absolute;
  left: 16px;
  bottom: 14px;
  color: #fff;
  font-size: 16px;
  z-index: 1;
}
.tile small {
  position: absolute;
  left: 16px;
  bottom: 36px;
  color: #e6eef9;
  font-weight: 700;
}

/* ── City grid ── */
.city-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.city {
  height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: #1a2a3e;
  transition: transform .25s, box-shadow .25s;
}
.city:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

.city img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.65);
  transition: filter .3s, transform .4s;
}
.city:hover img {
  filter: brightness(.45);
  transform: scale(1.06);
}

.city strong {
  position: absolute;
  left: 18px;
  bottom: 38px;
  color: #fff;
  font-size: 22px;
  z-index: 1;
}
.city span {
  position: absolute;
  left: 18px;
  bottom: 16px;
  color: rgba(255,255,255,.85);
  font-size: 14px;
  font-weight: 500;
}

/* ── Steps ── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.step {
  padding: 28px 20px;
  border-radius: var(--radius);
  transition: background .2s, box-shadow .2s;
}
.step:hover {
  background: #fff;
  box-shadow: var(--shadow);
}

.step .num {
  margin: 0 auto 16px;
  background: var(--blue);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  transition: transform .2s;
}
.step:hover .num { transform: scale(1.1); }

.step h3 { margin: 0 0 8px; font-size: 17px; }
.step p { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ── Cases ── */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.case {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.case:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.1);
}

.case img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
}

.case h3 { font-size: 17px; margin-bottom: 8px; }

.metric {
  color: #009c49;
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 4px;
}

.case p { color: var(--muted); margin-bottom: 12px; font-size: 14px; }

.case-link {
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
  transition: color .2s;
}
.case-link:hover { color: #0b4fc0; }

/* ── CTA ── */
.cta {
  background: linear-gradient(135deg, #061b33, #0d3566);
  color: #fff;
  border-radius: 14px;
  padding: 42px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 40px 0;
  gap: 32px;
}
.cta h2 { font-size: 26px; margin-bottom: 8px; }
.cta p { color: #b0c4de; font-size: 16px; }

.btn-cta {
  padding: 16px 32px;
  font-size: 16px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Footer ── */
.footer {
  background: #05172d;
  color: #fff;
  padding: 48px 0 24px;
}

.footgrid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
}

.footer h4 { margin: 0 0 16px; font-size: 15px; }

.footer a {
  display: block;
  color: #c4d3e5;
  margin: 8px 0;
  font-size: 14px;
  transition: color .2s;
}
.footer a:hover { color: #fff; }

.footer-desc { color: #8da3bd; font-size: 14px; line-height: 1.5; margin-top: 12px; }

.stars {
  color: #fbbf24;
  font-size: 16px;
  margin-top: 8px;
}
.stars span { color: #c4d3e5; font-size: 13px; }

.legal {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 36px;
  padding-top: 20px;
  color: #7a90a8;
  font-size: 13px;
}

/* ── Subpage shared styles ── */
.breadcrumb { color: #6d7c90; font-size: 13px; margin: 28px 0 18px; }
.page-title { display: flex; justify-content: space-between; align-items: center; }
.badge {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 20px;
  padding: 7px 12px;
  color: #4f627a;
  font-weight: 700;
  font-size: 13px;
}

.detail-hero { display: grid; grid-template-columns: 1.4fr .9fr; gap: 24px; }
.detail-hero img { width: 100%; height: 360px; object-fit: cover; border-radius: var(--radius); }
.stats { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.stats h3 { margin: 0 0 18px; }
.stat { border-bottom: 1px solid var(--line); padding: 14px 0; }
.stat strong { font-size: 28px; }
.stat span { display: block; color: var(--muted); }

.info-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.info {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}
.info strong { display: block; margin-top: 8px; }

.case-detail { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 26px; }
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.before-after img { width: 100%; height: 280px; object-fit: cover; border-radius: 8px; }
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0; }
.result {
  background: #f6f9fd;
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 8px;
  text-align: center;
}

/* ── FAQ ── */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
}
.faq {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow .2s;
}
.faq:hover { box-shadow: var(--shadow); }
.faq summary {
  padding: 20px 24px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--blue);
  flex-shrink: 0;
  transition: transform .2s;
}
.faq[open] summary::after {
  content: '\2212';
  transform: rotate(180deg);
}
.faq p {
  padding: 0 24px 20px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}

/* ── Breadcrumb links ── */
.breadcrumb a {
  color: var(--blue);
  transition: color .2s;
}
.breadcrumb a:hover { color: #0b4fc0; }

/* ── Testimonial ── */
.testimonial {
  background: #f6f9fd;
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px;
  margin: 20px 0;
  font-size: 17px;
  font-style: italic;
  line-height: 1.7;
  color: var(--text);
}
.testimonial cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
}

/* ── Before/after labels ── */
.before-after-label {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
  margin-bottom: 8px;
}

/* ── Case detail lists ── */
.case-detail ul {
  padding-left: 20px;
  margin: 12px 0 24px;
}
.case-detail li {
  margin-bottom: 10px;
  line-height: 1.6;
  color: #3a4a5e;
}
.case-detail h2 {
  margin-top: 32px;
  margin-bottom: 12px;
}
.case-detail p {
  line-height: 1.7;
  color: #3a4a5e;
  margin-bottom: 16px;
}

/* ── Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp .7s ease forwards;
}
.delay-1 { animation-delay: .15s; }
.delay-2 { animation-delay: .3s; }
.delay-3 { animation-delay: .45s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation for grid children */
.card-grid .animate-in:nth-child(1) { transition-delay: .05s; }
.card-grid .animate-in:nth-child(2) { transition-delay: .1s; }
.card-grid .animate-in:nth-child(3) { transition-delay: .15s; }
.card-grid .animate-in:nth-child(4) { transition-delay: .2s; }
.card-grid .animate-in:nth-child(5) { transition-delay: .25s; }
.card-grid .animate-in:nth-child(6) { transition-delay: .3s; }
.card-grid .animate-in:nth-child(7) { transition-delay: .35s; }
.card-grid .animate-in:nth-child(8) { transition-delay: .4s; }
.card-grid .animate-in:nth-child(9) { transition-delay: .45s; }
.card-grid .animate-in:nth-child(10) { transition-delay: .5s; }

.city-grid .animate-in:nth-child(1) { transition-delay: .05s; }
.city-grid .animate-in:nth-child(2) { transition-delay: .1s; }
.city-grid .animate-in:nth-child(3) { transition-delay: .15s; }
.city-grid .animate-in:nth-child(4) { transition-delay: .2s; }
.city-grid .animate-in:nth-child(5) { transition-delay: .25s; }
.city-grid .animate-in:nth-child(6) { transition-delay: .3s; }
.city-grid .animate-in:nth-child(7) { transition-delay: .35s; }
.city-grid .animate-in:nth-child(8) { transition-delay: .4s; }

.steps .animate-in:nth-child(1) { transition-delay: .05s; }
.steps .animate-in:nth-child(2) { transition-delay: .15s; }
.steps .animate-in:nth-child(3) { transition-delay: .25s; }
.steps .animate-in:nth-child(4) { transition-delay: .35s; }

.case-grid .animate-in:nth-child(1) { transition-delay: .05s; }
.case-grid .animate-in:nth-child(2) { transition-delay: .15s; }
.case-grid .animate-in:nth-child(3) { transition-delay: .25s; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .footgrid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 800px) {
  .hamburger { display: flex; }
  .btn-header { display: none; }

  .menu {
    display: none;
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    background: #05172d;
    flex-direction: column;
    padding: 24px;
    gap: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,.3);
    border-top: 1px solid rgba(255,255,255,.1);
    z-index: 99;
  }
  .menu.open { display: flex; }
  .menu a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
    font-size: 16px;
  }
  .menu a::after { display: none; }

  .hero h1 { font-size: 36px; }
  .hero > .container > p { font-size: 16px; }

  .searchbar { grid-template-columns: 1fr; }

  .checks { flex-direction: column; gap: 12px; }

  .benefit-grid,
  .card-grid,
  .city-grid,
  .steps,
  .case-grid,
  .footgrid,
  .detail-hero,
  .info-row,
  .before-after,
  .results { grid-template-columns: 1fr; }

  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .city-grid { grid-template-columns: repeat(2, 1fr); }

  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section h2 { font-size: 24px; }

  .cta { flex-direction: column; padding: 28px 24px; text-align: center; }
  .cta h2 { font-size: 22px; }

  .tile { height: 120px; }
  .city { height: 160px; }
}

@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
  .city-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .container { padding: 0 16px; }
}
