/* Klaron Services — Landing industrial */

:root {
  --bg: #001428;
  --bg-elevated: #001f3f;
  --bg-card: #0a2540;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f0f2f5;
  --text-muted: #94a3b8;
  --accent: #22d3ee;
  --accent-dim: rgba(34, 211, 238, 0.15);
  --accent-glow: rgba(34, 211, 238, 0.35);
  --cyan: #22d3ee;
  --cyan-dim: rgba(34, 211, 238, 0.12);
  --navy: #001428;
  --success: #34d399;
  --danger: #f87171;
  --font: "DM Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", monospace;
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 72px;
  --container: min(1120px, 92vw);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

.container {
  width: var(--container);
  margin-inline: auto;
}

/* Noise overlay */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-right: 0.75rem;
  padding: 0.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.lang-switcher__link {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}

.lang-switcher__link:hover {
  color: var(--text);
}

.lang-switcher__link.is-active {
  color: var(--bg);
  background: var(--accent);
}

/* Ferrovial-style intro & activities */
.intro-band {
  padding: 4rem 0;
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
  border-block: 1px solid var(--border);
}

.intro-band__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: end;
}

.intro-band h2 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  margin-top: 0.75rem;
  line-height: 1.2;
}

.intro-band p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 52ch;
}

.collaborators-band {
  padding: 4rem 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
  border-block: 1px solid var(--border);
}

.collaborators-band__inner {
  max-width: 720px;
}

.collaborators-band__inner .section-head p {
  color: var(--text-muted);
  margin-top: 0.75rem;
  max-width: 60ch;
}

.collaborators-band__list {
  margin: 1.5rem 0 2rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.collaborators-band__list li {
  margin-bottom: 0.5rem;
}

.collaborators-band__inner .btn--ghost {
  margin-left: 0.75rem;
}

/* CTA panels (hero, servicios, urgencias, contacto) */
.cta-panel {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  max-width: 26rem;
}

.cta-panel--hero {
  margin-bottom: 3rem;
}

.cta-panel--service {
  margin-top: 0.25rem;
}

.cta-panel--strip {
  max-width: 100%;
}

.cta-panel--compact {
  margin-bottom: 1.25rem;
}

.cta-panel__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.btn--block {
  width: 100%;
  min-height: 3rem;
  text-align: center;
  line-height: 1.25;
}

.contact-pills {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3rem;
  padding: 0.85rem 1.25rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

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

.btn-pill--urgent {
  color: #1a0a0a;
  background-color: #ef4444;
  background-image: linear-gradient(135deg, #f87171, #ef4444);
  box-shadow: 0 6px 20px rgba(248, 113, 113, 0.3);
}

.btn-pill--urgent:hover,
.btn-pill--urgent.is-active {
  box-shadow: 0 10px 28px rgba(248, 113, 113, 0.45);
}

.btn-pill--client {
  color: #001428;
  background-color: #22d3ee;
  background-image: linear-gradient(135deg, #22d3ee, #06b6d4);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-pill--client:hover,
.btn-pill--client.is-active {
  box-shadow: 0 10px 28px var(--accent-glow);
}

.btn-pill--partner {
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-pill--partner:hover,
.btn-pill--partner.is-active {
  border-color: var(--accent);
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent);
}

.btn-pill.is-active {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
}

.urgent-fields {
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.06);
}

.urgent-fields__lead {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fecaca;
  margin-bottom: 1rem;
}

.form--urgent .form__row label[for='phone']::after {
  content: ' *';
  color: #f87171;
}

.contact__info--urgent {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.06);
}

.contact__info--client {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(34, 211, 238, 0.25);
  background: rgba(34, 211, 238, 0.05);
}

.contact__info--partner {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

#service:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.contact-form-mode {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: var(--accent);
}

.form--urgent .contact-form-mode {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

.urgency-strip {
  padding: 3rem 0;
  background: linear-gradient(180deg, rgba(248, 113, 113, 0.08), transparent);
  border-block: 1px solid rgba(248, 113, 113, 0.2);
}

.urgency-strip__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}

.urgency-strip__copy h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0.75rem 0;
  line-height: 1.2;
}

.urgency-strip__copy p {
  color: var(--text-muted);
  max-width: 52ch;
}

.urgency-strip__sla {
  margin-top: 0.75rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: #fecaca;
}

.urgency-strip__actions {
  width: 100%;
}

.section-tag--urgent::before {
  background: #f87171;
}

.service-callout {
  padding: 2rem 0 0;
}

.service-callout__card {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.06) 0%, var(--bg-elevated) 100%);
}

.service-callout__card .btn {
  margin-top: 1rem;
}

