/* =========================================
   TABLET
   ========================================= */

@media (max-width: 900px) {
    .ed-cta {
        padding: 38px 36px;
        gap: 30px;
    }

    .ed-cta h2 {
        font-size: 28px;
    }

    .ed-cta-button {
        padding: 0 22px;
    }
}


/* =========================================
   MÓVIL
   ========================================= */

@media (max-width: 680px) {
    .ed-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 25px;
        margin: 35px 0;
        border-radius: 22px;
        gap: 25px;
    }


    .ed-cta-content {
        max-width: 100%;
    }


    .ed-cta-label {
        font-size: 11px;
        letter-spacing: 1.7px;
        margin-bottom: 10px;
    }


    .ed-cta h2 {
        font-size: 25px;
        line-height: 1.25;
        letter-spacing: -0.4px;
    }


    .ed-cta p {
        font-size: 14px;
        line-height: 1.55;
    }


    .ed-cta-button {
        width: 100%;
        box-sizing: border-box;
        min-height: 54px;
        font-size: 14px;
    }
}


/* ============================================================
   PRELOADER CON VÓRTICE CÓSMICO, GLOW Y DESTELLO EXPLOSIVO
   ============================================================ */
#preloader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #091322 0%, #030712 100%);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s ease;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-vortex {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140vmax;
  height: 140vmax;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
  background: radial-gradient(circle at center, transparent 15%, #030712 75%),
              url('assets/img/destelloEco.jpg') no-repeat center center;
  background-size: cover;
  opacity: 0.75;
  mix-blend-mode: screen;
  z-index: 1;
  pointer-events: none;
  animation: vortex-spin 22s linear infinite;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.preloader-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(94, 231, 255, 0.95) 0%, rgba(139, 92, 246, 0.6) 40%, transparent 75%);
  opacity: 0;
  z-index: 4;
  pointer-events: none;
  transition: opacity 0.35s ease-out;
}

.preloader-core {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
  transition: transform 0.4s ease-out, filter 0.4s ease-out;
}

.preloader-brand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.preloader-brand-glow {
  position: absolute;
  width: 260px;
  height: 130px;
  background: radial-gradient(ellipse at center, rgba(94, 231, 255, 0.5) 0%, rgba(139, 92, 246, 0.35) 50%, transparent 75%);
  filter: blur(24px);
  border-radius: 50%;
  animation: preloader-glow 2s ease-in-out infinite alternate;
  z-index: 1;
  pointer-events: none;
}

.preloader-logo {
  position: relative;
  z-index: 2;
  width: 220px !important;
  max-width: 85vw !important;
  height: auto !important;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 20px rgba(94, 231, 255, 0.7));
  animation: preloader-float 2.4s ease-in-out infinite alternate;
}

.preloader-track {
  width: 180px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.6);
}

.preloader-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, #8b5cf6, #5ee7ff, #8b5cf6);
  background-size: 200% 100%;
  border-radius: 999px;
  box-shadow: 0 0 12px #5ee7ff;
  animation: preloader-slide 1.4s infinite cubic-bezier(0.65, 0, 0.35, 1);
}

.preloader-status {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #94a3b8;
  opacity: 0.9;
  text-shadow: 0 0 8px rgba(94, 231, 255, 0.3);
}

@keyframes vortex-spin {
  0% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
  100% { transform: translate(-50%, -50%) rotate(360deg) scale(1); }
}

@keyframes preloader-glow {
  0% { transform: scale(0.9); opacity: 0.5; }
  100% { transform: scale(1.25); opacity: 1; filter: blur(30px); }
}

@keyframes preloader-float {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-4px) scale(1.02); }
}

@keyframes preloader-slide {
  0% { left: -50%; width: 30%; }
  50% { width: 75%; }
  100% { left: 110%; width: 30%; }
}

#preloader.exploding .preloader-vortex {
  transform: translate(-50%, -50%) rotate(180deg) scale(2.6);
  opacity: 0;
}

#preloader.exploding .preloader-flash {
  opacity: 1;
}

#preloader.exploding .preloader-core {
  transform: scale(1.15);
  filter: brightness(1.7);
}

/* ============================================================
   1. VARIABLES & CONFIGURACIÓN GLOBAL
   ============================================================ */
:root {
  --bg: #050a12;
  --bg2: #081321;
  --panel: rgba(12, 24, 39, 0.64);
  --panel2: rgba(14, 30, 48, 0.48);
  --text: #eef7ff;
  --muted: #91a5b8;
  --line: rgba(160, 205, 235, 0.14);
  --cyan: #5ee7ff;
  --blue: #4b8dff;
  --violet: #9b7bff;
  --green: #65f6c5;
  --lime: #a3e635;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius: 24px;
  --max: 1240px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  background: radial-gradient(circle at 70% 10%, rgba(42, 103, 161, 0.16), transparent 30%), var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.65;
}

body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  z-index: -3;
}

