:root {
  --bg: #08111f;
  --bg-soft: #0e1a2d;
  --card: rgba(16, 29, 49, 0.72);
  --line: rgba(255,255,255,0.10);
  --text: #edf4ff;
  --muted: #a9b7cf;
  --accent: #64d2ff;
  --accent-2: #62f0c8;
  --warm: #ff9f67;
  --success: #7af0b8;
  --error: #ff8f8f;
  --shadow: 0 20px 60px rgba(0,0,0,0.35);
  --radius: 22px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 20%, rgba(100,210,255,0.14), transparent 30%),
    radial-gradient(circle at 85% 25%, rgba(255,159,103,0.14), transparent 28%),
    linear-gradient(180deg, #06101c 0%, #08111f 45%, #0b1627 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(5, 11, 20, 0.45);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(100,210,255,0.95), rgba(98,240,200,0.6));
  position: relative;
  box-shadow: 0 10px 30px rgba(100,210,255,0.25);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(7, 16, 29, 0.92);
}

.brand-mark::before {
  width: 24px;
  height: 4px;
  left: 10px;
  top: 14px;
  transform: rotate(-24deg);
}

.brand-mark::after {
  width: 18px;
  height: 4px;
  left: 13px;
  top: 24px;
  transform: rotate(-24deg);
}

.brand-text small {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu-toggle {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.10);
  border-color: rgba(100,210,255,0.45);
  outline: none;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 999px;
  position: absolute;
  transition: transform 0.3s ease, opacity 0.3s ease;
  content: "";
}

.menu-icon {
  position: relative;
  display: block;
}

.menu-icon::before {
  transform: translateY(-7px);
}

.menu-icon::after {
  transform: translateY(7px);
}

.menu-toggle[aria-expanded="true"] .menu-icon {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-icon::before {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon::after {
  transform: rotate(-45deg);
}

.nav-panel {
  position: fixed;
  top: 88px;
  right: 20px;
  width: min(360px, calc(100vw - 40px));
  background: rgba(8, 17, 31, 0.94);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-14px) scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(18px);
}

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

.nav-panel a {
  display: block;
  padding: 14px 16px;
  border-radius: 16px;
  color: var(--text);
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-panel a:hover {
  background: rgba(255,255,255,0.06);
  transform: translateX(4px);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding-top: 110px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-video,
.hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05) brightness(0.48);
}

.hero-video {
  transform: scale(1.04);
}

.hero-fallback {
  animation: slowZoom 18s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 7, 14, 0.30) 0%, rgba(4, 8, 15, 0.56) 30%, rgba(6, 10, 18, 0.90) 82%, #07111d 100%),
    linear-gradient(90deg, rgba(7,17,29,0.85) 0%, rgba(7,17,29,0.56) 38%, rgba(7,17,29,0.72) 100%);
}

@keyframes slowZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.1); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: end;
  padding-bottom: 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: #d9ecff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 5px rgba(100,210,255,0.10);
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 0.96;
  margin: 0 0 22px;
  letter-spacing: -0.04em;
  max-width: 12ch;
}

.hero-copy p {
  margin: 0;
  max-width: 720px;
  font-size: 1.12rem;
  color: #d5e1f3;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--accent), #85e2ff);
  color: #03111e;
  box-shadow: 0 18px 40px rgba(100,210,255,0.25);
}

.button-secondary {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-color: rgba(255,255,255,0.12);
}

.hero-card,
.panel,
.card,
.sector,
.contact-form-card,
.cta-box {
  box-shadow: var(--shadow);
}

.hero-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 28px;
  padding: 26px;
  backdrop-filter: blur(18px);
}

.hero-card h2 {
  font-size: 1rem;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d9ecff;
}

.metric-list {
  display: grid;
  gap: 14px;
}

.metric {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.metric strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 5px;
}

.metric span {
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section-title {
  max-width: 860px;
  margin-bottom: 38px;
}

.section-title-inline {
  margin-bottom: 0;
}

.section-title span {
  display: inline-block;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.section-title h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}

.section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.section p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: var(--muted);
}

.section ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.section ul li {
  margin-bottom: 10px;
  color: var(--muted);
}

.cards-3,
.cards-6,
.sector-grid,
.contact-grid {
  display: grid;
  gap: 20px;
}

.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-6 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(12px);
  transform: translateY(20px);
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.25s ease;
}

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

.card:hover {
  border-color: rgba(100,210,255,0.32);
}

.icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(100,210,255,0.16), rgba(98,240,200,0.12));
  border: 1px solid rgba(100,210,255,0.18);
  color: var(--accent);
  font-size: 1.3rem;
}

.card h3,
.contact-form-card h3 {
  margin: 0 0 10px;
  font-size: 1.16rem;
  line-height: 1.2;
}

.card p,
.contact-form-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.split,
.contact-grid {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.contact-grid-single {
  grid-template-columns: 1fr;
  justify-items: center;
}

.contact-grid-single .contact-form-card {
  width: 100%;
  max-width: 620px;
}

.contact-title-single {
  max-width: 620px;
  width: 100%;
}

.panel,
.contact-form-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 30px;
  min-height: 100%;
}

