*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Base industrial CST */
  --ink: #07111f;
  --ink2: #0b1b2e;
  --ink3: #102a44;

  /* Azules corporativos */
  --steel: #1f4e79;
  --steel-light: #2f80b7;
  --blue-accent: #009de1;

  /* Blanco de acción */
  --amber: #f5f5f5;
  --amber-dim: #dcdcdc;
  --amber-glow: rgba(245, 245, 245, 0.14);

  /* Textos */
  --white: #f5f7fa;
  --white-dim: rgba(245, 247, 250, 0.68);
  --white-faint: rgba(245, 247, 250, 0.12);

  /* Líneas / grid */
  --grid: rgba(255, 255, 255, 0.035);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ink);
  color: var(--white);
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
  padding-top: 90px;
}

body.menu-open {
  overflow: hidden;
}

/* ───────────── NAV ───────────── */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;

  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 5vw;
  background: rgba(7, 17, 31, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--white-faint);
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  height: 100%;
  flex-shrink: 0;
}

.logo img {
  width: auto;
  height: 38px;
  max-height: 38px;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links>li {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-links>li>a {
  height: 90px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-dim);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;

  transition: color 0.2s;
}

.nav-links>li>a:hover {
  color: var(--blue-accent);
}

/* Botón independiente del menú */
.nav-cta {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 42px;
  padding: 0.55rem 1.4rem;

  border: 1.5px solid var(--amber);
  color: var(--amber);
  background: transparent;

  line-height: 1;
  white-space: nowrap;

  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.nav-cta:hover {
  background: var(--amber);
  color: var(--ink);
  border-color: var(--amber);
}

/* ───────────── NAV DROPDOWN ───────────── */

.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  gap: 0.4rem;
}

.dropdown-toggle span {
  display: inline-block;
  line-height: 1;
}

.dropdown-arrow {
  font-size: 0.65rem;
  line-height: 1;
  position: relative;
  top: -1px;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* Puente invisible para que el menú no desaparezca al bajar el ratón */
.nav-dropdown::after {
  content: '';
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 6px;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 1px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);

  min-width: 190px;
  padding: 0.7rem 0;
  list-style: none;

  background: var(--ink2);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  display: block;
  height: auto;

  padding: 0.85rem 1.2rem;

  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 600;
  line-height: 1.2;

  color: var(--white);
  text-decoration: none;
  white-space: nowrap;

  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  padding-left: 1.45rem;
}

/* ───────────── MOBILE MENU ───────────── */

.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;

  border: 1px solid var(--white-faint);
  background: transparent;
  color: var(--white);

  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;

  cursor: pointer;
  z-index: 1001;
  flex-shrink: 0;
}

.mobile-menu-btn span {
  width: 22px;
  height: 2px;
  display: block;

  background: var(--white);
  border-radius: 999px;

  transition: transform 0.22s ease, opacity 0.22s ease;
}

/* Estado abierto: icono X */
.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 90px;
  left: 0;
  right: 0;
  z-index: 1000;

  display: flex;
  flex-direction: column;

  background: rgba(7, 17, 31, 0.98);
  border-top: 1px solid var(--white-faint);
  border-bottom: 1px solid var(--white-faint);
  backdrop-filter: blur(14px);

  padding: 1rem 5vw 1.4rem;

  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-12px);

  max-height: calc(100vh - 90px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;

  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu a,
.mobile-menu-group span {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;

  color: var(--white);
  padding: 0.95rem 0;

  border-bottom: 1px solid var(--white-faint);
}

.mobile-menu a:hover {
  color: var(--blue-accent);
}

.mobile-menu-group {
  display: flex;
  flex-direction: column;
}

.mobile-menu-group span {
  color: var(--blue-accent);
  cursor: default;
}

.mobile-menu-group a {
  font-size: 0.9rem;
  font-weight: 600;
  padding-left: 1rem;
  color: var(--white-dim);
}

.mobile-menu-cta {
  margin-top: 1rem;
  text-align: center;

  background: var(--amber);
  color: var(--ink) !important;
  border: 2px solid var(--amber) !important;
  padding: 1rem 1.4rem !important;
}

.mobile-menu-cta:hover {
  background: var(--amber-dim);
  color: var(--ink) !important;
}

/* Scrollbar discreta */
.mobile-menu::-webkit-scrollbar {
  width: 5px;
}

.mobile-menu::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}