/* ============================================================
   2. FONDOS ANIMADOS & EFECTOS
   ============================================================ */
.network-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.62;
}

.network-bg canvas {
  width: 100%;
  height: 100%;
}

.cursor-glow {
  position: fixed;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(94, 231, 255, 0.09), transparent 68%);
  transform: translate(-50%, -50%);
  z-index: 0;
  mix-blend-mode: screen;
}

/* ============================================================
   3. TIPOGRAFÍA & ELEMENTOS BASE
   ============================================================ */
h1, h2, h3, strong,
.brand, .eyebrow, .section-kicker,
.timeline-meta, .timeline-role, .tags,
.btn, .tech-wall,
.end-num, .end-price-val, .end-quote-btn, .end-banner-btn, .end-submit-btn {
  font-family: "Space Grotesk", Inter, sans-serif;
}

h1, h2, h3, p {
  margin-top: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--cyan);
  font-weight: 700;
  margin-bottom: 18px;
}

.pulse-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
  margin-right: 8px;
}

/* ============================================================
   4. HEADER & NAVEGACIÓN
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 78px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  background: rgba(4, 9, 16, 0.66);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: 0.3s;
}

.site-header.scrolled {
  border-color: var(--line);
  background: rgba(4, 9, 16, 0.88);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  letter-spacing: 0.03em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(94, 231, 255, 0.5);
  color: var(--cyan);
  font-weight: 700;
  font-size: 13px;
  background: rgba(94, 231, 255, 0.06);
  box-shadow: 0 0 28px rgba(94, 231, 255, 0.1);
}

.brand strong {
  display: block;
  font-size: 12px;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.17em;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.main-nav a {
  color: #b7c6d4;
  transition: 0.25s;
}

.main-nav a:hover {
  color: #ffffff;
}

.nav-highlight {
  color: var(--cyan) !important;
  font-weight: 600;
}

.nav-cta {
  border: 1px solid rgba(94, 231, 255, 0.45);
  padding: 9px 14px;
  color: var(--cyan) !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
}

/* ============================================================
   5. BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 19px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: 700;
  border: 1px solid var(--line);
  transition: 0.3s;
}

.btn-primary {
  background: linear-gradient(110deg, #54dff7, #568bff);
  color: #03101a;
  border-color: transparent;
  box-shadow: 0 10px 35px rgba(84, 223, 247, 0.18);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 45px rgba(84, 223, 247, 0.28);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.025);
  color: #d8e7f2;
}

.btn-ghost:hover {
  border-color: rgba(94, 231, 255, 0.5);
  color: #ffffff;
}

.btn-whatsapp {
  background: rgba(101, 246, 197, 0.08);
  color: var(--green);
  border-color: rgba(101, 246, 197, 0.25);
}

/* ============================================================
   6. SECCIÓN HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  padding-top: 120px;
  align-items: center;
  overflow: hidden;
}

.section-grid {
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  gap: 5vw;
  max-width: 1400px;
  margin: auto;
  padding-left: 5vw;
  padding-right: 5vw;
  width: 100%;
}

.hero-copy {
  padding: 60px 0;
}

.hero h1 {
  font-size: clamp(48px, 6.2vw, 94px);
  line-height: 0.97;
  letter-spacing: -0.055em;
  max-width: 950px;
  margin-bottom: 28px;
}

.hero h1 span,
h2 span {
  color: var(--cyan);
}

.hero-subtitle {
  font-size: clamp(18px, 2vw, 25px);
  color: #d7e4ef;
  max-width: 700px;
}

.hero-role {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 32px 0 42px;
}

.hero-metrics {
  display: flex;
  gap: 38px;
}

.hero-metrics div {
  display: flex;
  flex-direction: column;
}

.hero-metrics strong {
  font-size: 28px;
  color: #ffffff;
}

.hero-metrics span {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.hero-visual {
  position: relative;
  min-height: 650px;
  display: grid;
  place-items: center;
}

.portrait-frame {
  width: min(480px, 70vw);
  height: 590px;
  position: relative;
  z-index: 3;
  border: 1px solid rgba(94, 231, 255, 0.2);
  background: linear-gradient(145deg, rgba(94, 231, 255, 0.1), rgba(155, 123, 255, 0.03));
  clip-path: polygon(8% 0, 92% 0, 100% 8%, 100% 92%, 92% 100%, 8% 100%, 0 92%, 0 8%);
  box-shadow: var(--shadow), 0 0 80px rgba(75, 141, 255, 0.1);
}

.portrait-placeholder {
  position: absolute;
  inset: 16px;
  display: grid;
  place-items: center;
  align-content: center;
  background: radial-gradient(circle at 50% 30%, rgba(94, 231, 255, 0.16), transparent 35%), linear-gradient(145deg, #0c1b2a, #07101b);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  overflow: hidden;
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.visual-grid {
  position: absolute;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: 
    radial-gradient(circle, transparent 40%, rgba(94, 231, 255, 0.08) 41%, transparent 42%),
    repeating-radial-gradient(circle, transparent 0 58px, rgba(94, 231, 255, 0.08) 59px 60px);
  mask-image: radial-gradient(circle, black, transparent 73%);
  animation: spin 30s linear infinite;
  pointer-events: none;
}

.visual-orbit {
  position: absolute;
  border: 1px solid rgba(94, 231, 255, 0.12);
  border-radius: 50%;
  transform: rotate(-25deg);
  z-index: 1;
  pointer-events: none;
}

.orbit-one {
  width: 650px;
  height: 210px;
}

.orbit-two {
  width: 550px;
  height: 180px;
  transform: rotate(58deg);
}

.hud-card {
  position: absolute;
  z-index: 5;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(7, 16, 27, 0.75);
  backdrop-filter: blur(12px);
  font-family: "Space Grotesk";
  box-shadow: var(--shadow);
}

.hud-card span {
  display: block;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.15em;
}

.hud-card b {
  display: block;
  color: var(--cyan);
  font-size: 12px;
  margin-top: 3px;
}

.hud-top {
  top: 17%;
  right: 0;
}

.hud-bottom {
  bottom: 15%;
  left: 0;
}

.node {
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--cyan);
  z-index: 4;
}

.n1 { top: 20%; left: 14%; }
.n2 { top: 34%; right: 7%; }
.n3 { bottom: 23%; right: 17%; }
.n4 { bottom: 12%; left: 23%; }

/* ============================================================
   7. ESTRUCTURAS DE SECCIÓN GENÉRICAS
   ============================================================ */
