@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Work+Sans:wght@300;400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ==================== VARIABLES Y BASE ==================== */
:root {
  --navy-950: #070f1e;
  --navy-900: #0b1a30;
  --navy-800: #0f2a4a;
  --steel-600: #3b6ea5;
  --steel-400: #6d93bc;
  --silver-300: #c7cdd6;
  --silver-100: #e8eaee;
  --platinum-50: #f5f6f8;
  --ink-900: #12161c;
  --ink-600: #4a5563;
  --cyan-400: #5fd1e8;
  --line: #d7dce3;
  --radius: 2px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Work Sans', sans-serif;
  color: var(--ink-900);
  background: var(--platinum-50);
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 600;
  color: var(--navy-900);
}

.mono {
  font-family: 'IBM Plex Mono', monospace;
}

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

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel-600);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--steel-600);
}

/* ==================== BOTONES ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 26px;
  border: 1px solid transparent;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all 0.25s ease;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--steel-600);
  color: #fff;
}

.btn-primary:hover {
  background: var(--cyan-400);
  color: var(--navy-950);
}

.btn-outline {
  border-color: var(--silver-300);
  color: var(--platinum-50);
}

.btn-outline:hover {
  border-color: var(--cyan-400);
  color: var(--cyan-400);
}

.btn-dark-outline {
  border-color: var(--navy-800);
  color: var(--navy-800);
  background: transparent !important;
}

.btn-dark-outline:hover {
  border-color: var(--steel-600);
  background: var(--navy-900) !important;
  color: #fff;
}

.site-header .btn-dark-outline {
  background: var(--navy-900) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  padding: 9px 14px;
  font-size: 0.74rem;
  white-space: nowrap;
}

.site-header .btn-dark-outline:hover {
  background: #1e293b !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
}

/* ==================== HEADER Y NAVEGACIÓN ==================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(7, 15, 30, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(199, 205, 214, 0.15);
  transition: padding 0.3s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  max-width: 1280px;
  margin: 0 auto;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand img {
  height: 40px;
  width: auto;
}

.brand-text {
  font-family: 'Oswald', sans-serif;
  color: #fff;
  font-size: 1.12rem;
  letter-spacing: 0.05em;
  line-height: 1.1;
  font-weight: 600;
  white-space: nowrap;
}

.brand-text span {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: 0.66rem;
  color: var(--silver-300);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  margin-top: 2px;
}

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

.nav-links a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--silver-100);
  position: relative;
  padding-bottom: 4px;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--cyan-400);
  transition: width 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
}

.nav-mobile-panel {
  display: none;
}

/* Selector de idiomas */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 2px;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--silver-300);
  cursor: pointer;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  padding: 4px 2px;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.lang-btn:hover,
.lang-btn.active {
  color: var(--cyan-400);
  font-weight: 600;
}

.lang-sep {
  color: rgba(199, 205, 214, 0.3);
}

.mobile-lang-row {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(199, 205, 214, 0.1);
}

/* ==================== HERO ==================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, var(--navy-950) 0%, var(--navy-900) 45%, var(--navy-800) 100%);
  overflow: hidden;
  padding-top: 104px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.025) 0px,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 42px
  );
  pointer-events: none;
}

.hero-v {
  position: absolute;
  right: 2%;
  top: 52%;
  transform: translateY(-50%);
  width: 48%;
  max-width: 580px;
  opacity: 0.72;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 32px 84px;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.hero-content .eyebrow {
  color: var(--cyan-400);
}

.hero-content .eyebrow::before {
  background: var(--cyan-400);
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 5.2vw, 4.2rem);
  line-height: 1.04;
  max-width: 760px;
  opacity: 0;
  transform: translateY(24px);
  animation: riseIn 0.9s ease forwards 0.15s;
}

.hero h1 em {
  font-style: normal;
  color: var(--cyan-400);
}

.hero p.lead {
  margin-top: 22px;
  max-width: 560px;
  color: var(--silver-100);
  font-size: 1.05rem;
  font-weight: 300;
  opacity: 0;
  transform: translateY(20px);
  animation: riseIn 0.9s ease forwards 0.35s;
}

.hero-ctas {
  margin-top: 34px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: riseIn 0.9s ease forwards 0.5s;
}

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

.stat-plate-row {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 700px;
  opacity: 0;
  animation: riseIn 0.9s ease forwards 0.65s;
}

.stat-plate {
  background: rgba(11, 26, 48, 0.78);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(109, 147, 188, 0.24);
  border-top: 3px solid var(--steel-400);
  padding: 18px 20px;
  border-radius: var(--radius);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.stat-plate:hover {
  transform: translateY(-3px);
  border-color: var(--steel-400);
}

.stat-plate .num {
  font-family: 'Oswald', sans-serif;
  font-size: 2.1rem;
  color: #8cb4de;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.stat-plate .label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #ffffff;
  margin-top: 8px;
}

/* ==================== SECCIONES Y DIVISORES ==================== */
.section-wedge {
  position: relative;
  display: block;
  width: 100%;
  height: 54px;
  margin-bottom: -1px;
  overflow: hidden;
}

