/* ============================================
   VTORA — Home CSS
   ============================================ */

/* ---- Animaciones de entrada ---- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---- HERO ---- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.hero__video { position: relative; z-index: 0; }

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26,26,26,0.95) 0%,
    rgba(26,26,26,0.4) 50%,
    rgba(26,26,26,0.2) 100%
  );
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-top: 0;
  padding-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: calc(100vh - 72px);
  overflow: hidden;
}

.hero__logo-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.hero__inner { max-width: 760px; }

.hero__title {
  margin-top: 20px;
  margin-bottom: 24px;
}

.hero__sub {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__data {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero__data-item { display: flex; flex-direction: column; }

.hero__data-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
}

.hero__data-unit {
  font-size: 20px;
  opacity: 0.7;
}

.hero__data-label {
  font-size: 11px;
  color: var(--grey-mid);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}

.hero__data-sep {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.12);
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 32px;
  right: 40px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--orange), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* ---- MÉTRICAS ---- */
.metrics { padding: 72px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }

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

.metric {
  padding: 32px 40px;
  border-right: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}

.metric:last-child { border-right: none; }

.metric__num {
  display: block;
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 8px;
}

.metric__label {
  font-size: 12px;
  color: var(--grey-mid);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---- SERVICIOS ---- */
.section-header { margin-bottom: 56px; }

.servicios__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.04);
}

.servicio-card {
  display: flex;
  flex-direction: column;
  padding: 48px 40px;
  background: var(--black);
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

.servicio-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,26,26,0.88);
  transition: background 0.3s;
  z-index: 0;
}

.servicio-card:hover .servicio-card__overlay {
  background: rgba(26,26,26,0.75);
}

.servicio-card__num,
.servicio-card__content,
.servicio-card__arrow {
  position: relative;
  z-index: 1;
}

.servicio-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}

.servicio-card:hover { background: rgba(255,107,0,0.04); }
.servicio-card:hover::before { transform: scaleX(1); }

.servicio-card__num {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 900;
  color: rgba(255,107,0,0.12);
  line-height: 1;
  margin-bottom: 20px;
  transition: color 0.3s;
}

.servicio-card:hover .servicio-card__num { color: rgba(255,107,0,0.25); }

.servicio-card__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.servicio-card__desc {
  font-size: 15px;
  color: var(--grey-mid);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 24px;
}

.servicio-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.servicio-card__tags span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-mid);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 4px 10px;
  border-radius: 2px;
}

.servicio-card__arrow {
  position: absolute;
  bottom: 40px;
  right: 40px;
  font-size: 24px;
  color: var(--orange);
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s;
}

.servicio-card:hover .servicio-card__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ---- CASO DANA ---- */
.caso-dana { border-top: 1px solid rgba(255,255,255,0.05); }

.caso-dana__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.caso-dana__stats {
  display: flex;
  gap: 48px;
  margin-top: 40px;
}

.caso-dana__stat {}

.caso-dana__stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
}

.caso-dana__stat-label {
  display: block;
  font-size: 12px;
  color: var(--grey-mid);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}

.caso-dana__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.caso-dana__badge {
  border: 1px solid rgba(255,107,0,0.3);
  border-radius: 4px;
  padding: 40px 48px;
  text-align: center;
}

.caso-dana__badge-client {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
}

.caso-dana__badge-type {
  display: block;
  font-size: 12px;
  color: var(--orange);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---- TECNOLOGÍA ---- */
.tech__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}

.tech__features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.tech__feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.tech__feature-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
  margin-top: 8px;
}

.tech__feature span {
  font-size: 15px;
  color: var(--grey-light);
}

/* ---- PROCESO ---- */
.proceso__steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
  padding-bottom: 40px;
}

.proceso { padding-bottom: 120px; }

.proceso__connector {
  width: 80px;
  height: 1px;
  background: var(--orange);
  margin-top: 32px;
  opacity: 0.4;
}

.proceso__step {}

.proceso__step-num {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 900;
  color: rgba(255,107,0,0.15);
  line-height: 1;
  margin-bottom: 16px;
}

.proceso__step-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.proceso__step-desc {
  font-size: 15px;
  color: var(--grey-mid);
  line-height: 1.65;
}

/* ---- EQUIPO ---- */
.equipo__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.equipo__certs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.equipo__cert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.equipo__cert-icon {
  color: var(--orange);
  font-weight: 700;
  flex-shrink: 0;
}

.equipo__cert span:last-child {
  font-size: 15px;
  color: var(--grey-light);
}

.equipo__pilotos {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.equipo__piloto {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.equipo__piloto::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: var(--orange);
}

.equipo__piloto-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 8px;
}

.equipo__piloto-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.equipo__piloto-role {
  font-size: 13px;
  color: var(--grey-mid);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---- CTA FINAL ---- */
.cta-final {
  background: var(--black);
  border-top: 1px solid rgba(255,107,0,0.2);
  padding: 120px 0;
  text-align: center;
}

.cta-final__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---- RESPONSIVE HOME ---- */
@media (max-width: 1024px) {
  .metrics__grid { grid-template-columns: repeat(2, 1fr); }
  .metric { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .caso-dana__inner,
  .tech__inner,
  .equipo__inner { grid-template-columns: 1fr; gap: 48px; }
  .proceso__steps { grid-template-columns: 1fr; }
  .proceso__connector { display: none; }
  .caso-dana__stats { flex-wrap: wrap; gap: 32px; }
}

@media (max-width: 768px) {
  .hero__content { padding-bottom: 64px; }
  .hero__data { gap: 20px; }
  .hero__data-num { font-size: 28px; }
  .metrics__grid { grid-template-columns: 1fr; }
  .servicios__grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
}

/* ---- HERO FIX DEFINITIVO ---- */
.hero__logo-wrap { display: none !important; }
.hero__content { 
  padding-top: 0 !important; 
  padding-bottom: 40px !important;
  max-height: none !important;
  overflow: visible !important;
}
.hero .heading-xl { 
  font-size: clamp(42px, 5vw, 68px) !important; 
  line-height: 1.0 !important;
  margin-top: 8px !important;
  margin-bottom: 16px !important;
}
.hero__data { margin-top: 32px !important; }

.hero { align-items: center !important; }