.section {
  max-width: var(--max);
  margin: auto;
  padding: 130px 32px;
  width: 100%;
}

.section-kicker {
  font-size: 10px;
  color: #667f95;
  letter-spacing: 0.25em;
  margin-bottom: 40px;
}

.intro-layout,
.section-title-row,
.tech-layout,
.human-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}

.intro-heading h2,
.section-title-row h2,
.tech-layout h2,
.human-copy h2 {
  font-size: clamp(42px, 5vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.section-title-row {
  align-items: end;
}

.section-lead {
  color: var(--muted);
  max-width: 430px;
}

/* ============================================================
   8. SECCIÓN SOBRE MÍ & STATS
   ============================================================ */
.intro-text {
  color: #aebdca;
  font-size: 16px;
}

.intro-text p + p {
  margin-top: 20px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  margin-top: 80px;
  border: 1px solid var(--line);
}

.stat-card {
  padding: 30px;
  background: rgba(9, 20, 33, 0.82);
  min-height: 160px;
}

.stat-card strong {
  display: block;
  font-size: 42px;
  color: var(--cyan);
  margin-bottom: 12px;
}

.stat-card span {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================================
   9. TIMELINE / TRAYECTORIA
   ============================================================ */
.timeline {
  position: relative;
  margin-top: 75px;
  padding-left: 50px;
}

.timeline:before {
  content: "";
  position: absolute;
  left: 9px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(var(--cyan), rgba(94, 231, 255, 0.04));
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 35px;
  padding: 0 0 70px;
}

.timeline-dot {
  position: absolute;
  left: -46px;
  top: 4px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--cyan);
  background: var(--bg);
  box-shadow: 0 0 18px rgba(94, 231, 255, 0.5);
}

.timeline-meta {
  font-size: 10px;
  color: var(--cyan);
  letter-spacing: 0.12em;
}

.timeline-role {
  font-size: 11px;
  color: #7f94a7;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.timeline-content h3 {
  font-size: 30px;
  margin: 6px 0 12px;
}

.timeline-content p {
  color: var(--muted);
  max-width: 700px;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tags span {
  font-size: 13px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  color: #8fa4b7;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
  line-height: 1.4;
}

/* ============================================================
   10. EXPERTISE & CAPACIDADES (1 COLUMNA EN MÓVIL)
   ============================================================ */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 60px;
}

.expert-card {
  min-height: auto;
  padding: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(16, 31, 49, 0.7), rgba(8, 17, 28, 0.45));
  transition: 0.35s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.expert-card:before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(94, 231, 255, 0.25), transparent 35%, transparent 70%, rgba(155, 123, 255, 0.16));
  opacity: 0;
  transition: 0.35s;
}

.expert-card:hover {
  transform: translateY(-5px);
  border-color: rgba(94, 231, 255, 0.32);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.expert-card:hover:before {
  opacity: 1;
}

.expert-card > * {
  position: relative;
}

.icon {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(94, 231, 255, 0.25);
  display: grid;
  place-items: center;
  color: var(--cyan);
  font-family: "Space Grotesk";
  font-size: 13px;
  margin-bottom: 24px;
}

.expert-card h3 {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.25;
  margin: 0 0 12px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

.expert-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.expert-card small {
  color: #71879b;
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.4;
  display: block;
}

/* ============================================================
   11. TECH STACK WALL
   ============================================================ */
.tech-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: none;
  padding-left: max(32px, calc((100% - var(--max)) / 2 + 32px));
  padding-right: max(32px, calc((100% - var(--max)) / 2 + 32px));
}

.tech-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: center;
}