.activities {
  padding: 4.5rem 0;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.activity-card {
  padding: 2rem 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s;
}

.activity-card:hover {
  border-color: rgba(34, 211, 238, 0.35);
  transform: translateY(-4px);
}

.activity-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.activity-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 1.25rem;
}

.activity-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}

.metrics-band {
  padding: 2.5rem 0;
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.metric-card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.metric-card strong {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}

.metric-card span {
  display: block;
  font-weight: 600;
  margin-top: 0.35rem;
  font-size: 0.95rem;
}

.metric-card small {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.coverage-section .local-card h3 {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 900px) {
  .intro-band__grid {
    grid-template-columns: 1fr;
  }

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

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lang-switcher {
    order: 3;
    margin: 0.5rem 0 0;
  }

  .header__inner {
    flex-wrap: wrap;
  }
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 12, 16, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.header--scrolled {
  border-bottom-color: var(--border);
  background: rgba(10, 12, 16, 0.92);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
}

.logo__mark {
  width: 36px;
  height: 36px;
  color: var(--text);
}

.logo__accent {
  color: var(--accent);
}

.logo__img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.footer__logo {
  height: 36px;
  width: auto;
  margin-bottom: 0.75rem;
}

.footer__domain {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
}

.footer__domain:hover {
  text-decoration: underline;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--text);
}

.nav__cta {
  padding: 0.55rem 1.1rem;
  background: linear-gradient(135deg, var(--accent), #06b6d4);
  color: var(--navy) !important;
  font-weight: 600;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

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

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), #06b6d4);
  color: var(--navy);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--accent-glow);
}

.btn--whatsapp {
  background: #25d366;
  color: #0a1a12;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 600;
}

.btn--whatsapp:hover {
  background: #20bd5a;
  color: #001428;
}

.btn--whatsapp.btn--block {
  min-height: 3rem;
}

.btn--compact {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.contact__phones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}


.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.btn--full {
  width: 100%;
}

/* Variantes con especificidad alta (después de .btn para ganar en cascada) */
a.btn.btn--urgent,
button.btn.btn--urgent,
.btn.btn--urgent {
  background-color: #ef4444;
  background-image: linear-gradient(135deg, #f87171, #ef4444);
  color: #1a0a0a;
  box-shadow: 0 8px 28px rgba(248, 113, 113, 0.35);
}

a.btn.btn--urgent:hover,
button.btn.btn--urgent:hover,
.btn.btn--urgent:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(248, 113, 113, 0.45);
}

a.btn.btn--primary,
button.btn.btn--primary,
.btn.btn--primary {
  background-color: #22d3ee;
  background-image: linear-gradient(135deg, #22d3ee, #06b6d4);
  color: #001428;
}

a.btn.btn--call,
button.btn.btn--call,
.btn.btn--call {
  background-color: #cbd5e1;
  background-image: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  color: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

a.btn.btn--call:hover,
button.btn.btn--call:hover,
.btn.btn--call:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(148, 163, 184, 0.35);
  background-image: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

a.btn.btn--whatsapp,
button.btn.btn--whatsapp,
.btn.btn--whatsapp {
  background-color: #25d366;
  background-image: none;
  color: #0a1a12;
}

/* Hero carousel */
.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-carousel__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}

.hero-carousel__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero-carousel__slide.is-active img {
  transform: scale(1);
}

.hero-carousel__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0, 20, 40, 0.92) 0%,
    rgba(0, 20, 40, 0.75) 45%,
    rgba(0, 20, 40, 0.45) 100%
  );
  z-index: 1;
}

.hero-carousel__caption {
  position: absolute;
  bottom: 6rem;
  right: 4vw;
  z-index: 2;
  text-align: right;
  max-width: 320px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.hero-carousel__slide.is-active .hero-carousel__caption {
  opacity: 1;
  transform: translateY(0);
}

.hero-carousel__tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--accent);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.hero-carousel__caption p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-carousel__controls {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 20, 40, 0.6);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s;
}

.carousel-btn:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

.hero-carousel__dots {
  display: flex;
  gap: 8px;
}

