:root {
  --brand-blue: #08658E;
  --brand-blue-hover: #064B6C;
  --brand-dark: #111111;
  --bg-light-gray: #F5F6F8;
  --border-subtle: #E5E7EB;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--brand-dark);
  background-color: #FFFFFF;
  -webkit-font-smoothing: antialiased;
}

/* Botones estilo píldora corporativos */
.btn-brand {
  background-color: var(--brand-blue);
  color: #FFFFFF;
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.75rem 1.75rem;
  border: 2px solid var(--brand-blue);
  transition: all 0.2s ease;
}
.btn-brand:hover {
  background-color: var(--brand-blue-hover);
  border-color: var(--brand-blue-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-brand-outline {
  background-color: transparent;
  color: var(--brand-dark);
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.75rem 1.75rem;
  border: 2px solid #D1D5DB;
  transition: all 0.2s ease;
}
.btn-brand-outline:hover {
  border-color: var(--brand-dark);
  background-color: var(--brand-dark);
  color: #FFFFFF;
}

/* Navbar */
.navbar {
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
}

/* Hero Section */
.hero-section {
  padding: 4.5rem 0;
  background: radial-gradient(ellipse at 86% 16%, #d3effb 0, transparent 45%), linear-gradient(170deg, #fff 12%, #eef6fa 100%);
}
.eyebrow-badge {
  display: inline-block;
  background-color: #E5F3FA;
  color: var(--brand-blue);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}
.hero-title {
  font-weight: 800;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.hero-visual-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-subtle);
  position: relative;
}

/* Tarjetas de servicios */
.service-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.07);
}
.service-card.featured {
  border: 2px solid var(--brand-blue);
  box-shadow: 0 12px 30px rgba(8, 101, 142, 0.08);
}