.tech-wall span {
  padding: 11px 13px;
  border: 1px solid var(--line);
  color: #9eb0bf;
  background: rgba(255, 255, 255, 0.02);
  font-size: 10px;
  letter-spacing: 0.05em;
  transition: 0.25s;
}

.tech-wall span:hover {
  color: #ffffff;
  border-color: rgba(94, 231, 255, 0.4);
  box-shadow: 0 0 22px rgba(94, 231, 255, 0.08);
}

/* ============================================================
   12. PROYECTOS (EFECTO CYBERPUNK 3D & ZOOM DINÁMICO)
   ============================================================ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 65px;
}

.project-card {
  border: 1px solid rgba(94, 231, 255, 0.18);
  background: rgba(8, 17, 28, 0.85);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(94, 231, 255, 0.6);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(94, 231, 255, 0.15);
}

.project-large,
.project-wide {
  grid-column: span 2;
}

.project-visual {
  height: 625px;
  position: relative;
  overflow: hidden;
  background: #030810;
  border-bottom: 1px solid rgba(160, 205, 235, 0.08);
}

.project-wide .project-visual {
  height: 630px;
}

/* Tarjeta 1 (E-Learning): 481px exactos y sin degradado oscuro */
.project-large .project-visual {
  height: 481px;
}

.project-large .project-overlay {
  display: none;
}

.project-large .project-img {
  object-fit: cover;
  object-position: center top;
}

.project-wide .project-img {
  object-fit: cover;
  object-position: center top;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
  filter: brightness(0.88) contrast(1.1);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.project-card:hover .project-img {
  transform: scale(1.08);
  filter: brightness(1) contrast(1.15);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5, 10, 18, 0.15) 0%,
    rgba(5, 10, 18, 0.4) 60%,
    rgba(8, 17, 28, 0.98) 100%
  );
  pointer-events: none;
}

.project-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  border: 1px solid rgba(94, 231, 255, 0.4);
  background: rgba(5, 12, 20, 0.75);
  backdrop-filter: blur(10px);
  padding: 6px 10px;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  border-radius: 4px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.project-info {
  padding: 28px 30px 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-info small {
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 600;
}

.project-info h3 {
  font-size: 24px;
  margin: 10px 0 12px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.project-info p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 22px;
  flex-grow: 1;
}

.project-info a {
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.25s ease, color 0.25s ease;
}

.project-info a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

/* ============================================================
   13. ECOSISTEMA: NÚCLEO CON ANILLOS GIRATORIOS NEÓN
   ============================================================ */
.ecosystem-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(16, 31, 49, 0.82), rgba(7, 17, 28, 0.7));
  min-height: 500px;
  overflow: hidden;
}

.ecosystem-copy {
  padding: 70px;
}

.ecosystem-copy h2 {
  font-size: clamp(50px, 6vw, 85px);
  line-height: 1;
  margin: 0 0 20px;
}

.ecosystem-copy > p:not(.eyebrow):not(.risk-note) {
  color: var(--muted);
  max-width: 580px;
}

.ecosystem-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 35px 0;
}

.ecosystem-links a {
  border: 1px solid var(--line);
  padding: 11px 14px;
  font-family: "Space Grotesk";
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: 0.25s;
}

.ecosystem-links a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.risk-note {
  font-size: 9px !important;
  color: #6d8192 !important;
  max-width: 520px;
}

.ecosystem-visual {
  position: relative;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(94, 231, 255, 0.08), rgba(163, 230, 53, 0.05), transparent 65%);
  min-height: 440px;
  overflow: hidden;
}

.eco-circle-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
  display: grid;
  place-items: center;
  z-index: 2;
}

.eco-brand-circle {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, rgba(94, 231, 255, 0.12), transparent 50%), linear-gradient(145deg, #091a2e, #050d18);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 35px rgba(94, 231, 255, 0.25), inset 0 0 25px rgba(94, 231, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 3;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.eco-circle-wrapper:hover .eco-brand-circle {
  transform: scale(1.04);
  box-shadow: 0 0 45px rgba(94, 231, 255, 0.45), inset 0 0 30px rgba(163, 230, 53, 0.2);
}

.eco-logo-img {
  max-width: 170px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(163, 230, 53, 0.45));
}

.spinner-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.ring-outer {
  inset: 0;
  border: 3px solid transparent;
  border-top-color: var(--cyan);
  border-bottom-color: var(--cyan);
  filter: drop-shadow(0 0 10px var(--cyan));
  animation: spinRing 6s linear infinite;
}

