/* ══ SPLASH ══════════════════════════════ */
#intro-splash {
  position: fixed; inset: 0; z-index: 9999;
  background: #0D1117;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
}
#intro-splash.done {
  animation: splashExit .65s .1s cubic-bezier(.76,0,.24,1) forwards;
}
@keyframes splashExit { to { opacity:0; transform:scale(1.03); visibility:hidden; } }

.splash-svg { width: 100px; height: 100px; }
.sp-border {
  fill: none; stroke: var(--naranja); stroke-width: 3;
  stroke-dasharray: 500; stroke-dashoffset: 500;
  animation: spDraw 1s .1s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes spDraw { to { stroke-dashoffset: 0; } }
.sp-fill { fill: var(--naranja); opacity: 0; animation: spFill .35s .9s ease forwards; }
@keyframes spFill { to { opacity: 1; } }
.sp-win  { fill: #0D1117; opacity: 0; animation: spFill .3s 1s ease forwards; }
.sp-grid { stroke: rgba(var(--naranja-rgb),.35); stroke-width: 1.5; fill: none;
  stroke-dasharray: 80; stroke-dashoffset: 80;
  animation: spDraw .3s 1.1s ease forwards; }
.sp-tail { fill: var(--naranja); opacity: 0; transform-origin: 57% 57%;
  animation: spTail .4s 1.05s cubic-bezier(.34,1.56,.64,1) forwards; }
@keyframes spTail { 0%{opacity:0;transform:scale(0) rotate(-20deg);} 100%{opacity:1;transform:scale(1) rotate(0);} }
.sp-corner { fill: rgba(255,255,255,.2); opacity: 0; animation: spFill .3s 1s ease forwards; }

.splash-words {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  margin-top: 18px;
  opacity: 0; animation: spUp .5s 1.3s cubic-bezier(.16,1,.3,1) forwards;
}
@keyframes spUp { from{opacity:0;transform:translateY(10px);} to{opacity:1;transform:none;} }
.splash-words .sw-main {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.4rem; font-weight: 800; color: #fff; letter-spacing: .12em;
}
.splash-words .sw-sub {
  font-size: .6rem; font-weight: 500; letter-spacing: .3em;
  color: rgba(255,255,255,.3); text-transform: uppercase;
}
.splash-tagline {
  margin-top: 24px; display: flex; align-items: center; gap: 12px;
  opacity: 0; animation: spUp .5s 1.6s ease forwards;
}
.splash-tagline-bar { width: 24px; height: 1px; background: var(--naranja); }
.splash-tagline span {
  font-size: .62rem; font-weight: 600; letter-spacing: .22em;
  color: rgba(255,255,255,.3); text-transform: uppercase;
}
.splash-progress {
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: rgba(255,255,255,.04);
}
.splash-bar {
  height: 100%; background: var(--naranja); width: 0;
  animation: spBar 2s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes spBar { to { width: 100%; } }


/* ══ HERO ════════════════════════════════ */
#hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  overflow: hidden;
  padding-top: 68px;
}

/* Real photo background */
.hero-photo {
  position: absolute; inset: 0; z-index: 0;
  background:
    url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1600&q=80&auto=format&fit=crop')
    center center / cover no-repeat;
}
/* Dark overlay so text is legible */
.hero-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    100deg,
    rgba(10,14,20,.95) 0%,
    rgba(10,14,20,.88) 50%,
    rgba(10,14,20,.55) 100%
  );
}

/* Blueprint grid overlay */
.hero-grid-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(var(--naranja-rgb),.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--naranja-rgb),.04) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: gridPan 30s linear infinite;
}
@keyframes gridPan { to { background-position: 48px 48px; } }

/* Orange vertical stripe */
.hero-stripe {
  position: absolute; top: 0; bottom: 0; left: 52%; width: 5px;
  background: var(--naranja); z-index: 3;
  transform-origin: top;
  animation: stripeGrow 1s .3s cubic-bezier(.16,1,.3,1) both;
}
@keyframes stripeGrow { from{transform:scaleY(0);} to{transform:scaleY(1);} }

/* Top line */
.hero-topline {
  position: absolute; top: 68px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,var(--naranja) 0%,transparent 60%);
  z-index: 4; opacity: .45;
}

