/* ════════════════════════════════════════════════
   AMASHIFT — landing.css
   Estilos exclusivos de la Landing Page (index.html)
   (reveal, botones y etiquetas de sección en global.css)
   ════════════════════════════════════════════════ */

/* ─── Stagger reveal para grids de landing ─── */
.services-grid .reveal:nth-child(2),
.values-grid   .reveal:nth-child(2) { transition-delay: 0.1s; }
.services-grid .reveal:nth-child(3),
.values-grid   .reveal:nth-child(3) { transition-delay: 0.2s; }
.values-grid   .reveal:nth-child(4) { transition-delay: 0.3s; }

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 200px 0 160px;
  overflow: hidden;
}

/* Video de fondo atmosférico */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.05;
  pointer-events: none;
}

/* Rejilla de fondo */
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-grid-overlay { display: none; }

.shift-deco { display: none; }

/* Halo de fondo animado — respira suavemente */
.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translate(-50%, -50%) scale(0.9);
  background: radial-gradient(circle, rgba(0,163,255,0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
  animation: heroGlow 10s ease-in-out infinite;
  will-change: transform, opacity;
}

@keyframes heroGlow {
  0%, 100% { transform: translate(-50%, -50%) scale(0.9);  opacity: 0.55; }
  50%       { transform: translate(-50%, -50%) scale(1.25); opacity: 1;    }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: clamp(2.8rem, 7.5vw, 5.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #FFFFFF;
  margin-bottom: 32px;
}

.hero-title-img {
  display: block;
  max-width: 280px;
  width: 100%;
  height: auto;
  margin: 0 auto 44px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #71717A;
  line-height: 1.8;
  margin: 0 auto 52px;
  max-width: 440px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Indicador de scroll */
.hero-scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-line {
  width: 1.5px;
  height: 52px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  margin: 0 auto;
  animation: scrollDrop 2.2s ease-in-out infinite;
}
@keyframes scrollDrop {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  60%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}

/* ═══════════════════════════════════════════════
   PROYECTOS
   ═══════════════════════════════════════════════ */
.projects { padding: 140px 0; }

.project-list { border-top: 1px solid #1C1C1E; }

.project-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0 60px;
  align-items: start;
  padding: 52px 0;
  border-bottom: 1px solid #1C1C1E;
  transition: border-color 0.25s ease;
}

.project-item-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 6px;
}

.project-number {
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: #3F3F46;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  color: #22c55e;
  font-weight: 500;
}

.project-live-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulseLive 2s ease-in-out infinite;
}

@keyframes pulseLive {
  0%,100% { box-shadow: 0 0 0 0   rgba(34,197,94,0.55); }
  60%      { box-shadow: 0 0 0 5px rgba(34,197,94,0);    }
}

.project-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #F0F2F5;
  line-height: 1.05;
  margin-bottom: 20px;
}

.project-desc {
  font-size: 1rem;
  color: #71717A;
  line-height: 1.75;
  max-width: 540px;
  margin-bottom: 36px;
}

.project-cta { letter-spacing: 0; }

/* Imagen dentro de la tarjeta de proyecto */
.project-image-wrapper {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #27272A;
  background-color: transparent;
  margin-bottom: 28px;
}

.project-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Mockup visual premium */
.project-mockup-frame {
  border-radius: 12px;
  border: 1px solid #27272A;
  overflow: hidden;
  margin-bottom: 52px;
  box-shadow:
    0 40px 80px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.03);
}

.project-mockup-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}

/* ═══════════════════════════════════════════════
   SERVICIOS
   ═══════════════════════════════════════════════ */
/* Glow atmosférico en Servicios */
.services {
  padding: 140px 0;
  position: relative;
}
.services::before {
  content: '';
  position: absolute;
  top: 15%;
  right: -8%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,163,255,0.06) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.services > .container { position: relative; z-index: 1; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid #1C1C1E;
  border-radius: 10px;
  padding: 52px 44px;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.service-card:hover {
  border-color: rgba(0,163,255,0.4);
  transform: translateY(-5px);
}

.service-card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0,163,255,0.09) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.service-card:hover .service-card-glow { opacity: 1; }

.service-card--featured {
  border-color: rgba(0,163,255,0.2);
  background: #0F1117;
}
.service-card--featured .service-card-glow { opacity: 0.3; }
.service-card--featured:hover {
  border-color: rgba(0,163,255,0.35);
}