.ring-inner {
  inset: 14px;
  border: 2px dashed transparent;
  border-left-color: var(--lime);
  border-right-color: var(--lime);
  filter: drop-shadow(0 0 8px var(--lime));
  opacity: 0.85;
  animation: spinRingReverse 9s linear infinite;
}

@keyframes spinRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spinRingReverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

.eco-node {
  position: absolute;
  border: 1px solid var(--line);
  background: rgba(5, 12, 20, 0.8);
  padding: 10px 12px;
  font-family: "Space Grotesk";
  font-size: 9px;
  color: #9bb0c0;
}

.e1 { top: 23%; left: 15%; }
.e2 { top: 18%; right: 12%; }
.e3 { bottom: 22%; left: 17%; }
.e4 { bottom: 19%; right: 14%; }

/* ============================================================
   14. VISIÓN, SECCIÓN HUMANA & CONTACTO
   ============================================================ */
.vision {
  max-width: none;
  min-height: 720px;
  display: grid;
  place-items: center;
  text-align: center;
  background: radial-gradient(circle at center, rgba(75, 141, 255, 0.12), transparent 38%);
  overflow: hidden;
}

.vision-inner {
  max-width: 1100px;
  padding: 0 20px;
}

.vision h2 {
  font-size: clamp(40px, 6vw, 82px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.vision h2 span {
  color: #9db1c3;
}

.vision p:last-child {
  max-width: 700px;
  margin: 35px auto 0;
  color: var(--muted);
}

.human-layout {
  align-items: center;
}

.human-photo {
  height: 580px;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 30%, rgba(94, 231, 255, 0.14), transparent 30%), linear-gradient(145deg, #0d2033, #06101a);
  position: relative;
  overflow: hidden;
}

.human-photo .portrait-placeholder {
  inset: 18px;
}

.human-copy p:not(.eyebrow) {
  color: var(--muted);
  max-width: 650px;
}

.contact {
  padding-bottom: 40px;
}

.contact-card {
  text-align: center;
  padding: 100px 40px;
  border: 1px solid rgba(94, 231, 255, 0.18);
  background: radial-gradient(circle at 50% 0, rgba(94, 231, 255, 0.11), transparent 45%), rgba(8, 19, 32, 0.75);
}

.contact-card h2 {
  font-size: clamp(48px, 6vw, 85px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  max-width: 950px;
  margin: 0 auto 25px;
}

.contact-card > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 16px;
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 35px 0;
}

.contact-meta {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  color: #63788b;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================================
   15. SECCIÓN 10: SOLUCIONES DIGITALES (ACORDEÓN & MODAL)
   ============================================================ */
.end-solutions-section {
  padding-top: 30px;
  padding-bottom: 120px;
}

.end-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.end-header {
  text-align: center;
  margin-bottom: 50px;
}

.end-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 15px;
}

.end-header h2 {
  font-size: clamp(34px, 4.5vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 10px 0 16px;
}

.end-header h2 span {
  background: linear-gradient(90deg, var(--cyan), #ffffff, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.end-header p {
  color: var(--muted);
  font-size: 15px;
  max-width: 650px;
  margin: 0 auto;
}

/* Lista de Acordeón: Forzamos visibilidad garantizada sin bloqueos de opacidad */
.end-services-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  width: 100% !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.end-service {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(14, 25, 40, 0.75), rgba(7, 14, 25, 0.6));
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.3s ease;
  width: 100%;
  opacity: 1 !important;
  visibility: visible !important;
}

.end-service:hover {
  border-color: rgba(94, 231, 255, 0.35);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.end-service.active {
  border-color: rgba(94, 231, 255, 0.55);
  background: linear-gradient(145deg, rgba(18, 34, 55, 0.9), rgba(8, 16, 29, 0.85));
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.45), 0 0 30px rgba(94, 231, 255, 0.08);
}

/* Cabecera del Ítem Acordeón */
.end-service-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 28px;
  cursor: pointer;
  user-select: none;
}

.end-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  border: 1px solid rgba(94, 231, 255, 0.25);
  background: linear-gradient(145deg, rgba(94, 231, 255, 0.08), rgba(155, 123, 255, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
}

.end-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.end-service-info {
  flex-grow: 1;
}

.end-num {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

.end-service-info h3 {
  font-size: 18px;
  color: #fff;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.end-service-info p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

/* Columna de Precios */
.end-price-col {
  text-align: right;
  padding-right: 15px;
  flex-shrink: 0;
}

.end-price-lbl {
  display: block;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #687e91;
}

.end-price-val {
  display: block;
  font-size: 18px;
  color: #fff;
}

.end-currency {
  display: block;
  font-size: 9px;
  color: var(--muted);
}

/* Indicador + / x */
.end-chevron {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 18px;
  font-weight: 400;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.end-service.active .end-chevron {
  color: var(--cyan);
  border-color: rgba(94, 231, 255, 0.4);
  transform: rotate(45deg);
}

/* Contenido Desplegable */
.end-service-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.end-service.active .end-service-body {
  grid-template-rows: 1fr;
}

.end-service-body-inner {
  overflow: hidden;
  padding: 0 28px;
  border-top: 1px solid transparent;
  transition: padding 0.35s ease, border-top-color 0.35s ease;
}

.end-service.active .end-service-body-inner {
  padding: 20px 28px 26px;
  border-top-color: rgba(160, 205, 235, 0.08);
}

.end-desc {
  font-size: 14px;
  line-height: 1.65;
  color: #ccdbe6;
  margin-bottom: 16px;
}

.end-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.end-tags span {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(160, 205, 235, 0.1);
  border-radius: 30px;
  font-size: 11px;
  color: #a1b4c5;
}

.end-quote-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  background: rgba(94, 231, 255, 0.08);
  border: 1px solid rgba(94, 231, 255, 0.3);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.25s ease;
}

.end-quote-btn:hover {
  background: var(--cyan);
  color: #031018;
  box-shadow: 0 0 20px rgba(94, 231, 255, 0.4);
}

/* Banner Inferior */
.end-main-banner {
  margin-top: 50px;
  padding: 36px 42px;
  border-radius: 22px;
  border: 1px solid rgba(94, 231, 255, 0.2);
  background: radial-gradient(circle at 10% 20%, rgba(94, 231, 255, 0.08), transparent 40%), linear-gradient(135deg, rgba(12, 23, 38, 0.95), rgba(6, 12, 22, 0.95));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  opacity: 1 !important;
  visibility: visible !important;
}

.end-banner-kicker {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--cyan);
  margin-bottom: 6px;
}

.end-banner-copy h3 {
  font-size: clamp(20px, 2.5vw, 26px);
  margin: 0 0 6px;
  line-height: 1.15;
}

.end-banner-copy h3 span {
  color: var(--cyan);
}

.end-banner-copy p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.end-banner-btn {
  white-space: nowrap;
  padding: 14px 24px;
  border-radius: 10px;
  background: var(--cyan);
  color: #031018;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 8px 25px rgba(94, 231, 255, 0.25);
}

.end-banner-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(94, 231, 255, 0.4);
}

/* ============================================================
   16. MODAL / VENTANA EMERGENTE
   ============================================================ */
#endQuoteModal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 6, 14, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

#endQuoteModal[hidden] {
  display: none !important;
}

.end-modal-dialog {
  position: relative;
  width: min(840px, 100%);
  max-height: calc(100svh - 30px);
  overflow-y: auto;
  background: linear-gradient(145deg, rgba(12, 22, 36, 0.98), rgba(5, 10, 18, 0.98));
  border: 1px solid rgba(94, 231, 255, 0.3);
  border-radius: 22px;
  padding: 36px 40px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7), 0 0 40px rgba(94, 231, 255, 0.1);
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.end-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.25s ease;
}

.end-modal-close:hover {
  background: rgba(94, 231, 255, 0.15);
  border-color: var(--cyan);
  color: var(--cyan);
}

.end-modal-header {
  text-align: center;
  margin-bottom: 25px;
}

.end-modal-header h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 6px 0 8px;
  letter-spacing: -0.03em;
}