.hero-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.hero-carousel__dot.is-active,
.hero-carousel__dot:hover {
  background: var(--accent);
  transform: scale(1.15);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 4vw 5rem;
  overflow: hidden;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black, transparent);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  font-family: var(--mono);
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.pulse {
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero__title {
  font-size: clamp(2.2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat strong {
  display: block;
  font-size: 1.1rem;
  font-family: var(--mono);
  margin-bottom: 0.25rem;
}

.stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Robot card visual */
.hero__visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.robot-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 24px 48px rgba(0, 0, 0, 0.4),
    0 0 80px var(--accent-dim);
}

.robot-card__header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot--green { background: var(--success); }
.dot--yellow { background: #fbbf24; }
.dot--red { background: var(--danger); }

.robot-card__label {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.robot-card__body {
  padding: 1.5rem;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.metric-value {
  font-family: var(--mono);
  font-weight: 500;
}

.metric-value--up { color: var(--success); }
.metric-value--down { color: var(--accent); }

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
  margin: 1.5rem 0;
}

.bar {
  flex: 1;
  height: var(--h);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px 4px 0 0;
  transition: height 0.6s ease;
}

.bar--accent {
  background: linear-gradient(180deg, var(--accent), rgba(34, 211, 238, 0.4));
}

.robot-silhouette {
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
}

.robot-silhouette svg {
  width: 100px;
  height: auto;
}

/* Trust bar */
.trust {
  padding: 2.5rem 0;
  border-block: 1px solid var(--border);
  background: var(--bg-elevated);
}

.trust__label {
  text-align: center;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.brands {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 3rem;
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text);
}

.brand--muted {
  color: var(--text-muted);
  font-weight: 500;
}

/* Sections */
section {
  padding: 5rem 0;
}

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

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}

.section-tag--accent {
  color: var(--accent);
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s, transform 0.3s;
}

.card:hover {
  border-color: rgba(34, 211, 238, 0.35);
  transform: translateY(-4px);
}

.card--highlight {
  border-color: rgba(34, 211, 238, 0.25);
  background: linear-gradient(160deg, var(--bg-card), rgba(34, 211, 238, 0.08));
}

.card__icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.card ul li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* Robotics */
.robotics {
  background: linear-gradient(180deg, transparent, var(--bg-elevated) 50%, transparent);
}

.robotics__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.robotics__content h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 1rem;
}

.robotics__content > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.robotics__features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature {
  display: flex;
  gap: 1.25rem;
}

.feature__num {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  flex-shrink: 0;
}

.feature strong {
  display: block;
  margin-bottom: 0.35rem;
}

.feature p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.robotics__brands {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.brand-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}

.brand-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.brand-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Why */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.why-item {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.why-item__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: 10px;
  margin-bottom: 1rem;
  color: var(--accent);
}

.why-item__icon svg {
  width: 22px;
  height: 22px;
}

.why-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.why-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Sectors */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.sector {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.3s;
}

.sector:hover {
  transform: scale(1.02);
}

.sector__emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.sector h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.sector p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Timeline */
.timeline {
  max-width: 640px;
  margin-inline: auto;
  counter-reset: step;
}

.timeline__step {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 2rem;
  position: relative;
}

.timeline__step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 44px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
}

.timeline__num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--accent);
  color: #0a0c10;
  border-radius: 50%;
}

.timeline__step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.timeline__step p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* CTA band */
.cta-band {
  padding: 4rem 0;
}

.cta-band__inner blockquote {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 500;
  text-align: center;
  font-style: italic;
  color: var(--text-muted);
  max-width: 720px;
  margin-inline: auto;
  line-height: 1.5;
}

.cta-band__inner blockquote::before {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin: 0 auto 1.5rem;
  border-radius: 2px;
}

/* Local SEO and FAQ */
.service-hero {
  position: relative;
  padding: calc(var(--header-h) + 4rem) 0 4rem;
  background:
    linear-gradient(105deg, rgba(0, 20, 40, 0.96), rgba(0, 31, 63, 0.82)),
    radial-gradient(circle at 75% 20%, var(--accent-dim), transparent 32%);
}

.service-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.service-hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 1.25rem 0;
}

.service-hero p {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 620px;
  margin-bottom: 1.75rem;
}

.service-hero img {
  width: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.service-content {
  padding: 4rem 0;
}

.service-content__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.service-content h2 {
  margin-bottom: 1rem;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.related-links a {
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 700;
}

.related-links a:hover {
  border-color: var(--accent);
}

.local-seo {
  background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.04), transparent);
}

.local-seo__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.local-seo__content {
  display: grid;
  gap: 1.25rem;
}

.local-card,
.faq-grid details {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.local-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.85rem;
}

.local-card p,
.faq-grid p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.local-card li {
  margin-bottom: 0.55rem;
}

.local-card a {
  color: var(--accent);
  font-weight: 600;
}

.local-card a:hover {
  text-decoration: underline;
}