.service-icon {
  color: #A1A1AA;
  margin-bottom: 24px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid #1C1C1E;
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.service-card:hover .service-icon {
  color: var(--accent);
  border-color: var(--border-accent);
  transform: scale(1.08) rotate(-4deg);
}

.service-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #71717A;
  border: 1px solid #27272A;
  padding: 4px 10px;
  border-radius: 5px;
  margin-bottom: 24px;
}
.service-tag--accent {
  color: #00A3FF;
  border-color: rgba(0,163,255,0.22);
}

.service-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 16px;
}
.service-title span { color: var(--accent); }

.service-desc {
  color: var(--text-secondary);
  line-height: 1.72;
  margin-bottom: 28px;
  font-size: 0.96rem;
}

.service-features {
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.service-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.service-features li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--accent-dim);
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L3.5 6.5L9 1.5' stroke='%2300A3FF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  border: 1px solid var(--border-accent);
}

/* Performance visual — Lottie + barras comparativas */
.perf-visual {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 32px;
  margin-top: 4px;
}

.perf-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.perf-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  font-weight: 500;
  color: #52525B;
}

.perf-bar-fill {
  border-radius: 4px;
  height: 8px;
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.perf-bar--slow .perf-bar-fill {
  width: 35%;
  background: #ef4444;
}
.perf-bar--fast .perf-bar-fill {
  width: 92%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(0,163,255,0.35);
}

.perf-bar-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.perf-bar--fast .perf-bar-label {
  color: var(--accent);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════
   VALUE PROPS
   ═══════════════════════════════════════════════ */
/* Glow atmosférico en Values */
.values {
  padding: 140px 0;
  position: relative;
}
.values::after {
  content: '';
  position: absolute;
  bottom: 10%;
  left: -10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(0,163,255,0.05) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.values > .container { position: relative; z-index: 1; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.value-item {
  padding: 36px 28px;
  background: transparent;
  border: 1px solid #1C1C1E;
  border-radius: 10px;
  transition: border-color 0.25s ease, transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.value-item:hover {
  border-color: #27272A;
  transform: translateY(-4px);
}

.value-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}

.value-title {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.value-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.72;
}

/* ═══════════════════════════════════════════════
   CTA FINAL
   ═══════════════════════════════════════════════ */
.cta-final { padding: 140px 0 160px; }

.cta-inner {
  position: relative;
  background: #0F1117;
  border: 1px solid #1C1C1E;
  border-radius: 12px;
  padding: 100px 60px;
  text-align: center;
  overflow: hidden;
}

.cta-bg-glow {
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(0,163,255,0.16) 0%, transparent 65%);
  pointer-events: none;
}

.cta-shift-deco {
  position: absolute;
  right: -24px;
  bottom: -36px;
  width: 220px;
  color: var(--accent);
  opacity: 0.045;
  pointer-events: none;
}

.cta-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  position: relative;
}

.cta-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
  position: relative;
}

.cta-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 44px;
  position: relative;
}

.cta-note {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
  position: relative;
}

/* ═══════════════════════════════════════════════
   CALCULADORA DE COMISIONES
   ═══════════════════════════════════════════════ */
.calculator { padding: 140px 0; }

.calc-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid #27272A;
  border-radius: 12px;
  padding: 52px 48px;
}

.calc-label {
  display: block;
  font-size: 0.82rem;
  color: #71717A;
  margin-bottom: 20px;
  font-weight: 500;
}

.calc-value-display {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 24px;
}

.calc-current-value {
  color: var(--accent);
}

/* Range slider personalizado */
.calc-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #1C1C1E;
  outline: none;
  cursor: pointer;
}

.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 12px rgba(0,163,255,0.4);
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}
.calc-range::-webkit-slider-thumb:hover {
  box-shadow: 0 0 20px rgba(0,163,255,0.6);
}

.calc-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 12px rgba(0,163,255,0.4);
  cursor: pointer;
}

.calc-range::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: #1C1C1E;
}

/* Progress fill via JS gradient — baked into input style */
.calc-range-limits {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  margin-bottom: 36px;
  font-size: 0.72rem;
  color: #3F3F46;
  font-weight: 500;
}

.calc-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 36px;
}

.calc-result {
  text-align: center;
  padding: 28px 20px;
  border-radius: 10px;
  border: 1px solid #1C1C1E;
}