.mobile-menu::-webkit-scrollbar-thumb {
  background: var(--blue-accent);
}

/* ───────────── HERO ───────────── */

#hero {
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  padding: 0 5vw;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-glow {
  position: absolute;
  right: -8vw;
  top: 50%;
  transform: translateY(-50%);
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(0, 157, 225, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding-top: 3rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;

  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  color: var(--amber);
  margin-bottom: 1.8rem;
}

.hero-tag::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1.5px;
  background: var(--amber);
}

h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(3.2rem, 7vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
}

h1 em {
  font-style: normal;
  color: var(--blue-accent);
  display: block;
}

.hero-body {
  font-size: 1.05rem;
  color: var(--white-dim);
  max-width: 540px;
  margin-bottom: 2.8rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn-primary {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;

  padding: 0.9rem 2.4rem;
  background: var(--amber);
  color: var(--ink);
  border: 2px solid var(--amber);

  transition: background 0.2s, transform 0.15s, border-color 0.2s;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--amber-dim);
  border-color: var(--amber-dim);
  transform: translateY(-2px);
}

.btn-ghost {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;

  color: var(--white-dim);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;

  transition: color 0.2s;
}

.btn-ghost svg {
  transition: transform 0.2s;
}

.btn-ghost:hover {
  color: var(--white);
}

.btn-ghost:hover svg {
  transform: translateX(4px);
}

.hero-visual {
  position: absolute;
  right: 5vw;
  top: 50%;
  transform: translateY(-50%);
  width: 38vw;
  max-width: 520px;
  opacity: 0.12;
  pointer-events: none;
}

.gear-outer {
  animation: spin 32s linear infinite;
  transform-origin: 50% 50%;
}

.gear-inner {
  animation: spin 18s linear infinite reverse;
  transform-origin: 50% 50%;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ───────────── STATS BAR ───────────── */

.stats-bar {
  background: var(--ink2);
  border-top: 1px solid var(--white-faint);
  border-bottom: 1px solid var(--white-faint);
  padding: 2.2rem 5vw;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--blue-accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-top: 0.3rem;
}

/* ───────────── SECTIONS SHARED ───────────── */

section {
  padding: 7rem 5vw;
}

.section-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;

  color: var(--amber);
  margin-bottom: 1rem;

  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-tag::before {
  content: '//';
  opacity: 0.6;
}

h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.4rem);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 1.2rem;
}

.section-lead {
  font-size: 1rem;
  color: var(--white-dim);
  max-width: 520px;
  margin-bottom: 3.5rem;
}

/* ───────────── WHY ───────────── */

#why {
  background: var(--ink2);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5px;
  background: var(--white-faint);
}

.why-card {
  background: var(--ink2);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: background 0.25s;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;

  height: 3px;
  background: var(--blue-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.why-card:hover {
  background: var(--ink3);
}

.why-card:hover::before {
  transform: scaleX(1);
}

.why-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  color: var(--amber);
}

.why-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.7rem;
}

.why-card p {
  font-size: 0.88rem;
  color: var(--white-dim);
  line-height: 1.7;
}

/* ───────────── PROCESS ───────────── */

#process {
  background: var(--ink);
}

.process-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  gap: 1.8rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--white-faint);
  position: relative;
}

.step:last-child {
  border-bottom: none;
}

.step-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--white-faint);
  line-height: 1;
  min-width: 50px;
  transition: color 0.25s;
}

.step:hover .step-num {
  color: var(--blue-accent);
}

.step-content h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  color: var(--white);
}

.step-content p {
  font-size: 0.86rem;
  color: var(--white-dim);
}

.process-aside {
  position: sticky;
  top: 8rem;
}

.process-box {
  background: var(--ink3);
  border: 1px solid var(--white-faint);
  border-left: 3px solid var(--amber);
  padding: 2.5rem;
}

.process-box h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;

  font-size: 0.85rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--white-faint);
}

.spec-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-list .key {
  color: var(--white-dim);
}

.spec-list .val {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: var(--amber);
}

/* ───────────── SERVICES ───────────── */

#services {
  background: var(--ink2);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--ink);
  border: 1px solid var(--white-faint);
  padding: 2.2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.2s;
}

.service-card:hover {
  border-color: var(--blue-accent);
  transform: translateY(-4px);
}