/* ── LEFT column ── */
.hero-left {
  position: relative; z-index: 5;
  width: 52%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 60px 64px 80px 80px;
  opacity: 0;
  animation: hLeft .8s 2.1s cubic-bezier(.16,1,.3,1) forwards;
}
@keyframes hLeft { from{opacity:0;transform:translateX(-20px);} to{opacity:1;transform:none;} }

.hero-eyebrow {
  display: flex; align-items: center; gap: 14px; margin-bottom: 28px;
}
.hero-eyebrow-bar { width: 32px; height: 2px; background: var(--naranja); flex-shrink: 0; }
.hero-eyebrow span {
  font-size: .68rem; font-weight: 700; letter-spacing: .24em;
  color: rgba(255,255,255,.45); text-transform: uppercase;
}

.hero-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(3rem, 5.5vw, 5.2rem);
  font-weight: 800; line-height: .92; letter-spacing: .01em;
  margin-bottom: 28px;
}
.hero-heading .ln { display: block; color: #fff; }
.hero-heading .la { display: block; color: var(--naranja); }

.hero-desc {
  font-size: .975rem; line-height: 1.75;
  color: rgba(255,255,255,.5); max-width: 440px;
  margin-bottom: 40px; font-weight: 300;
}

.hero-actions { display: flex; gap: 14px; margin-bottom: 56px; flex-wrap: wrap; }
.hbtn-primary {
  background: var(--naranja); color: #fff; padding: 15px 32px;
  border-radius: 2px; text-decoration: none;
  font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  transition: background .2s, transform .15s;
}
.hbtn-primary:hover { background: var(--naranja-oscuro); transform: translateY(-2px); }
.hbtn-ghost {
  background: transparent; color: rgba(255,255,255,.75); padding: 15px 32px;
  border: 1px solid rgba(255,255,255,.18); border-radius: 2px;
  text-decoration: none; font-weight: 500;
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  transition: border-color .2s, color .2s;
}
.hbtn-ghost:hover { border-color: var(--naranja); color: #fff; }

/* Metrics bar */
.hero-metrics {
  display: flex; gap: 0;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 32px;
}
.hmetric {
  flex: 1; padding-right: 28px;
  border-right: 1px solid rgba(255,255,255,.07);
  margin-right: 28px;
}
.hmetric:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.hmetric-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.6rem; font-weight: 800; color: #fff; line-height: 1; margin-bottom: 4px;
}
.hmetric-num em { color: var(--naranja); font-style: normal; }
.hmetric-label { font-size: .68rem; color: rgba(255,255,255,.35); font-weight: 400; letter-spacing: .05em; line-height: 1.4; }

/* ── RIGHT column ── */
.hero-right {
  position: relative; z-index: 5;
  width: 48%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 56px 80px 72px; gap: 36px;
  opacity: 0;
  animation: hRight .9s 2.2s cubic-bezier(.16,1,.3,1) forwards;
}
@keyframes hRight { from{opacity:0;transform:translateY(20px);} to{opacity:1;transform:none;} }

/* Logo animado */
.hero-logo-ring { position: relative; width: 180px; height: 180px; }
.ring-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  animation: ringRot 12s linear infinite;
}
@keyframes ringRot { to { transform: rotate(360deg); } }
.ring-track { fill: none; stroke: rgba(var(--naranja-rgb),.08); stroke-width: 1; }
.ring-dash  {
  fill: none; stroke: var(--naranja); stroke-width: 1.5;
  stroke-dasharray: 28 60; stroke-linecap: round;
  animation: ringRot 8s linear infinite reverse;
}
.hero-logo-center {
  position: absolute; inset: 20px;
  display: flex; align-items: center; justify-content: center;
}
.hero-logo-svg {
  width: 100%; height: 100%;
  filter: drop-shadow(0 0 22px rgba(var(--naranja-rgb),.45));
  animation: logoPulse 3s ease-in-out infinite;
}
@keyframes logoPulse {
  0%,100%{ filter: drop-shadow(0 0 22px rgba(var(--naranja-rgb),.45)); }
  50%    { filter: drop-shadow(0 0 40px rgba(var(--naranja-rgb),.7)); }
}
/* Brackets */
.cb { position: absolute; width: 14px; height: 14px; }
.cb svg { width: 100%; height: 100%; }
.cb-tl { top:6px; left:6px; }
.cb-tr { top:6px; right:6px; transform:rotate(90deg); }
.cb-bl { bottom:6px; left:6px; transform:rotate(-90deg); }
.cb-br { bottom:6px; right:6px; transform:rotate(180deg); }