:root { scroll-padding-top: 6rem; }
.navbar .nav-link {
  color: #263b47;
  border-radius: .65rem;
  padding: .5rem .7rem;
  transition: color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.navbar .nav-link:hover,
.navbar .nav-link:focus-visible {
  background: #e5f3fa;
  color: #064b6c;
  box-shadow: inset 0 -3px var(--brand-blue);
}
.navbar .nav-link:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}
.navbar-brand img { display: block; width: 38px; height: 38px; }
.section-title { font-weight: 800; letter-spacing: -.035em; }
.hero-title { max-width: 17ch; }
.text-brand { color: var(--brand-blue); }
.hero-visual-card {
  padding: clamp(.5rem, 1.3vw, .85rem);
  background: linear-gradient(135deg, #fff 22%, #b8def0 100%);
  border-color: #cce3ee;
  box-shadow: 0 20px 48px rgba(6, 75, 108, .16);
}
.hero-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #0a2534;
  object-fit: contain;
}
.service-intro { max-width: 66ch; }
.custom-tab-btn {
  border: 1px solid var(--border-subtle);
  background: #FFFFFF;
  color: #4B5563;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  transition: all 0.2s ease;
}
.custom-tab-btn:hover {
  border-color: var(--brand-dark);
  color: var(--brand-dark);
}
.custom-tab-btn.active {
  background: var(--brand-blue);
  border-color: var(--brand-dark);
  color: #FFFFFF;
}
.tab-panel-box {
  background: var(--bg-light-gray);
  border-radius: 20px;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid var(--border-subtle);
}
.custom-tab-btn:focus-visible, .tab-pane:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 3px;
}
.proposal-switch {
  display: inline-flex;
  align-items: stretch;
  gap: .25rem;
  padding: .25rem;
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  background: #fff;
}
.proposal-switch .custom-tab-btn {
  padding: .5rem clamp(.75rem, 2vw, 1.5rem);
  border-color: transparent;
  background: transparent;
  line-height: 1.25;
}
.proposal-switch .custom-tab-btn.active {
  background: var(--brand-dark);
  color: #fff;
}
.proposal-panel {
  max-width: 58rem;
  background: #fff;
  box-shadow: 0 12px 36px #112e4210;
}
.proposal-visual {
  display: grid;
  place-items: center;
  min-height: clamp(5rem, 18vw, 13rem);
  border: 1px solid #d8e8f0;
  border-radius: 1rem;
  background: linear-gradient(145deg, #f4f9fc, #e3f2fa);
  color: var(--brand-blue);
  font-size: clamp(2.5rem, 7vw, 5rem);
}
.capability-icon {
  display: grid;
  place-items: center;
  min-height: 8rem;
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 .25rem 1rem #15283c0d;
  color: var(--brand-blue);
  font-size: 3rem;
}
.service-card > .service-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: .85rem;
  background: #eaf5fb;
}
.btn-brand:focus-visible, .btn-brand-outline:focus-visible {
  outline: 3px solid var(--brand-blue);
  outline-offset: 4px;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: enter-view .48s ease-out both; }
  .hero-visual-card { animation: enter-view .58s .08s ease-out both; }
  .entered-view { animation: enter-view .45s ease-out both; }
}
@keyframes enter-view {
  from { opacity: .55; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.section-muted { background: var(--bg-light-gray); }
.service-icon { color: var(--brand-blue); font-size: 1.65rem; }
.service-card > a { align-self: flex-start; }
.project {
  display: flex;
  align-items: center;
  gap: .8rem;
  height: 100%;
  position: relative;
  padding: 1rem .75rem;
  border-bottom: 1px solid var(--border-subtle);
  border-radius: .5rem;
}
.project:hover, .project:focus-within { background: #fff; }
.project-logo {
  display: grid;
  place-items: center;
  flex: 0 0 3.25rem;
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid #111;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: .8rem;
  font-weight: 700;
}
.project-logo-dark { background: #0c0c0c; border-color: #0c0c0c; }
.project-logo img {
  width: 100%;
  height: 100%;
  padding: .3rem;
  object-fit: contain;
}
.project:hover .project-logo, .project:focus-within .project-logo {
  box-shadow: 0 0 0 4px #dceef7;
}
.project-copy { flex: 1; min-width: 0; }
.project-link {
  flex-shrink: 0;
  padding: .4rem .65rem;
  border-radius: 2rem;
  background: #e8edf1;
  color: var(--brand-dark);
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
}
.project:hover .project-link, .project-link:focus-visible {
  background: var(--brand-blue);
  color: #fff;
}
.project-link:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .project, .project-logo, .project-link { transition: background-color .2s, color .2s, box-shadow .2s; }
}
.rubros a { color: var(--brand-dark); text-underline-offset: .22em; }
.rubros a:hover { color: var(--brand-blue); }
.rubros li { border-bottom: 1px solid var(--border-subtle); }
.rubros a { display: block; padding: .75rem 0; }
.faq-item { border: 1px solid var(--border-subtle); border-radius: 12px; background: white; }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 1rem 1.25rem; }
.faq-item p { padding: 0 1.25rem 1rem; margin: 0; }
.systems-panel {
  background: radial-gradient(ellipse at top right, #deeff9, transparent 65%), #f5f9fc;
  border: 1px solid #d8e8f0;
  border-radius: 24px;
  padding: clamp(1.25rem, 4vw, 3rem);
}
.systems-preview {
  background: #fff;
  border: 1px solid #d8e8f0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(6, 75, 108, .12);
}
.systems-preview-bar { background: #064b6c; color: #fff; }
.systems-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
  gap: .65rem;
}
.systems-preview-grid li {
  background: #eef6fa;
  border-radius: .65rem;
  padding: .7rem;
}
.safe-browsing {
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem .75rem;
  border: 1px solid #647b89;
  border-radius: .75rem;
  text-decoration: none;
}
.safe-browsing:hover, .safe-browsing:focus-visible {
  background: #263b47;
  color: #fff;
  text-decoration: underline;
}
.site-footer {
  background: radial-gradient(ellipse at top left, #17344a, transparent 65%), #101d29;
  border-top: 1px solid #294356;
  color: #c3d1dd;
  font-size: .9375rem;
}
.site-footer p { max-width: 34ch; }
.site-footer a { color: inherit; text-decoration: none; text-underline-offset: .22em; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer a:focus-visible { outline: 2px solid #a9e1fa; outline-offset: 4px; }
.site-footer .footer-brand {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
}
.footer-brand img { padding: .25rem; object-fit: contain; border-radius: .65rem; background: #fff; }
.footer-heading { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.footer-links { display: grid; gap: .65rem; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #496074;
  border-radius: 50%;
  color: #fff;
}
.footer-social a:hover { background: #214560; text-decoration: none; }
.footer-bottom { border-top: 1px solid #395063; font-size: .875rem; }
.site-footer .safe-browsing { color: #fff; }
@media (max-width: 575.98px) {
  .hero-section { padding: 3rem 0; }
  .hero-title { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.device-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 24%);
  gap: clamp(.35rem, 1.2vw, .75rem);
  align-items: end;
}
.device-monitor, .device-phone { position: relative; min-width: 0; }
.device-screen {
  overflow: hidden;
  background: #151c23;
  border: clamp(3px, .55vw, 7px) solid #151c23;
  box-shadow: 0 .35rem .8rem #101d2933;
}
.device-screen img { display: block; width: 100%; }
.device-monitor { margin-bottom: 1.15rem; }
.device-monitor .device-screen { border-radius: .6rem; border-bottom-width: .6rem; }
.device-monitor::before, .device-monitor::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #26343e;
}
.device-monitor::before { top: 100%; width: 11%; height: .85rem; }
.device-monitor::after { top: calc(100% + .78rem); width: 29%; height: .35rem; border-radius: .25rem; }
.device-phone .device-screen {
  border-radius: clamp(.6rem, 1.5vw, 1rem);
  border-top-width: .75rem;
  border-bottom-width: .5rem;
}
.device-phone::before {
  content: "";
  position: absolute;
  top: .28rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26%;
  height: 2px;
  border-radius: 2px;
  background: #62717c;
}

.proposal-detail { border-bottom: 1px solid var(--border-subtle); }
.proposal-detail summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: .6rem 0;
  list-style: none;
  font-weight: 600;
  cursor: pointer;
}
.proposal-detail summary::-webkit-details-marker { display: none; }
.proposal-detail summary::after {
  content: "+";
  color: var(--brand-blue);
  font-size: 1.15rem;
  line-height: 1;
}
.proposal-detail[open] summary::after { content: "−"; }
.proposal-detail summary:hover { color: var(--brand-blue); }
.proposal-detail summary:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 2px; }
.proposal-detail p { padding-bottom: .65rem; }

.proposal-extras-title { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.proposal-groups {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  align-items: start;
}
@media (min-width: 768px) {
  .proposal-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.proposal-group {
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  background: #fff;
}
.proposal-group-heading {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0;
  padding: .9rem 1rem;
  border-bottom: 1px solid #dbeaf3;
  border-radius: 1rem 1rem 0 0;
  background: #f0f7fb;
  font-size: 1.0625rem;
  font-weight: 700;
}
.proposal-group-heading i {
  display: grid;
  place-items: center;
  flex: 0 0 2rem;
  height: 2rem;
  border-radius: .5rem;
  background: #dceef8;
  color: var(--brand-blue);
}
.proposal-group ul { padding: .3rem 1rem .4rem; }
.proposal-group .proposal-detail summary { padding: .75rem 0; font-size: .9375rem; }
.proposal-group li:last-child .proposal-detail { border-bottom: 0; }

/* Reflejo diagonal al pasar el cursor por las tarjetas de la portada. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .service-card,
  .systems-panel,
  .process-card {
    position: relative;
  }

  .service-card::after,
  .systems-panel::after,
  .process-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(
      115deg,
      transparent 36%,
      rgb(87 177 224 / 18%) 50%,
      transparent 64%
    ) 100% 0 / 300% 100% no-repeat;
  }

  .service-card:hover::after,
  .systems-panel:hover::after,
  .process-card:hover::after {
    animation: card-shine 750ms ease-out both;
  }

  @keyframes card-shine {
    to { background-position: 0 0; }
  }
}

.process-card {
  position: relative;
  padding: 1.85rem 1rem 1.25rem;
  border: 1px solid var(--brand-blue);
}
.process-ribbon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: .35rem 1rem;
  border-radius: 999px;
  background: var(--brand-blue);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .035em;
  white-space: nowrap;
}