.end-modal-header p {
  color: var(--muted);
  font-size: 13px;
  max-width: 580px;
  margin: 0 auto;
}

#endQuoteForm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}

.end-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.end-field-full {
  grid-column: 1 / -1;
}

.end-field label {
  font-size: 12px;
  font-weight: 600;
  color: #ccdbe6;
}

.end-field input,
.end-field select,
.end-field textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(160, 205, 235, 0.15);
  background: rgba(4, 9, 16, 0.6);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  padding: 0 14px;
  outline: none;
  transition: all 0.25s ease;
}

.end-field input,
.end-field select {
  height: 44px;
}

.end-field select {
  cursor: pointer;
}

.end-field select option {
  background: #081220;
  color: #fff;
}

.end-field textarea {
  height: 85px;
  padding: 12px 14px;
  resize: vertical;
}

.end-field input:focus,
.end-field select:focus,
.end-field textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(94, 231, 255, 0.15);
  background: rgba(6, 14, 25, 0.8);
}

.end-modal-footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 10px;
}

.end-modal-note {
  font-size: 11px;
  color: #687e91;
  margin: 0;
  max-width: 320px;
}

.end-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 10px;
  background: var(--cyan);
  color: #031018;
  font-size: 12px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 8px 25px rgba(94, 231, 255, 0.25);
}

.end-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(94, 231, 255, 0.4);
}

/* ============================================================
   17. FOOTER COMPACTO (1 FILA ALINEADA) & BOTONES FLOTANTES
   ============================================================ */