.data-visual {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  background:
    linear-gradient(180deg, rgba(7,17,29,0.86), rgba(7,17,29,0.96)),
    url('https://images.unsplash.com/photo-1493246507139-91e8fad9978e?auto=format&fit=crop&w=1600&q=80') center/cover;
}

.grid-overlay,
.heat-overlay,
.pulse,
.signal {
  position: absolute;
  inset: 0;
}

.grid-overlay {
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,1) 18%, rgba(0,0,0,1) 82%, transparent 100%);
}

.heat-overlay {
  background:
    radial-gradient(circle at 25% 35%, rgba(255,159,103,0.34), transparent 18%),
    radial-gradient(circle at 62% 58%, rgba(100,210,255,0.26), transparent 18%),
    radial-gradient(circle at 80% 28%, rgba(98,240,200,0.20), transparent 16%);
  mix-blend-mode: screen;
  animation: drift 10s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-12px, 10px) scale(1.03); }
}

.pulse::before,
.pulse::after,
.signal::before,
.signal::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(100,210,255,0.55);
  box-shadow: 0 0 0 10px rgba(100,210,255,0.04);
  animation: ping 3.5s ease-out infinite;
}

.pulse::before { width: 18px; height: 18px; top: 28%; left: 32%; }
.pulse::after { width: 16px; height: 16px; top: 62%; left: 67%; animation-delay: 1.2s; }
.signal::before { width: 14px; height: 14px; top: 42%; left: 55%; animation-delay: 0.5s; }
.signal::after { width: 15px; height: 15px; top: 20%; left: 76%; animation-delay: 1.8s; }

@keyframes ping {
  0% { transform: scale(0.8); opacity: 0.95; }
  70% { transform: scale(2.9); opacity: 0; }
  100% { transform: scale(2.9); opacity: 0; }
}

.floating-stats {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 12px;
  width: min(250px, calc(100% - 48px));
}

.stat {
  background: rgba(7,17,29,0.78);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 14px 16px;
  backdrop-filter: blur(12px);
}

.stat strong {
  display: block;
  font-size: 1.18rem;
  color: white;
}

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

.list-clean {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.list-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
}

.list-item b {
  display: block;
  margin-bottom: 3px;
}

.list-item .dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  margin-top: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 6px rgba(100,210,255,0.08);
}

.sector-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sector {
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.10);
}

.sector strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.08rem;
}

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

.contact-section {
  padding-bottom: 110px;
}

.cta-box {
  position: relative;
  overflow: hidden;
  padding: 40px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 20% 20%, rgba(100,210,255,0.18), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(255,159,103,0.18), transparent 24%),
    linear-gradient(135deg, rgba(10,24,43,0.96), rgba(7,17,29,0.96));
  border: 1px solid rgba(255,255,255,0.10);
}

.contact-copy {
  max-width: 860px;
}

.contact-points {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-points a {
  display: block;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.contact-points strong {
  display: block;
  margin-bottom: 4px;
}

.contact-points span {
  color: var(--muted);
}

.contact-form-card {
  backdrop-filter: blur(14px);
}

.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #dbe8f9;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: rgba(100,210,255,0.50);
  box-shadow: 0 0 0 4px rgba(100,210,255,0.10);
  background: rgba(255,255,255,0.07);
}

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

/* =========================================
   ENLACES LEGALES DEL FOOTER
   ========================================= */
.footer-legal {
  display: flex;
  flex-wrap: wrap; /* Permite que los enlaces bajen a otra línea en móviles si no caben */
  gap: 18px;
  font-size: 0.85rem;
}

.footer-legal a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.2);
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

/* Efecto al pasar el ratón por encima */
.footer-legal a:hover {
  color: var(--text);
  text-decoration-color: var(--accent); /* La línea se vuelve azul */
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-submit {
  width: fit-content;
}

.form-alert {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border-radius: 16px;
  margin-bottom: 18px;
  border: 1px solid transparent;
}

.form-alert.success {
  background: rgba(122,240,184,0.10);
  border-color: rgba(122,240,184,0.30);
}

.form-alert.error {
  background: rgba(255,143,143,0.10);
  border-color: rgba(255,143,143,0.30);
}

.footer {
  padding: 24px 0 48px;
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 22px;
}

.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (max-width: 1080px) {
  .hero-grid,
  .split,
  .cards-3,
  .cards-6,
  .sector-grid,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid {
    align-items: start;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(var(--max), calc(100% - 24px));
  }

  .hero {
    min-height: auto;
    padding-top: 98px;
  }

  .hero-grid,
  .split,
  .cards-3,
  .cards-6,
  .sector-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding-bottom: 42px;
  }

  .section {
    padding: 72px 0;
  }

  .nav-panel {
    top: 82px;
    right: 12px;
  }

  .cta-box,
  .panel,
  .hero-card,
  .card,
  .sector,
  .contact-form-card {
    padding: 22px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.5rem, 12vw, 4rem);
  }


}










