
:root {
  --bg: #f3f6fb;
  --panel: #ffffff;
  --panel-soft: #f8fbff;
  --text: #0f172a;
  --muted: #5b6b86;
  --accent: #165dff;
  --accent-dark: #0d3fb9;
  --accent-soft: rgba(22, 93, 255, 0.12);
  --dark: #0a1636;
  --dark-2: #122b73;
  --border: #dbe5f4;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 30px;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 20px 60px rgba(8, 15, 41, 0.16);
  --max-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.skip-link,
.sr-only {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 20px;
  top: 20px;
  z-index: 50;
  background: white;
  color: var(--text);
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(7, 18, 48, 0.98), rgba(21, 61, 181, 0.92)),
    url("assets/images/hero-bg.svg");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 24px 24px 52px;
}

.navbar,
.hero-layout,
.metrics-grid,
.section,
.footer {
  width: min(100%, var(--max-width));
  margin-inline: auto;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo-link {
  padding: 8px 12px;
  border-radius: 18px;
  background: white;
  box-shadow: 0 10px 26px rgba(4, 10, 33, 0.16);
}

.nav-logo {
  width: clamp(150px, 15vw, 220px);
  height: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: white;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #93c5fd;
}

.hero-copy {
  max-width: 980px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4.6rem);
  line-height: 1;
  max-width: 980px;
  letter-spacing: -0.055em;
}

.hero-description {
  margin: 24px 0 0;
  max-width: 860px;
  font-size: clamp(1.02rem, 1.45vw, 1.16rem);
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: white;
  color: var(--accent-dark);
  box-shadow: 0 14px 28px rgba(9, 16, 43, 0.18);
}

.button.secondary {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
}

.hero-brand-card,
.logo-panel,
.hero-logo,
.brand-card-copy {
  display: none;
}

.metrics {
  padding: 24px 24px 8px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.metric-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow);
}

.metric-card span {
  display: block;
  color: var(--accent-dark);
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1;
}

.metric-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: 72px 24px;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
}

.section-description {
  max-width: 820px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.service-grid,
.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.service-card,
.method-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}

.service-card h3,
.method-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.service-card p,
.method-card p {
  margin: 0;
  color: var(--muted);
}

.project-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 16px;
  margin-bottom: 18px;
}

.search-input,
.sort-select {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: white;
  padding: 0 16px;
  color: var(--text);
  box-shadow: var(--shadow);
}

.filters-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.filter-panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow);
}

.filter-panel h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-button {
  border: 1px solid var(--border);
  background: #f8fbff;
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-button.active,
.filter-button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: white;
  box-shadow: var(--shadow);
}

.card-image-wrap {
  position: relative;
  overflow: hidden;
  background: #e2e8f0;
  aspect-ratio: 16 / 9;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.92rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 800;
}

.card-body h3 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.15;
}

.card-body p {
  margin: 0;
  color: var(--muted);
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stack span {
  background: #f1f5f9;
  color: #334155;
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 0.82rem;
  font-weight: 700;
}

.card-actions,
.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.action-link,
.detail-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: white;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.primary-link {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.detail-button {
  background: #f8fbff;
}

.status-message {
  margin: 18px 0 0;
  color: var(--muted);
}

.empty-state {
  padding: 28px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  background: white;
  color: var(--muted);
  text-align: center;
}

.project-dialog {
  width: min(1000px, calc(100% - 32px));
  border: none;
  border-radius: 26px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24);
}

.project-dialog::backdrop {
  background: rgba(9, 16, 43, 0.62);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.86);
  color: white;
  font-size: 1.6rem;
  cursor: pointer;
}

#dialogContent {
  padding: 0;
}

.dialog-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(0, 1.1fr);
  gap: 0;
}

.dialog-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #e2e8f0;
}

.dialog-body {
  padding: 28px;
  background: white;
}

.dialog-body h2 {
  margin: 0 0 12px;
  font-size: 2rem;
  line-height: 1.05;
}

.dialog-body p {
  color: var(--muted);
}

.feature-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #0a1636, #153db5);
  color: white;
  box-shadow: var(--shadow-strong);
}

.contact-card .section-description {
  color: rgba(255, 255, 255, 0.84);
  max-width: 760px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer {
  padding: 24px;
  color: #7c8aa5;
  text-align: center;
}

@media (max-width: 1080px) {
  .service-grid,
  .method-grid,
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 86px;
    right: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    min-width: 220px;
    border-radius: 18px;
    background: rgba(10, 22, 54, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-strong);
  }

  .nav-links.open {
    display: flex;
  }

  .hero-layout,
  .project-toolbar,
  .filters-layout,
  .dialog-layout {
    grid-template-columns: 1fr;
  }

  .metrics-grid,
  .service-grid,
  .method-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-bottom: 44px;
  }

  .navbar {
    margin-bottom: 48px;
  }

  .nav-logo {
    width: 150px;
  }

  .hero-copy h1 {
    max-width: 100%;
  }

  .contact-card {
    padding: 24px;
  }
}

