:root {
  --bg: #f5f8fc;
  --bg-2: #ffffff;
  --ink: #142033;
  --muted: #5a6b82;
  --line: rgba(20, 112, 212, 0.14);
  --accent: #1a7ae8;
  --accent-2: #0d63c7;
  --surface: #ffffff;
  --font-display: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 90% -8%, rgba(26, 122, 232, 0.12), transparent 58%),
    radial-gradient(700px 420px at -5% 18%, rgba(13, 99, 199, 0.08), transparent 52%),
    linear-gradient(180deg, #eef4fb 0%, var(--bg) 35%, #e8eef6 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 1080;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 0.75rem;
}

/* Nav */
.site-nav {
  background: rgba(245, 248, 252, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.brand-logo {
  border-radius: 50%;
  object-fit: cover;
  background: #070b14;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1rem;
  color: var(--ink);
}

.brand-text span {
  color: var(--accent);
}

.brand-kicker {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
  color: var(--ink);
  animation: reveal-up 0.8s ease both;
}

.brand-kicker span {
  color: var(--accent);
}

.site-nav .navbar-nav .nav-link {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.55rem 0.8rem;
}

.site-nav .navbar-nav .nav-link:hover,
.site-nav .navbar-nav .nav-link:focus {
  color: var(--ink);
}

.navbar-toggler {
  border-color: var(--line);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(26, 122, 232, 0.2);
}

/* Buttons */
.btn-accent {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--accent-2);
  --bs-btn-hover-border-color: var(--accent-2);
  --bs-btn-focus-shadow-rgb: 26, 122, 232;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--accent-2);
  --bs-btn-active-border-color: var(--accent-2);
  font-weight: 700;
  border-radius: 0.55rem;
}

.btn-soft {
  --bs-btn-color: var(--ink);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: rgba(20, 32, 51, 0.18);
  --bs-btn-hover-color: var(--ink);
  --bs-btn-hover-bg: rgba(20, 32, 51, 0.04);
  --bs-btn-hover-border-color: rgba(20, 32, 51, 0.35);
  --bs-btn-active-color: var(--ink);
  --bs-btn-active-bg: rgba(20, 32, 51, 0.06);
  --bs-btn-active-border-color: rgba(20, 32, 51, 0.4);
  font-weight: 700;
  border-radius: 0.55rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 2.5rem 0 4rem;
  overflow: clip;
}

.min-vh-hero {
  min-height: calc(100vh - 4.5rem);
}

.hero-glow {
  position: absolute;
  inset: 12% auto auto 55%;
  width: min(520px, 70vw);
  height: min(520px, 70vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 122, 232, 0.16), transparent 68%);
  pointer-events: none;
  animation: pulse-glow 6s ease-in-out infinite alternate;
}

.location-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  color: var(--accent-2);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 999px;
}

.hero-logo {
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(26, 122, 232, 0.25);
  animation: reveal-up 0.8s ease both;
}

.display-brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.05em;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  line-height: 0.95;
  margin: 0;
  color: var(--ink);
  animation: reveal-up 0.8s ease 0.05s both;
}

.display-brand span {
  color: var(--accent);
}

.hero-tagline {
  color: var(--accent-2);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  animation: reveal-up 0.8s ease 0.1s both;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 34rem;
  animation: reveal-up 0.8s ease 0.15s both;
}

.hero-lead strong {
  color: var(--ink);
  font-weight: 700;
}

.hero-copy .d-flex {
  animation: reveal-up 0.8s ease 0.22s both;
}

.hero-visual {
  position: relative;
  animation: float-soft 7s ease-in-out infinite alternate;
}

.hero-banner {
  border-radius: 1rem;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(20, 32, 51, 0.12);
  background: #070b14;
}

/* Sections */
.section-pad {
  padding: 5rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid var(--line);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.65rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-head h2,
.cta-panel h2,
#nosotros h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  line-height: 1.1;
  color: var(--ink);
}

.text-muted-brand {
  color: var(--muted) !important;
}

/* Services */
.service-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 0.9rem;
  box-shadow: 0 8px 24px rgba(20, 32, 51, 0.04);
  color: var(--ink);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(26, 122, 232, 0.35);
  box-shadow: 0 14px 32px rgba(20, 32, 51, 0.08);
}

.service-icon {
  width: 2.6rem;
  height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  border-radius: 0.65rem;
  background: rgba(26, 122, 232, 0.1);
  color: var(--accent);
}

.service-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.service-tile h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
  color: var(--ink);
}

.service-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  flex: 1 1 auto;
}

.service-tile .more {
  display: inline-block;
  margin-top: 0.85rem;
  color: var(--accent-2);
  font-weight: 700;
  font-size: 0.9rem;
}

.service-tile .stretched-link::after {
  z-index: 2;
}

/* Sidebar cards on service pages */
.info-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-card {
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 0.9rem;
  box-shadow: 0 8px 24px rgba(20, 32, 51, 0.04);
}

.info-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--ink);
}

.info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Work */
.work-link {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  height: 100%;
  padding: 1.2rem 1.15rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--surface);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.work-link:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  color: inherit;
  box-shadow: 0 10px 24px rgba(20, 32, 51, 0.07);
}

.work-tag {
  color: var(--accent-2);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.work-link strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.work-link span:last-child {
  color: var(--muted);
  font-size: 0.95rem;
}

/* About */
.check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin-top: 1.25rem;
}