.faq {
  padding-top: 3rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.faq-grid summary {
  cursor: pointer;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* Contact */
.contact {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.contact--service {
  padding: 4rem 0 5rem;
  border-top: 1px solid var(--border);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.contact__info h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 1rem;
}

.contact__info > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact__list svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}

.contact__list a:hover {
  color: var(--accent);
}

/* Form */
.form {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.form__row {
  margin-bottom: 1.25rem;
}

.form__row--half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form textarea {
  resize: vertical;
  min-height: 100px;
}

.form__privacy {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  cursor: pointer;
}

.form__privacy input {
  width: auto;
  margin-top: 3px;
}

.form__privacy a {
  color: var(--accent);
  text-decoration: underline;
}

.form__note {
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: center;
  min-height: 1.4em;
}

.form__note--success { color: var(--success); }
.form__note--error { color: var(--danger); }

/* Footer */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

.footer__brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__links a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__copy {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
  .hero {
    text-align: center;
    padding-top: calc(var(--header-h) + 2rem);
    justify-content: center;
  }

  .hero__content {
    margin-inline: auto;
  }

  .hero__subtitle {
    margin-inline: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__stats {
    justify-content: center;
  }

  .hero-carousel__caption {
    display: none;
  }

  .robotics__grid,
  .contact__grid,
  .local-seo__grid,
  .service-hero__grid,
  .service-content__grid,
  .urgency-strip__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .cta-panel,
  .cta-panel--hero,
  .cta-panel--service {
    max-width: 100%;
    margin-inline: auto;
  }

  .cta-panel__row {
    grid-template-columns: 1fr;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 2rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

@media (max-width: 600px) {
  .form__row--half {
    grid-template-columns: 1fr;
  }

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

/* —— Páginas legales —— */

.legal-page {
  padding-top: var(--header-h);
}

.legal-hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
}

.legal-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0.75rem 0;
}

.legal-hero__meta {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-hero__meta a {
  color: var(--accent);
}

.legal-body {
  padding: 3rem 0 5rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(200px, 240px) 1fr;
  gap: 3rem;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.legal-toc__title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.legal-toc ol {
  list-style: none;
  counter-reset: none;
}

.legal-toc li {
  margin-bottom: 0.35rem;
}

.legal-toc a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.legal-toc a:hover {
  color: var(--accent);
}

.legal-prose {
  max-width: 72ch;
}

.legal-prose h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  padding-top: 0.5rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.legal-prose h2:first-of-type {
  margin-top: 0;
}

.legal-prose h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
  color: var(--text);
}

.legal-prose p,
.legal-prose li {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.legal-prose ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal-prose ul ul {
  margin-top: 0.5rem;
}

.legal-prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-prose strong {
  color: var(--text);
  font-weight: 600;
}

.legal-notice {
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  background: var(--accent-dim);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.legal-notice p {
  margin: 0;
  color: var(--text);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--bg-card);
  color: var(--text);
  font-weight: 600;
}

.legal-table td {
  color: var(--text-muted);
}

.legal-prose .btn {
  margin: 1.5rem 1rem 0 0;
  text-decoration: none;
}

/* SEO — breadcrumbs y enlazado interno */
.seo-breadcrumb {
  padding: 0.75rem 0 0;
  font-size: 0.8rem;
}

.seo-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--text-muted);
}

.seo-breadcrumb__item + .seo-breadcrumb__item::before {
  content: "›";
  margin-right: 0.5rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.seo-breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.seo-breadcrumb a:hover {
  text-decoration: underline;
}

.seo-link-hub {
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.seo-link-hub__title {
  font-size: 1.1rem;
  margin: 0 0 1rem;
  color: var(--text);
}

.seo-link-hub__list {
  columns: 2;
  column-gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.seo-link-hub__list li {
  margin-bottom: 0.5rem;
  break-inside: avoid;
}

.seo-link-hub__list a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.seo-link-hub__list a:hover {
  color: var(--accent);
}

@media (max-width: 640px) {
  .seo-link-hub__list {
    columns: 1;
  }
}

/* Delegaciones — mapa Europa */
.delegations {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
}

.delegations__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

.delegations-map {
  width: 100%;
  height: min(420px, 55vh);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-card);
  z-index: 0;
}

.delegations-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 420px;
  overflow-y: auto;
}

.delegation-item__btn {
  width: 100%;
  text-align: left;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.delegation-item__btn:hover,
.delegation-item.is-active .delegation-item__btn {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.delegation-item__btn strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.delegation-item__btn span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.delegation-item__btn small {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.delegation-marker span {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.35);
}

.delegation-marker--hq span {
  width: 16px;
  height: 16px;
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.35);
}

.delegation-popup strong {
  color: var(--text);
}

.leaflet-container {
  font-family: var(--font-sans);
  background: #0f1419;
}

@media (max-width: 900px) {
  .delegations__grid {
    grid-template-columns: 1fr;
  }

  .delegations-list {
    max-height: none;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
  }

  .legal-table {
    display: block;
    overflow-x: auto;
  }
}