.service-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  color: var(--ink);
  background: var(--amber);

  padding: 0.25rem 0.7rem;
  display: inline-block;
  margin-bottom: 1.4rem;
}

.service-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.7rem;
}

.service-card p {
  font-size: 0.87rem;
  color: var(--white-dim);
  line-height: 1.7;
  margin-bottom: 1.4rem;
}

.service-link {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  text-decoration: none;

  display: inline-flex;
  align-items: center;
  gap: 0.4rem;

  transition: gap 0.2s, color 0.2s;
}

.service-link:hover {
  gap: 0.8rem;
  color: var(--blue-accent);
}

/* ───────────── BRANDS / TRUST MESSAGE ───────────── */

#brands {
  background: var(--ink);
  padding: 5rem 5vw;
  text-align: center;
  position: relative;
  border-top: 1px solid var(--white-faint);
  border-bottom: 1px solid var(--white-faint);
}

.brands-label {
  max-width: 760px;
  margin: 0 auto;

  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.04em;

  color: var(--white);
  text-transform: uppercase;
  text-align: center;
}

.brands-label::before {
  content: 'COMPATIBILIDAD MULTIMARCA';
  display: block;

  margin-bottom: 1rem;

  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.18em;

  color: var(--blue-accent);
}

.brands-label::after {
  content: '';
  display: block;

  width: 80px;
  height: 2px;
  margin: 1.4rem auto 0;

  background: var(--blue-accent);
}

/* ───────────── CTA ───────────── */

#cta {
  background: linear-gradient(135deg, var(--steel), var(--ink3));
  padding: 6rem 5vw;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
}

#cta h2 {
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  position: relative;
}

#cta p {
  color: var(--white-dim);
  opacity: 1;
  font-size: 1rem;
  max-width: 480px;
  margin: 1rem auto 2.5rem;
  position: relative;
}

.btn-dark {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;

  padding: 1rem 3rem;
  background: var(--amber);
  color: var(--ink);
  border: 2px solid var(--amber);

  display: inline-block;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  position: relative;
}

.btn-dark:hover {
  background: transparent;
  color: var(--amber);
  transform: translateY(-2px);
}

/* ───────────── CONTACT ───────────── */

#contact {
  background: var(--ink2);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-info p {
  font-size: 0.9rem;
  color: var(--white-dim);
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;

  background: rgba(245, 245, 245, 0.1);
  border: 1px solid rgba(245, 245, 245, 0.25);

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--amber);
  font-size: 1.1rem;
}

.contact-item-text {
  font-size: 0.85rem;
}

.contact-item-text strong {
  display: block;
  color: var(--white);
  font-weight: 500;
  margin-bottom: 0.1rem;
}

.contact-item-text span {
  color: var(--white-dim);
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

input,
textarea,
select {
  background: var(--ink);
  border: 1px solid var(--white-faint);
  color: var(--white);

  padding: 0.85rem 1rem;

  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.88rem;

  width: 100%;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
  appearance: none;
}

input::placeholder,
textarea::placeholder {
  color: rgba(245, 247, 250, 0.32);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--blue-accent);
  background: #091727;
}

textarea {
  resize: none;
  height: 130px;
  min-height: 130px;
  max-height: 130px;
}

select option {
  background: var(--ink2);
}

.form-error {
  min-height: 1.2rem;
  font-size: 0.82rem;
  color: #ffb4b4;
  line-height: 1.4;
}

input:required:valid,
textarea:required:valid {
  border-color: rgba(0, 157, 225, 0.65);
}

input:required:invalid:not(:placeholder-shown),
textarea:required:invalid:not(:placeholder-shown) {
  border-color: rgba(255, 120, 120, 0.75);
}

.form-submit {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  padding: 0.9rem 2rem;
  background: var(--amber);
  color: var(--ink);
  border: 2px solid var(--amber);

  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  align-self: flex-start;
}

.form-submit:hover {
  background: var(--amber-dim);
  border-color: var(--amber-dim);
  transform: translateY(-2px);
}

/* ───────────── FOOTER ───────────── */