@media (max-width: 560px) {
  .hero,
  .metrics,
  .section,
  .footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .navbar {
    margin-bottom: 34px;
  }

  .brand-text small {
    display: none;
  }

  .button,
  .action-link,
  .detail-button {
    width: 100%;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .metric-card,
  .service-card,
  .method-card,
  .filter-panel,
  .card-body,
  .dialog-body {
    padding: 18px;
  }
}


/* ============================================================
   Ajustes v5 — landing minimalista corporativa Sképsis Apps
   ============================================================ */

.hero {
  padding-bottom: 58px;
}

.navbar {
  margin-bottom: 56px;
}

.hero-copy {
  max-width: 1080px;
}

.hero-copy h1 {
  max-width: 1080px;
  font-size: clamp(2.05rem, 4vw, 4.15rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-description {
  max-width: 980px;
}

.hero-points {
  display: none;
}

.compact-section {
  padding-top: 48px;
  padding-bottom: 48px;
}

.services,
.methodology,
.value-section {
  border-top: 1px solid rgba(219, 229, 244, 0.75);
}

.solution-list,
.tech-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.solution-list span,
.tech-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: white;
  color: var(--text);
  padding: 8px 14px;
  font-weight: 750;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.tech-cloud span {
  background: var(--panel-soft);
  color: var(--accent-dark);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.value-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: white;
  padding: 18px;
  color: var(--muted);
  font-weight: 700;
  box-shadow: var(--shadow);
}

.positioning-card {
  margin-top: 24px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #0a1636, #153db5);
  color: white;
  padding: 28px;
  box-shadow: var(--shadow-strong);
}

.positioning-card p {
  margin: 0;
  max-width: 900px;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  line-height: 1.25;
  font-weight: 850;
  letter-spacing: -0.035em;
}

.contact-card {
  align-items: flex-start;
}

.contact-actions {
  min-width: min(100%, 360px);
}

.whatsapp-list {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding-top: 8px;
  color: rgba(255, 255, 255, 0.88);
}

.whatsapp-list p {
  margin: 0;
}

.whatsapp-list a {
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}


@media (max-width: 1080px) {
  .value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .navbar {
    margin-bottom: 40px;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 8vw, 3.2rem);
  }

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

  .solution-list span,
  .tech-cloud span {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}


/* ============================================================
   Ajuste v7: portafolio minimalista y modal legible
   Corrige recortes de diagramas SVG y desborde del resumen.
   ============================================================ */

.card-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  min-height: 210px;
  max-height: 260px;
  padding: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 16px;
}

.card-body {
  align-content: start;
}

.card-summary {
  line-height: 1.65;
}

.action-link,
.details-button,
.detail-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: white;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.details-button:hover,
.detail-button:hover,
.action-link:hover {
  transform: translateY(-1px);
}

.project-dialog {
  width: min(1080px, calc(100% - 32px));
  max-height: 92vh;
  overflow: auto;
  border-radius: 26px;
}

#dialogContent {
  padding: 0;
}

.dialog-layout {
  display: block;
}

.dialog-body {
  padding: clamp(24px, 4vw, 42px);
  background: white;
}

.dialog-body > p {
  line-height: 1.7;
}

.dialog-body h2 {
  max-width: 880px;
}

.dialog-section {
  margin-top: 26px;
}

.dialog-section h3 {
  margin: 0 0 12px;
  font-size: 1.08rem;
  color: var(--text);
}

.dialog-section p {
  margin: 0;
  line-height: 1.75;
}

.dialog-architecture {
  display: grid;
  gap: 12px;
  margin: 26px 0 6px;
}

.dialog-architecture h3 {
  margin: 0;
  font-size: 1.08rem;
}

.dialog-image {
  display: block;
  width: 100%;
  max-height: min(58vh, 540px);
  height: auto;
  object-fit: contain;
  object-position: center;
  border: 1px solid #dbeafe;
  border-radius: 22px;
  background: #f8fbff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}


.architecture-zoom-button {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #ffffff;
  color: #0f3b66;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.architecture-zoom-button:hover,
.architecture-zoom-button:focus-visible {
  background: #eff6ff;
  outline: none;
  box-shadow: 0 0 0 4px rgba(22, 93, 255, 0.18);
}

.feature-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.link-list {
  gap: 12px;
}

body.dialog-open {
  overflow: hidden;
}

@media (max-width: 820px) {
  .project-dialog {
    width: calc(100% - 18px);
    max-height: 94vh;
    border-radius: 22px;
  }

  .dialog-body {
    padding: 22px;
  }

  .dialog-body h2 {
    font-size: 1.55rem;
  }

  .dialog-image {
    max-height: 360px;
  }

  .card-image-wrap {
    min-height: 180px;
    max-height: 220px;
  }
}



/* ============================================================
   Zoom de arquitecturas del portafolio
   ============================================================ */

.zoomable-image {
  cursor: zoom-in;
}

.card-image-wrap.zoomable-image {
  outline: none;
}

.card-image-wrap.zoomable-image:focus-visible,
.dialog-image.zoomable-image:focus-visible {
  box-shadow: 0 0 0 4px rgba(22, 93, 255, 0.24);
}

.zoom-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(15, 23, 42, 0.78);
  color: white;
  font-size: 0.78rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.card-image-wrap:hover .zoom-hint,
.card-image-wrap:focus-visible .zoom-hint {
  opacity: 1;
  transform: translateY(0);
}


.project-dialog.dialog-zoom-open {
  overflow: hidden;
}

.project-dialog .image-zoom-overlay {
  z-index: 100000;
}

.project-dialog .image-zoom-panel {
  width: min(1400px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
}

.project-dialog .image-zoom-img {
  width: 100%;
  max-width: none;
  max-height: none;
}

.image-zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 15, 41, 0.82);
  backdrop-filter: blur(4px);
}

.image-zoom-panel {
  width: min(1280px, 100%);
  max-height: calc(100vh - 48px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border-radius: 22px;
  background: white;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
}

.image-zoom-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}

.image-zoom-header h3 {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.28rem);
  line-height: 1.2;
}

.image-zoom-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.image-zoom-control,
.image-zoom-close {
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: none;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.image-zoom-control {
  background: #eff6ff;
  color: #0f3b66;
  border: 1px solid #bfdbfe;
  font-size: 1rem;
}

.image-zoom-reset {
  min-width: 64px;
}

.image-zoom-close {
  width: 42px;
  flex: 0 0 auto;
  background: var(--dark);
  color: white;
  font-size: 1.7rem;
}

.image-zoom-canvas {
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 132px);
  overflow: auto;
  display: block;
  background: #f8fbff;
  cursor: zoom-in;
  text-align: left;
}

.image-zoom-canvas.is-zoomed {
  cursor: grab;
}

.image-zoom-img {
  display: block;
  width: 100%;
  min-width: 100%;
  height: auto;
  max-height: none;
  padding: 10px;
  object-fit: contain;
  background: #f8fbff;
  transform: none;
  transform-origin: top left;
  transition: width 0.16s ease;
  box-sizing: border-box;
}

body.image-zoom-open {
  overflow: hidden;
}

@media (max-width: 820px) {
  .image-zoom-overlay {
    padding: 10px;
  }

  .image-zoom-panel {
    max-height: calc(100vh - 20px);
    border-radius: 18px;
  }

  .image-zoom-header {
    padding: 12px 14px;
  }

  .image-zoom-img {
    padding: 8px;
    max-height: none;
  }

  .zoom-hint {
    opacity: 1;
    transform: none;
  }
}


/* ============================================================
   v15: eliminación del filtro visual "Estado"
   ============================================================ */
.filters-layout-single {
  grid-template-columns: 1fr;
}

.filters-layout-single .filter-panel {
  width: 100%;
}


/* ============================================================
   v17: selector bilingüe español / inglés
   ============================================================ */
.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: #ffffff;
  color: #165dff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(4, 10, 33, 0.12);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.language-toggle:hover {
  transform: translateY(-1px);
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.22);
  color: #0d3fb9;
}

.language-toggle:focus-visible {
  outline: 3px solid rgba(147, 197, 253, 0.72);
  outline-offset: 3px;
}

.language-label {
  color: #165dff;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .navbar {
    gap: 14px;
  }

  .nav-links {
    gap: 18px;
  }
}

@media (max-width: 820px) {
  .nav-actions {
    margin-left: auto;
  }

  .nav-links {
    top: 92px;
    right: 24px;
  }
}

@media (max-width: 560px) {
  .language-toggle {
    min-height: 40px;
    padding: 8px 14px;
  }
}


/* ============================================================
   v24: arquitectura tecnológica homogénea + zoom con acercamiento
   ============================================================ */
.dialog-architecture {
  overflow: visible;
}

.dialog-image {
  width: 100%;
  max-height: min(78vh, 980px);
  object-fit: contain;
}

.card-image {
  object-fit: contain;
}


/* v28: evita que el encabezado del visor de arquitectura choque con los bordes del modal */
.image-zoom-header {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #ffffff;
}

.image-zoom-header h3 {
  max-width: min(920px, 62vw);
  overflow-wrap: anywhere;
}

.image-zoom-canvas {
  scroll-padding-top: 24px;
}

.image-zoom-img {
  padding-top: 34px;
}