.hero-wordmark {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.hw-main {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.1rem; font-weight: 800; color: #fff; letter-spacing: .1em;
}
.hw-sub {
  font-size: .62rem; font-weight: 500;
  letter-spacing: .28em; color: rgba(255,255,255,.3); text-transform: uppercase;
}

/* Services mini list */
.hero-svc-list { width: 100%; display: flex; flex-direction: column; gap: 2px; }
.hero-svc-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 18px;
  background: rgba(255,255,255,.04);
  border-left: 2px solid transparent;
  transition: background .2s, border-color .2s;
}
.hero-svc-item:hover { background: rgba(var(--naranja-rgb),.1); border-left-color: var(--naranja); }
.hero-svc-n {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem; font-weight: 800; color: rgba(var(--naranja-rgb),.4); min-width: 22px;
}
.hero-svc-t { font-size: .78rem; font-weight: 500; color: rgba(255,255,255,.5); }

/* Scroll indicator */
.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 6px;
  opacity: 0; animation: fadeIn .5s 3s forwards;
}
@keyframes fadeIn { to{opacity:1;} }
.scroll-hint span { font-size: .58rem; letter-spacing: .18em; color: rgba(255,255,255,.25); text-transform: uppercase; }
.scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--naranja), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:.4;} 50%{opacity:1;} }


/* ══ PREVIEW SECTIONS ════════════════════ */
.preview-section { padding: 96px 64px; }
.preview-section.alt { background: var(--fondo-seccion); }
.preview-inner { max-width: 1200px; margin: 0 auto; }
.preview-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.preview-text p { font-size:.975rem; line-height:1.75; color:var(--gris-medio); font-weight:300; margin-bottom:20px; }
.preview-text p strong { color:var(--gris-oscuro); font-weight:600; }
.preview-text .actions { margin-top: 32px; display: flex; gap: 16px; flex-wrap: wrap; }