.check-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--ink);
}

.check-list i {
  color: var(--accent);
  font-size: 1.15rem;
}

.about-panel {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background:
    linear-gradient(135deg, rgba(26, 122, 232, 0.07), transparent 45%),
    var(--surface);
}

.stat {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #f7fafc;
  text-align: center;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.about-note {
  margin-top: 1rem;
  color: var(--muted);
}

/* FAQ */
.seo-faq .accordion-item {
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 0.65rem;
  border-radius: 0.75rem !important;
  overflow: hidden;
}

.seo-faq .accordion-button {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  background: var(--surface);
  box-shadow: none;
}

.seo-faq .accordion-button:not(.collapsed) {
  color: var(--accent-2);
  background: rgba(26, 122, 232, 0.06);
  box-shadow: none;
}

.seo-faq .accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(26, 122, 232, 0.15);
}

.seo-faq .accordion-body {
  color: var(--muted);
  background: var(--surface);
}

.contact-nap {
  font-style: normal;
  color: var(--muted);
  line-height: 1.7;
}

.contact-nap strong {
  color: var(--ink);
}

.contact-nap a {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600;
}

.contact-nap a:hover {
  text-decoration: underline;
}

.footer-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

/* CTA */
.cta-panel {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 1.15rem;
  border: 1px solid rgba(26, 122, 232, 0.28);
  background:
    radial-gradient(600px 220px at 100% 0%, rgba(26, 122, 232, 0.14), transparent 60%),
    linear-gradient(160deg, #ffffff, #eef5fc);
}

.cta-panel .btn-soft {
  --bs-btn-color: var(--ink);
  --bs-btn-border-color: rgba(20, 32, 51, 0.2);
}

.cta-panel .btn-link {
  color: var(--muted);
  font-weight: 600;
}

.cta-panel .btn-link:hover {
  color: var(--accent);
}

.contact-form .form-label {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.contact-form .form-control,
.contact-form .form-select {
  border: 1px solid rgba(20, 32, 51, 0.14);
  border-radius: 0.55rem;
  padding: 0.7rem 0.85rem;
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(26, 122, 232, 0.15);
}

.contact-form .form-control::placeholder {
  color: #8a9bb0;
}

.contact-form.was-validated .form-control:invalid,
.contact-form.was-validated .form-select:invalid {
  border-color: #d64545;
}

.form-hint {
  color: var(--muted);
  font-size: 0.88rem;
}

/* Footer */
.site-footer {
  padding: 2rem 0 6rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.site-footer a {
  color: var(--muted);
  font-size: 1.25rem;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

/* WhatsApp float */
.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 1040;
  width: 3.35rem;
  height: 3.35rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: 1.65rem;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(20, 32, 51, 0.18);
  transition: transform 0.2s ease;
}

.wa-float:hover {
  color: #fff;
  transform: translateY(-2px) scale(1.04);
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float-soft {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-10px);
  }
}

@keyframes pulse-glow {
  from {
    opacity: 0.55;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 991.98px) {
  .min-vh-hero {
    min-height: auto;
    padding-top: 1.5rem;
    padding-bottom: 1rem;
  }

  .hero-visual {
    animation: none;
  }
}

@media (max-width: 575.98px) {
  .display-brand {
    font-size: clamp(2.1rem, 11vw, 2.8rem);
  }

  .section-pad {
    padding: 3.75rem 0;
  }
}

/* Dropdown nav */
.site-nav .dropdown-menu {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  box-shadow: 0 14px 32px rgba(20, 32, 51, 0.1);
  padding: 0.45rem;
  margin-top: 0.35rem;
}

.site-nav .dropdown-item {
  border-radius: 0.45rem;
  font-weight: 600;
  color: var(--ink);
  padding: 0.5rem 0.75rem;
}

.site-nav .dropdown-item:hover,
.site-nav .dropdown-item:focus {
  background: rgba(26, 122, 232, 0.08);
  color: var(--accent-2);
}

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.process-step {
  padding: 1.2rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--surface);
  height: 100%;
}

.process-step em {
  display: block;
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.45rem;
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Zones */
.zone-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zone-list li {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}

/* Inner pages */
.page-hero {
  padding: 3.25rem 0 2.25rem;
}

.breadcrumb-seo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.breadcrumb-seo a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb-seo a:hover {
  color: var(--accent);
}

.breadcrumb-seo li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: #9aa8b8;
}

.prose {
  color: var(--muted);
  max-width: 46rem;
}

.prose h2,
.content-block h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  color: var(--ink);
  margin: 0 0 0.85rem;
}

.prose h3,
.content-block h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  margin: 1.4rem 0 0.5rem;
}

.prose p,
.content-block p {
  margin: 0 0 1rem;
}

.prose ul,
.content-block ul {
  margin: 0 0 1.1rem;
  padding-left: 1.15rem;
}

.prose li,
.content-block li {
  margin-bottom: 0.4rem;
}

.related-pages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.related-pages a {
  display: block;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  font-family: var(--font-display);
}

.related-pages a span {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--muted);
  font-size: 0.9rem;
}

.related-pages a:hover {
  border-color: var(--accent);
}

.footer-seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

.footer-seo-links a {
  font-size: 0.85rem !important;
  font-weight: 600;
}

.legal-note {
  font-size: 0.8rem;
  margin-top: 0.75rem;
}

@media (max-width: 991.98px) {
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 575.98px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}