footer {
  background: var(--ink);
  border-top: 1px solid var(--white-faint);
  padding: 2.5rem 5vw;

  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

footer p {
  font-size: 0.78rem;
  color: var(--white-dim);
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  height: auto;
  flex-shrink: 0;
}

.footer-logo img {
  width: auto;
  height: 18px;
  max-height: 18px;
  display: block;
  object-fit: contain;
}

/* ───────────── SCROLL ANIMATIONS ───────────── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ───────────── FLOATING CONTACT BUTTONS ───────────── */

.floating-contact {
  position: fixed !important;
  right: 24px !important;
  bottom: 24px !important;
  z-index: 9999 !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0.85rem !important;

  width: auto !important;
  height: auto !important;
  pointer-events: auto !important;
}

.floating-btn {
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  min-height: 58px !important;
  max-width: 58px !important;
  max-height: 58px !important;

  border-radius: 50% !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 0 !important;
  margin: 0 !important;

  text-decoration: none !important;
  line-height: 1 !important;

  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35) !important;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease !important;
}

.floating-btn svg {
  width: 27px !important;
  height: 27px !important;
  min-width: 27px !important;
  min-height: 27px !important;
  max-width: 27px !important;
  max-height: 27px !important;

  display: block !important;
  flex-shrink: 0 !important;
}

.floating-btn:hover {
  transform: translateY(-4px) !important;
}

.floating-phone {
  background: var(--white) !important;
  color: var(--ink) !important;
  border: 1px solid rgba(245, 245, 245, 0.35) !important;
}

.floating-phone:hover {
  background: var(--blue-accent) !important;
  color: var(--white) !important;
  box-shadow: 0 18px 45px rgba(0, 157, 225, 0.25) !important;
}

.floating-whatsapp {
  background: #25d366 !important;
  color: #ffffff !important;
  border: 1px solid rgba(37, 211, 102, 0.45) !important;
}

.floating-whatsapp:hover {
  background: #1ebe5d !important;
  color: #ffffff !important;
  box-shadow: 0 18px 45px rgba(37, 211, 102, 0.28) !important;
}

/* ───────────── RESPONSIVE ───────────── */

/* Tablet grande / 1024px: aquí cambia a menú hamburguesa */
@media (max-width: 1024px) {
  nav {
    height: 82px;
    padding: 0 4vw;
  }

  body {
    padding-top: 82px;
  }

  #hero {
    min-height: calc(100vh - 82px);
  }

  .nav-links {
    display: none !important;
  }

  .nav-cta {
    display: none !important;
  }

  .mobile-menu-btn {
    display: flex !important;
  }

  .mobile-menu {
    top: 82px;
    max-height: calc(100vh - 82px);
  }

  .logo img {
    height: 34px;
    max-height: 34px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet pequeña */
@media (max-width: 768px) {
  nav {
    height: 76px;
  }

  body {
    padding-top: 76px;
  }

  #hero {
    min-height: calc(100vh - 76px);
  }

  .mobile-menu {
    top: 76px;
    max-height: calc(100vh - 76px);
  }

  .process-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .process-aside {
    position: static;
  }

  .logo img {
    height: 32px;
    max-height: 32px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  nav {
    gap: 1rem;
  }

  .hero-visual {
    display: none;
  }

  .hero-content {
    padding-top: 3rem;
  }

  section {
    padding: 5rem 5vw;
  }

  .logo img {
    height: 30px;
    max-height: 30px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  #brands {
    padding: 4rem 5vw;
  }

  .brands-label {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .brands-label::before {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
  }

  .footer-logo img {
    height: 20px;
    max-height: 20px;
  }

  .floating-contact {
    right: 16px !important;
    bottom: 16px !important;
    gap: 0.7rem !important;
  }

  .floating-btn {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    max-width: 52px !important;
    max-height: 52px !important;
  }

  .floating-btn svg {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
  }
}

/* Mobile pequeño */
@media (max-width: 480px) {
  nav {
    height: 68px;
  }

  body {
    padding-top: 68px;
  }

  #hero {
    min-height: calc(100vh - 68px);
  }

  .mobile-menu {
    top: 68px;
    max-height: calc(100vh - 68px);
    padding: 0.8rem 5vw 1.2rem;
  }

  .mobile-menu-btn {
    width: 40px;
    height: 40px;
  }

  .mobile-menu-btn span {
    width: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .logo img {
    height: 28px;
    max-height: 28px;
  }

  h1 {
    font-size: clamp(2.8rem, 14vw, 4rem);
  }

  .footer-logo img {
    height: 18px;
    max-height: 18px;
  }
}

/* Desktop */
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }

  .mobile-menu-btn {
    display: none !important;
  }
}