.footer {
  max-width: var(--max);
  margin: auto;
  padding: 24px 32px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-brand strong {
  display: block;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: #d8e7f2;
}

.footer-brand span {
  color: #607487;
  font-size: 9px;
  letter-spacing: 0.04em;
}

.footer-copy {
  margin: 0;
  color: #607487;
  font-size: 10px;
  text-align: center;
  white-space: nowrap;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.footer-links a {
  color: #8fa4b7;
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: var(--cyan);
}

/* Botón Flotante WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 16px;
  background: rgba(7, 16, 27, 0.88);
  border: 1px solid rgba(101, 246, 197, 0.35);
  border-radius: 40px;
  color: var(--text);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  z-index: 99;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-float .whatsapp-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #65f6c5, #22c55e);
  color: #03101a;
  display: grid;
  place-items: center;
  box-shadow: 0 0 18px rgba(101, 246, 197, 0.4);
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  border-color: var(--green);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(101, 246, 197, 0.2);
}

.whatsapp-float:hover .whatsapp-icon {
  transform: scale(1.08) rotate(5deg);
}

/* Botón Flotante Scroll to Top */
.scroll-top-btn {
  position: fixed;
  bottom: 84px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(7, 16, 27, 0.85);
  border: 1px solid var(--line);
  color: var(--cyan);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 98;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.scroll-top-btn.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  border-color: var(--cyan);
  background: rgba(94, 231, 255, 0.12);
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(94, 231, 255, 0.25);
}

/* ============================================================
   18. ANIMACIONES & REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================================
   19. MEDIA QUERIES / RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 1000px) {
  .main-nav {
    gap: 13px;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    min-height: 580px;
  }
  .intro-layout,
  .section-title-row,
  .tech-layout,
  .human-layout,
  .ecosystem-card {
    grid-template-columns: 1fr;
  }
  .expertise-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ecosystem-visual {
    min-height: 420px;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
  .project-large,
  .project-wide {
    grid-column: span 1;
  }
}

@media (max-width: 900px) {
  .footer {
    flex-direction: column;
    text-align: center;
    gap: 14px;
    padding: 24px 18px 90px;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
}

@media (max-width: 760px) {
  .section,
  .section-grid {
    padding-left: 18px !important;
    padding-right: 18px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .project-large .project-visual {
    height: 230px !important;
  }
  
  /* Header & Menú Móvil */
  .site-header {
    height: 70px;
    padding: 0 20px;
    background: rgba(5, 10, 18, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: rgba(94, 231, 255, 0.05);
    border: 1px solid rgba(94, 231, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--cyan);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, width 0.3s ease;
    box-shadow: 0 0 8px rgba(94, 231, 255, 0.4);
  }

  .menu-toggle span:nth-child(2) {
    width: 16px;
    align-self: flex-end;
    margin-right: 11px;
  }

  .menu-toggle[aria-expanded="true"] {
    background: rgba(94, 231, 255, 0.12);
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(94, 231, 255, 0.25);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    width: 22px;
  }

  /* Panel Desplegable */
  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    width: 100vw;
    height: calc(100svh - 70px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 30px 24px 40px;
    gap: 8px;
    background: radial-gradient(circle at 80% 20%, rgba(94, 231, 255, 0.08), transparent 40%), rgba(4, 9, 16, 0.96);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-bottom: 1px solid var(--line);
    box-sizing: border-box;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
    z-index: 999;
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    font-size: 13px;
    letter-spacing: 0.12em;
    font-weight: 600;
    color: #d1e2f0;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(160, 205, 235, 0.08);
    border-radius: 12px;
    transition: all 0.25s ease;
    opacity: 0;
    transform: translateY(-10px);
  }

  .main-nav a:hover,
  .main-nav a:active {
    background: rgba(94, 231, 255, 0.08);
    border-color: rgba(94, 231, 255, 0.35);
    color: #ffffff;
    transform: translateX(4px);
  }

  .main-nav .nav-highlight {
    background: linear-gradient(90deg, rgba(94, 231, 255, 0.1), rgba(163, 230, 53, 0.06));
    border-color: rgba(94, 231, 255, 0.4) !important;
    color: var(--cyan) !important;
  }

  .main-nav .nav-cta {
    margin-top: 10px;
    background: linear-gradient(110deg, #54dff7, #568bff);
    color: #03101a !important;
    font-weight: 700;
    border: none;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(84, 223, 247, 0.25);
  }

  .main-nav.open a {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s;
  }

  /* Hero Móvil */
  .hero {
    padding-top: 95px;
    overflow: hidden;
  }
  .hero-copy {
    padding: 25px 0;
  }
  .hero h1 {
    font-size: clamp(34px, 10vw, 52px);
    word-break: break-word;
  }
  .hero-metrics {
    gap: 16px;
    flex-wrap: wrap;
  }
  .hero-metrics div {
    min-width: 100px;
  }

  .hero-visual {
    min-height: 420px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .portrait-frame {
    width: min(320px, 85vw);
    height: 420px;
  }
  .visual-grid {
    width: 300px;
    height: 300px;
  }
  .orbit-one {
    width: 320px;
    height: 140px;
  }
  .orbit-two {
    width: 280px;
    height: 120px;
  }
  .hud-top {
    right: 4px;
    top: 6%;
  }
  .hud-bottom {
    left: 4px;
    bottom: 6%;
  }

  /* Secciones Móvil */
  .section {
    padding: 70px 18px;
  }
  .intro-layout,
  .section-title-row,
  .tech-layout,
  .human-layout {
    gap: 30px;
  }
  .intro-heading h2,
  .section-title-row h2,
  .tech-layout h2,
  .human-copy h2 {
    font-size: clamp(30px, 8vw, 42px);
  }

  .stat-grid {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }
  .stat-card {
    min-height: auto;
    padding: 20px;
  }
  .stat-card strong {
    font-size: 32px;
  }
  .timeline {
    padding-left: 24px;
  }
  .timeline:before {
    left: 4px;
  }
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-bottom: 45px;
  }
  .timeline-dot {
    left: -24px;
  }

  /* Expertise en móvil: 1 columna, lectura limpia */
  .expertise-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    margin-top: 35px;
  }
  .expert-card {
    min-height: auto !important;
    padding: 24px 20px !important;
  }
  .expert-card .icon {
    margin-bottom: 16px;
  }
  .expert-card h3 {
    font-size: 20px !important;
    line-height: 1.25;
  }
  .expert-card p {
    font-size: 13px;
    margin-bottom: 14px;
  }
  .expert-card small {
    font-size: 12px !important;
    line-height: 1.4 !important;
    display: block;
  }

  /* Proyectos Móvil */
  .project-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .project-visual,
  .project-wide .project-visual {
    height: 240px !important;
  }
  .project-info {
    padding: 20px;
  }

  /* Ecosistema Móvil */
  .ecosystem-card {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .ecosystem-copy {
    padding: 32px 18px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .ecosystem-copy h2 {
    font-size: clamp(30px, 8.5vw, 42px) !important;
    line-height: 1.08 !important;
    margin: 0 0 16px !important;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .ecosystem-copy > p:not(.eyebrow):not(.risk-note) {
    font-size: 14px;
    line-height: 1.6;
    max-width: 100% !important;
  }

  .ecosystem-links {
    margin: 24px 0 !important;
    gap: 8px !important;
  }

  .ecosystem-links a {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  .risk-note {
    font-size: 10px !important;
    line-height: 1.5 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  
  .ecosystem-visual {
    min-height: 340px;
    width: 100%;
    overflow: hidden;
  }
  .eco-circle-wrapper {
    width: 220px;
    height: 220px;
  }
  .eco-brand-circle {
    width: 170px;
    height: 170px;
    padding: 14px;
  }
  .eco-logo-img {
    max-width: 130px;
  }
  .ring-inner {
    inset: 10px;
  }
  .eco-node {
    padding: 6px 8px;
    font-size: 8px;
  }
  .e1 { top: 10%; left: 6%; }
  .e2 { top: 8%; right: 6%; }
  .e3 { bottom: 10%; left: 6%; }
  .e4 { bottom: 8%; right: 6%; }

  /* Contacto Móvil */
  .contact-card {
    padding: 50px 18px;
  }
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .contact-actions .btn {
    width: 100%;
  }

  /* Soluciones Digitales en móvil */
  .end-service-head {
    padding: 16px 18px;
    gap: 12px;
  }
  .end-icon {
    width: 40px;
    height: 40px;
  }
  .end-service-info h3 {
    font-size: 15px;
  }
  .end-service-info p {
    font-size: 11.5px;
  }
  .end-price-val {
    font-size: 14px;
  }
  .end-main-banner {
    flex-direction: column;
    text-align: center;
    padding: 28px 20px;
  }
  .end-banner-btn {
    width: 100%;
  }
  #endQuoteForm {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .end-modal-dialog {
    padding: 28px 18px;
  }
  .end-modal-footer {
    flex-direction: column;
    text-align: center;
  }
  .end-submit-btn {
    width: 100%;
    justify-content: center;
  }

  /* Botones flotantes móviles */
  .whatsapp-float {
    padding: 4px;
    border-radius: 50%;
    bottom: 20px;
    right: 18px;
  }
  .whatsapp-float .whatsapp-text {
    display: none;
  }
  .scroll-top-btn {
    bottom: 74px;
    right: 18px;
  }

  .project-wide .project-visual {
    height: 260px !important;
  }
}

/* ============================================================
   20. ACCESIBILIDAD / PREFERS-REDUCED-MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .visual-grid {
    animation: none;
  }
  .project-img,
  .expert-card,
  .btn,
  .whatsapp-float,
  .spinner-ring {
    transition: none;
    animation: none;
  }
  .cursor-glow {
    display: none;
  }
  .preloader-vortex {
    animation: none;
  }
}