.calc-result-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #71717A;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.calc-result-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.calc-result--loss .calc-result-number { color: #ef4444; }
.calc-result--save .calc-result-number { color: #22c55e; }

.calc-result-detail {
  display: block;
  font-size: 0.72rem;
  color: #52525B;
}

.calc-cta {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

/* ═══════════════════════════════════════════════
   MÉTRICAS REALES
   ═══════════════════════════════════════════════ */
.metrics {
  padding: 100px 0;
  border-top: 1px solid #1C1C1E;
  border-bottom: 1px solid #1C1C1E;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.metric-number {
  display: block;
  font-size: clamp(3.2rem, 7vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #FFFFFF;
  line-height: 1;
  margin-bottom: 12px;
}

.metric-text {
  display: block;
  font-size: 0.88rem;
  color: #A1A1AA;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════
   TECH STACK
   ═══════════════════════════════════════════════ */
.tech-stack {
  padding: 72px 0;
  border-bottom: 1px solid #1C1C1E;
}

.tech-stack-title {
  font-size: 0.78rem;
  color: #52525B;
  text-align: center;
  margin-bottom: 36px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.tech-stack-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #52525B;
  opacity: 0.55;
  transition: color 0.3s ease, opacity 0.3s ease;
  cursor: default;
}
.tech-item:hover {
  color: var(--accent);
  opacity: 1;
}

.tech-item svg {
  width: 32px;
  height: 32px;
}

.tech-item span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════
   SHIFT LOG
   ═══════════════════════════════════════════════ */
.shift-log { padding: 140px 0; }

.shift-log-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.log-card {
  background: var(--bg-card);
  border: 1px solid #1C1C1E;
  border-radius: 10px;
  padding: 40px 36px;
  transition: border-color 0.3s ease, transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.log-card:hover {
  border-color: #27272A;
  transform: translateY(-4px);
}

.log-card-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border-accent);
  background: var(--accent-dim);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.log-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin-bottom: 14px;
  color: #F0F2F5;
}

.log-card-desc {
  font-size: 0.88rem;
  color: #71717A;
  line-height: 1.72;
  margin-bottom: 24px;
}

.log-card-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: #71717A;
  transition: color 0.2s ease;
}
.log-card-link:hover { color: #A1A1AA; }

.log-arrow { color: var(--accent); }

/* ═══════════════════════════════════════════════
   RESPONSIVE — landing específico
   ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }

  .project-item {
    grid-template-columns: 90px 1fr;
    gap: 0 40px;
  }

  .metrics-grid { gap: 28px; }
  .tech-stack-row { gap: 40px; }
}

@media (max-width: 768px) {
  .hero {
    padding: 130px 0 90px;
    min-height: auto;
  }

  .service-card:hover { transform: none; }

  .project-mockup-frame {
    border-radius: 8px;
    margin-bottom: 36px;
  }

  .hero-title-img { max-width: 210px; }

  .services-grid { grid-template-columns: 1fr; }

  .values-grid { grid-template-columns: 1fr 1fr; }

  .project-item {
    grid-template-columns: 1fr;
    gap: 18px 0;
    padding: 36px 0;
  }

  .project-item-meta {
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }

  .project-title { font-size: clamp(2rem, 9vw, 3rem); }

  .cta-inner { padding: 60px 32px; }

  .section-subtitle { margin-bottom: 40px; }

  .metrics-grid { grid-template-columns: 1fr; gap: 48px; }
  .metric-number { font-size: 3.4rem; }

  .tech-stack-row { gap: 32px; }

  .shift-log-grid { grid-template-columns: 1fr; }

  .calc-card { padding: 40px 28px; }
  .calc-results { grid-template-columns: 1fr; gap: 12px; }
  .calc-value-display { font-size: 2rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }

  .values-grid { grid-template-columns: 1fr; }

  .hero-title-img { max-width: 180px; }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .service-card  { padding: 36px 24px; }
  .value-item    { padding: 28px 20px; }

  .perf-visual { flex-direction: column; align-items: stretch; }
  .perf-visual lottie-player { width: 40px !important; height: 40px !important; }

  .project-title { font-size: clamp(1.9rem, 10vw, 2.5rem); }

  .cta-inner  { padding: 48px 20px; }
  .cta-title  { font-size: clamp(1.8rem, 8vw, 2.5rem); }

  .tech-stack-row { gap: 24px; }
  .tech-item svg { width: 24px; height: 24px; }

  .log-card { padding: 28px 20px; }
  .log-card-title { font-size: 1.05rem; }

  .calc-card { padding: 32px 20px; }
}