/* ───────────── MOBILE MENU FIX FINAL ───────────── */

.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--white-faint);
  background: transparent;
  color: var(--white);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 10001;
  flex-shrink: 0;
  padding: 0;
}

.mobile-menu-btn span {
  width: 22px;
  height: 2px;
  display: block;
  background: var(--white);
  border-radius: 999px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 82px;
  left: 0;
  right: 0;
  z-index: 10000;

  display: flex;
  flex-direction: column;

  background: rgba(7, 17, 31, 0.98);
  border-top: 1px solid var(--white-faint);
  border-bottom: 1px solid var(--white-faint);
  backdrop-filter: blur(14px);

  padding: 1rem 5vw 1.4rem;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-12px);

  max-height: calc(100dvh - 82px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;

  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);

  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Esto corrige los enlaces azules y subrayados */
.mobile-menu a,
.mobile-menu a:visited,
.mobile-menu a:active,
.mobile-menu-group span {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none !important;

  color: var(--white) !important;
  padding: 0.95rem 0;

  border-bottom: 1px solid var(--white-faint);
}

.mobile-menu a:hover {
  color: var(--blue-accent) !important;
}

.mobile-menu-group {
  display: flex;
  flex-direction: column;
}

.mobile-menu-group span {
  color: var(--blue-accent) !important;
  cursor: default;
}

.mobile-menu-group a,
.mobile-menu-group a:visited {
  font-size: 0.9rem;
  font-weight: 600;
  padding-left: 1rem;
  color: var(--white-dim) !important;
}

.mobile-menu-cta,
.mobile-menu-cta:visited {
  margin-top: 1rem;
  text-align: center;

  background: var(--amber);
  color: var(--ink) !important;
  border: 2px solid var(--amber) !important;
  padding: 1rem 1.4rem !important;
}

.mobile-menu-cta:hover {
  background: var(--amber-dim);
  color: var(--ink) !important;
}

body.menu-open {
  overflow: hidden;
}

/* Desde 1024 hacia abajo: activar menú móvil */
@media (max-width: 1024px) {
  nav {
    height: 82px;
    padding: 0 4vw;
  }

  body {
    padding-top: 82px;
  }

  .nav-links {
    display: none !important;
  }

  .nav-cta {
    display: none !important;
  }

  .mobile-menu-btn {
    display: flex !important;
  }

  .mobile-menu {
    top: 82px;
    max-height: calc(100dvh - 82px);
  }
}

/* iPhone / mobile */
@media (max-width: 600px) {
  nav {
    height: 68px;
  }

  body {
    padding-top: 68px;
  }

  .mobile-menu {
    top: 68px;
    max-height: calc(100dvh - 68px);
    padding: 0.85rem 5vw 1.3rem;
  }

  .mobile-menu-btn {
    width: 42px;
    height: 42px;
  }

  .mobile-menu-btn span {
    width: 21px;
  }
}

/* Desktop */
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }

  .mobile-menu-btn {
    display: none !important;
  }
}

/* ───────────── FIX MOBILE CTA + PHONE LINKS ───────────── */

/* Corrige el botón "Solicitar Presupuesto" dentro del menú mobile */
.mobile-menu .mobile-menu-cta,
.mobile-menu .mobile-menu-cta:visited,
.mobile-menu .mobile-menu-cta:active {
  background: var(--amber) !important;
  color: var(--ink) !important;
  border: 2px solid var(--amber) !important;
  text-decoration: none !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 100%;
  min-height: 50px;
  margin-top: 1rem;

  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

.mobile-menu .mobile-menu-cta:hover {
  background: var(--amber-dim) !important;
  color: var(--ink) !important;
}


/* Corrige enlaces de teléfono/email dentro de contacto */
.contact-item-text a,
.contact-item-text a:visited,
.contact-item-text a:active {
  color: var(--white-dim) !important;
  text-decoration: none !important;
}

.contact-item-text a:hover {
  color: var(--blue-accent) !important;
}


/* Corrige cualquier enlace dentro de los textos de contacto */
#contact a,
#contact a:visited,
#contact a:active {
  text-decoration: none;
}

#contact .contact-item-text span,
#contact .contact-item-text span a {
  color: var(--white-dim) !important;
}