.section-wedge::before {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 50% 100%, 100% 0);
}

.section-wedge--d2l {
  background: var(--platinum-50);
}

.section-wedge--d2l::before {
  background: var(--navy-950);
}

.section-wedge--l2d {
  background: var(--navy-950);
}

.section-wedge--l2d::before {
  background: var(--platinum-50);
}

section {
  padding: 120px 0;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.section-head {
  max-width: 640px;
  margin-bottom: 64px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.section-head p {
  color: var(--ink-600);
  margin-top: 16px;
  font-size: 1.02rem;
}

/* ==================== SERVICIOS ==================== */
.services {
  background: var(--platinum-50);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  padding: 38px 30px 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 40px -20px rgba(15, 42, 74, 0.25);
  border-color: var(--steel-600);
}

.rivet {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--silver-300);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

.rivet.tl { top: 12px; left: 12px; }
.rivet.tr { top: 12px; right: 12px; }
.rivet.bl { bottom: 12px; left: 12px; }
.rivet.br { bottom: 12px; right: 12px; }

.service-card .icon {
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  color: var(--steel-600);
}

.service-card .num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--silver-300);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  display: block;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--ink-600);
  font-size: 0.94rem;
  margin-bottom: 18px;
}

.service-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-card li {
  font-size: 0.85rem;
  color: var(--ink-900);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.service-card li::before {
  content: '—';
  color: var(--steel-600);
  flex-shrink: 0;
}

/* ==================== CLIENTES Y FICHAS DESPLEGABLES ==================== */
.clients {
  background: var(--navy-950);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.clients .section-head h2,
.clients .section-head p {
  color: #fff;
}

.clients .section-head p {
  color: var(--silver-300);
}

.clientes-fila {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 28px;
  width: 100%;
  margin: 0 0 40px 0;
}

.ficha-cliente {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(199, 205, 214, 0.22);
  background: #0f1923;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.ficha-cliente:hover,
.ficha-cliente:focus-within {
  transform: translateY(-3px);
  border-color: rgba(95, 209, 232, 0.55);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}

.ficha-cliente__logo-box {
  background: #ffffff;
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ficha-cliente__logo-box--nissi,
.ficha-cliente__logo-box--morteros {
  padding: 14px 18px;
}

.ficha-cliente__logo-box--kaminari {
  padding: 10px 16px;
}

.ficha-cliente__logo-box img {
  width: 100%;
  object-fit: contain;
}

.ficha-cliente__logo-box--nissi img,
.ficha-cliente__logo-box--morteros img {
  max-height: 102px;
}

.ficha-cliente__logo-box--kaminari img {
  max-height: 112px;
}

.ficha-cliente__cuerpo {
  padding: 12px 16px;
  border-top: 2px solid rgba(95, 209, 232, 0.45);
}

.ficha-cliente__cabecera {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.ficha-cliente__nombre {
  color: #f1f5f9;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.ficha-indicador {
  transition: transform 0.25s ease;
  color: rgba(95, 209, 232, 0.75);
  font-size: 0.85rem;
}

.ficha-cliente {
  cursor: pointer;
}

.ficha-cliente.is-open .ficha-indicador {
  transform: rotate(45deg);
  color: var(--cyan-400);
}

.ficha-detalles {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  border-top: 1px solid transparent;
  padding-top: 0;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: max-height 0.35s ease, opacity 0.25s ease, margin-top 0.25s ease, padding-top 0.25s ease, border-color 0.25s ease;
}

.ficha-cliente.is-open .ficha-detalles {
  max-height: 130px;
  opacity: 1;
  margin-top: 8px;
  padding-top: 8px;
  border-top-color: rgba(148, 163, 184, 0.15);
}

.ficha-detalles__link {
  margin-top: 4px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--cyan-400);
  text-decoration: underline;
  text-underline-offset: 3px;
  align-self: flex-start;
}

.ficha-detalles__rif {
  color: #cbd5e1;
  font-size: 0.74rem;
}

.ficha-detalles__sector {
  color: #94a3b8;
  font-size: 0.74rem;
}

/* ==================== MÉTRICAS DINÁMICAS ==================== */
.metricas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  width: 100%;
}

.metrica-card {
  background: linear-gradient(180deg, rgba(16, 28, 42, 0.92) 0%, rgba(11, 20, 31, 0.96) 100%);
  border: 1px solid rgba(199, 205, 214, 0.18);
  border-radius: 8px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.metrica-card:hover {
  transform: translateY(-3px);
  border-color: rgba(95, 209, 232, 0.55);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

.metrica-card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.metrica-card__valor {
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1;
  color: #5fd1e8;
  letter-spacing: -0.02em;
}

.metrica-card__tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(148, 163, 184, 0.85);
}

.metrica-card__barra {
  width: 100%;
  height: 3px;
  background: rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  overflow: hidden;
}

.metrica-card__barra-relleno {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #5fd1e8);
  border-radius: 999px;
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.metrica-card.is-visible .metrica-card__barra-relleno {
  width: 100%;
}

.metrica-card__titulo {
  margin: 4px 0 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #f1f5f9;
  line-height: 1.4;
}

.metrica-card__detalle {
  margin: 0;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.45;
}

/* ==================== CONTACTO INDUSTRIAL ==================== */
.contact {
  background: var(--platinum-50);
  padding: 100px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  width: 100%;
  align-items: stretch;
}

.contact-form {
  position: relative;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-top: 3px solid var(--steel-600);
  padding: 36px 34px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 14px 30px -22px rgba(15, 42, 74, 0.28);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-form:hover {
  border-color: var(--steel-600);
  box-shadow: 0 20px 36px -20px rgba(15, 42, 74, 0.28);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-900);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  padding: 12px 14px;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.94rem;
  color: var(--ink-900);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #94a3b8;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  background: #ffffff;
  outline: none;
  border-color: var(--steel-600);
  box-shadow: 0 0 0 3px rgba(59, 110, 165, 0.16);
}

.field textarea {
  resize: vertical;
  min-height: 104px;
}

.contact-form .btn {
  padding: 13px 24px;
  font-size: 0.8rem;
  margin-top: 4px;
}

.form-note {
  font-size: 0.84rem;
  color: var(--ink-600);
  display: none;
}

.form-note.show {
  display: block;
  padding: 12px 14px;
  background: #e8f3ee;
  border-left: 3px solid #2f8f5b;
  color: #1c5c3a;
}

.contact-info {
  position: relative;
  background: var(--navy-900);
  border: 1px solid rgba(199, 205, 214, 0.22);
  border-top: 3px solid var(--steel-400);
  color: #fff;
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 18px 34px -22px rgba(7, 15, 30, 0.55);
}

.contact-info .rivet {
  background: rgba(199, 205, 214, 0.45);
}

.contact-info h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.info-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.info-row .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--cyan-400);
}

.info-row div .lbl {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.64rem;
  color: var(--silver-300);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.info-row div .val {
  font-size: 0.88rem;
  color: var(--silver-100);
  line-height: 1.4;
}

/* ==================== FOOTER ==================== */
.site-footer {
  background: var(--navy-950);
  color: var(--silver-300);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand img {
  height: 36px;
}

.footer-brand span {
  font-family: 'Oswald', sans-serif;
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.site-footer p.desc {
  font-size: 0.88rem;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 12px;
  color: var(--silver-300);
}

.footer-col a:hover {
  color: var(--cyan-400);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(199, 205, 214, 0.12);
  font-size: 0.78rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==================== MODAL DATOS LEGALES ==================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 15, 30, 0.82);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 20px;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-panel {
  background: var(--navy-900);
  border: 1px solid rgba(199, 205, 214, 0.2);
  max-width: 540px;
  width: 100%;
  padding: 40px 34px 34px;
  position: relative;
  transform: translateY(14px);
  transition: transform 0.25s ease;
}

.modal-overlay.open .modal-panel {
  transform: translateY(0);
}

.modal-panel .rivet {
  background: var(--silver-300);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--silver-300);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: #fff;
}

.modal-panel .eyebrow {
  color: var(--cyan-400);
}

.modal-panel .eyebrow::before {
  background: var(--cyan-400);
}

.modal-panel h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.legal-venezuela-box p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 14px;
  color: var(--silver-300);
}

.legal-venezuela-box strong {
  color: #ffffff;
}

.legal-venezuela-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(199, 205, 214, 0.15);
}

.legal-venezuela-box li {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--silver-100);
}

.legal-venezuela-box li::before {
  content: '■';
  color: var(--cyan-400);
  font-size: 0.6rem;
}

.badge-proceso {
  display: inline-block;
  background: rgba(232, 185, 62, 0.15);
  border: 1px dashed #e8b93e;
  color: #e8b93e;
  padding: 4px 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  border-radius: 2px;
  margin-top: 4px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1080px) {
  .nav-links,
  .lang-switch {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-mobile-panel {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--navy-950);
    border-top: 1px solid rgba(199, 205, 214, 0.15);
    display: flex;
    flex-direction: column;
    padding: 20px 32px 30px;
    gap: 4px;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    z-index: 99;
    visibility: hidden;
  }

  .nav-mobile-panel.open {
    visibility: visible;
    transform: translateY(0);
  }

  .nav-mobile-panel a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(199, 205, 214, 0.1);
    font-family: 'IBM Plex Mono', monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--silver-100);
  }

  .nav-mobile-panel .btn {
    margin-top: 12px;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .nav {
    padding: 12px 14px;
    gap: 8px;
  }

  .brand {
    gap: 8px;
  }

  .brand img {
    height: 32px;
  }

  .brand-text {
    font-size: 0.95rem;
  }

  .nav-actions {
    gap: 6px;
  }

  .nav-actions .btn-dark-outline {
    padding: 7px 8px;
    font-size: 0.62rem;
    letter-spacing: 0.02em;
  }

  .form-row-2,
  .service-grid,
  .clientes-fila,
  .metricas-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid,
  .footer-grid {
    gap: 20px;
  }

  .contact-form,
  .contact-info {
    padding: 22px 18px;
  }

  .stat-plate-row {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 32px;
  }

  .stat-plate {
    padding: 14px 16px;
  }

  .stat-plate .num {
    font-size: 1.75rem;
  }

  section {
    padding: 72px 0;
  }

  .hero-v {
    width: 70%;
    opacity: 0.35;
  }
}

.info-link {
  color: var(--silver-100);
  text-decoration: underline;
  text-decoration-color: rgba(95, 209, 232, 0.45);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.info-link:hover {
  color: var(--cyan-400);
  text-decoration-color: var(--cyan-400);
}

@media (max-width: 1080px) {
  .desktop-only-action {
    display: none !important;
  }

  .nav-mobile-panel .mobile-lang-row {
    border-bottom: none;
    padding-bottom: 4px;
    gap: 20px;
  }
}

.nav-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-btn-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.nav-btn-flag {
  width: 18px;
  height: 13px;
  object-fit: cover;
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.site-header .nav-gear-btn {
  padding: 9px 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
}

.site-header .nav-gear-btn svg {
  width: 16px;
  height: 16px;
  display: block;
  transition: transform 0.25s ease;
}

.site-header .nav-gear-btn:hover svg {
  transform: rotate(45deg);
}

.nav-mobile-panel .mobile-flag-link {
  display: flex;
  align-items: center;
  gap: 10px;
}


/* ==================== ESTILOS ESPECÍFICOS SEDE ALEMANIA (/de/) ==================== */
.service-grid-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.client-marquee {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 44px;
}

.client-cell {
  background: rgba(15, 25, 35, 0.9);
  border: 1px solid rgba(199, 205, 214, 0.2);
  border-left: 3px solid var(--cyan-400);
  padding: 18px 16px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 76px;
}

.client-cell span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--silver-100);
  text-transform: uppercase;
}

.commitment-wrap {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.commitment-quote {
  background: rgba(11, 26, 48, 0.78);
  border: 1px solid rgba(109, 147, 188, 0.25);
  border-top: 3px solid var(--cyan-400);
  padding: 28px 26px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.commitment-quote p {
  font-size: 1.02rem;
  color: #ffffff;
  line-height: 1.6;
  font-style: italic;
}

.commitment-quote .who {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem;
  color: var(--cyan-400);
  letter-spacing: 0.06em;
}

.commitment-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.cstat {
  background: rgba(15, 25, 35, 0.92);
  border: 1px solid rgba(199, 205, 214, 0.18);
  border-top: 2px solid var(--steel-400);
  padding: 18px 16px;
  border-radius: var(--radius);
}

.cstat .num {
  font-family: 'Oswald', sans-serif;
  font-size: 1.65rem;
  color: var(--cyan-400);
  line-height: 1.1;
  font-weight: 600;
}

.cstat .label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--silver-300);
  margin-top: 6px;
  line-height: 1.35;
}

.legal-body p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 14px;
  color: var(--silver-300);
}

.legal-body strong {
  color: #ffffff;
}

.placeholder-tag {
  display: inline-block;
  background: rgba(232, 185, 62, 0.14);
  border: 1px dashed #e8b93e;
  color: #e8b93e;
  padding: 2px 7px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  border-radius: 2px;
}

@media (max-width: 1080px) {
  .service-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .client-marquee {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .service-grid-4,
  .client-marquee,
  .commitment-wrap,
  .commitment-stats {
    grid-template-columns: 1fr;
  }
}
