* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background: #f8f9fa;
}

/* Header del Visor */
.visor-header {
  background: #003d82;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.visor-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-visor {
  height: 50px;
  width: auto;
  background: white;
  padding: 5px;
  border-radius: 3px;
}

.visor-title-info h1 {
  color: white;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 2px;
}

.visor-title-info p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
}

.btn-back {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(-3px);
}

/* Contenedor Principal del Visor */
.visor-main {
  flex: 1;
  display: flex;
  padding: 10px;
  overflow: hidden;
}

.visor-frame {
  flex: 1;
  position: relative;
  background: white;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.visor-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Loading */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 5;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #003d82;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-overlay p {
  color: #666;
  font-size: 14px;
}

/* Footer Minimalista */
.visor-footer {
  background: #003d82;
  color: white;
  text-align: center;
  padding: 12px;
  font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
  .visor-header-content {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }

  .header-left {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .logo-visor {
    height: 45px;
  }

  .visor-title-info h1 {
    font-size: 18px;
  }

  .visor-main {
    padding: 5px;
  }

  .btn-back {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .logo-visor {
    height: 40px;
  }

  .visor-title-info h1 {
    font-size: 16px;
  }

  .visor-title-info p {
    font-size: 12px;
  }
}

.logo-section a {
  display: block;
  line-height: 0;
  cursor: pointer;
}

.logo-section a:hover .logo-main {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}