.servicios-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 48px; }
.servicio-card { background: var(--blanco); padding: 40px 36px; position: relative; overflow: hidden; transition: background .25s; }
.servicio-card::before { content:''; position:absolute; bottom:0; left:0; width:0; height:3px; background:var(--naranja); transition: width .35s ease; }
.servicio-card:hover::before { width:100%; }
.servicio-card:hover { background:#FAFBFC; }
.servicio-num { font-family:'Barlow Condensed',sans-serif; font-size:3rem; font-weight:800; color:var(--linea); line-height:1; margin-bottom:12px; transition:color .25s; }
.servicio-card:hover .servicio-num { color:rgba(var(--naranja-rgb),.4); }
.servicio-icon { width:40px; height:40px; margin-bottom:16px; color:var(--naranja); }
.servicio-card h3 { font-family:'Barlow Condensed',sans-serif; font-size:1.25rem; font-weight:700; color:var(--gris-oscuro); margin-bottom:10px; letter-spacing:.02em; }
.servicio-card p { font-size:.85rem; line-height:1.65; color:var(--gris-claro); font-weight:300; }

.cta-banner { background:var(--gris-oscuro); padding:80px 64px; position:relative; overflow:hidden; }
.cta-banner::before { content:''; position:absolute; top:0; left:0; width:5px; bottom:0; background:var(--naranja); }
.cta-banner-inner { max-width:1200px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; gap:48px; flex-wrap:wrap; }
.cta-banner-text h2 { font-family:'Barlow Condensed',sans-serif; font-size:2.5rem; font-weight:800; color:var(--blanco); margin-bottom:12px; }
.cta-banner-text p { font-size:.975rem; color:rgba(255,255,255,.55); max-width:560px; line-height:1.7; }

.team-preview-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:48px; }
.team-card { border:1px solid var(--linea); border-radius:2px; overflow:hidden; transition:border-color .25s,box-shadow .25s; }
.team-card:hover { border-color:var(--naranja); box-shadow:0 8px 32px rgba(var(--naranja-rgb),.08); }
.team-photo { width:100%; aspect-ratio:4/3; background:linear-gradient(135deg,#E8EDF2 0%,#D5DCE4 100%); display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden; }
.team-photo::after { content:''; position:absolute; bottom:0; left:50%; transform:translateX(-50%); width:80px; height:80px; background:var(--naranja); border-radius:50%; opacity:.15; }
.team-avatar { width:56px; height:56px; color:var(--gris-claro); opacity:.45; z-index:1; }
.team-info { padding:24px; border-top:3px solid var(--naranja); }
.team-info h3 { font-family:'Barlow Condensed',sans-serif; font-size:1.05rem; font-weight:700; color:var(--gris-oscuro); letter-spacing:.04em; margin-bottom:3px; }
.team-role { font-size:.72rem; color:var(--naranja); font-weight:600; letter-spacing:.1em; text-transform:uppercase; margin-bottom:10px; }
.team-bio { font-size:.83rem; line-height:1.65; color:var(--gris-claro); font-weight:300; }

/* pillar cards reutilizables */
.pillar-card {
  background: var(--fondo-seccion);
  border-left: 3px solid var(--naranja);
  padding: 24px 28px; border-radius: 2px;
}
.pillar-card h4 { font-family:'Barlow Condensed',sans-serif; font-weight:700; font-size:1.05rem; color:var(--gris-oscuro); margin-bottom:6px; }
.pillar-card p { font-size:.85rem; line-height:1.6; color:var(--gris-claro); }


/* ══ MOBILE (≤768px) ══════════════════════ */
@media(max-width:768px){
  /* Splash */
  .splash-svg { width: 80px; height: 80px; }
  .splash-words .sw-main { font-size: 1.9rem; }

  /* Navbar */
  nav { padding: 0 18px !important; height: 60px !important; }
  .nav-links { display: none !important; }
  .nav-logo svg { width: 28px !important; height: 28px !important; }
  .nav-logo-text .nl-main { font-size: 1rem !important; }
  .nav-logo-text .nl-sub  { font-size: .52rem !important; }

  /* Hero — stack vertical */
  #hero { flex-direction: column; padding-top: 60px; min-height: auto; }
  .hero-stripe { display: none; }
  .hero-photo::after {
    background: linear-gradient(180deg,
      rgba(10,14,20,.96) 0%,
      rgba(10,14,20,.88) 60%,
      rgba(10,14,20,.70) 100%);
  }
  .hero-left {
    width: 100%; padding: 40px 20px 28px;
    animation-delay: 2s;
  }
  .hero-heading { font-size: clamp(2.4rem, 9vw, 3.4rem); }
  .hero-desc { max-width: 100%; font-size: .9rem; }
  .hero-actions { margin-bottom: 36px; }
  .hbtn-primary, .hbtn-ghost { padding: 13px 22px; font-size: .75rem; }
  .hero-metrics { gap: 0; }
  .hmetric { padding-right: 16px; margin-right: 16px; }
  .hmetric-num { font-size: 2rem; }
  .hmetric-label { font-size: .6rem; }

  .hero-right {
    width: 100%; padding: 24px 20px 48px; gap: 24px;
    animation-delay: 2.1s;
  }
  .hero-logo-ring { width: 130px; height: 130px; }
  .hw-main { font-size: 1.6rem; }
  .hero-svc-list { display: none; }
  .scroll-hint { display: none; }

  /* Sections */
  .preview-section { padding: 56px 20px; }
  .preview-grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .servicios-grid { grid-template-columns: 1fr; }
  .team-preview-grid { grid-template-columns: 1fr; gap: 16px; }
  .cta-banner { padding: 48px 20px; }
  .cta-banner-inner { flex-direction: column; gap: 24px; align-items: flex-start; }
  .cta-banner-text h2 { font-size: 1.8rem; }

  /* Sections header 2-col → 1 col */
  .preview-section [style*="grid-template-columns:1fr 1fr"] {
    display: block !important;
  }

  /* Page header inner pages */
  .page-header-inner { padding: 36px 20px !important; }
  .page-header h1 { font-size: 2.4rem !important; }

  /* Footer */
  footer { padding: 32px 20px !important; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-nav { flex-wrap: wrap; gap: 12px 20px; }
}

/* Tablet (769–1024) */
@media(min-width:769px) and (max-width:1024px){
  .hero-left { padding: 48px 40px 60px 48px; }
  .hero-right { padding: 48px 36px 60px 48px; }
  .hero-heading { font-size: 3.6rem; }
  .hero-logo-ring { width: 150px; height: 150px; }
  .preview-section { padding: 72px 40px; }
  .cta-banner { padding: 64px 40px; }
  footer { padding: 40px 40px !important; }
}
