/**
 * SismoRed - Hero Section Styling (Desktop & Base)
 * Diseño exacto de SismoRed Landing.dc.html
 */

/* Canvas de red tech en el Hero: Confined & Masked */
#world-network-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 860px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.50;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.75) 50%, rgba(0, 0, 0, 0) 90%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.75) 50%, rgba(0, 0, 0, 0) 90%);
}

.hero-section-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 48px;
  align-items: center;
  padding: 76px 0 68px;
  position: relative;
  z-index: 1;
}

.hero-content {
  min-width: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(52px, 7.4vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.018em;
  text-transform: uppercase;
  margin: 20px 0 0;
  text-wrap: balance;
  color: var(--color-text-primary);
}

.hero-title-accent {
  color: var(--color-alarm);
}

.hero-description {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.5;
  color: var(--color-text-body);
  max-width: 520px;
  margin: 22px 0 0;
  text-wrap: pretty;
}

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

.hero-badges {
  display: flex;
  gap: 26px;
  margin-top: 26px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-dim);
  letter-spacing: 0.1em;
}

.hero-visual {
  min-width: 0;
  display: flex;
  justify-content: center;
}

/* Era un recuadro ámbar con fondo y borde, del mismo idioma visual que las
   advertencias de «sin calibrar». Pero esto no es una advertencia, es un dato,
   y con esa caja pesaba más que los botones que tiene encima. Aquí baja al
   idioma mono del resto de metadatos del hero; el punto ámbar se queda como
   único acento para que siga leyéndose como una nota. */
.hero-aviso {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 18px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.hero-aviso-punto {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-uncalibrated);
}

/* ═══ POP-UP DE VÍDEO EXPLICATIVO (INTEGRADO CON DESENFOQUE) ═══ */
.video-modal-backdrop,
.hero-motion-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(5, 7, 8, 0.85);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 3vw, 36px);
  animation: video-backdrop-fade 0.25s ease-out;
}

.video-modal-backdrop[hidden],
.hero-motion-modal-backdrop[hidden] {
  display: none !important;
}

@keyframes video-backdrop-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.video-popup-card {
  width: 100%;
  max-width: 1040px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: video-card-pop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes video-card-pop {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.video-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

/* El botón Volver atrás mantiene el mismo estilo exacto de .btn-secondary */
.btn-volver {
  padding: 12px 24px;
  font-size: 18px;
  background: rgba(5, 7, 8, 0.65) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(255, 255, 255, 0.22) !important;
}

.btn-volver:hover {
  border-color: #FFFFFF !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.video-screen-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.video-screen-player {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
  cursor: pointer;
}

/* Controles flotantes encima del vídeo */
.video-controls-overlay {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  background: rgba(5, 7, 8, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Ocultamiento automático de controles en reproducción */
.video-screen-stage.controls-hidden {
  cursor: none;
}

.video-screen-stage.controls-hidden .video-controls-overlay {
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
}

.video-screen-stage.controls-hidden .video-progress-track {
  opacity: 0;
  pointer-events: none;
}

.video-action-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--color-text-body);
  border-radius: 6px;
  padding: 7px 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.15s ease;
}

.video-action-btn:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.video-action-btn.active {
  border-color: var(--color-verified);
  color: var(--color-verified);
  background: rgba(144, 202, 80, 0.12);
}

.video-action-icon {
  padding: 7px 12px;
  margin-left: auto;
}

.video-timeline-info {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-dim);
  letter-spacing: 0.08em;
  padding: 0 8px;
}

/* Barra de progreso interactiva inferior */
.video-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  z-index: 11;
  transition: height 0.15s ease, opacity 0.35s ease;
}

.video-progress-track:hover {
  height: 8px;
}

.video-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--color-alarm);
  transition: width 0.1s linear;
}

/* ═══ EXPANDIR REALMENTE A PANTALLA COMPLETA NATIVA ═══ */
.video-screen-stage:fullscreen,
.video-screen-stage:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: #000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.video-screen-stage:fullscreen .video-screen-player,
.video-screen-stage:-webkit-full-screen .video-screen-player {
  width: 100% !important;
  height: 100% !important;
  max-height: 100vh !important;
  object-fit: contain !important;
}

.video-screen-stage:fullscreen .video-controls-overlay,
.video-screen-stage:-webkit-full-screen .video-controls-overlay {
  position: absolute;
  bottom: 28px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(92%, 840px);
  z-index: 2147483647;
}

.video-screen-stage:fullscreen.controls-hidden .video-controls-overlay,
.video-screen-stage:-webkit-full-screen.controls-hidden .video-controls-overlay {
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
}

.video-screen-stage:fullscreen .video-progress-track,
.video-screen-stage:-webkit-full-screen .video-progress-track {
  z-index: 2147483647;
}

@media (max-width: 640px) {
  .video-modal-backdrop {
    padding: 10px;
  }
  .btn-volver {
    padding: 8px 16px;
    font-size: 15px;
  }
  .video-controls-overlay {
    bottom: 8px;
    left: 8px;
    right: 8px;
    padding: 6px 10px;
    gap: 6px;
  }
  .video-action-btn {
    padding: 5px 10px;
    font-size: 13px;
    gap: 4px;
  }
  .video-timeline-info {
    font-size: 11px;
    padding: 0 4px;
  }
}


